]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
9 years agoFixedOffsetTimezone: fix display of negative offsets 219/head
Alex Willmer [Thu, 10 Sep 2015 19:25:45 +0000 (20:25 +0100)] 
FixedOffsetTimezone: fix display of negative offsets

9 years agoMerge pull request #119 from regisb/regisb/fix-odict-pop
Lasse Schuirmann [Thu, 10 Sep 2015 13:33:39 +0000 (15:33 +0200)] 
Merge pull request #119 from regisb/regisb/fix-odict-pop

Fix odict's pop method

9 years agoMerge pull request #210 from moreati/narrow-timedelta
Lasse Schuirmann [Thu, 10 Sep 2015 13:10:46 +0000 (15:10 +0200)] 
Merge pull request #210 from moreati/narrow-timedelta

Add format_timedelta(format='narrow') support

9 years agoTest invalid format_timedelta() format parameters 210/head
Alex Willmer [Thu, 10 Sep 2015 12:54:22 +0000 (13:54 +0100)] 
Test invalid format_timedelta() format parameters

9 years agoAdd format_timedelta(format='narrow') support
Alex Willmer [Thu, 10 Sep 2015 00:41:15 +0000 (01:41 +0100)] 
Add format_timedelta(format='narrow') support

9 years agoMerge pull request #199 from lepistone/allow-utf8-bom-with-magic-comment
Erick Wilder [Wed, 9 Sep 2015 22:04:06 +0000 (19:04 -0300)] 
Merge pull request #199 from lepistone/allow-utf8-bom-with-magic-comment

allow utf8 BOM + magic comment, closes #189

9 years agoMerge pull request #200 from artms/odict_performance
Erick Wilder [Wed, 9 Sep 2015 22:03:01 +0000 (19:03 -0300)] 
Merge pull request #200 from artms/odict_performance

Improve odict performance by making key search O(1)

9 years agoMerge pull request #208 from gitter-badger/gitter-badge
Erick Wilder [Wed, 9 Sep 2015 21:59:39 +0000 (18:59 -0300)] 
Merge pull request #208 from gitter-badger/gitter-badge

Add a Gitter chat link to README

9 years agoMerge pull request #188 from jun66j5/issue174/workaround
Erick Wilder [Wed, 9 Sep 2015 21:59:13 +0000 (18:59 -0300)] 
Merge pull request #188 from jun66j5/issue174/workaround

Avoid incompatible *.dat files between Python 2 and 3

9 years agoAdded Gitter link 208/head
The Gitter Badger [Mon, 7 Sep 2015 21:50:44 +0000 (21:50 +0000)] 
Added Gitter link

9 years agoodict: Fix pop method 119/head
Régis Behmo [Wed, 12 Nov 2014 17:09:34 +0000 (18:09 +0100)] 
odict: Fix pop method

The items() and iteritems() methods did not contain correct values after
a call to `pop(i)`.

Fixes https://github.com/mitsuhiko/babel/issues/196

9 years agoAdd change 200/head
Arturas Moskvinas [Wed, 26 Aug 2015 06:11:47 +0000 (09:11 +0300)] 
Add change

9 years agoImprove odict performance by making key search O(1)
Arturas Moskvinas [Fri, 7 Aug 2015 16:17:31 +0000 (19:17 +0300)] 
Improve odict performance by making key search O(1)

9 years agoupdate dead link to the Python Language Reference 199/head
Leonardo Pistone [Tue, 25 Aug 2015 15:34:16 +0000 (17:34 +0200)] 
update dead link to the Python Language Reference

9 years agoallow utf8 BOM + magic comment, closes #189
Leonardo Pistone [Fri, 7 Aug 2015 14:43:41 +0000 (16:43 +0200)] 
allow utf8 BOM + magic comment, closes #189

10 years agoMerge pull request #190 from julen/doc-fixes
Lasse Schuirmann [Wed, 5 Aug 2015 18:12:55 +0000 (20:12 +0200)] 
Merge pull request #190 from julen/doc-fixes

Docs: minor fixes

10 years agoDocs: minor fixes 190/head
Julen Ruiz Aizpuru [Tue, 27 May 2014 08:40:39 +0000 (10:40 +0200)] 
Docs: minor fixes

10 years agoMerge pull request #110 from felixonmars/master
Erick Wilder [Wed, 5 Aug 2015 17:26:02 +0000 (14:26 -0300)] 
Merge pull request #110 from felixonmars/master

Support 'Language' header field of PO files

10 years agoMerge pull request #180 from etanol/parent-locales
Lasse Schuirmann [Wed, 5 Aug 2015 17:16:24 +0000 (19:16 +0200)] 
Merge pull request #180 from etanol/parent-locales

Support parent locale exceptions

10 years agoMerge pull request #186 from sils1297/sils/rultor
Erick Wilder [Wed, 5 Aug 2015 17:10:46 +0000 (14:10 -0300)] 
Merge pull request #186 from sils1297/sils/rultor

Add rultor configuration

10 years agoMerge pull request #100 from astaric/fix_deepcopy
Lasse Schuirmann [Wed, 5 Aug 2015 16:55:33 +0000 (18:55 +0200)] 
Merge pull request #100 from astaric/fix_deepcopy

LazyProxy: Add __copy__ and __deepcopy__

10 years agoAdd __copy__ and __deepcopy__ to LazyProxy. 100/head
astaric [Thu, 12 Jun 2014 07:33:36 +0000 (09:33 +0200)] 
Add __copy__ and __deepcopy__ to LazyProxy.

Python's copy.copy and copy.deepcopy do not call objects __init__,
resulting in endless recursion.

10 years agoAdded unit tests for that *.dat files have only babel classes 188/head
Jun Omae [Tue, 4 Aug 2015 22:21:34 +0000 (07:21 +0900)] 
Added unit tests for that *.dat files have only babel classes

