summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17 from yijiuzheng/locale_data_fixJill Zheng2021-12-093-8/+56
| | | Fixed date/time format in zh.xml, sv.xml and es_US.xml
* Fix problems with zope_i18n_compile_mo_files early assignmentfix-Zope-994-2Jens W. Klein2021-12-082-2/+10
|
* Support character sets.maurits/character-sets-autopep8Maurits van Rees2021-09-038-0/+112
| | | | | sr@Latn and sr@Cyrl will be added to language sr. See https://github.com/collective/plone.app.locales/issues/326
* Fixed more linting errors.config-with-pure-python-autopep8Maurits van Rees2021-09-034-13/+20
|
* Apply suggestions from code review Maurits van Rees2021-09-031-2/+2
| | | | | I mixed up Python 2 and 3 in the try/except comment. Co-authored-by: Michael Howitz <mh@gocept.com>
* Removed 'name = main' code from tests.Maurits van Rees2021-09-036-24/+0
| | | | This is not called during the tests, and this results in less coverage.
* Add _compat module to define text_type on Py 2 and 3.Maurits van Rees2021-09-037-11/+17
| | | | The old way worked, but gave a linting error because unicode is not defined.
* Manually fix other lint errors.Maurits van Rees2021-09-038-20/+31
|
* autopep8 in full aggressive mode.Maurits van Rees2021-09-031-1/+1
|
* More aggressive autopep8.Maurits van Rees2021-09-036-56/+65
| | | | With `--ignore W690,E711,E721 --aggressive`
* autopep8Maurits van Rees2021-09-0327-105/+112
|
* Fix the signature of IMessageCatalog.getPluralMessage()Marius Gedminas2019-07-101-3/+3
| | | | | | Also make sure we don't include literal U+0000 and U+FFFD characters in the docstring of INumberFormat on Python 3 were \u is a real escape sequence in non-u-prefixed tripple-quoted strings.
* Back to 100% test coverage to make coveralls happyMarius Gedminas2019-07-101-0/+5
|
* Fix `NumberFormat` to respect the thousand grouping given by the pattern.adamg-fix-sepAdam Groszer2019-02-192-111/+266
| | | | fixes #38
* Fix defaults again.Sylvain Viollon2018-10-242-48/+86
|
* Fix typos in comments.Sylvain Viollon2018-10-221-4/+4
|
* Add more tests.Sylvain Viollon2018-10-221-1/+20
|
* Use ``msgid_plural`` as ``default_plural`` if not provided in ``translate()``.Sylvain Viollon2018-10-223-8/+66
|
* Added tests for multiple catalogs iteration during pluralization.Souheil CHELFOUH2018-10-183-0/+20
|
* Using latest version of zope.i18nmessageid for pluralization. Added tests ↵Souheil CHELFOUH2018-10-183-13/+61
| | | | for recursive translation.
* Fixing unicode problem in py2.7Souheil CHELFOUH2018-10-181-6/+6
|
* Fixed typo and added file encoding in test.Souheil CHELFOUH2018-10-182-1/+2
|
* Corrected interpolation marker comments and added tests for plurals using ↵Souheil CHELFOUH2018-10-184-2/+46
| | | | floats.
* Added comments, added missing methods in interface. Added specific branch ↵Souheil CHELFOUH2018-10-185-13/+24
| | | | for zope.i18nmessageid in travis.
* Removed dev print.Souheil CHELFOUH2018-09-201-1/+0
|
* Added plural capabilities to the different translate methods. It echoes the ↵Souheil CHELFOUH2018-09-0610-34/+84
| | | | changes made in the zope.i18nmessageid. This needs heavy testing. Also started to clean up the code to match pep8 recommandations.
* Added a simple decorator to handle plural integer formatting while returning ↵Souheil CHELFOUH2018-09-041-14/+22
| | | | the message string. Using now the 'plural' function of the catalog to determine the right default string to return.
* Correted Polish translations and added tests for polish plural.Souheil CHELFOUH2018-09-042-5/+39
|
* First implementation of plurals. This is a bit rough, still.Souheil CHELFOUH2018-09-049-9/+151
| | | | | | 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.
* Do not extend CleanUp. Fixes #30. Fixes #31.Jason Madden2017-12-191-3/+1
|
* Test the warning.Jason Madden2017-12-181-6/+8
|
* Deprecate 'value' with a warning.Jason Madden2017-12-181-2/+11
|
* Sort all the things, since dicts are inherently unordered.Jason Madden2017-12-181-2/+2
|
* Make InheritingDictionary override values.Jason Madden2017-12-181-5/+6
|
* Fix parsing times with a timezone. Fix courtesy of @mgedmin.Jason Madden2017-12-182-11/+6
|
* Simplify logging message now that we don't test access to the .mo file.Jason Madden2017-12-181-2/+2
|
* Clean up bad line in doctest and leave a comment about what we would like to ↵Jason Madden2017-12-182-2/+1
| | | | be a failing test but isn't
* More tests for parsing the language environment.Jason Madden2017-12-181-7/+18
|
* Remove return value for compile_mo_file and test log messages instead. Also ↵Jason Madden2017-12-182-14/+17
| | | | avoid testing for presence of mo file since that could be a race condition.
* require python-gettext in install_requiresJason Madden2017-12-183-63/+52
|
* Fix test on PyPy since it uses a less precise error message for the TypeError.Jason Madden2017-12-171-1/+3
|
* 100% coverage for format.pyJason Madden2017-12-172-7/+60
| | | | There's one #pragma: no cover for a formatting state I didn't go to the trouble of walking through the complicated logic to try to figure out how to produce.
* 100% coverage for testing.pyJason Madden2017-12-172-19/+41
|
* 100% coverage for config.py, and document the environment variables used in ↵Jason Madden2017-12-172-6/+38
| | | | Sphinx.
* 100% coverage for i18n/__init__.pyJason Madden2017-12-171-12/+67
|
* 100% coverage for locale/__init__.pyJason Madden2017-12-171-8/+45
| | | | | | | | | And fix LocaleCalendar.getFirstWeekDayName (previously untested). It raised a KeyError when the ``week`` dictionary contained the documented ``firstDay`` key as an integer. It was expecting it to be a name. It is a name in the .xml data files, but the other uses of 'week' in the source code (format.py and test_formats.py) do use an integer.
* Make [Simple]TranslationDomain and GettextMessageCatalog properly implement ↵Jason Madden2017-12-175-8/+12
| | | | their interfaces on Python 2 when given native strings for 'domain' and 'language'---these are supposed to be text. Test this.
* 100% coverage for translationdomain.pyJason Madden2017-12-173-24/+36
| | | | Make TranslationDomain not extend SimpleTranslationDomain. The two had no relationship because TranslationDomain didn't initialize the super (so they didn't share attributes) and it overrode every method. Inheriting from SimpleTranslationDomain would mask any failures to properly implement a changed interface.
* Remove testiii18naware.py because it didn't have any actual tests and was ↵Jason Madden2017-12-172-53/+24
| | | | only used in one module, testi18nawareobject.py. This improves coverage.
* Rename testgetmassagecatalog to .rst and publish it.Jason Madden2017-12-173-29/+30
|