[Koha-bugs] [Bug 15395] Internationalization: plural forms, context, and more

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 23 21:30:53 CEST 2018


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

--- Comment #103 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to Jonathan Druart from comment #101)
> So, from what I understand the third form (for 0) will be not supported,
> unless we change the Plural-Forms (are we really supposed to change that?).
I don't think we are supposed to.
The simple solution would be to always use the {count} so we would have "0
exemplaire" and "1 exemplaire".
Or we could handle this in the code:

[% IF count %]
  [% tnx('{count} item', '{count} items', count, { count = count }) %]
[% ELSE %]
  [% t('Not a single item!') %]
[% END %]

I think there is no best solution here and both can be used.
Sometimes we want to display a different message when there are 0 "things", and
sometimes not.

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


More information about the Koha-bugs mailing list