Re: gettext, plural forms and plone
Asko Soukka <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
Google came up with almost recent work by Thomas Massmann: https://code.launchpad.net/~thomas-massmann/zope.i18n/plural https://code.launchpad.net/~thomas-massmann/zope.i18nmessageid/plural If those work, there's only Chameleon (and i18ndude) left to fix. -Asko Johannes Raggam wrote: > 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 > > > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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