Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | plural: parse new c, e operands (otherwise unsupported though) | Aarni Koskela | 2022-04-08 | 1 | -1/+3 |
| | |||||
* | Adjust tests for CLDR 40 data | Aarni Koskela | 2022-04-08 | 2 | -5/+5 |
| | |||||
* | Plural-Forms: Fix missing trailing semicolon | farhan5900 | 2022-04-08 | 10 | -29/+29 |
| | | | | | | | | Adds missing semicolon in the code that generates the header that is Catalog.plural_forms as well as in plural.to_gettext function. Also modifies all the concerning test cases as well as test data files. Closes https://github.com/python-babel/babel/issues/836 | ||||
* | Prefer setuptools imports to distutils imports | Aarni Koskela | 2022-04-08 | 1 | -17/+12 |
| | | | | | | | The non-conditional imports have been around for 6 to 17 years, so they should be safe in conservative situations too. Refs #824 | ||||
* | Fix duplicate locations when writing without lineno | Sigurd Ljødal | 2022-04-08 | 1 | -0/+1 |
| | | | | | | If the same translation appears multiple times in the same file, duplicate locations would be written to the .po file when using write_po(..., include_lineno=False). | ||||
* | Don't use the deprecated format_number function internally or in tests | Aarni Koskela | 2022-02-04 | 1 | -5/+2 |
| | |||||
* | Merge pull request #834 from akx/improve-date-parse | Aarni Koskela | 2022-01-28 | 1 | -4/+31 |
|\ | | | | | Improve date/time parsing | ||||
| * | Add format argument to parse_* | Juliette Monsel | 2022-01-28 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``parse_date()`` does not allow the user to specify the date's format and the 'medium' format is used by default in the call to ``get_date_format()`` on line 1144. This results in a failure to parse the date in short format for the locale 'sv_SE'. This commit adds the format argument to avoid this failure. The default value is set to 'medium' to preserve the old behavior. Fixes #657 Co-authored-by: Aarni Koskela <akx@iki.fi> | ||||
| * | Add and emit dates.ParseError | Aarni Koskela | 2022-01-28 | 1 | -0/+7 |
| | | |||||
| * | Improve partial time parsing | Aarni Koskela | 2022-01-28 | 1 | -2/+21 |
| | | | | | | | | | | | | | | Refs #442 Co-authored-by: David Bauer <david.bauer009@gmail.com> Co-authored-by: Arthur Jovart <arthur@jovart.com> | ||||
* | | Add frontend for extract directory filter | Aarni Koskela | 2022-01-27 | 2 | -0/+28 |
|/ | | | | Co-authored-by: Kinshuk Dua <kinshukduaexam@gmail.com> | ||||
* | parse_locale(): upper-case variant tag to match file system | Aarni Koskela | 2022-01-27 | 1 | -0/+6 |
| | | | | | | | | | At all times, language tags and their subtags, including private use and extensions, are to be treated as case insensitive: there exist conventions for the capitalization of some of the subtags, but these MUST NOT be taken to carry meaning. Fixes #814 | ||||
* | Date intervals: allow using `other` as fallback form | Aarni Koskela | 2022-01-25 | 1 | -0/+10 |
| | | | | Fixes #825 | ||||
* | Update copyright year to 2022 | Aarni Koskela | 2022-01-25 | 14 | -14/+14 |
| | |||||
* | Hack around empty `err` in test_extract_error_code test | Aarni Koskela | 2022-01-25 | 1 | -2/+3 |
| | |||||
* | Remove redundant _compat.py | Hugo van Kemenade | 2021-09-14 | 13 | -50/+39 |
| | |||||
* | Implement `--init-missing` option for `pybabel update` (#785) | ruro | 2021-06-15 | 1 | -1/+39 |
| | | | | | | | * implement update --init-missing option * trivial test that the --init-missing option exists * add non-trivial update --init-missing test | ||||
* | Become 2.9.1 | Aarni Koskela | 2021-04-28 | 14 | -14/+14 |
| | | | | | * Update copyright year * Update changelog | ||||
* | Disallow special filenames on Windowslocale-basename | Aarni Koskela | 2021-04-28 | 1 | -0/+9 |
| | |||||
* | Run locale identifiers through `os.path.basename()` | Aarni Koskela | 2021-04-28 | 1 | -1/+29 |
| | |||||
* | Use Freezegun in test_format_current_moment | Aarni Koskela | 2020-11-12 | 1 | -12/+4 |
| | | | | The earlier patch resulted in `unsupported operand type(s) for -: 'datetime' and 'datetime'` on Pypy3. | ||||
* | Merge branch '2.8-maintenance' into master | Aarni Koskela | 2020-11-11 | 14 | -14/+14 |
|\ | |||||
| * | Bump copyright year from 2019 to 2020 | Aarni Koskela | 2020-11-11 | 14 | -14/+14 |
| | | |||||
* | | Merge pull request #734 from akx/cldr-37 | Aarni Koskela | 2020-11-10 | 1 | -1/+11 |
|\ \ | | | | | | | CLDR 37 support | ||||
| * | | Skip deprecated l*gettext functions on Python 3.8+ | Aarni Koskela | 2020-10-02 | 1 | -1/+11 |
| | | | |||||
* | | | Handle ZoneInfo objects in get_timezone_location, get_timezone_name (#741) | Alessio Bogon | 2020-11-10 | 1 | -40/+89 |
|/ / | | | | | Fixes #740 | ||||
* | | LazyProxy: Handle AttributeError in specified func (#724) | Nikiforov Konstantin | 2020-09-30 | 1 | -0/+11 |
| | | | | | | | | | | Fixes #723 Co-authored-by: Aarni Koskela <akx@iki.fi> | ||||
* | | Added group_separator feature in number formatting (#726) | Abdullah Javed Nesar | 2020-09-22 | 1 | -0/+30 |
| | | |||||
* | | fix tests when using Python 3.9a6 | Felix Schwarz | 2020-05-05 | 1 | -5/+12 |
| | | | | | | | | | | | | In Python 3.9a6 integer values for future flags were changed to prevent collision with compiler flags. We need to retrieve these at runtime so the test suite works with Python <= 3.8 as well as Python 3.9. | ||||
* | | Introduce invariant that _invalid_pofile() takes unicode line. | Niklas Hambüchen | 2020-01-28 | 1 | -1/+1 |
|/ | | | | | | | | | | | | | | | | This makes debugging and reasoning about the code easier; otherwise it is surprising that sometimes `line` is a unicode and sometimes not. So far, when it was not, it could either be only `""` or `'Algo esta mal'`; thus this commit makes those two u"" strings. In all other cases, it was guaranteed that it's unicode, because all code paths leading to `_invalid_pofile()` went through if not isinstance(line, text_type): line = line.decode(self.catalog.charset) before. | ||||
* | fix small decimal with disabled decimal_quantization | He Chen | 2019-12-31 | 1 | -0/+4 |
| | |||||
* | Bump copyright year from 2018 to 2019 | Aarni Koskela | 2019-05-27 | 14 | -15/+15 |
| | |||||
* | parse_decimal(): assume spaces are equivalent to non-breaking spaces when ↵ | Aarni Koskela | 2019-05-27 | 1 | -0/+11 |
| | | | | | | not in strict mode Fixes #637 | ||||
* | Catalog update: keep user comments from destination by default | Aarni Koskela | 2019-05-27 | 1 | -1/+30 |
| | | | | Closes #418 | ||||
* | Merge pull request #647 from akx/pybabel-exit-code | Aarni Koskela | 2019-05-27 | 2 | -85/+74 |
|\ | | | | | pybabel compile: exit with code 1 if errors were encountered | ||||
| * | pybabel compile: exit with code 1 if errors were encountered | Aarni Koskela | 2019-05-27 | 2 | -0/+14 |
| | | | | | | | | Fixes #627 | ||||
| * | test_frontend: DRY out path generation | Aarni Koskela | 2019-05-27 | 1 | -85/+60 |
| | | |||||
* | | Add comparison operators to _NormalizedString | Aarni Koskela | 2019-05-27 | 1 | -0/+17 |
|/ | | | | | | Based on @hoangduytranuk's original implementation. Fixes #612 | ||||
* | get_display_name(): Don't attempt to concatenate variant information to None | Aarni Koskela | 2019-05-27 | 1 | -0/+10 |
| | | | | Fixes #601 | ||||
* | Cache locale_identifiers() | Aarni Koskela | 2019-05-27 | 1 | -0/+26 |
| | | | | Fixes #620 | ||||
* | Fix conftest.py compatibility with pytest 4.3 | Miro Hrončok | 2019-03-14 | 1 | -3/+6 |
| | | | | | | | | While pytest in tox.ini is explicitly set to be 3.3.2, in Fedora 31 we are about to update to a newer version of pytest. In order to be able to test babel, we need pytest 4.3 support. This adds support for pytest 4.3 without breaking support for 3.3.2. | ||||
* | Skip alt=... for week data (minDays, firstDay, weekendStart, weekendEnd) | Aarni Koskela | 2019-03-01 | 1 | -0/+6 |
| | | | | Fixes #624 | ||||
* | fixes #619 wrong weeknumber for 31.12.2018 (#621) | BT-sschmid | 2019-03-01 | 1 | -0/+9 |
| | | | | | | | | The weeknumber was calculated to 53, but by definition the value must compute to 1. the fix will compute the weeknumber by using date.isocalendar if locale.first_week_day == 0. Also the computation of the year format 'YYYY' is replaced by isocalendar. | ||||
* | Replace odict with Python's collection.OrderedDict | Jon Dufresne | 2019-01-25 | 1 | -14/+0 |
| | | | | | | | The odict class duplicates collection.OrderedDict from Python's standard lib. Simplify the code by using builtin Python features. https://docs.python.org/3/library/collections.html#collections.OrderedDict | ||||
* | Remove unused imports throughout tests | Jon Dufresne | 2019-01-24 | 3 | -4/+2 |
| | |||||
* | Download CLDR 34.0 | Alberto Mardegan | 2019-01-24 | 1 | -2/+2 |
| | |||||
* | Merge pull request #564 from cedk/skip-empty-msgid | Aarni Koskela | 2018-08-20 | 1 | -0/+23 |
|\ | | | | | Skip empty message when writing mo file | ||||
| * | Test empty translation uses fallback | Cédric Krier | 2018-08-19 | 1 | -0/+23 |
| | | |||||
* | | Merge pull request #599 from fuzzmz/fix-repeated-suggestions-for-0 | Aarni Koskela | 2018-08-19 | 1 | -0/+4 |
|\ \ | | | | | | | don't repeat suggestions in parse_decimal strict | ||||
| * | | don't repeat suggestions in parse_decimal strict | Serban Constantin | 2018-08-07 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | Don't repeat suggestions for `0.00` in languages which use commas as delimiters combined with strict mode. |