Re: gettext, plural forms and plone

Thomas Massmann <thomas.massmann-15SDrZ/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Hi,

I started this branch back in 2012 during the Plonekonf in Munich. We
are using it since 2 years now in a Zope3 application and it works
great. I asked some of the Zope maintainers to take a look at it,
especially for the C code, but I never got any response.

We are using lingua from Wichert to extract the message ids. I therefor
created a branch: https://github.com/tmassman/lingua. The pull request
was rejected, which I totally understand, because there was no progress
on zope.i18n and zope.i18nmessageid. I haven't been able to test the new
version of lingua which now supports plural forms as well.

I'd love to see that development on this feature is continued. Maybe a
first step would be to move the code to github
(https://github.com/zopefoundation) and create a plural branch there.

Thomas

Asko Soukka wrote:
> 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
> _______________________________________________
> 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

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
signature.asc (application/pgp-signature, 945 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCgAGBQJTtlf0AAoJEI51/d0jlpyM/DoP/iw3KbkeqBUfL4e7qK2aGK0o
/PDYZPqkn3efnsJAKevuNCmIYSeKFymAYDKVUhb0YQ5wwOCVQfA4eQQyMKIVgEfn
X2jfdtTLzXgzXHi1mUjoWskblszXnIWVdTs1ykuYNJA8Rl4L7embdIHPNOoiHzvc
jzx2nIzhxiFGGcBx3UqfI0YhSHDMb23+KikSh+1VM1EXhbzaZYoqk4+aZiKA6Q8q
Gu2D9jCIuuBiY+T3iSCCoso4HvalTteU3feodPqvSvoTrITECC5NGj6gqCKg185j
hCoyEqTV2Vtnm1AimdHKXvTyjHUv0sWKpRtg7ezVKKeUxmFTASa67Ujq0k81Jl4F
2aMMBE5pPIioqb7mOKlTsgochO1Ujv9ud2KYsw/+jBtojd+v0dLxJZbhP2W1nz5F
5JhLuuDlXigkro8K5KYyKoaWWTTpExOvgyOFc/1bSNGOettsq3459pnif7Y6q5mP
6Qewq6mj276bH8QB36iMX9csN2cJqcYv+zenGGBLJ59wmadskTxRiYI4nmQxAURM
e5hB+R7JL0+XwMBZWgfBpDD3HJsN6h0YTa0QoZn28QJ24cihg6HR02G0k+2P1B5i
wS03UD4gZe5ePbzFWxB5Z+beiOkWbym1QzhHNp7h6xP7KYaV5V5MyeLP5KZdeGrL
sP3KYxuWnixb9K8NexJ7
=qb2L
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.