]>
git.ipfire.org Git - thirdparty/babel.git/log
saurabhiiit [Wed, 2 Mar 2016 18:30:03 +0000 (00:00 +0530)]
license.rst: Fix typo in General License Defination
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
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 [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`
sudheesh001 [Thu, 28 Jan 2016 03:56:33 +0000 (09:26 +0530)]
Added npgettext to default keywords in extraction
Aarni Koskela [Tue, 2 Feb 2016 22:54:42 +0000 (00:54 +0200)]
Extract CLI: Add `input-dirs` alias for `input-paths`.
Just in case some script expects to be able to pass `--input-dirs`.
Fixes #330
Augments
19957e21470615d42fb7b6e2c1a580cd679d33c8
Aarni Koskela [Tue, 2 Feb 2016 22:29:12 +0000 (00:29 +0200)]
Merge pull request #300 from akx/pofile-sort
Embetter pofile sorting
Aarni Koskela [Fri, 29 Jan 2016 12:47:30 +0000 (14:47 +0200)]
pofile: refactor message sorting into helper fn
Aarni Koskela [Fri, 29 Jan 2016 10:28:04 +0000 (12:28 +0200)]
Merge pull request #335 from ansiwen/multi_domain
Frontend: Add multi-domain support to compile_catalog command
Sven Anderson [Wed, 27 Jan 2016 14:35:20 +0000 (15:35 +0100)]
Frontend: Add multi-domain support to compile_catalog command
Some projects have their translations split up into several text
domains within one package. This change adds the possibility to
specify a space seperated list of domains in the configuration, like
'setup.py compile_catalog --domain="foo bar"', for instance.
Lasse Schuirmann [Thu, 28 Jan 2016 09:11:30 +0000 (10:11 +0100)]
Merge pull request #336 from sudheesh001/Patch266
docs: Point newcomers to easy bugs
sudheesh001 [Thu, 28 Jan 2016 03:31:23 +0000 (09:01 +0530)]
Fix #266 Points newcomers to easy bugs in the documentation
Aarni Koskela [Sat, 23 Jan 2016 19:49:13 +0000 (21:49 +0200)]
Merge pull request #316 from akx/ivals
Implement date interval formatting
Aarni Koskela [Mon, 4 Jan 2016 19:51:36 +0000 (21:51 +0200)]
dates: Add and use fuzzy skeleton matching
Based on:
* http://www.unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems
* http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java
(method `getBestSkeleton`)
Aarni Koskela [Mon, 4 Jan 2016 17:35:56 +0000 (19:35 +0200)]
dates: Add basic format_interval implementation
Refs #276
Aarni Koskela [Mon, 4 Jan 2016 17:34:24 +0000 (19:34 +0200)]
dates: Add DateTimeFormat.extract() support function
Aarni Koskela [Mon, 4 Jan 2016 18:52:36 +0000 (20:52 +0200)]
dates: Memoize parsed DateTimePatterns
Aarni Koskela [Mon, 4 Jan 2016 17:01:52 +0000 (19:01 +0200)]
dates: add split_interval_pattern and untokenize_pattern
Aarni Koskela [Mon, 4 Jan 2016 16:47:36 +0000 (18:47 +0200)]
dates: split tokenize_pattern out of parse_pattern
Aarni Koskela [Mon, 4 Jan 2016 18:36:39 +0000 (20:36 +0200)]
dates: DRY out the internal datetime conversion code
Aarni Koskela [Sun, 3 Jan 2016 22:25:48 +0000 (00:25 +0200)]
CLDR: Import interval format data
Refs #276
Aarni Koskela [Sun, 20 Dec 2015 21:28:00 +0000 (23:28 +0200)]
Compile noninteger TR35 operands to zeroes when emitting Gettext
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
Aarni Koskela [Fri, 22 Jan 2016 18:42:59 +0000 (20:42 +0200)]
plural: DRY out `compile_zero`
Aarni Koskela [Fri, 22 Jan 2016 18:42:24 +0000 (20:42 +0200)]
plural: support Unicode ellipsis sign
Aarni Koskela [Fri, 22 Jan 2016 18:42:03 +0000 (20:42 +0200)]
plural: don't ignore possible rules in `other` category
Aarni Koskela [Fri, 15 Jan 2016 11:06:42 +0000 (13:06 +0200)]
Merge pull request #324 from ENuge/eoin_babel_extract_with_files
Support extraction by filename as well as directory
Eoin Nugent [Mon, 11 Jan 2016 22:43:58 +0000 (14:43 -0800)]
extraction: Babel now supports extraction by filename as well as by dir
One can now supply a filename or a directory to be extracted. For
large codebases, this allows the consumer to optimize their
string extraction process by, for instance, only supplying the
files that have actually been changed on the given dev's branch
compared to master.
Relates to https://github.com/python-babel/babel/issues/253 . I
don't want to say "fixes", but makes further optimization
unnecessary for most use cases.
Aarni Koskela [Mon, 11 Jan 2016 09:15:01 +0000 (11:15 +0200)]
Merge pull request #315 from akx/territory-languages
Territory languages
Aarni Koskela [Fri, 8 Jan 2016 08:46:04 +0000 (10:46 +0200)]
Add documentation for `babel.languages`
Fixes #319
Aarni Koskela [Sun, 3 Jan 2016 20:52:09 +0000 (22:52 +0200)]
get_global: format key documentation, add warning
Erik Romijn [Sun, 23 Nov 2014 16:24:59 +0000 (17:24 +0100)]
core: documented all valid keys for get_global()
Aarni Koskela [Sun, 3 Jan 2016 20:50:08 +0000 (22:50 +0200)]
Add public API for territory language data
Erik Romijn [Sat, 22 Nov 2014 15:06:44 +0000 (16:06 +0100)]
scripts: add territory-language import from CLDR
Available in the global data onder the 'territory_language' key.
Aarni Koskela [Fri, 8 Jan 2016 13:07:46 +0000 (15:07 +0200)]
Merge pull request #320 from akx/update-option
Make catalog header updating an option
Aarni Koskela [Fri, 8 Jan 2016 08:17:05 +0000 (10:17 +0200)]
Make catalog header updating an option
The change in
e0e7ef168856bb had an unexpected and likely undesired effect
when updating catalogs with, e.g. translator names in the header comment.
It's better to make the updating an option and revert back to the pre-2.2
behavior by default.
Fixes https://github.com/python-babel/babel/issues/318
Aarni Koskela [Fri, 8 Jan 2016 11:50:37 +0000 (13:50 +0200)]
Merge pull request #322 from akx/update-docs
Documentation updates
Aarni Koskela [Fri, 8 Jan 2016 08:27:58 +0000 (10:27 +0200)]
doc: Add CLDR data volatility notes
Closes #317
Aarni Koskela [Fri, 8 Jan 2016 08:39:43 +0000 (10:39 +0200)]
Update docs metadata
Aarni Koskela [Fri, 8 Jan 2016 08:39:35 +0000 (10:39 +0200)]
Refer `format_skeleton` in docs
Aarni Koskela [Fri, 8 Jan 2016 08:39:08 +0000 (10:39 +0200)]
Add docs for `babel.lists`
Aarni Koskela [Fri, 8 Jan 2016 08:38:48 +0000 (10:38 +0200)]
Fix CHANGES formatting to ReST
Aarni Koskela [Fri, 8 Jan 2016 09:19:19 +0000 (11:19 +0200)]
Merge pull request #311 from akx/refactor-frontend
Refactor frontend.py (remove duplicate code)
Aarni Koskela [Thu, 24 Dec 2015 18:06:28 +0000 (20:06 +0200)]
pofile: Use `.sort(key=...)`, not `cmp`
Fixes #79 (https://github.com/python-babel/babel/issues/79)
Aarni Koskela [Wed, 23 Dec 2015 20:57:34 +0000 (22:57 +0200)]
pofile: always sort message locations
Fixes #77
Aarni Koskela [Wed, 23 Dec 2015 20:55:42 +0000 (22:55 +0200)]
pofile: sort obsolete messages too
Aarni Koskela [Thu, 31 Dec 2015 00:46:08 +0000 (02:46 +0200)]
Add test for frontend update_command
Aarni Koskela [Wed, 30 Dec 2015 20:30:12 +0000 (22:30 +0200)]
Slightly tidy up frontend.py
Aarni Koskela [Wed, 30 Dec 2015 19:53:12 +0000 (21:53 +0200)]
Frontend: Use Distutils commands also for the CLI
Aarni Koskela [Mon, 4 Jan 2016 18:14:35 +0000 (20:14 +0200)]
Merge pull request #265 from mbirtwell/add-date-time-skeletons
Add support for date-time skeletons
Michael Birtwell [Mon, 28 Sep 2015 16:44:30 +0000 (17:44 +0100)]
Add support for date-time skeletons
The skeletons for dates and times are described on
http://cldr.unicode.org/translation/date-time-patterns under
Additional Date-Time Formats. And are useful when you want to some more
control over formatting dates and times but don't want to force all
locales to use the same pattern.
Aarni Koskela [Mon, 4 Jan 2016 11:12:11 +0000 (13:12 +0200)]
Merge pull request #274 from imankulov/fix-encoding-detection
Fix UnicodeEncodeError on file encoding detection
Roman Imankulov [Tue, 13 Oct 2015 11:18:48 +0000 (11:18 +0000)]
Fix UnicodeEncodeError on file encoding detection
If the first line of a python file is not a valid latin-1 string,
parse_encoding dies with "UnicodeDecodeError". These strings nonetheless can be
valid in some scenarios (for example, Mako extractor uses
babel.messages.extract.extract_python), and it makes more sense to ignore this
exception and return None.
Aarni Koskela [Sat, 2 Jan 2016 19:31:42 +0000 (21:31 +0200)]
Merge pull request #313 from python-babel/sils/changes
Release 2.2
Lasse Schuirmann [Sat, 2 Jan 2016 19:29:04 +0000 (20:29 +0100)]
Set version to development
Lasse Schuirmann [Sat, 2 Jan 2016 13:54:14 +0000 (14:54 +0100)]
Release 2.2
Isaac Jurado [Fri, 1 Jan 2016 23:02:27 +0000 (00:02 +0100)]
Merge pull request #292 from akx/cldr28
Upgrade to CLDR 28
Aarni Koskela [Wed, 30 Dec 2015 15:36:37 +0000 (17:36 +0200)]
Merge pull request #308 from akx/appveyor-codecov
Post coverage results to Codecov from Appveyor
Lasse Schuirmann [Wed, 30 Dec 2015 15:15:11 +0000 (16:15 +0100)]
Merge pull request #306 from akx/lukas-b_116
Fix typo and add missing semicolon in plural_forms, update test coverage.
Lasse Schuirmann [Wed, 30 Dec 2015 15:11:29 +0000 (16:11 +0100)]
Merge pull request #307 from akx/dstanek-54
Update catalog headers from the template
Lasse Schuirmann [Wed, 30 Dec 2015 15:08:12 +0000 (16:08 +0100)]
Merge pull request #301 from akx/suspect-filter
Flatten NullTranslations.files into a list
Aarni Koskela [Wed, 30 Dec 2015 15:00:25 +0000 (17:00 +0200)]
Post coverage results to Codecov from Appveyor
Aarni Koskela [Wed, 30 Dec 2015 14:39:48 +0000 (16:39 +0200)]
Add a test for header_comment updating.
David Stanek [Thu, 5 Sep 2013 17:15:57 +0000 (13:15 -0400)]
Updates a catalog's header to from the template
A language specific catalog's initial header is based on the template
when it is created. Updates to the template's header were previously
not getting into the catalog during the update_catalog process.
Lukas B [Tue, 4 Nov 2014 23:51:39 +0000 (15:51 -0800)]
Beef up test_plurals.py
Update test coverage in test_plurals.py
Lukas B [Tue, 4 Nov 2014 23:49:28 +0000 (15:49 -0800)]
Fix typo and add semicolon in plural_forms
Fix typo and add semicolon in plural_forms (missing l in 'plural' and semicolon at the end).
It currently produces incorrect plural form string.
Lasse Schuirmann [Tue, 29 Dec 2015 16:18:23 +0000 (17:18 +0100)]
Merge pull request #303 from akx/thanatos-add-hash-to-locale-class
Add hash to locale class
Aarni Koskela [Tue, 29 Dec 2015 15:55:15 +0000 (17:55 +0200)]
Improve Locale equality and hashing tests
Roy Wellington Ⅳ [Tue, 31 Mar 2015 21:44:10 +0000 (14:44 -0700)]
Add __hash__ to Locale.
Aarni Koskela [Wed, 23 Dec 2015 21:21:33 +0000 (23:21 +0200)]
Flatten NullTranslations.files into a list
`filter` is special in Python 3, and latter usages would error out in
strange ways.
Fixes #92 (https://github.com/python-babel/babel/pull/92)
Fixes #162 (https://github.com/python-babel/babel/pull/162)
Lasse Schuirmann [Tue, 29 Dec 2015 00:40:35 +0000 (01:40 +0100)]
Merge pull request #302 from etanol/fix-builds
Try to fix the broken builds
Isaac Jurado [Tue, 29 Dec 2015 00:15:20 +0000 (01:15 +0100)]
Install m3-cdecimal in Travis environments.
Follow the cdecimal to m3-cdecimal package rename within TravisCI configuration.
Isaac Jurado [Mon, 28 Dec 2015 21:14:05 +0000 (22:14 +0100)]
Install m3-cdecimal in Tox environments.
Apparently, the cdecimal package has been renamed to m3-cdecimal. Being unable
to install it breaks the test suite, so this should fix the problem.
Lasse Schuirmann [Wed, 23 Dec 2015 18:49:26 +0000 (19:49 +0100)]
Merge pull request #297 from akx/py35
Mark Python 3.5 as supported
Aarni Koskela [Wed, 23 Dec 2015 18:16:18 +0000 (20:16 +0200)]
Mark Python 3.5 as supported
Fixes #222
Refs #221