summaryrefslogtreecommitdiff
path: root/babel
Commit message (Collapse)AuthorAgeFilesLines
* Become 2.5.1 (#527)v2.5.1Aarni Koskela2017-09-141-1/+1
|
* Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)Aarni Koskela2017-09-141-1/+1
| | | Fixes #525
* Allow normalize_locale and exists to handle various unexpected input (#523)Jungmo Ku2017-09-121-1/+5
| | | | | Resolves #521
* Fixed docstring of validate_currency function (#522)Simeon Visser2017-08-281-1/+1
|
* Parse multi-line __future__ imports better (#519)Aarni Koskela2017-08-211-2/+15
| | | | | Augments #426 Augments #427 Augments #510
* Become 2.5.0 (#518)v2.5.0Aarni Koskela2017-08-181-1/+1
|
* Date format: Use * parametrized format patterns instead of %%0%... (#517)Aarni Koskela2017-08-181-3/+3
| | | This is about 60% faster than the old version in a micro-benchmark.
* Merge pull request #505 from wodo/pi_supportAarni Koskela2017-08-182-2/+12
|\ | | | | Introduce PyInstaller support. Fixes #500
| * Introduce PyInstaller support. Fixes #500Wolfgang Doll2017-06-242-2/+12
| | | | | | | | | | | | Add a get_base_dir function that works in the context of PyInstaller, where the __file__ system variable is not available.
* | Add __str__ to DateTimePattern (#515)Stefane Fermigier2017-08-031-2/+7
|/ | | Fixes #514
* Fix an invalid string to bytes comparison in Python 3Roy Williams2017-05-261-1/+1
| | | | | | | | | | | 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
* Merge pull request #491 from kdeldycke/currency-utilsAarni Koskela2017-05-172-12/+98
|\ | | | | Add currency utilities and helpers.
| * Add currency utilities and helpers.Kevin Deldycke2017-05-172-12/+98
| |
* | Fixed in-place editing of dir list while iteratingMarc-André Dufresne2017-04-101-3/+4
| |
* | Allow both dash and underscore separated locale identifiers in pofileslenient-po-locale-parseAarni Koskela2017-04-061-0/+1
| | | | | | | | | | | | Fixes #489 Augments #420 (08b9c5e76e19ae)
* | Fix extraction bug on nested messagesHeungsub Lee2017-03-311-1/+4
|/ | | | It fixes !487.
* Merge pull request #482 from xavfernandez/order_by_contextAarni Koskela2017-03-241-14/+6
|\ | | | | Sort translations according to msgid and msgctxt
| * When msgid are equal, sort according to msgctxtXavier Fernandez2017-03-211-2/+2
| | | | | | | | Fix #481
| * Simplify Message.__cmp__Xavier Fernandez2017-03-211-14/+6
| |
* | Merge pull request #433 from akx/no-inheritance-markerAarni Koskela2017-03-241-2/+17
|\ \ | | | | | | Properly fall back to `long` metazone names when short forms are no-inherit
| * | Properly fall back to `long` metazone names when short forms are no-inheritAarni Koskela2016-07-151-2/+17
| | | | | | | | | | | | | | | | | | Thanks to @stringtheory for the bug report! Fixes #428
* | | Become version 2.4.0release/2.4Aarni Koskela2017-03-141-1/+1
| |/ |/|
* | Merge pull request #462 from singingwolfboy/regex-flagsAarni Koskela2017-03-104-11/+11
|\ \ | | | | | | Pull flags out of regular expressions
| * | Pull flags out of regular expressionsDavid Baumgold2016-12-294-11/+11
| | |
* | | Merge pull request #466 from abhishekcs10/winmapAarni Koskela2017-03-101-1/+1
|\ \ \ | | | | | | | | Issue #463.
| * | | Issue #463. Changed win_mapping to windows_zone_mapping in core.py line 48Abhishek Tiwari2017-01-101-1/+1
| |/ /
* | | Fix setup.py option 'add_location'Alex Kuzmenko2016-12-151-1/+1
|/ /
* | Fix read_pofile handling of missing pluralsMichael Birtwell2016-11-211-7/+7
| |
* | pofile reader: Fix multi line msgctxtMichael Birtwell2016-11-211-0/+3
| |
* | pofile parsing. Fix handling of obsolete + refactorMichael Birtwell2016-11-211-53/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge pull request #438 from rrader/add_location_optionAarni Koskela2016-11-212-5/+27
|\ \ | | | | | | Add option 'add_location' for location line formatting
| * | Add option 'add_location' for location line formattingRoman Rader2016-08-092-5/+27
| | | | | | | | | | | | | | | | | | | | | 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).
* | | Merge pull request #435 from akx/exopAarni Koskela2016-11-181-7/+30
|\ \ \ | | | | | | | | Fix float conversion in `extract_operands` (and the relevant test)
| * | | Fix float conversion in `extract_operands` (and the relevant test)Aarni Koskela2016-07-151-7/+30
| | |/ | |/| | | | | | | Fixes #421
* | | jslexer.py: Change jsx_tag regex againKO. Mattsson2016-10-241-1/+1
| | | | | | | | | | | | | | | | | | 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.
* | | Fix spelling word into Raise TypeErrorRodrigo Ramírez Norambuena2016-10-051-1/+1
| | |
* | | Merge pull request #436 from akx/correct-liesAarni Koskela2016-09-211-3/+10
|\ \ \ | |_|/ |/| | Straighten up lying extraction docstrings
| * | Straighten up lying extraction docstringsAarni Koskela2016-07-151-3/+10
| |/ | | | | | | Fixes #403
* | Abort catalog update earlier if there are no message catalogsVille Skyttä2016-07-271-3/+3
| |
* | Handle file open/close with "with"Ville Skyttä2016-07-274-44/+11
| |
* | Close files earlierVille Skyttä2016-07-272-3/+3
| |
* | Avoid reading files entirely into memoryVille Skyttä2016-07-272-16/+14
| |
* | Let logging format messages on demandVille Skyttä2016-07-271-1/+1
|/
* Updated plurals.py to match Mozilla and CLDR referencesMax Shenfield2016-07-112-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge pull request #427 from sublee/issue-426Aarni Koskela2016-07-092-3/+28
|\ | | | | Python message extractor respects unicode_literals in __future__
| * Fix #426Heungsub Lee2016-07-092-3/+28
| | | | | | | | | | Parse compiler flags based on __future__ imports in Python codes. Evaluate a string literal with the parsed compiler flags.
* | Merge pull request #410 from etanol/decimal-controlAarni Koskela2016-07-084-29/+23
|\ \ | | | | | | Allow full control on Decimal behaviour
| * | Simplify the selection of decimal implementationIsaac Jurado2016-05-294-24/+22
| | | | | | | | | | | | | | | | | | | | | Instead of selecting individual symbols, expose only the chosen decimal module through babel._compat. This forces Babel to always use "decimal." prefix. Howver, it will simplify the code for users that need to manipulate the decimal context.
| * | Remove explicit enforcement from Decimal roundingIsaac Jurado2016-05-282-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | Allow the rounding mode to be controlled from the currently active decimal context. This gives the caller the ability to control rounding mode, precision, exponent range and all attributes that affect decimal operations. Fixes #90
* | | Merge pull request #373 from ↵Aarni Koskela2016-07-081-2/+2
|\ \ \ | | | | | | | | | | | | | | | | ykshatroff/fix-issue-372-wrong-plurals-for-cs-and-sk Сorrect plural forms for cs and sk locales