Bug 341626

Summary: Singluar case for time pural strings doesn't have a placeholder
Product: [Frameworks and Libraries] frameworks-kdelibs4support Reporter: fios
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: REPORTED ---    
Severity: normal CC: lueck
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.