Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add _compat module to define text_type on Py 2 and 3. | Maurits van Rees | 2021-09-03 | 7 | -11/+17 |
| | | | | The old way worked, but gave a linting error because unicode is not defined. | ||||
* | Manually fix other lint errors. | Maurits van Rees | 2021-09-03 | 8 | -20/+31 |
| | |||||
* | autopep8 in full aggressive mode. | Maurits van Rees | 2021-09-03 | 1 | -1/+1 |
| | |||||
* | More aggressive autopep8. | Maurits van Rees | 2021-09-03 | 6 | -56/+65 |
| | | | | With `--ignore W690,E711,E721 --aggressive` | ||||
* | autopep8 | Maurits van Rees | 2021-09-03 | 27 | -105/+112 |
| | |||||
* | Fix the signature of IMessageCatalog.getPluralMessage() | Marius Gedminas | 2019-07-10 | 1 | -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 happy | Marius Gedminas | 2019-07-10 | 1 | -0/+5 |
| | |||||
* | Fix `NumberFormat` to respect the thousand grouping given by the pattern.adamg-fix-sep | Adam Groszer | 2019-02-19 | 2 | -111/+266 |
| | | | | fixes #38 | ||||
* | Fix defaults again. | Sylvain Viollon | 2018-10-24 | 2 | -48/+86 |
| | |||||
* | Fix typos in comments. | Sylvain Viollon | 2018-10-22 | 1 | -4/+4 |
| | |||||
* | Add more tests. | Sylvain Viollon | 2018-10-22 | 1 | -1/+20 |
| | |||||
* | Use ``msgid_plural`` as ``default_plural`` if not provided in ``translate()``. | Sylvain Viollon | 2018-10-22 | 3 | -8/+66 |
| | |||||
* | Added tests for multiple catalogs iteration during pluralization. | Souheil CHELFOUH | 2018-10-18 | 3 | -0/+20 |
| | |||||
* | Using latest version of zope.i18nmessageid for pluralization. Added tests ↵ | Souheil CHELFOUH | 2018-10-18 | 3 | -13/+61 |
| | | | | for recursive translation. | ||||
* | Fixing unicode problem in py2.7 | Souheil CHELFOUH | 2018-10-18 | 1 | -6/+6 |
| | |||||
* | Fixed typo and added file encoding in test. | Souheil CHELFOUH | 2018-10-18 | 2 | -1/+2 |
| | |||||
* | Corrected interpolation marker comments and added tests for plurals using ↵ | Souheil CHELFOUH | 2018-10-18 | 4 | -2/+46 |
| | | | | floats. | ||||
* | Added comments, added missing methods in interface. Added specific branch ↵ | Souheil CHELFOUH | 2018-10-18 | 5 | -13/+24 |
| | | | | for zope.i18nmessageid in travis. | ||||
* | Removed dev print. | Souheil CHELFOUH | 2018-09-20 | 1 | -1/+0 |
| | |||||
* | Added plural capabilities to the different translate methods. It echoes the ↵ | Souheil CHELFOUH | 2018-09-06 | 10 | -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 CHELFOUH | 2018-09-04 | 1 | -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 CHELFOUH | 2018-09-04 | 2 | -5/+39 |
| | |||||
* | First implementation of plurals. This is a bit rough, still. | Souheil CHELFOUH | 2018-09-04 | 9 | -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 Madden | 2017-12-19 | 1 | -3/+1 |
| | |||||
* | Test the warning. | Jason Madden | 2017-12-18 | 1 | -6/+8 |
| | |||||
* | Deprecate 'value' with a warning. | Jason Madden | 2017-12-18 | 1 | -2/+11 |
| | |||||
* | Sort all the things, since dicts are inherently unordered. | Jason Madden | 2017-12-18 | 1 | -2/+2 |
| | |||||
* | Make InheritingDictionary override values. | Jason Madden | 2017-12-18 | 1 | -5/+6 |
| | |||||
* | Fix parsing times with a timezone. Fix courtesy of @mgedmin. | Jason Madden | 2017-12-18 | 2 | -11/+6 |
| | |||||
* | Simplify logging message now that we don't test access to the .mo file. | Jason Madden | 2017-12-18 | 1 | -2/+2 |
| | |||||
* | Clean up bad line in doctest and leave a comment about what we would like to ↵ | Jason Madden | 2017-12-18 | 2 | -2/+1 |
| | | | | be a failing test but isn't | ||||
* | More tests for parsing the language environment. | Jason Madden | 2017-12-18 | 1 | -7/+18 |
| | |||||
* | Remove return value for compile_mo_file and test log messages instead. Also ↵ | Jason Madden | 2017-12-18 | 2 | -14/+17 |
| | | | | avoid testing for presence of mo file since that could be a race condition. | ||||
* | require python-gettext in install_requires | Jason Madden | 2017-12-18 | 3 | -63/+52 |
| | |||||
* | Fix test on PyPy since it uses a less precise error message for the TypeError. | Jason Madden | 2017-12-17 | 1 | -1/+3 |
| | |||||
* | 100% coverage for format.py | Jason Madden | 2017-12-17 | 2 | -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.py | Jason Madden | 2017-12-17 | 2 | -19/+41 |
| | |||||
* | 100% coverage for config.py, and document the environment variables used in ↵ | Jason Madden | 2017-12-17 | 2 | -6/+38 |
| | | | | Sphinx. | ||||
* | 100% coverage for i18n/__init__.py | Jason Madden | 2017-12-17 | 1 | -12/+67 |
| | |||||
* | 100% coverage for locale/__init__.py | Jason Madden | 2017-12-17 | 1 | -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 Madden | 2017-12-17 | 5 | -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.py | Jason Madden | 2017-12-17 | 3 | -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 Madden | 2017-12-17 | 2 | -53/+24 |
| | | | | only used in one module, testi18nawareobject.py. This improves coverage. | ||||
* | Rename testgetmassagecatalog to .rst and publish it. | Jason Madden | 2017-12-17 | 3 | -29/+30 |
| | |||||
* | 100% coverage for compile.py | Jason Madden | 2017-12-16 | 2 | -40/+115 |
| | |||||
* | Checkpoint on coverage for formats.py. There's a bug involving timezones and ↵ | Jason Madden | 2017-12-16 | 2 | -45/+100 |
| | | | | time only | ||||
* | 100% coverage for simpletranslationdomain.py | Jason Madden | 2017-12-16 | 2 | -7/+3 |
| | |||||
* | 100% coverage for gettextmessagecatalog.py | Jason Madden | 2017-12-16 | 1 | -7/+5 |
| | |||||
* | 100% coverage for provider.py | Jason Madden | 2017-12-16 | 2 | -8/+15 |
| | |||||
* | 100% coverage for test_locales. | Jason Madden | 2017-12-16 | 1 | -21/+9 |
| |