bfabiszewski/ulogger-android

l10n: Double "%" sign

Valdnet opened this issue · 1 comments

There is a double "%" sign in the text string. Shouldn't there be only one?

If you need literal percent character use %%.

<string name="pref_auto_name_summary" formatted="false">Template for new track name. Following patterns will be substituted with current date elements: %y (year), %m (month), %d (day), %H (hour), %M (minute), %S (second). If you need literal percent character use %%.</string>

Thanks for the info. This is correct.
It is a way to allow users to use literal percent character in their template. If you use %H it will be substituted with current hour, eg. 11. But someone might want to have a template that has %H in the name without any substitution. And they can achieve it by writing %%H in their template. Then instead of 11 the effective string will be %H.