gettext, plural forms and plone
Johannes Raggam <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
I come across the need to translate a text and use either plural or singular form. I recognized, that we don't have a solution to this problem in Plone. We can use conditions and use different message id's in respect to the number of an item, but this is somehow foolish and not the way to go. There are languages with more than one plural form. This problem is described quite well in the GNU gettext docs: http://www.gnu.org/software/libc/manual/html_node/Advanced-gettext-functions.html Apparently, in Zope and Plone, we use gettext, but not ngettext or any of the other tools, which can handle plural forms. There is a ticket, which also addresses this problem: https://dev.plone.org/ticket/2018 (it's 10 years old!). I won't fix it for this one problem I stumbled over, but just want to re-raise the issue and ask, how other people are dealing with singular / plural forms in Plone? Cheers, Johannes -- programmatic web development di(fh) johannes raggam / thet python plone zope development plone framework team member mail: office-//[email protected] web: http://programmatic.pro http://bluedynamics.com ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc
(application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlO1x2cACgkQW4mNMQxDgAeS7wCfZ2GOy4U4ZuG9ZBCa/faALDfn ZOUAoK5QuDtUobGa3zTpWNfOzxVCj40g =jFja -----END PGP SIGNATURE-----