[Koha-bugs] [Bug 15395] Allow correct handling of plural translation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 11 17:25:15 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15395

--- Comment #36 from Marc Véron <veron at veron.ch> ---
OK, I tested with 3 files:

koha-tmpl/intranet-tmpl/prog/en/js/categories.js
koha-tmpl/intranet-tmpl/prog/js/staff-global.js
koha-tmpl/opac-tmpl/bootstrap/js/global.js

All files were picked up in Koha.po

I translated them and did a translate install

Example for JavaScript used (added as line 1 of
koha-tmpl/intranet-tmpl/prog/en/js/categories.js):

alert(__nx("There is one category", "There are {count} categories", 4, {count:
4}));

Translation in misc/translator/po/de_DE/LC_MESSAGES/Koha.po:

#: koha-tmpl/intranet-tmpl/prog/en/js/categories.js:1
msgid "There is one category"
msgid_plural "There are {count} categories"
msgstr[0] "Es gibt {count} Kategorien"
msgstr[1] "Es gibt nur eine Kategorie..."

English page displays "There are 4 categories"  (OK)
German page displays "Es gibt nur eine Kategorie..." (WRONG)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list