Skip to content

Commit

Permalink
Use %d instead of 1 in plurals strings (#967)
Browse files Browse the repository at this point in the history
> Always include %d in "one" because translators will need to use
> %d for languages where "one" doesn't mean 1 (as explained above)

from https://developer.android.com/guide/topics/resources/string-resource#Plurals

Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma authored Jul 24, 2018
1 parent 6e31b64 commit 802b366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/src/full/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<string name="notification_channel_severity_value">Severity \'%1$s\'</string>

<plurals name="summary_notification_text">
<item quantity="one">1 new notification</item>
<item quantity="one">%d new notification</item>
<item quantity="other">%d new notifications</item>
</plurals>
</resources>

0 comments on commit 802b366

Please sign in to comment.