Add string to Activity monitor for translation

This commit is contained in:
Philoul 2021-03-14 17:07:27 +01:00
parent 8ec346cd35
commit 4bd21c2a68
2 changed files with 2 additions and 1 deletions

View file

@ -66,7 +66,7 @@ class ActivityMonitor @Inject constructor(
val duration = DateUtil.niceTimeScalar(v as Long, resourceHelper)
val start = sp.getLong(key.replace("total", "start"), 0)
val days = T.msecs(DateUtil.now() - start).days()
result += "<b><span style=\"color:yellow\">$activity:</span></b> <b>$duration</b> in <b>$days</b> days<br>"
result += resourceHelper.gs(R.string.activitymonitorformat, activity, duration, days)
}
return result
}

View file

@ -236,6 +236,7 @@
<!-- TDD-->
<string name="tddformat"><![CDATA[<b>%1$s:</b> ∑: <b>%2$.2f U</b> Bol: <b>%3$.2f U</b> Bas: <b>%4$.2f U(%5$.0f%%)</b>]]></string>
<string name="tddwithcarbsformat"><![CDATA[<b>%1$s:</b> ∑: <b>%2$.2f U</b> Bol: <b>%3$.2f U</b> Bas: <b>%4$.2f U(%5$.0f%%)</b> Carbs: <b>%6$.0f g</b>]]></string>
<string name="activitymonitorformat"><![CDATA[<b><span style=\"color:yellow\">%1$s:</span></b> <b>%2$s</b> in <b>%3$d</b> days<br>]]></string>
<!-- Translator-->
<string name="careportal_bgcheck">BG Check</string>