Bug 313732 - Allow translating “%1, %2 hours” differently in singular and plural (hours)
Summary: Allow translating “%1, %2 hours” differently in singular and plural (hours)
Status: RESOLVED WORKSFORME
Alias: None
Product: calligraplan
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Chakra Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dag Andersen
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2013-01-23 06:34 UTC by Adrián Chaves (Gallaecio)
Modified: 2018-10-27 02:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrián Chaves (Gallaecio) 2013-01-23 06:34:43 UTC
In “planlibs.po”, you cna find the following translatable string:

    %1, %2 hours

I think it would be nice being able to be able to translate it in plural form:

    %1, %2 hour
    %1, %2 hours

Reproducible: Always
Comment 1 Friedrich W. H. Kossebau 2013-04-16 20:53:16 UTC
%2 is not given as an integer, but as a floating point number. So special numbers like 0, 1 etc. are still printed as 0.0, 0.1, etc. So I would think that hours in any case makes sense, or?
Comment 2 Adrián Chaves (Gallaecio) 2013-04-17 06:14:58 UTC
It makes sense in Galician and Spanish at least, where anything != 1 is considered plural (not sure how other languages behave about this). For example: 2 horas, 1 hora, 0.5 horas, 0.1 horas, 0 horas.
Comment 3 Friedrich W. H. Kossebau 2013-11-24 22:34:39 UTC
Hi. Finally picked up again:
What about 1.0? Would that be 1.0 hora or 1.0 horas? The latter, no?

I was to do as proposed and use i18ncp, but when asking for how to use it correctly, I was instead hinted that in this case the current code is just fine, as it uses KLocale::formatNumber(double v) to create the string for the hours, so would also print 1.0000 not as 1, but as floating point 1.000 or 1,00 or whatever. At least if noone has set decimalPlaces to 0 in their locale. Are there people who would do that?

See for the discussion http://lists.kde.org/?t=138532530500001&r=1&w=2

So, what do you think, can we close this bug as INVALID?
Comment 4 Andrew Crouthamel 2018-09-25 03:54:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-10-27 02:29:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!