-
Notifications
You must be signed in to change notification settings - Fork 91
Use plurals for real-time arrival estimates #418
Comments
@barbeau we already have this, including values in strings. The problem is that negative values are changed later on (in the special cases of delays), and only positive one is substituted, I'll add it also for -1. I prefer to not change all negative values because I think that it's more clear this way and to don't hide some possible errors. I'll submit a correction with this and other graphical improvements to the notifications in a few minutes. |
Fix #418 - Checked also -1 to display singular values.
Thanks @vreixo, for fixing the -1 presentation! I'm going to re-open the issue, so at some point in the future we can use the official Android plurals technique to format singular/plural strings. The reason behind wanting to use this is that different languages have different ways to represent singular/plural, so its better to use the built-in Android rules for this. From the above link:
|
@barbeau agreed that mechanism seems very interesting. Regarding my previous comment, I was just referring to don't change all negative values in our function of the app. |
As discussed in #413 (comment), we should use plurals for singular (
minute
) vs. plural (minutes
) text displayed to the user.Good examples of implementation for this are in the OBA Android project:
Usage in code is shown here:
The text was updated successfully, but these errors were encountered: