]>
git.ipfire.org Git - thirdparty/babel.git/log
Aarni Koskela [Wed, 20 Apr 2022 14:16:07 +0000 (17:16 +0300)]
Become 2.10.0
Aarni Koskela [Wed, 20 Apr 2022 14:13:50 +0000 (17:13 +0300)]
Merge pull request #856 from akx/prepare-2.10
Prepare for 2.10
Aarni Koskela [Fri, 8 Apr 2022 14:47:48 +0000 (17:47 +0300)]
Distill changelog and AUTHORS
Aarni Koskela [Fri, 8 Apr 2022 13:57:14 +0000 (16:57 +0300)]
Add maintainer to setup.py
Aarni Koskela [Fri, 8 Apr 2022 13:57:02 +0000 (16:57 +0300)]
Slightly clean up setup.py
Aarni Koskela [Fri, 8 Apr 2022 13:53:23 +0000 (16:53 +0300)]
Remove upload-docs task from Makefile (RTD handles docs)
Aarni Koskela [Wed, 20 Apr 2022 09:19:47 +0000 (12:19 +0300)]
Add test for issue 798
Mohamed Morsy [Tue, 12 Apr 2022 05:59:00 +0000 (07:59 +0200)]
allow header_comment to be passed as an option to extract_message (#720)
Fixes #82
Co-authored-by: Aarni Koskela <akx@iki.fi>
Aarni Koskela [Fri, 8 Apr 2022 15:41:04 +0000 (18:41 +0300)]
Merge pull request #853 from akx/cldr-41
CLDR 41
Aarni Koskela [Fri, 8 Apr 2022 15:01:55 +0000 (18:01 +0300)]
Update tests for CLDR 41
Aarni Koskela [Fri, 8 Apr 2022 15:01:46 +0000 (18:01 +0300)]
CLDR 41: Do not import non-nominative forms of patterns at this point
Aarni Koskela [Fri, 8 Apr 2022 14:51:08 +0000 (17:51 +0300)]
Download CLDR 41.0
Aarni Koskela [Fri, 8 Apr 2022 13:33:41 +0000 (16:33 +0300)]
Deprecate get_next_timezone_transition()
In preparation of removing the hard dependency on pytz
Refs #716
Krzysztof Jagiełło [Fri, 8 Apr 2022 13:27:33 +0000 (15:27 +0200)]
Provide a way of checking if the catalogs are up-to-date (#831)
Morgan Wahl [Sat, 26 Feb 2022 00:08:12 +0000 (19:08 -0500)]
Fix output of --list-locales to not be a bytes repr
Co-authored-by: Aarni Koskela <akx@iki.fi>
Aarni Koskela [Fri, 8 Apr 2022 13:06:51 +0000 (16:06 +0300)]
Merge pull request #826 from akx/cldr-40
CLDR 40
Aarni Koskela [Fri, 8 Apr 2022 12:38:39 +0000 (15:38 +0300)]
CI: update OS versions + PyPy baseline to 3.7
Aarni Koskela [Fri, 28 Jan 2022 11:28:03 +0000 (13:28 +0200)]
Make test_smoke more thorough
Aarni Koskela [Fri, 28 Jan 2022 09:22:24 +0000 (11:22 +0200)]
Show CLDR download URL
Fixes #811
Aarni Koskela [Tue, 25 Jan 2022 11:53:08 +0000 (13:53 +0200)]
plural: parse new c, e operands (otherwise unsupported though)
Aarni Koskela [Tue, 25 Jan 2022 11:36:52 +0000 (13:36 +0200)]
Adjust tests for CLDR 40 data
Aarni Koskela [Tue, 10 Nov 2020 10:23:43 +0000 (12:23 +0200)]
Download CLDR 40.0
farhan5900 [Mon, 28 Mar 2022 05:32:39 +0000 (11:02 +0530)]
Plural-Forms: Fix missing trailing semicolon
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
Aarni Koskela [Fri, 8 Apr 2022 10:33:34 +0000 (13:33 +0300)]
Merge pull request #835 from akx/gettext-deprecations
Gettext deprecation fixes (for Python 3.11 compatibility)
Aarni Koskela [Wed, 23 Feb 2022 18:52:35 +0000 (20:52 +0200)]
Prefer setuptools imports to distutils imports
The non-conditional imports have been around for 6 to 17 years,
so they should be safe in conservative situations too.
Refs #824
Sigurd Ljødal [Mon, 31 Jan 2022 16:47:21 +0000 (17:47 +0100)]
Fix duplicate locations when writing without lineno
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).
Andrii Oriekhov [Mon, 28 Feb 2022 15:52:43 +0000 (17:52 +0200)]
add GitHub URL for PyPi
Aarni Koskela [Fri, 4 Feb 2022 10:29:45 +0000 (12:29 +0200)]
Add pytest warning filter for format_decimal deprecation
Aarni Koskela [Fri, 4 Feb 2022 10:29:35 +0000 (12:29 +0200)]
Don't use the deprecated format_number function internally or in tests
Aarni Koskela [Fri, 28 Jan 2022 15:44:42 +0000 (17:44 +0200)]
Don't assume `_output_charset` is a thing (it's not on Python 3.11)
Fixes #819
Aarni Koskela [Fri, 28 Jan 2022 15:44:22 +0000 (17:44 +0200)]
Add deprecations to l*gettext variants
rachele-collin [Wed, 1 Apr 2020 16:05:11 +0000 (18:05 +0200)]
Parse string date times indepentent of time zone
Parsing a date time string (such as for ``POT-Creation-Date`` or
``PO-Revision-Date``) as UTC time, in particular independent of the
local time zone.
Closes: #700
Lukas Winkler [Mon, 28 Jun 2021 19:35:26 +0000 (21:35 +0200)]
fix maltese plurals
Aarni Koskela [Fri, 28 Jan 2022 11:50:49 +0000 (13:50 +0200)]
Merge pull request #834 from akx/improve-date-parse
Improve date/time parsing
Aarni Koskela [Fri, 28 Jan 2022 11:50:04 +0000 (13:50 +0200)]
Merge pull request #832 from akx/extract-ignore-dirs
Implement directory filter for extract
Juliette Monsel [Sat, 20 Jul 2019 17:19:12 +0000 (19:19 +0200)]
Add format argument to parse_*
``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>
Aarni Koskela [Thu, 27 Jan 2022 15:37:52 +0000 (17:37 +0200)]
Add and emit dates.ParseError
Aarni Koskela [Thu, 27 Jan 2022 15:09:39 +0000 (17:09 +0200)]
Improve partial time parsing
Refs #442
Co-authored-by: David Bauer <david.bauer009@gmail.com>
Co-authored-by: Arthur Jovart <arthur@jovart.com>
Aarni Koskela [Thu, 27 Jan 2022 14:20:34 +0000 (16:20 +0200)]
Add frontend for extract directory filter
Co-authored-by: Kinshuk Dua <kinshukduaexam@gmail.com>
Aarni Koskela [Thu, 27 Jan 2022 13:53:26 +0000 (15:53 +0200)]
extract_from_dir: make directory filter customizable
Aarni Koskela [Thu, 27 Jan 2022 16:56:47 +0000 (18:56 +0200)]
Merge pull request #833 from python-babel/codecov
Fix Codecov
Aarni Koskela [Thu, 27 Jan 2022 16:47:23 +0000 (18:47 +0200)]
CI: add caching for CLDR files
Aarni Koskela [Thu, 27 Jan 2022 16:32:32 +0000 (18:32 +0200)]
CI: fix Tox/multi-environment Codecov uploads
Aarni Koskela [Thu, 27 Jan 2022 16:31:54 +0000 (18:31 +0200)]
Tox/Makefile: replace test-cov with just test + envvar
Aarni Koskela [Thu, 27 Jan 2022 16:30:04 +0000 (18:30 +0200)]
Makefile: remove quietness from all commands + PYTHONWARNINGS overrides from tests
Aarni Koskela [Tue, 25 Jan 2022 13:14:22 +0000 (15:14 +0200)]
parse_locale(): upper-case variant tag to match file system
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
Aarni Koskela [Tue, 25 Jan 2022 15:21:54 +0000 (17:21 +0200)]
Merge pull request #830 from python-babel/docs-fixes
Documentation fixes
Aarni Koskela [Tue, 25 Jan 2022 15:06:10 +0000 (17:06 +0200)]
Fix Sphinx manpage configuration
Fixes #775
Aarni Koskela [Tue, 25 Jan 2022 14:54:47 +0000 (16:54 +0200)]
Refresh cmdline documentation
Would have used https://sphinxcontrib-autoprogram.readthedocs.io/en/stable/ if we used argparse...
Fixes #771
Aarni Koskela [Tue, 25 Jan 2022 13:50:12 +0000 (15:50 +0200)]
Improve number formatting example
Fixes #575
Aarni Koskela [Tue, 25 Jan 2022 13:40:46 +0000 (15:40 +0200)]
Fix Sphinx indentation complaint
Refs #801
Aarni Koskela [Tue, 25 Jan 2022 13:40:30 +0000 (15:40 +0200)]
Changelog: rename to .rst, use :gh: for GitHub links
Refs #801
Aarni Koskela [Tue, 25 Jan 2022 13:35:30 +0000 (15:35 +0200)]
Set up .readthedocs.yml to build using Sphinx 4
Aarni Koskela [Tue, 25 Jan 2022 13:30:30 +0000 (15:30 +0200)]
Improve documentation for TimezoneTransition
Fixes #823
Aarni Koskela [Tue, 25 Jan 2022 12:07:50 +0000 (14:07 +0200)]
Date intervals: allow using `other` as fallback form
Fixes #825
Aarni Koskela [Tue, 25 Jan 2022 12:35:17 +0000 (14:35 +0200)]
Merge pull request #828 from python-babel/fix-ci-2022
Fix CI, bump year to 2022
Aarni Koskela [Tue, 25 Jan 2022 12:27:29 +0000 (14:27 +0200)]
Update copyright year to 2022
Aarni Koskela [Tue, 25 Jan 2022 12:26:23 +0000 (14:26 +0200)]
CI: remove exclusion for Windows Pypy3
Aarni Koskela [Tue, 25 Jan 2022 12:26:09 +0000 (14:26 +0200)]
CI: test on released Python 3.10
Aarni Koskela [Tue, 25 Jan 2022 12:23:31 +0000 (14:23 +0200)]
Hack around empty `err` in test_extract_error_code test
Aarni Koskela [Tue, 10 Nov 2020 14:09:42 +0000 (16:09 +0200)]
Remove unused tool configuration
Álvaro Mondéjar Rubio [Fri, 20 Aug 2021 08:12:15 +0000 (10:12 +0200)]
Add Github issue template
Hugo van Kemenade [Sun, 12 Sep 2021 15:28:29 +0000 (18:28 +0300)]
Drop the dot https://twitter.com/pytestdotorg/status/
753767547866972160
Hugo van Kemenade [Sun, 12 Sep 2021 15:11:50 +0000 (18:11 +0300)]
Add support for Python 3.10
Hugo van Kemenade [Sun, 12 Sep 2021 14:40:41 +0000 (17:40 +0300)]
Remove redundant _compat.py
ruro [Tue, 15 Jun 2021 10:56:16 +0000 (13:56 +0300)]
Implement `--init-missing` option for `pybabel update` (#785)
* implement update --init-missing option
* trivial test that the --init-missing option exists
* add non-trivial update --init-missing test
Aarni Koskela [Wed, 28 Apr 2021 19:04:48 +0000 (22:04 +0300)]
Become 2.9.1
* Update copyright year
* Update changelog
Aarni Koskela [Wed, 28 Apr 2021 14:29:55 +0000 (17:29 +0300)]
Merge pull request #782 from python-babel/locale-basename
Clean locale identifiers before loading from file
Aarni Koskela [Wed, 28 Apr 2021 08:47:42 +0000 (11:47 +0300)]
Disallow special filenames on Windows
Aarni Koskela [Wed, 28 Apr 2021 07:33:40 +0000 (10:33 +0300)]
Run locale identifiers through `os.path.basename()`
Aarni Koskela [Fri, 4 Dec 2020 07:09:58 +0000 (09:09 +0200)]
Merge pull request #754 from python-babel/github-ci
CI: Switch to GitHub Actions
Aarni Koskela [Tue, 10 Nov 2020 14:19:04 +0000 (16:19 +0200)]
Replace Travis + Appveyor with GitHub Actions (WIP)
Aarni Koskela [Wed, 11 Nov 2020 13:59:41 +0000 (15:59 +0200)]
import_cldr: use logging; add -q option
Aarni Koskela [Wed, 11 Nov 2020 13:24:16 +0000 (15:24 +0200)]
Quiesce CLDR download progress bar if requested (or not a TTY)
Aarni Koskela [Tue, 10 Nov 2020 12:54:31 +0000 (14:54 +0200)]
Make the import warnings about unsupported number systems less verbose
Aarni Koskela [Wed, 11 Nov 2020 12:11:38 +0000 (14:11 +0200)]
Use Freezegun in test_format_current_moment
The earlier patch resulted in `unsupported operand type(s) for -: 'datetime' and 'datetime'` on Pypy3.
Aarni Koskela [Wed, 11 Nov 2020 12:43:28 +0000 (14:43 +0200)]
Bump version to 2.9.0
Aarni Koskela [Wed, 11 Nov 2020 12:42:51 +0000 (14:42 +0200)]
Travis: Test on Python 3.9
Aarni Koskela [Wed, 11 Nov 2020 13:14:52 +0000 (15:14 +0200)]
Fix deprecated .getchildren() call
Augments
167b71421f113e2210e4deefef5020402492e5be
Aarni Koskela [Wed, 11 Nov 2020 12:42:18 +0000 (14:42 +0200)]
Distill changelog
Aarni Koskela [Wed, 11 Nov 2020 11:58:54 +0000 (13:58 +0200)]
Merge branch '2.8-maintenance' into master
Aarni Koskela [Wed, 11 Nov 2020 09:28:06 +0000 (11:28 +0200)]
Bump version to 2.8.1
Aarni Koskela [Wed, 11 Nov 2020 09:27:58 +0000 (11:27 +0200)]
Bump copyright year from 2019 to 2020
Aarni Koskela [Wed, 11 Nov 2020 09:27:00 +0000 (11:27 +0200)]
Distill changelog
Aarni Koskela [Wed, 11 Nov 2020 08:35:35 +0000 (10:35 +0200)]
Py.test 6 support (#752)
* Support Py.test 6+
* Run CI on Py.test 6 on new Pythons
Cherry-pick of commit
6e29f11
Aarni Koskela [Wed, 11 Nov 2020 08:35:35 +0000 (10:35 +0200)]
Py.test 6 support (#752)
* Support Py.test 6+
* Run CI on Py.test 6 on new Pythons
Aarni Koskela [Tue, 10 Nov 2020 10:17:10 +0000 (12:17 +0200)]
Merge pull request #734 from akx/cldr-37
CLDR 37 support
Alessio Bogon [Tue, 10 Nov 2020 09:34:57 +0000 (10:34 +0100)]
Handle ZoneInfo objects in get_timezone_location, get_timezone_name (#741)
Fixes #740
Jon Dufresne [Sun, 1 Nov 2020 20:37:36 +0000 (12:37 -0800)]
Remove deprecated 'sudo: false' from Travis configuraiton
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
Aarni Koskela [Fri, 2 Oct 2020 09:35:56 +0000 (12:35 +0300)]
Use 'if not' instead of 'if ... is False' for no_fuzzy_matching
Matches the behavior elsewhere in the same function
Fixes #698
Aarni Koskela [Fri, 2 Oct 2020 09:29:48 +0000 (12:29 +0300)]
Ignore lack of coverage on lines that e.g. raise warnings
Aarni Koskela [Fri, 2 Oct 2020 07:56:59 +0000 (10:56 +0300)]
Skip deprecated l*gettext functions on Python 3.8+
Aarni Koskela [Fri, 2 Oct 2020 07:56:37 +0000 (10:56 +0300)]
Correct default timedelta format to 'long'
Augments
9327e0824a1bbed538e73d42b971988f8214b490
Aarni Koskela [Thu, 1 Oct 2020 13:27:02 +0000 (16:27 +0300)]
Adapt things to new compound pattern format
Aarni Koskela [Thu, 1 Oct 2020 12:54:08 +0000 (15:54 +0300)]
Switch downloader to CLDR 37
Nikiforov Konstantin [Wed, 30 Sep 2020 15:17:16 +0000 (20:17 +0500)]
LazyProxy: Handle AttributeError in specified func (#724)
Fixes #723
Co-authored-by: Aarni Koskela <akx@iki.fi>
Abdullah Javed Nesar [Tue, 22 Sep 2020 12:14:27 +0000 (17:44 +0530)]
Added group_separator feature in number formatting (#726)
Brad Martin [Sun, 10 May 2020 18:02:16 +0000 (12:02 -0600)]
docs/numbers.rst : update parse_number comments (#708)
* docs/numbers.rst : test format of revised comments
* docs/numbers.rst : test final doc changes
* docs/numbers.rst : refine format/language
* docs/numbers.rst : refine language/format
* docs/numbers.rst : refine language/format
* docs/numbers.rst : experiment with spacing
Felix Schwarz [Tue, 5 May 2020 21:32:52 +0000 (21:32 +0000)]
simplify iteration code in "import_cldr.py"
As Miro Hrončok pointed out we don't need ".iter()" in the script.
Felix Schwarz [Tue, 5 May 2020 08:05:56 +0000 (08:05 +0000)]
fix tests when using Python 3.9a6
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.