[Checkins] [zopefoundation/zope.i18n] b759fc: First implementation of plurals. This is a bit rou...
GitHub
noreply at github.com
Fri Oct 19 08:36:23 CEST 2018
Branch: refs/heads/master
Home: https://github.com/zopefoundation/zope.i18n
Commit: b759fc44c2804aa380e8f40ccf608374f8e91305
https://github.com/zopefoundation/zope.i18n/commit/b759fc44c2804aa380e8f40ccf608374f8e91305
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-09-04 (Tue, 04 Sep 2018)
Changed paths:
M src/zope/i18n/gettextmessagecatalog.py
M src/zope/i18n/interfaces/__init__.py
M src/zope/i18n/tests/de-default.mo
M src/zope/i18n/tests/de-default.po
M src/zope/i18n/tests/en-default.mo
M src/zope/i18n/tests/en-default.po
A src/zope/i18n/tests/pl-default.po
M src/zope/i18n/tests/test_imessagecatalog.py
A src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
First implementation of plurals. This is a bit rough, still.
Added Polish translations to have a complex plural rule handy.
Currently, only german is tested.
We need to test the whole set of languages and probably add more.
Commit: da547b8cafa05ccb35b570f1ad1a06d146712faa
https://github.com/zopefoundation/zope.i18n/commit/da547b8cafa05ccb35b570f1ad1a06d146712faa
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-09-04 (Tue, 04 Sep 2018)
Changed paths:
M src/zope/i18n/tests/pl-default.po
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Correted Polish translations and added tests for polish plural.
Commit: dafecabd80e3b9cda4fd96751479853361bb14be
https://github.com/zopefoundation/zope.i18n/commit/dafecabd80e3b9cda4fd96751479853361bb14be
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-09-04 (Tue, 04 Sep 2018)
Changed paths:
M src/zope/i18n/gettextmessagecatalog.py
Log Message:
-----------
Added a simple decorator to handle plural integer formatting while returning the message string. Using now the 'plural' function of the catalog to determine the right default string to return.
Commit: cff01f73c0c9b30b2b32bb319deac4cbe5d1c6a6
https://github.com/zopefoundation/zope.i18n/commit/cff01f73c0c9b30b2b32bb319deac4cbe5d1c6a6
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-09-06 (Thu, 06 Sep 2018)
Changed paths:
M src/zope/i18n/__init__.py
M src/zope/i18n/format.py
M src/zope/i18n/gettextmessagecatalog.py
M src/zope/i18n/interfaces/__init__.py
M src/zope/i18n/negotiator.py
M src/zope/i18n/simpletranslationdomain.py
M src/zope/i18n/tests/pl-default.po
M src/zope/i18n/tests/test_plurals.py
M src/zope/i18n/translationdomain.py
M src/zope/i18n/zcml.py
Log Message:
-----------
Added plural capabilities to the different translate methods. It echoes the changes made in the zope.i18nmessageid. This needs heavy testing. Also started to clean up the code to match pep8 recommandations.
Commit: 710864eb35edb14f0c047fab06e9cbebd6e5be82
https://github.com/zopefoundation/zope.i18n/commit/710864eb35edb14f0c047fab06e9cbebd6e5be82
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-09-20 (Thu, 20 Sep 2018)
Changed paths:
M src/zope/i18n/__init__.py
Log Message:
-----------
Removed dev print.
Commit: 626bf176306e02c07205ba631c51522f86565097
https://github.com/zopefoundation/zope.i18n/commit/626bf176306e02c07205ba631c51522f86565097
Author: Jan-Jaap Driessen <jdriessen at minddistrict.com>
Date: 2018-10-11 (Thu, 11 Oct 2018)
Changed paths:
A .gitattributes
Log Message:
-----------
add gitattributes for better POs
Commit: d272fcc2d4dd2e69bf86d8750b7589de1960a50b
https://github.com/zopefoundation/zope.i18n/commit/d272fcc2d4dd2e69bf86d8750b7589de1960a50b
Author: Sylvain Viollon <sviollon at minddistrict.com>
Date: 2018-10-17 (Wed, 17 Oct 2018)
Changed paths:
R .gitattributes
M CHANGES.rst
Log Message:
-----------
Update CHANGES.txt.
Commit: fba2fd42d458a1229bfd0f58967cb2c13e00a84b
https://github.com/zopefoundation/zope.i18n/commit/fba2fd42d458a1229bfd0f58967cb2c13e00a84b
Author: Sylvain Viollon <sviollon at minddistrict.com>
Date: 2018-10-17 (Wed, 17 Oct 2018)
Changed paths:
M .travis.yml
M CHANGES.rst
M setup.py
M tox.ini
Log Message:
-----------
Merge remote-tracking branch 'zope/master' into CB-556-FR-translation
Commit: 14be9f16e5df448b89c02b5b37d6c07deb8a778f
https://github.com/zopefoundation/zope.i18n/commit/14be9f16e5df448b89c02b5b37d6c07deb8a778f
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M .travis.yml
M src/zope/i18n/__init__.py
M src/zope/i18n/gettextmessagecatalog.py
M src/zope/i18n/interfaces/__init__.py
A src/zope/i18n/tests/pl-default.mo
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Added comments, added missing methods in interface. Added specific branch for zope.i18nmessageid in travis.
Commit: 6f3c31ad3bae07996c7df60afd79cab482e463ff
https://github.com/zopefoundation/zope.i18n/commit/6f3c31ad3bae07996c7df60afd79cab482e463ff
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M src/zope/i18n/gettextmessagecatalog.py
M src/zope/i18n/tests/en-default.mo
M src/zope/i18n/tests/en-default.po
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Corrected interpolation marker comments and added tests for plurals using floats.
Commit: 727dba5f7e5f355117db4161f113cf4afc9a10ac
https://github.com/zopefoundation/zope.i18n/commit/727dba5f7e5f355117db4161f113cf4afc9a10ac
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M .travis.yml
Log Message:
-----------
Using public url for git repo
Commit: 818f7829b6885246bcda9c89c0f46e68f5835d13
https://github.com/zopefoundation/zope.i18n/commit/818f7829b6885246bcda9c89c0f46e68f5835d13
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M src/zope/i18n/gettextmessagecatalog.py
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Fixed typo and added file encoding in test.
Commit: 1d3ce923dd480f3667f52ca691efa1f7ef007c5b
https://github.com/zopefoundation/zope.i18n/commit/1d3ce923dd480f3667f52ca691efa1f7ef007c5b
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Fixing unicode problem in py2.7
Commit: af108bd07315b1aa76e5dc2777eb5492a0684f61
https://github.com/zopefoundation/zope.i18n/commit/af108bd07315b1aa76e5dc2777eb5492a0684f61
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M .travis.yml
M setup.py
M src/zope/i18n/tests/en-default.mo
M src/zope/i18n/tests/en-default.po
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Using latest version of zope.i18nmessageid for pluralization. Added tests for recursive translation.
Commit: 6c9f3eaa735887c160c6d91916759ac950702479
https://github.com/zopefoundation/zope.i18n/commit/6c9f3eaa735887c160c6d91916759ac950702479
Author: Souheil CHELFOUH <trollfot at gmail.com>
Date: 2018-10-18 (Thu, 18 Oct 2018)
Changed paths:
M src/zope/i18n/tests/en-alt.mo
M src/zope/i18n/tests/en-alt.po
M src/zope/i18n/tests/test_plurals.py
Log Message:
-----------
Added tests for multiple catalogs iteration during pluralization.
Commit: 6e699ade2b38f3ed387fa8765c486757014c76ad
https://github.com/zopefoundation/zope.i18n/commit/6e699ade2b38f3ed387fa8765c486757014c76ad
Author: Sylvain Viollon <thefunny at gmail.com>
Date: 2018-10-19 (Fri, 19 Oct 2018)
Changed paths:
M CHANGES.rst
M setup.py
M src/zope/i18n/__init__.py
M src/zope/i18n/format.py
M src/zope/i18n/gettextmessagecatalog.py
M src/zope/i18n/interfaces/__init__.py
M src/zope/i18n/negotiator.py
M src/zope/i18n/simpletranslationdomain.py
M src/zope/i18n/tests/de-default.mo
M src/zope/i18n/tests/de-default.po
M src/zope/i18n/tests/en-alt.mo
M src/zope/i18n/tests/en-alt.po
M src/zope/i18n/tests/en-default.mo
M src/zope/i18n/tests/en-default.po
A src/zope/i18n/tests/pl-default.mo
A src/zope/i18n/tests/pl-default.po
M src/zope/i18n/tests/test_imessagecatalog.py
A src/zope/i18n/tests/test_plurals.py
M src/zope/i18n/translationdomain.py
M src/zope/i18n/zcml.py
Log Message:
-----------
Merge pull request #34 from minddistrict/CB-556-FR-translation
Add support for pluralization
Compare: https://github.com/zopefoundation/zope.i18n/compare/eaa6190adc82...6e699ade2b38
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the checkins
mailing list