[Koha-bugs] [Bug 21156] Internationalization: plural forms, context, and more for JS files
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 1 08:05:11 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21156
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |katrin.fischer at bsz-bw.de
--- Comment #2 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
1. Add a translatable string in a JS file. For example, add this:
alert(__nx("There is one item", "There are {count} items", 3,
{count: 3}));
It looks like we already have a way of doing this with the format() syntax.
Example:
http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=koha-tmpl/intranet-tmpl/prog/en/includes/select2.inc;hb=705571a2b870fbb652ca210e32ee3e7ca050e75f#l45
How would plural translation work? Can you give examples for context and
plurals?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list