10 years agoRemoved uses of datetime.date class from *.dat files (#174)
Jun Omae [Tue, 4 Aug 2015 11:15:25 +0000 (20:15 +0900)] 
Removed uses of datetime.date class from *.dat files (#174)

To avoid incompatible *.dat files between Python 2 and 3.

10 years agolocaledata: Check inheritance exceptions first 180/head
Isaac Jurado [Wed, 5 Nov 2014 16:15:08 +0000 (17:15 +0100)] 
localedata: Check inheritance exceptions first

When deriving the parent locale from the given name, look first in the
inheritance exception list.  This will cover cases like "es_MX", which
parent is "es_419" and not "es".

Fixes https://github.com/mitsuhiko/babel/issues/97

10 years agoImport parent locale exceptions
Isaac Jurado [Wed, 5 Nov 2014 15:40:04 +0000 (16:40 +0100)] 
Import parent locale exceptions

Process and save the <parentLocales> element, which contains the
inheritance exceptions to the standard CLDR locale inheritance
algorithm.

10 years agoSupport 'Language' header field of PO files (#76) 110/head
Felix Yan [Wed, 26 Mar 2014 14:43:14 +0000 (14:43 +0000)] 
Support 'Language' header field of PO files (#76)

GNU gettext has support for the 'Language' field in header entry since
version 0.18 (May 2010). This commit adds support for the field and
addresses #76.

10 years agoMerge pull request #177 from philiptzou/pull-request-localedata-import-warning
Lasse Schuirmann [Wed, 5 Aug 2015 13:54:55 +0000 (15:54 +0200)] 
Merge pull request #177 from philiptzou/pull-request-localedata-import-warning

Fixed issue #109: `ImportWarning` warned when `import babel`

10 years agoAdd rultor configuration 186/head
Lasse Schuirmann [Tue, 4 Aug 2015 14:32:16 +0000 (16:32 +0200)] 
Add rultor configuration

This allows merging via github comments. The comment `@rultor merge`
will execute the script (which currently doesn't do anything) and if it
succeeds will perform the merge.

I plan to use rultor later for:
 * Automatic deployment to PyPI (development releases directly from
   master, we do this already in coala, see
   https://github.com/coala-analyzer/coala/blob/master/.rultor.yml)
 * Automatic releasing with deployment to PyPI.
 * Veryfy that all CI services pass before merging (see
   https://github.com/yegor256/rultor/issues/869)

With this any manual pushes to master are disallowed, all pushes to
master have to be validated by continuous integration and reviewed by a
non-committer.

10 years agoMerge pull request #151 from jespino/patch-1
Erick Wilder [Tue, 4 Aug 2015 14:24:05 +0000 (11:24 -0300)] 
Merge pull request #151 from jespino/patch-1

Fix typo on mapping filename

10 years agoAdded dev docs
Armin Ronacher [Tue, 4 Aug 2015 12:43:20 +0000 (14:43 +0200)] 
Added dev docs

10 years agoMerge pull request #184 from sils1297/sils/gitignore
Lasse Schuirmann [Tue, 4 Aug 2015 11:44:52 +0000 (13:44 +0200)] 
Merge pull request #184 from sils1297/sils/gitignore

gitignore: Add temporary editor files

10 years agoMerge pull request #183 from sils1297/sils/testci
Lasse Schuirmann [Tue, 4 Aug 2015 11:43:07 +0000 (13:43 +0200)] 
Merge pull request #183 from sils1297/sils/testci

Add Windows and Mac CI, and coverage submission

10 years agotravis: Cache cldr 183/head
Lasse Schuirmann [Tue, 4 Aug 2015 11:01:34 +0000 (13:01 +0200)] 
travis: Cache cldr

This should speed linux builds up a bit. Caching is not supported for
mac builds though.

10 years agoCI: Add mac builds
Lasse Schuirmann [Tue, 4 Aug 2015 09:46:04 +0000 (11:46 +0200)] 
CI: Add mac builds

10 years agoMakefile: Use platform independent pytest invocation
Lasse Schuirmann [Tue, 4 Aug 2015 11:02:30 +0000 (13:02 +0200)] 
Makefile: Use platform independent pytest invocation

10 years agogitignore: Add temporary editor files 184/head
Lasse Schuirmann [Tue, 4 Aug 2015 11:08:26 +0000 (13:08 +0200)] 
gitignore: Add temporary editor files

.idea stores settings for PyCharm, ~ files are temporary files e.g. used
by gedit. .swp is used by vim. We don't want any of those to be
accidentally committed in the repo.

10 years agotravis: Submit coverage to codecov
Lasse Schuirmann [Tue, 4 Aug 2015 09:02:14 +0000 (11:02 +0200)] 
travis: Submit coverage to codecov

10 years agoCI: Add windows builds 181/head
Lasse Schuirmann [Tue, 4 Aug 2015 08:42:44 +0000 (10:42 +0200)] 
CI: Add windows builds

10 years agoFixed issue #109: `ImportWarning` warned when `import babel` 177/head
Philip_Tzou [Sat, 1 Aug 2015 21:03:14 +0000 (14:03 -0700)] 
Fixed issue #109: `ImportWarning` warned when `import babel`

`localedata.py` uses the same name with folder `localedata/`, which
Python will try to load `localdata/__init__.py` and warn `ImportWarning`
if the file not found.

If try to filter the `ImportWarning` as an error like this:

```python
import warnings
warnings.filterwarnings('error', category=ImportWarning)
import babel
```

An `ImportWarning` exception will be raised.

10 years agoFix typo on mapping filename 151/head
Jesús Espino [Fri, 20 Mar 2015 11:15:11 +0000 (12:15 +0100)] 
Fix typo on mapping filename

Now the setup.cfg example for extract_messages configuration is equivalent to the command line example.

10 years agoMerge pull request #167 from jeremydw/master
Erick Wilder [Fri, 31 Jul 2015 19:48:39 +0000 (16:48 -0300)] 
Merge pull request #167 from jeremydw/master

Update locale.rst

10 years agoMerge pull request #170 from sils1297/sils/travis
Erick Wilder [Tue, 28 Jul 2015 17:51:16 +0000 (14:51 -0300)] 
Merge pull request #170 from sils1297/sils/travis

travis: Use docker infrastructure

10 years agotravis: Use docker infrastructure 170/head
Lasse Schuirmann [Tue, 28 Jul 2015 16:07:25 +0000 (18:07 +0200)] 
travis: Use docker infrastructure

See http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/ for related documentation.

10 years agoUpdate locale.rst 167/head
Jeremy Weinstein [Tue, 28 Jul 2015 00:45:35 +0000 (17:45 -0700)] 
Update locale.rst

10 years agoUpdate CHANGES with py3.4 support
Erick Wilder [Mon, 27 Jul 2015 21:27:12 +0000 (18:27 -0300)] 
Update CHANGES with py3.4 support

10 years agoAdd Python 3.4 to travis
Erick Wilder [Mon, 27 Jul 2015 21:21:29 +0000 (18:21 -0300)] 
Add Python 3.4 to travis

10 years agoAdd Python 3.4 to tox stack
Erick Wilder [Mon, 27 Jul 2015 21:01:47 +0000 (18:01 -0300)] 
Add Python 3.4 to tox stack

10 years agoForce file deletion at cleaning tasks
Erick Wilder [Mon, 27 Jul 2015 20:02:28 +0000 (17:02 -0300)] 
Force file deletion at cleaning tasks

- Fresh install tests will fail if there's no file inside babel/localedata and/or babel/global.dat

10 years agoAdded changelog entry for 3.0
Armin Ronacher [Mon, 27 Jul 2015 11:39:24 +0000 (13:39 +0200)] 
Added changelog entry for 3.0

10 years agoMerge branch 'pr/136'
Armin Ronacher [Mon, 27 Jul 2015 11:38:06 +0000 (13:38 +0200)] 
Merge branch 'pr/136'

10 years agoThis is 3.0-dev
Armin Ronacher [Mon, 27 Jul 2015 11:28:25 +0000 (13:28 +0200)] 
This is 3.0-dev

10 years agoBump version number to 2.0 2.0
Armin Ronacher [Mon, 27 Jul 2015 11:27:47 +0000 (13:27 +0200)] 
Bump version number to 2.0

10 years agoUpdated changelog
Armin Ronacher [Mon, 27 Jul 2015 11:27:44 +0000 (13:27 +0200)] 
Updated changelog

10 years agoFixed a bunch of broken timezone tests.
Armin Ronacher [Mon, 27 Jul 2015 11:22:31 +0000 (13:22 +0200)] 
Fixed a bunch of broken timezone tests.

10 years agoMerge branch 'cldr-24' into cldr-26 136/head
benselme [Sun, 11 Jan 2015 23:28:53 +0000 (18:28 -0500)] 
Merge branch 'cldr-24' into cldr-26

10 years agoFixed doctest failing randomly 135/head
benselme [Sun, 11 Jan 2015 23:27:20 +0000 (18:27 -0500)] 
Fixed doctest failing randomly

10 years agoFixed 2.6 bug (Decimal cannot convert floats)
benselme [Sun, 11 Jan 2015 23:18:12 +0000 (18:18 -0500)] 
Fixed 2.6 bug (Decimal cannot convert floats)

10 years agoFix doctests
benselme [Sun, 11 Jan 2015 22:12:47 +0000 (17:12 -0500)] 
Fix doctests

10 years agoMerge branch 'cldr-25' into cldr-26
benselme [Sun, 11 Jan 2015 21:00:10 +0000 (16:00 -0500)] 
Merge branch 'cldr-25' into cldr-26

10 years agoMerge branch 'cldr-24' into cldr-25
benselme [Sun, 11 Jan 2015 20:59:15 +0000 (15:59 -0500)] 
Merge branch 'cldr-24' into cldr-25

10 years agoFixed doctests
benselme [Sun, 11 Jan 2015 20:58:53 +0000 (15:58 -0500)] 
Fixed doctests

10 years agoCLDR-26 support: Minor adjustments to tests. URL, filename and filehash.
benselme [Sun, 11 Jan 2015 20:21:16 +0000 (15:21 -0500)] 
CLDR-26 support: Minor adjustments to tests. URL, filename and filehash.

10 years agoDon't try and import deprecated BCP-47 timezones
benselme [Sun, 11 Jan 2015 16:55:24 +0000 (11:55 -0500)] 
Don't try and import deprecated BCP-47 timezones

10 years agoFile name and checksum for CLDR-25
benselme [Sun, 11 Jan 2015 16:54:28 +0000 (11:54 -0500)] 
File name and checksum for CLDR-25

10 years agoMake sure extract_operands is always called when using plural.to_python, add tests...
benselme [Fri, 9 Jan 2015 20:35:21 +0000 (15:35 -0500)] 
Make sure extract_operands is always called when using plural.to_python, add tests to check operands eval works

10 years agoFixed import and format_timedelta to handle new time unit patterns in cldr-24.
benselme [Fri, 9 Jan 2015 19:56:31 +0000 (14:56 -0500)] 
Fixed import and format_timedelta to handle new time unit patterns in cldr-24.
Fixed tests to account for various minor changes in cldr-24.

10 years agoFix to_python when i is not provided to evaluate function
benselme [Fri, 9 Jan 2015 16:17:07 +0000 (11:17 -0500)] 
Fix to_python when i is not provided to evaluate function

10 years agoplural.extract_operands function and tests
benselme [Fri, 9 Jan 2015 15:33:24 +0000 (10:33 -0500)] 
plural.extract_operands function and tests

10 years agoPEP8
benselme [Fri, 9 Jan 2015 13:51:54 +0000 (08:51 -0500)] 
PEP8

10 years agoMore stuff merged from mitsuhiko's cldr-24 branch
benselme [Fri, 9 Jan 2015 00:40:28 +0000 (19:40 -0500)] 
More stuff merged from mitsuhiko's cldr-24 branch

10 years agoMore plural._Parser tests
benselme [Fri, 9 Jan 2015 00:22:20 +0000 (19:22 -0500)] 
More plural._Parser tests

10 years agoImproved _Parser doc
benselme [Fri, 9 Jan 2015 00:03:25 +0000 (19:03 -0500)] 
Improved _Parser doc

10 years agoMore extraction in _Parser, more tests
benselme [Fri, 9 Jan 2015 00:01:48 +0000 (19:01 -0500)] 
More extraction in _Parser, more tests

10 years agoExtract PluralRule.skip
benselme [Thu, 8 Jan 2015 22:57:07 +0000 (17:57 -0500)] 
Extract PluralRule.skip

10 years agoExtract PluralRule.test and add tests
benselme [Thu, 8 Jan 2015 22:53:16 +0000 (17:53 -0500)] 
Extract PluralRule.test and add tests

10 years agoInclude Armin Ronacher's work on PluralRule mitsuhiko/babel@774047a
benselme [Thu, 8 Jan 2015 22:29:24 +0000 (17:29 -0500)] 
Include Armin Ronacher's work on PluralRule mitsuhiko/babel@774047a

10 years agoExtract plural rule tokenization function and add tests
benselme [Thu, 8 Jan 2015 22:07:11 +0000 (17:07 -0500)] 
Extract plural rule tokenization function and add tests

10 years agoAdd link to rules spec in PluralRule doc
benselme [Thu, 8 Jan 2015 19:49:14 +0000 (14:49 -0500)] 
Add link to rules spec in PluralRule doc

10 years agoSome language aliases, which we do not want now use _ instead of -
benselme [Thu, 8 Jan 2015 16:34:21 +0000 (11:34 -0500)] 
Some language aliases, which we do not want now use _ instead of -

10 years agoUpdate CLDR URL for v24, filename and MD5
benselme [Thu, 8 Jan 2015 16:03:52 +0000 (11:03 -0500)] 
Update CLDR URL for v24, filename and MD5

11 years agoMerge branch 'master' of github.com:mitsuhiko/babel
Armin Ronacher [Mon, 7 Apr 2014 21:30:28 +0000 (23:30 +0200)] 
Merge branch 'master' of github.com:mitsuhiko/babel

11 years agoread/write all PO files in binary mode
Alex Morega [Wed, 15 Jan 2014 20:12:19 +0000 (22:12 +0200)] 
read/write all PO files in binary mode

as pointed out in #52

11 years agocorrectly handle 'C.UTF-8' locale
Alex Morega [Wed, 8 Jan 2014 11:24:40 +0000 (13:24 +0200)] 
correctly handle 'C.UTF-8' locale

fixes #57

11 years agofix warning for deprecated array.tostring
Alex Morega [Tue, 7 Jan 2014 06:16:16 +0000 (08:16 +0200)] 
fix warning for deprecated array.tostring

fixes #75

11 years agochange spelling of the encoding
Alex Morega [Mon, 6 Jan 2014 21:15:45 +0000 (23:15 +0200)] 
change spelling of the encoding

Apparently jython doesn't understand "utf_8". Fixes #46.

11 years agospecify locale
Alex Morega [Mon, 6 Jan 2014 20:48:15 +0000 (22:48 +0200)] 
specify locale

otherwise, running tests in another locale fails
fixes #45, thanks @Arfrever!

11 years agore-enable doctests
Alex Morega [Mon, 6 Jan 2014 20:39:22 +0000 (22:39 +0200)] 
re-enable doctests

11 years agoMerge branch 'fix-time-parsing'
Alex Morega [Mon, 6 Jan 2014 19:56:17 +0000 (21:56 +0200)] 
Merge branch 'fix-time-parsing'

11 years agoparse datetime values with no timezone info
Alex Morega [Mon, 6 Jan 2014 19:55:27 +0000 (21:55 +0200)] 
parse datetime values with no timezone info

fixes #56

11 years agorewrite regexp parsing
Alex Morega [Mon, 6 Jan 2014 19:43:33 +0000 (21:43 +0200)] 
rewrite regexp parsing

11 years agoextract _parse_datetime_header function
Alex Morega [Mon, 6 Jan 2014 19:41:25 +0000 (21:41 +0200)] 
extract _parse_datetime_header function

11 years agouse fallback plural if none is defined in CLDR
Alex Morega [Mon, 6 Jan 2014 19:19:47 +0000 (21:19 +0200)] 
use fallback plural if none is defined in CLDR

fixes #69

11 years agoMerge pull request #66 from Sjord/master
Alex Morega [Mon, 6 Jan 2014 18:28:51 +0000 (10:28 -0800)] 
Merge pull request #66 from Sjord/master

Correctly parse number pattern with '-' on the end

11 years agoMerge pull request #48 from yoloseem/patch-1
Alex Morega [Mon, 6 Jan 2014 17:12:22 +0000 (09:12 -0800)] 
Merge pull request #48 from yoloseem/patch-1

Fixed typos on cli errors.

11 years agoMerge pull request #68 from masklinn/master
Alex Morega [Mon, 6 Jan 2014 17:08:02 +0000 (09:08 -0800)] 
Merge pull request #68 from masklinn/master

Add links from changelog entries to their ticket via extlink

11 years agoMerge pull request #64 from Ivoz/patch-1
Alex Morega [Mon, 6 Jan 2014 17:02:15 +0000 (09:02 -0800)] 
Merge pull request #64 from Ivoz/patch-1

Update classifiers to give more detailed information about babel's versi...

11 years agoMerge pull request #73 from javacruft/wip-currency-name-test
Alex Morega [Mon, 6 Jan 2014 16:50:30 +0000 (08:50 -0800)] 
Merge pull request #73 from javacruft/wip-currency-name-test

Fixup get_currency_name test

11 years agoMerge pull request #52 from adyshev/patch-1
Alex Morega [Mon, 6 Jan 2014 16:47:05 +0000 (08:47 -0800)] 
Merge pull request #52 from adyshev/patch-1

fix `pybabel update` on py3

11 years agoFixup get_currency_name test 73/head
James Page [Fri, 6 Dec 2013 11:49:26 +0000 (11:49 +0000)] 
Fixup get_currency_name test

This test failed in environments where no default locale
can be determined; make the test deterministic and add
additional test for plurality.

Signed-off-by: James Page <james.page@ubuntu.com>