Merge pull request #415 from Philoul/Statistic_string_for_translation
Add string to Activity monitor for translation
This commit is contained in:
commit
44d5a04db2
2 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,7 @@ class ActivityMonitor @Inject constructor(
|
||||||
val duration = DateUtil.niceTimeScalar(v as Long, resourceHelper)
|
val duration = DateUtil.niceTimeScalar(v as Long, resourceHelper)
|
||||||
val start = sp.getLong(key.replace("total", "start"), 0)
|
val start = sp.getLong(key.replace("total", "start"), 0)
|
||||||
val days = T.msecs(DateUtil.now() - start).days()
|
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
|
return result
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,6 +236,7 @@
|
||||||
<!-- TDD-->
|
<!-- 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="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="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-->
|
<!-- Translator-->
|
||||||
<string name="careportal_bgcheck">BG Check</string>
|
<string name="careportal_bgcheck">BG Check</string>
|
||||||
|
|
Loading…
Reference in a new issue