| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
This reverts commit 653e6d4f654f0f3cbce57054654e09c519b9e412, reversing
changes made to 5f3b00854bbc6fa6a03e04ab572a609eebcc1f72.
|
|
|
|
| |
This reverts commit 0b34807ab3d9681bb653ac535e0fbc6f0ac3ffbb.
|
| |
|
|
|
| |
Fixes #525
|
|
|
|
|
| |
Resolves #521
|
| |
|
|
|
|
|
| |
Augments #426
Augments #427
Augments #510
|
| |
|
|
|
| |
This is about 60% faster than the old version in a micro-benchmark.
|
|\
| |
| | |
Introduce PyInstaller support. Fixes #500
|
| |
| |
| |
| |
| |
| | |
Add a get_base_dir function that works in the context of
PyInstaller, where the __file__ system variable is
not available.
|
|/
|
| |
Fixes #514
|
|
|
|
|
|
|
|
|
|
|
| |
In Python 3 this branch would never evaluate to `True` due to comparing a string to bytes.
This was flagged by running some unit tests with the `-bb` flag, so I've added
`-bb` to run with the babel unit tests in Python3.5
Here's some docs on the `-bb` flag:
https://docs.python.org/3.5/library/warnings.html#default-warning-filters
https://docs.python.org/3/howto/pyporting.html#use-continuous-integration-to-stay-compatible
|
|\
| |
| | |
Add currency utilities and helpers.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Fixes #489
Augments #420 (08b9c5e76e19ae)
|
|/
|
|
| |
It fixes !487.
|
|\
| |
| | |
Sort translations according to msgid and msgctxt
|
| |
| |
| |
| | |
Fix #481
|
| | |
|
|\ \
| | |
| | | |
Properly fall back to `long` metazone names when short forms are no-inherit
|
| | |
| | |
| | |
| | |
| | |
| | | |
Thanks to @stringtheory for the bug report!
Fixes #428
|
| |/
|/| |
|
|\ \
| | |
| | | |
Pull flags out of regular expressions
|
| | | |
|
|\ \ \
| | | |
| | | | |
Issue #463.
|
| |/ / |
|
|/ / |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes the handling of the unit before the obsolete unit.
Previously it would mark the unit before an obsolete unit as obsolete
also.
Some refactoring:
* the transition between finishing one unit and starting the next
is clearer
* separate the processing of keywords and continuation lines
* combine the reset and initialisation code
* Make the handling of strings consistent.
* Add some nascent error handling, removed some errors in test inputs
|
|\ \
| | |
| | | |
Add option 'add_location' for location line formatting
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Support of add_location option added, can be either 'full', 'file'
or 'never'. 'full' includes both file and line number; 'file' includes
only the file name without line number; 'never' doesn't include the
location comment at all (same as --no-location).
|
|\ \ \
| | | |
| | | | |
Fix float conversion in `extract_operands` (and the relevant test)
|
| | |/
| |/|
| | |
| | | |
Fixes #421
|
| | |
| | |
| | |
| | |
| | |
| | | |
We've had some syntactic variations that my previous PR, #392, did not
account for. One case had a component as a prop that tripped up the
regex.
|
| | | |
|
|\ \ \
| |_|/
|/| | |
Straighten up lying extraction docstrings
|
| |/
| |
| |
| | |
Fixes #403
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit updates the plural rules, and in some cases the plural
number, for languages based on review of
https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals,
and
http://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html.
I changed the interface (either the number of plurals, or the meaning
of each index), for the following languages:
• Arabic (ar): numplurals same, semantics differ per Mozilla's "Plural rule #12". 3 has been made more accurate, 4 has been switched with 5, and the meaning of both has been refined to match the rule.
• Belarusian (ar): numplurals updated to 3, using Mozilla's "Plural
rule #7". Previously the default, where anything except one is plural.
• Breton (br): numplurals updated to 6, using Mozilla's "Plural rule
• Bosnian (bs): numplurals updated to 3, using Mozilla's "Plural rule
• Irish Gaelic (ga): numplurals update from 3 to 5, using Mozilla's
"Plural rule #11". Cases have been added for n between 3 and 6, and n
between 7 and 10.
• Icelandic (is): same numplurals (2), semantics updated using
Mozilla's "Plural rule #15". 0 now means that n ends in 1, and is not
11, instead of just the number 1.
• Maltese (mt): same numplurals, same rule. Fixed rule, index 1 now
includes numbers ending in 1 (except the number 1)
I'm ignoring these two rules listed on the Mozilla resource
• Hungarian - listed as `(n != 1)`. It is not required to pluralize a
noun if a qualitative or quantitative amount precedes it
http://www.hungarianreference.com/plurals.aspx.
• Vietnamese - listed as `(n != 1)`. It only seems to have one plural
according to this lesson:
http://yourvietnamese.com/vietnamese-grammar/nouns-in-vietnamese/.
There are some additional languages listed in the Mozilla reference
that are not in the plurals document, and could be added:
• Lower Sorbian (dsb) (4, '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 ||
n%100==4 ? 2 : 3)')
• Upper Sorbian (hsb) (4, '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 ||
n%100==4 ? 2 : 3)')
• Scottish Gaelic (gd) (4, '(n==1 || n==11 ? 0 : n==2 || n==12 ? 1 :
(n>=3 && n<=10) || (n>=13 && n<=19) ? 2 : 3)')
• Faroese (fo) (2, '(n != 1)')
• Frisian (fy) (2, '(n != 1)')
• Macedonian (mk) (3, '(n%10==1 ? 0 : n%10==2 ? 1 : 2)')
Closes https://github.com/python-babel/babel/issues/430
|
|\
| |
| | |
Python message extractor respects unicode_literals in __future__
|
| |
| |
| |
| |
| | |
Parse compiler flags based on __future__ imports in Python codes.
Evaluate a string literal with the parsed compiler flags.
|