Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply ruff I category fixes | Aarni Koskela | 2023-01-18 | 1 | -1/+2 |
| | |||||
* | Replace %/.format/concatenation with f-strings where feasible (#927) | Aarni Koskela | 2022-11-23 | 1 | -1/+1 |
| | | | Original conversion suggestions via flynt, edited by hand. | ||||
* | Fix up some Python2-isms using pyupgrade | Aarni Koskela | 2022-05-10 | 1 | -1/+0 |
| | |||||
* | plural: parse new c, e operands (otherwise unsupported though) | Aarni Koskela | 2022-04-08 | 1 | -1/+3 |
| | |||||
* | Plural-Forms: Fix missing trailing semicolon | farhan5900 | 2022-04-08 | 1 | -2/+2 |
| | | | | | | | | 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 | ||||
* | Update copyright year to 2022 | Aarni Koskela | 2022-01-25 | 1 | -1/+1 |
| | |||||
* | Remove redundant _compat.py | Hugo van Kemenade | 2021-09-14 | 1 | -1/+1 |
| | |||||
* | Become 2.9.1 | Aarni Koskela | 2021-04-28 | 1 | -1/+1 |
| | | | | | * Update copyright year * Update changelog | ||||
* | Bump copyright year from 2019 to 2020 | Aarni Koskela | 2020-11-11 | 1 | -1/+1 |
| | |||||
* | Bump copyright year from 2018 to 2019 | Aarni Koskela | 2019-05-27 | 1 | -1/+1 |
| | |||||
* | Rephrase copyright headers to link to the LICENSE file instead of COPYINGauthors | Aarni Koskela | 2018-02-02 | 1 | -1/+1 |
| | | | | Fixes #398 | ||||
* | Update copyright header years, and include the Babel team | Aarni Koskela | 2018-02-02 | 1 | -1/+1 |
| | |||||
* | Fix float conversion in `extract_operands` (and the relevant test) | Aarni Koskela | 2016-07-15 | 1 | -9/+15 |
| | | | | Fixes #421 | ||||
* | Simplify the selection of decimal implementation | Isaac Jurado | 2016-05-29 | 1 | -11/+11 |
| | | | | | | | Instead of selecting individual symbols, expose only the chosen decimal module through babel._compat. This forces Babel to always use "decimal." prefix. Howver, it will simplify the code for users that need to manipulate the decimal context. | ||||
* | Apply pre-commit fixes. | Lukas Balaga | 2016-02-27 | 1 | -1/+3 |
| | |||||
* | Compile noninteger TR35 operands to zeroes when emitting Gettext | Aarni Koskela | 2016-01-22 | 1 | -1/+15 |
| | | | | | | | See http://www.unicode.org/reports/tr35/tr35-numbers.html#Operands See https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html Fixes #287 | ||||
* | Update to CLDR 28 (with test updates) | Aarni Koskela | 2015-12-21 | 1 | -4/+4 |
| | | | | | | | | | | * Aside from the usual data changes, the provisional aa locale is no longer, so we can't use it for tests. Instead, ii is used (chosen by virtue of ii.xml being fairly small, i.e. probably as incomplete as aa). * ms_Latn_SG is not in use anymore either; use sr_Latn_ME instead. Closes #226 Closes #290 | ||||
* | tests: Use the automatically chosen Decimal class | Isaac Jurado | 2015-10-14 | 1 | -11/+12 |
| | | | | | | Now that the babel._compat module can automatically select a faster decimal implementation if available, be more consistent across the rest of the code when dealing with Decimal instances. | ||||
* | Make sure extract_operands is always called when using plural.to_python, add ↵ | benselme | 2015-01-09 | 1 | -4/+37 |
| | | | | tests to check operands eval works | ||||
* | plural.extract_operands function and tests | benselme | 2015-01-09 | 1 | -2/+21 |
| | |||||
* | PEP8 | benselme | 2015-01-09 | 1 | -7/+5 |
| | |||||
* | More stuff merged from mitsuhiko's cldr-24 branch | benselme | 2015-01-08 | 1 | -0/+5 |
| | |||||
* | More plural._Parser tests | benselme | 2015-01-08 | 1 | -3/+25 |
| | |||||
* | More extraction in _Parser, more tests | benselme | 2015-01-08 | 1 | -1/+34 |
| | |||||
* | Extract PluralRule.test and add tests | benselme | 2015-01-08 | 1 | -0/+17 |
| | |||||
* | Include Armin Ronacher's work on PluralRule mitsuhiko/babel@774047a | benselme | 2015-01-08 | 1 | -1/+1 |
| | |||||
* | Extract plural rule tokenization function and add tests | benselme | 2015-01-08 | 1 | -0/+28 |
| | |||||
* | use fallback plural if none is defined in CLDR | Alex Morega | 2014-01-06 | 1 | -0/+8 |
| | | | | fixes #69 | ||||
* | make sure rules are always sorted | Alex Morega | 2013-07-07 | 1 | -1/+1 |
| | |||||
* | test for range pluralization | Alex Morega | 2013-07-06 | 1 | -0/+22 |
| | | | | https://gist.github.com/mitsuhiko/5939731 | ||||
* | remove test suite factories | Alex Morega | 2013-07-06 | 1 | -9/+0 |
| | |||||
* | copy babel.plural doctests as unit tests | Alex Morega | 2013-07-06 | 1 | -1/+53 |
| | |||||
* | move unit tests outside babel package | Alex Morega | 2013-07-06 | 1 | -0/+27 |