]>
git.ipfire.org Git - thirdparty/babel.git/log
Sébastien Fievet [Fri, 20 May 2016 12:58:24 +0000 (14:58 +0200)]
Typo
Aarni Koskela [Thu, 28 Apr 2016 17:09:27 +0000 (20:09 +0300)]
Merge pull request #399 from asottile/default_source_encoding
Default to UTF-8 source encoding (PEP8: python3)
Anthony Sottile [Wed, 27 Apr 2016 19:26:29 +0000 (12:26 -0700)]
Default to UTF-8 source encoding (PEP8: python3)
Aarni Koskela [Sat, 23 Apr 2016 21:16:18 +0000 (00:16 +0300)]
Merge pull request #392 from karloskar/feature/evolve-jsx-extraction
jslexer.py: Change jsx_tag regex
Aarni Koskela [Tue, 19 Apr 2016 19:05:15 +0000 (22:05 +0300)]
Merge pull request #389 from akx/fix-388
Re-harmonize argument parsing between distutils and optparse CLIs
Aarni Koskela [Sun, 17 Apr 2016 15:20:10 +0000 (18:20 +0300)]
Teach the optparse CLI about the parameter aliases it had forgotten in #311
Vaguely refs #390
Aarni Koskela [Sun, 17 Apr 2016 15:06:03 +0000 (18:06 +0300)]
Remind the optparse CLI about `extract -s` (a shorthand for `--strip-comments`)
Fixes #390
Aarni Koskela [Sun, 17 Apr 2016 15:16:01 +0000 (18:16 +0300)]
extract: don't die badly when no input paths are specified in optparse mode
Aarni Koskela [Thu, 14 Apr 2016 08:41:27 +0000 (11:41 +0300)]
frontend: don't use unicode-variant %r for logging
Now that arguments are more likely to be unicode than bytestrings, %r is not a good idea between Python versions.
Aarni Koskela [Thu, 14 Apr 2016 08:23:01 +0000 (11:23 +0300)]
Harmonize extraction keyword parsing between distutils and standalone CLI
Fixes #388
Refs #384
Refs #311
Aarni Koskela [Tue, 19 Apr 2016 16:07:54 +0000 (19:07 +0300)]
Merge pull request #393 from jtwang/391_jtwang_revert_lxml_optimization
Revert "import_cldr: if lxml is installed, use it"
Jennifer Wang [Mon, 18 Apr 2016 22:30:54 +0000 (15:30 -0700)]
Revert "import_cldr: if lxml is installed, use it"
This reverts commit
9b5c7f3678167f03ec39fd1c25f98d0e0d41621f .
KO. Mattsson [Mon, 18 Apr 2016 16:33:11 +0000 (18:33 +0200)]
jslexer.py: Change jsx_tag regex
A less greedy jsx_tag regex. Can handle translatable strings both as
children or as props to a component.
Aarni Koskela [Tue, 12 Apr 2016 06:31:33 +0000 (09:31 +0300)]
Merge pull request #386 from akx/fix-384
Fix CLI command usage regressions
Aarni Koskela [Mon, 11 Apr 2016 10:45:59 +0000 (13:45 +0300)]
Test that `update` actually accepts those boolean parameters
Aarni Koskela [Mon, 11 Apr 2016 10:44:39 +0000 (13:44 +0300)]
Refactor out `configure_cli_command`
Sébastien Diemer [Fri, 8 Apr 2016 14:46:48 +0000 (16:46 +0200)]
fix typos in messages frontend
The 'no-wrap', 'ignore-obsolete', 'no-fuzzy-matching', 'previous' and
'update-header-comment' were not correctly parsed in the update_catalog
command.
Aarni Koskela [Mon, 11 Apr 2016 10:35:49 +0000 (13:35 +0300)]
Make the CLI extraction command support multiple `-k`s again
Fixes #384 (https://github.com/python-babel/babel/issues/384)
Thanks to @ajaeger for the bug report.
Aarni Koskela [Mon, 11 Apr 2016 10:28:37 +0000 (13:28 +0300)]
Make the command-line frontend easier to test
Aarni Koskela [Fri, 8 Apr 2016 09:10:20 +0000 (12:10 +0300)]
Merge pull request #382 from python-babel/sils/ci
Sils/ci
Lasse Schuirmann [Fri, 8 Apr 2016 08:07:44 +0000 (10:07 +0200)]
README: Rename to rst
Converted with pandoc. This way it should be shown on PyPI correctly
too.
Fixes https://github.com/python-babel/babel/issues/376
Lasse Schuirmann [Fri, 8 Apr 2016 08:05:21 +0000 (10:05 +0200)]
travis: Don't build on mac for all versions
That's pretty redundant.
Fixes https://github.com/python-babel/babel/issues/377
Lasse Schuirmann [Fri, 8 Apr 2016 08:03:27 +0000 (10:03 +0200)]
AppVeyor: Remove unneeded builds
Related to https://github.com/python-babel/babel/issues/377
Aarni Koskela [Fri, 8 Apr 2016 07:44:43 +0000 (10:44 +0300)]
Merge pull request #379 from akx/fix-378
Fix day period formatting (#378)
Aarni Koskela [Fri, 8 Apr 2016 05:34:31 +0000 (08:34 +0300)]
Add smoke tests for basic operations
Refs #378
Aarni Koskela [Fri, 8 Apr 2016 05:14:06 +0000 (08:14 +0300)]
dates: Use format context and fallback through widths
`zh_Hant` locale data does not have names for the
`am` and `pm` day periods in the `format`/`abbreviated` context,
so fallback logic is added to deal with that eventuality.
Fixes #378
Aarni Koskela [Fri, 8 Apr 2016 05:12:51 +0000 (08:12 +0300)]
Merge pull request #374 from python-babel/sils/release
Release 2.3
Lasse Schuirmann [Thu, 7 Apr 2016 20:20:01 +0000 (22:20 +0200)]
VERSION: Bump to development
Lasse Schuirmann [Thu, 7 Apr 2016 20:14:11 +0000 (22:14 +0200)]
VERSION: Bump to 2.3
Lasse Schuirmann [Thu, 7 Apr 2016 20:07:09 +0000 (22:07 +0200)]
Update Changelog
Aarni Koskela [Thu, 7 Apr 2016 19:28:08 +0000 (22:28 +0300)]
Merge pull request #369 from akx/unit_format
Add unit and compound unit formatting
Aarni Koskela [Wed, 6 Apr 2016 13:59:37 +0000 (16:59 +0300)]
Make compound unit formatting adhere more closely to the TR-35 spec
Aarni Koskela [Wed, 30 Mar 2016 17:03:53 +0000 (20:03 +0300)]
Add new unit formatting APIs:
* babel.units.format_unit
* babel.units.format_compound_unit
* babel.units.get_unit_name
Aarni Koskela [Wed, 30 Mar 2016 16:15:59 +0000 (19:15 +0300)]
Import and expose more measurement unit related information
Aarni Koskela [Wed, 30 Mar 2016 16:41:52 +0000 (19:41 +0300)]
CLDR: import unit_patterns as nested dicts
(Instead of colon-separated flat dicts.)
This should not be a breaking change, unless someone has used the private
API `l._data["unit_patterns"]`.
Aarni Koskela [Tue, 5 Apr 2016 20:52:55 +0000 (23:52 +0300)]
Merge pull request #368 from akx/char-order-and-measurement-systems
Character order and measurement systems
Aarni Koskela [Wed, 30 Mar 2016 14:40:14 +0000 (17:40 +0300)]
Embetter measurement system parsing:
* Refactor into a separate function
* Use `_import_type_text` when importing measurement systems
alexbodn@gmail.com [Sat, 19 Mar 2016 12:46:28 +0000 (14:46 +0200)]
Expose measurement system names.
Aarni Koskela [Wed, 30 Mar 2016 14:32:27 +0000 (17:32 +0300)]
Rename `Locale.direction` to `Locale.text_direction`.
Aarni Koskela [Wed, 30 Mar 2016 14:53:09 +0000 (17:53 +0300)]
Move character order parsing into a function of its own
alexbodn@gmail.com [Sun, 13 Mar 2016 11:28:20 +0000 (13:28 +0200)]
Add support for character order information
Aarni Koskela [Wed, 9 Mar 2016 19:30:05 +0000 (21:30 +0200)]
Merge pull request #332 from akx/improved-js
Improved JavaScript extraction
Aarni Koskela [Wed, 9 Mar 2016 07:36:31 +0000 (09:36 +0200)]
Merge pull request #349 from akx/import-day-periods
Day period API
Aarni Koskela [Wed, 9 Mar 2016 06:54:23 +0000 (08:54 +0200)]
Merge pull request #366 from lukas-b/lukas_add_pre_commit_hooks_and_apply_fixes
Add `flake8` pre-commit hook and apply fixes
Lukas Balaga [Tue, 8 Mar 2016 05:15:37 +0000 (21:15 -0800)]
Add flake8 pre-commit hook and apply fixes.
Aarni Koskela [Sun, 6 Mar 2016 18:46:51 +0000 (20:46 +0200)]
Merge pull request #364 from saurabhiiit/master
docs/numbers.rst: Correct line length
saurabhiiit [Sun, 6 Mar 2016 18:34:07 +0000 (00:04 +0530)]
docs/numbers.rst: Correct line length
Fixes https://github.com/python-babel/babel/issues/363
Aarni Koskela [Sun, 14 Feb 2016 18:56:02 +0000 (20:56 +0200)]
dates: Add day period API
Aarni Koskela [Sun, 14 Feb 2016 18:04:45 +0000 (20:04 +0200)]
dates: refactor `_get_time()` into a helper
Aarni Koskela [Sun, 14 Feb 2016 17:37:40 +0000 (19:37 +0200)]
Use `day_periods` for `get_period_names`
Aarni Koskela [Sun, 14 Feb 2016 17:19:51 +0000 (19:19 +0200)]
import_cldr: improve parsing of day periods
* Day period rules are now imported
* All periods (not just a single context/width) are imported
Aarni Koskela [Thu, 3 Mar 2016 20:14:25 +0000 (22:14 +0200)]
Merge pull request #355 from lukas-b/lukas_add_pre_commit_and_apply_fixes
Add pre-commit and apply fixes
Aarni Koskela [Thu, 3 Mar 2016 19:00:41 +0000 (21:00 +0200)]
Merge pull request #347 from sachinpali146/master
Additional Support for Date Time pattern formats
Aarni Koskela [Thu, 3 Mar 2016 18:13:42 +0000 (20:13 +0200)]
Merge pull request #361 from kdeldycke/mixed_cased_locale_id
Parsing of mixed-cased locale ID.
Kevin Deldycke [Thu, 3 Mar 2016 17:17:44 +0000 (18:17 +0100)]
Only attempt a normalization search if filesystem lookup fails.
Kevin Deldycke [Thu, 3 Mar 2016 17:09:05 +0000 (18:09 +0100)]
Explicit normalize_locale() documentation.
Lasse Schuirmann [Thu, 3 Mar 2016 10:40:23 +0000 (11:40 +0100)]
Merge pull request #362 from saurabhiiit/master
license.rst: Fix minor typo
saurabhiiit [Wed, 2 Mar 2016 18:30:03 +0000 (00:00 +0530)]
license.rst: Fix typo in General License Defination
Kevin Deldycke [Wed, 2 Mar 2016 16:04:13 +0000 (17:04 +0100)]
Force normalization of locale ID.
Kevin Deldycke [Wed, 2 Mar 2016 12:01:37 +0000 (13:01 +0100)]
Test locale IDs uniqueness.
Kevin Deldycke [Wed, 2 Mar 2016 11:11:51 +0000 (12:11 +0100)]
Test parsing of mixed-cased locale ID.
Sachin Paliwal [Tue, 1 Mar 2016 14:21:10 +0000 (19:51 +0530)]
dates: Add additional pattern for week day
Added test cases and additional pattern for Weekday format
Sachin Paliwal [Tue, 1 Mar 2016 14:20:16 +0000 (19:50 +0530)]
dates: Add additional pattern for quarter
Added test cases and additional pattern for quarter format
Aarni Koskela [Mon, 29 Feb 2016 16:50:51 +0000 (18:50 +0200)]
Merge pull request #360 from iamshubh22/master
format_datetime: using 'S...S' format is incorrect
iamshubh22 [Mon, 29 Feb 2016 16:20:10 +0000 (21:50 +0530)]
format_datetime: using 'S...S' format is incorrect
Fixes https://github.com/python-babel/babel/issues/350
Aarni Koskela [Mon, 29 Feb 2016 12:58:49 +0000 (14:58 +0200)]
Merge pull request #359 from srisankethu/master
docs/dates.rst: Correct line length
srisankethu [Mon, 29 Feb 2016 12:37:01 +0000 (18:07 +0530)]
docs/dates.rst: Correct line length
Fixes https://github.com/python-babel/babel/issues/356
Lukas Balaga [Sun, 28 Feb 2016 00:31:18 +0000 (16:31 -0800)]
Apply pre-commit fixes.
Lukas Balaga [Sun, 28 Feb 2016 00:30:48 +0000 (16:30 -0800)]
Add pre-commit.
Aarni Koskela [Wed, 17 Feb 2016 16:53:04 +0000 (18:53 +0200)]
Merge pull request #351 from kdeldycke/locale_identification_unittest
Unittest locale_identifiers() and exists() bijection.
Kevin Deldycke [Wed, 17 Feb 2016 15:30:56 +0000 (16:30 +0100)]
Unittest locale_identifiers() and exists() bijection.
Aarni Koskela [Mon, 15 Feb 2016 21:15:19 +0000 (23:15 +0200)]
Merge pull request #348 from akx/refactor-cldr-import
Refactor CLDR importer script
Aarni Koskela [Mon, 15 Feb 2016 17:54:14 +0000 (19:54 +0200)]
import_cldr: further DRY out draft/alt skipping
Thanks for the idea, @jtwang!
Aarni Koskela [Mon, 15 Feb 2016 17:59:29 +0000 (19:59 +0200)]
import_cldr: Use parentheses instead of backslashes to continue lines
Aarni Koskela [Mon, 15 Feb 2016 17:57:46 +0000 (19:57 +0200)]
import_cldr: separate argument parsing from processing
Aarni Koskela [Sun, 14 Feb 2016 20:00:56 +0000 (22:00 +0200)]
import_cldr: fix flake8 nits and remove duplicate code
Aarni Koskela [Sun, 14 Feb 2016 19:45:19 +0000 (21:45 +0200)]
import_cldr: refactor locale data parsing into multiple functions
Special care was taken to order the new functions in the same order as the
original source was; the resulting whitespace-ignoring diff is very
minimal.
Aarni Koskela [Sun, 14 Feb 2016 19:45:07 +0000 (21:45 +0200)]
import_cldr: Refactor global data parsing into separate function
Care was taken to make the `-w` diff as minimal as possible.
Aarni Koskela [Sun, 14 Feb 2016 17:19:28 +0000 (19:19 +0200)]
import_cldr: if lxml is installed, use it
Aarni Koskela [Sat, 13 Feb 2016 17:11:35 +0000 (19:11 +0200)]
Merge pull request #346 from srisankethu/master
Contributing:Change incorrect link
srisankethu [Sat, 13 Feb 2016 11:04:42 +0000 (16:34 +0530)]
Contributing:Change incorrect link
Fixes https://github.com/python-babel/babel/issues/345
Aarni Koskela [Mon, 8 Feb 2016 08:55:46 +0000 (10:55 +0200)]
Merge pull request #295 from akx/gettext-tr35-ops
Compile noninteger TR35 operands to zeroes when emitting Gettext
Aarni Koskela [Mon, 8 Feb 2016 08:18:12 +0000 (10:18 +0200)]
Merge pull request #343 from akx/pypy3
Set up official support for PyPy 3
Aarni Koskela [Sun, 7 Feb 2016 17:02:04 +0000 (19:02 +0200)]
setup/PyPI: Add PyPy classifier
Aarni Koskela [Sun, 7 Feb 2016 13:14:57 +0000 (15:14 +0200)]
setup: Use `subprocess.check_call()`
It's available since Python 2.5, so it's safe for our use.
Aarni Koskela [Sun, 7 Feb 2016 13:13:21 +0000 (15:13 +0200)]
setup: Remove long-obsolete build_doc/test_doc commands
Aarni Koskela [Sun, 7 Feb 2016 13:12:33 +0000 (15:12 +0200)]
setup: Don't explicitly check for supported versions
With pypy3 advertising itself as py3.2, but still behaving like py3.3,
the check started to become awkward. Plus, it seems to be nicer to
ask for forgiveness rather than permission.
Aarni Koskela [Sun, 7 Feb 2016 13:11:43 +0000 (15:11 +0200)]
Travis: Add pypy3/linux configuration
Aarni Koskela [Mon, 18 Jan 2016 17:07:17 +0000 (19:07 +0200)]
JavaScript: support tags as keywords for template strings
Refs #329
Aarni Koskela [Mon, 18 Jan 2016 15:35:05 +0000 (17:35 +0200)]
JavaScript: add basic support for template strings
Refs #329
Aarni Koskela [Mon, 18 Jan 2016 15:09:57 +0000 (17:09 +0200)]
JavaScript: Support dotted names as keywords
Fixes #148
Aarni Koskela [Mon, 18 Jan 2016 15:09:08 +0000 (17:09 +0200)]
JavaScript: Add JSX/E4X tag lexing
Fixes #280
Aarni Koskela [Wed, 30 Dec 2015 17:29:48 +0000 (19:29 +0200)]
JavaScript: Move extraction test cases into separate file
And remove unittest boilerplate while at it
Aarni Koskela [Mon, 18 Jan 2016 14:54:23 +0000 (16:54 +0200)]
JavaScript: modernize lexer slightly
Aarni Koskela [Fri, 5 Feb 2016 16:28:21 +0000 (18:28 +0200)]
Merge pull request #338 from sachinpali146/master
Fix #325 Support more format for timezone
Sachin Paliwal [Fri, 5 Feb 2016 15:47:55 +0000 (21:17 +0530)]
dates: Add iso8601 pattern timezone Format
https://github.com/python-babel/babel/issues/325
Sachin Paliwal [Fri, 5 Feb 2016 15:39:34 +0000 (21:09 +0530)]
dates: Add Features in get timezone functions
Added argument 'return_z' and two values 'iso8601' and 'iso8601_short'
in argument width in get_timezone_gmt(), 'return_city' argument is add
in get_timezone_location() and 'return_zone' in get_timezone_name() so
we can implement iso8601 timezone patterns.
Aarni Koskela [Wed, 3 Feb 2016 21:12:35 +0000 (23:12 +0200)]
Merge pull request #341 from sudheesh001/patch328
Extract: Add npgettext to default keywords map
sudheesh001 [Thu, 28 Jan 2016 03:56:33 +0000 (09:26 +0530)]
Extract: Add npgettext to default keywords map
Add the npgettext as a default keyword in the keywords map.
Create test_npgettext in test_extract showing the passing tests.
Fixes https://github.com/python-babel/babel/issues/281
Fixes https://github.com/python-babel/babel/issues/328
Aarni Koskela [Wed, 3 Feb 2016 17:56:18 +0000 (19:56 +0200)]
Merge pull request #340 from akx/input-dirs
Extract CLI: Add `input-dirs` alias for `input-paths`