Bug 341643

Summary: "1 match found." needs a placeholder
Product: [Frameworks and Libraries] frameworks-ktextwidgets Reporter: fios
Component: generalAssignee: Laurent Montel <montel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kdelibs-bugs-null, yurchor
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description fios 2014-12-07 21:30:12 UTC
While translating this string:

ktextwidgets.pot

#: findreplace/kfind.cpp:624 findreplace/kfind.cpp:643
#, kde-format
msgid "1 match found."
msgid_plural "%1 matches found."
msgstr[0] ""
msgstr[1] ""

I found that msgid lacks a placeholder. Will numbers still be fetched correctly for other languages? E.g. in my language, msgstr[0] "" is used for both 1 and 11. I think we need  "%1 match found." here.

Reproducible: Always

Steps to Reproduce:
Not tested yet, I'm just translating.

Actual Results:  
"1 matches found."
"1 matches found."

Expected Results:  
"1 matches found."
"11 matches found."
Comment 1 Yuri Chornoivan 2018-12-20 07:23:23 UTC
Sorry for the late reply.

Yes. This works for plurals (tested for Ukrainian). It is enough to translate the singular form as "%1 match found" (with the placeholder).