Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply some small miscellaneous formatting fixes | Aarni Koskela | 2023-01-18 | 1 | -3/+3 |
| | |||||
* | Apply ruff UP025 (unicode literal prefix) fix | Aarni Koskela | 2023-01-18 | 6 | -105/+105 |
| | |||||
* | Apply ruff I category fixes | Aarni Koskela | 2023-01-18 | 5 | -12/+22 |
| | |||||
* | Apply ruff C category fixes | Aarni Koskela | 2023-01-18 | 1 | -15/+9 |
| | |||||
* | Renovate formatting in test_checkers and test_frontend (#950) | Aarni Koskela | 2023-01-18 | 2 | -204/+147 |
| | |||||
* | Improved javascript template string expression extracting (#939) | Johannes Wilm | 2023-01-06 | 1 | -0/+39 |
| | | | | Co-authored-by: Rik <gitaarik@posteo.net> Co-authored-by: Aarni Koskela <akx@iki.fi> | ||||
* | Replace %/.format/concatenation with f-strings where feasible (#927) | Aarni Koskela | 2022-11-23 | 3 | -9/+10 |
| | | | Original conversion suggestions via flynt, edited by hand. | ||||
* | Use `ast` instead of `eval` for string extraction | Aarni Koskela | 2022-11-01 | 1 | -0/+27 |
| | | | | | | | | This is safer (as we don't actually execute anything), and allows us to parse f-strings too. Closes #769 (supersedes it) Refs #715 (doesn't add an error yet, but doesn't crash on f-strings) | ||||
* | Support for hex escapes in JavaScript string literals | Przemyslaw Wegrzyn | 2022-10-31 | 1 | -0/+2 |
| | |||||
* | Use email.Message for pofile header parsing | Aarni Koskela | 2022-05-10 | 1 | -0/+11 |
| | | | | | | cgi.parse_header is due to be deprecated Fixes #873 | ||||
* | tests: Use pytest.raises() decorator where applicable | Aarni Koskela | 2022-05-10 | 1 | -3/+6 |
| | |||||
* | tests: Use regular asserts instead of unittest functions | Aarni Koskela | 2022-05-10 | 5 | -413/+367 |
| | | | | | | Automated conversion initially applied with https://github.com/warlo/codemod-unittest-to-pytest-asserts, followed by some manual changes for brevity. | ||||
* | Fix up some Python2-isms using pyupgrade | Aarni Koskela | 2022-05-10 | 9 | -14/+4 |
| | |||||
* | allow header_comment to be passed as an option to extract_message (#720) | Mohamed Morsy | 2022-04-12 | 1 | -0/+9 |
| | | | | | Fixes #82 Co-authored-by: Aarni Koskela <akx@iki.fi> | ||||
* | Provide a way of checking if the catalogs are up-to-date (#831) | Krzysztof Jagiełło | 2022-04-08 | 1 | -1/+59 |
| | |||||
* | Fix output of --list-locales to not be a bytes repr | Morgan Wahl | 2022-04-08 | 1 | -0/+11 |
| | | | | Co-authored-by: Aarni Koskela <akx@iki.fi> | ||||
* | Plural-Forms: Fix missing trailing semicolon | farhan5900 | 2022-04-08 | 9 | -27/+27 |
| | | | | | | | | 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). | ||||
* | Add frontend for extract directory filter | Aarni Koskela | 2022-01-27 | 2 | -0/+28 |
| | | | | Co-authored-by: Kinshuk Dua <kinshukduaexam@gmail.com> | ||||
* | Update copyright year to 2022 | Aarni Koskela | 2022-01-25 | 7 | -7/+7 |
| | |||||
* | 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 | 7 | -30/+30 |
| | |||||
* | 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 | 7 | -7/+7 |
| | | | | | * Update copyright year * Update changelog | ||||
* | Merge branch '2.8-maintenance' into master | Aarni Koskela | 2020-11-11 | 7 | -7/+7 |
|\ | |||||
| * | Bump copyright year from 2019 to 2020 | Aarni Koskela | 2020-11-11 | 7 | -7/+7 |
| | | |||||
* | | 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. | ||||
* | Bump copyright year from 2018 to 2019 | Aarni Koskela | 2019-05-27 | 7 | -7/+7 |
| | |||||
* | 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 | ||||
* | Remove unused imports throughout tests | Jon Dufresne | 2019-01-24 | 1 | -1/+0 |
| | |||||
* | 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 |
| | | |||||
* | | Fix pofile test failure | Aarni Koskela | 2018-07-20 | 1 | -10/+2 |
| | | |||||
* | | frontend, test_frontend: don't use deprecated U read mode on Py3 | Aarni Koskela | 2018-05-28 | 1 | -18/+18 |
| | | |||||
* | | Merge pull request #559 from python-babel/authors | Aarni Koskela | 2018-05-28 | 7 | -14/+14 |
|\ \ | | | | | | | Authors and license stuff | ||||
| * | | Rephrase copyright headers to link to the LICENSE file instead of COPYINGauthors | Aarni Koskela | 2018-02-02 | 7 | -7/+7 |
| | | | | | | | | | | | | Fixes #398 | ||||
| * | | Update copyright header years, and include the Babel team | Aarni Koskela | 2018-02-02 | 7 | -7/+7 |
| |/ | |||||
* | | messages: allow processing files that are in locales unknown to Babelmessages-no-locale | Aarni Koskela | 2018-02-02 | 1 | -0/+23 |
|/ | | | | Fixes #553, #555 | ||||
* | pofile.py: Added new exception called PoFileError and thrown if flagged | StevenJ | 2018-01-16 | 1 | -1/+65 |
| | | | | | | | | This new exception is thrown when the po parser finds an invalid pofile. This helps handle invalid po files that are parsed. Invalid po files may cause other possible errors such as a UnicodeEncodeError. Closes https://github.com/python-babel/babel/issues/531 | ||||
* | Remove redundant parentheses | Hugo | 2017-12-28 | 3 | -4/+4 |
| | |||||
* | Replace function call with set literal | Hugo | 2017-12-28 | 1 | -21/+9 |
| | |||||
* | Use a fixed datetime to avoid test failures (#520) | Narendra Vardi | 2017-08-18 | 1 | -15/+31 |
| | | | | | freezegun library added to travis build and appveyor Fixes #507 | ||||
* | Allow both dash and underscore separated locale identifiers in pofileslenient-po-locale-parse | Aarni Koskela | 2017-04-06 | 1 | -0/+6 |
| | | | | | | Fixes #489 Augments #420 (08b9c5e76e19ae) | ||||
* | Rename test case | Heungsub Lee | 2017-03-31 | 1 | -1/+1 |
| | |||||
* | More complex test cases for nested gettext | Heungsub Lee | 2017-03-31 | 1 | -6/+26 |
| |