Bug 341626 - Singluar case for time pural strings doesn't have a placeholder
Summary: Singluar case for time pural strings doesn't have a placeholder
Status: REPORTED
Alias: None
Product: frameworks-kdelibs4support
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-07 11:44 UTC by fios
Modified: 2021-03-09 05:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fios 2014-12-07 11:44:45 UTC
While working on translations, I came across a potential problem wit the following strings:

#: kdecore/klocale_kde.cpp:1491
#, kde-format
msgctxt "@item:intext"
msgid "1 day"
msgid_plural "%1 days"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""

#: kdecore/klocale_kde.cpp:1493
#, kde-format
msgctxt "@item:intext"
msgid "1 hour"
msgid_plural "%1 hours"
msgstr[0] ""
msgstr[1] ""

#: kdecore/klocale_kde.cpp:1495
#, kde-format
msgctxt "@item:intext"
msgid "1 minute"
msgid_plural "%1 minutes"
msgstr[0] ""
msgstr[1] ""

#: kdecore/klocale_kde.cpp:1497
#, kde-format
msgctxt "@item:intext"
msgid "1 second"
msgid_plural "%1 seconds"
msgstr[0] ""
msgstr[1] ""

The numbers in the singular case aren't placeholders. msgid "1 day" should be msgid "%1 day" etc.

In my language, msgstr[0] "" encodes both 1 and 11, and I fear this might display 1 instead of 11.

Reproducible: Always

Steps to Reproduce:
I haven't tested any of this, I'm just working on the PO file at the moment.
Comment 1 Justin Zobel 2021-03-09 05:54:01 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.