summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* CLDR: Use CLDR 32.0.1Aarni Koskela2018-01-191-3/+3
|
* cldr: use CLDR 31.0.1 (and fix test changes); see below!cldr-30Aarni Koskela2018-01-171-4/+4
| | | | | | | | | | | | | | | | | | | | CLDR 31.0 separated the GMT and UTC time zones, so formatting of that time zone has changed. Most notably, "UTC" replaces "+0000" when formatting the timezone. This could break code that expects +0000. A subset (the parts supported by Babel) of the migration guide from http://cldr.unicode.org/index/downloads/cldr-31: * The locales in the language-territory population tables have been changed to be the canonical format, dropping the script where it is the default. So "ku_Latn" changes to "ku". * Plural rules: The Portuguese plural rules have changed so that all (and only) integers and decimal fractions < 2 are singular. * Timezones: The GMT timezone has been split from the UTC timezone. * Timezones: New timezone bcp47 codes have been added. * Languages "hr" and "sr" are no longer a short distance apart, for political reasons. * The primary names for CZ changed from "Czech Republic" to "Czechia", with the longer name now the alternate.
* cldr: Parse compact decimal formats that appear in CLDR 30Aarni Koskela2018-01-171-1/+13
|
* cldr: use CLDR 30.0.2 (and fix test changes)Aarni Koskela2018-01-172-7/+11
|
* Python 3.6 invalid escape sequence deprecation fixesVille Skyttä2017-12-171-1/+1
| | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* Add currency utilities and helpers.Kevin Deldycke2017-05-171-4/+10
|
* Pull flags out of regular expressionsDavid Baumgold2016-12-291-3/+5
|
* Handle file open/close with "with"Ville Skyttä2016-07-272-7/+4
|
* Fix day periods to work with CLDR 29 dataAarni Koskela2016-06-221-0/+2
|
* Download CLDR 29 instead of 28Aarni Koskela2016-06-221-3/+3
|
* Revert "import_cldr: if lxml is installed, use it"Jennifer Wang2016-04-191-5/+2
| | | | This reverts commit 9b5c7f3678167f03ec39fd1c25f98d0e0d41621f.
* Import and expose more measurement unit related informationAarni Koskela2016-04-061-0/+17
|
* CLDR: import unit_patterns as nested dictsAarni Koskela2016-04-061-3/+3
| | | | | | | (Instead of colon-separated flat dicts.) This should not be a breaking change, unless someone has used the private API `l._data["unit_patterns"]`.
* Embetter measurement system parsing:Aarni Koskela2016-03-301-4/+9
| | | | | * Refactor into a separate function * Use `_import_type_text` when importing measurement systems
* Expose measurement system names.alexbodn@gmail.com2016-03-301-0/+4
|
* Move character order parsing into a function of its ownAarni Koskela2016-03-301-3/+6
|
* Add support for character order informationalexbodn@gmail.com2016-03-191-0/+3
|
* Merge pull request #349 from akx/import-day-periodsAarni Koskela2016-03-091-9/+62
|\ | | | | Day period API
| * import_cldr: improve parsing of day periodsAarni Koskela2016-03-051-9/+62
| | | | | | | | | | * Day period rules are now imported * All periods (not just a single context/width) are imported
* | Add flake8 pre-commit hook and apply fixes.Lukas Balaga2016-03-071-1/+0
|/
* Apply pre-commit fixes.Lukas Balaga2016-02-271-0/+1
|
* import_cldr: further DRY out draft/alt skippingAarni Koskela2016-02-151-34/+64
| | | | Thanks for the idea, @jtwang!
* import_cldr: Use parentheses instead of backslashes to continue linesAarni Koskela2016-02-151-8/+4
|
* import_cldr: separate argument parsing from processingAarni Koskela2016-02-151-7/+13
|
* import_cldr: fix flake8 nits and remove duplicate codeAarni Koskela2016-02-141-55/+29
|
* import_cldr: refactor locale data parsing into multiple functionsAarni Koskela2016-02-141-326/+361
| | | | | | 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.
* import_cldr: Refactor global data parsing into separate functionAarni Koskela2016-02-141-126/+133
| | | | Care was taken to make the `-w` diff as minimal as possible.
* import_cldr: if lxml is installed, use itAarni Koskela2016-02-141-2/+5
|
* CLDR: Import interval format dataAarni Koskela2016-01-231-2/+23
| | | | Refs #276
* scripts: add territory-language import from CLDRErik Romijn2016-01-081-0/+11
| | | | Available in the global data onder the 'territory_language' key.
* Add support for date-time skeletonsMichael Birtwell2016-01-041-0/+5
| | | | | | | | 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.
* Update to CLDR 28 (with test updates)Aarni Koskela2015-12-211-5/+4
| | | | | | | | | | * Aside from the usual data changes, the provisional aa locale is no longer, so we can't use it for tests. Instead, ii is used (chosen by virtue of ii.xml being fairly small, i.e. probably as incomplete as aa). * ms_Latn_SG is not in use anymore either; use sr_Latn_ME instead. Closes #226 Closes #290
* import_cldr: Add `--dump-json` debug flagAarni Koskela2015-12-211-10/+23
| | | | | These JSON files are easier to inspect by eye to figure out what might be going wrong. They are never used by Babel itself.
* import_cldr: Add `--force` flagAarni Koskela2015-12-211-3/+7
|
* import_cldr: support currency format lengthsAarni Koskela2015-12-211-15/+23
| | | | Non-default currency format lengths acquire colon-separated suffixes like units already do since 9327e0824a1bbed538e73d42b971988f8214b490
* download_import_cldr: unzip into versioned dirAarni Koskela2015-12-211-2/+3
|
* Add an ordinal_form property to LocaleMichael Birtwell2015-10-311-9/+17
|
* Add list_patterns to LocaleMichael Birtwell2015-09-301-0/+7
|
* numbers: Properly load and expose currency format typesIsaac Jurado2015-09-271-4/+11
| | | | | | | | The type of the currency format (e.g. "standard", "accounting") was not interpreted correctly from the CLDR data. Now there should not be any currency format identified by "None". Fixes https://github.com/mitsuhiko/babel/issues/201
* Import currency fraction and rounding informationIsaac Jurado2015-09-271-0/+10
| | | | | Process and save the <fractions> element of the supplemental data, which indicates how many decimal places should be displayed for each currency.
* localedata: Rename to locale-datasils/wheelLasse Schuirmann2015-09-251-1/+1
| | | | | | To fix the ImportError because of the name clash with localedata.py. locale-data is no valid python identifier and thus a nice indicator that this directory actually contains data.
* Merge pull request #188 from jun66j5/issue174/workaroundErick Wilder2015-09-091-4/+2
|\ | | | | Avoid incompatible *.dat files between Python 2 and 3
| * Removed uses of datetime.date class from *.dat files (#174)Jun Omae2015-08-061-4/+2
| | | | | | | | To avoid incompatible *.dat files between Python 2 and 3.
* | Import parent locale exceptionsIsaac Jurado2015-08-051-0/+7
|/ | | | | | Process and save the <parentLocales> element, which contains the inheritance exceptions to the standard CLDR locale inheritance algorithm.
* CLDR-26 support: Minor adjustments to tests. URL, filename and filehash.benselme2015-01-111-3/+3
|
* Don't try and import deprecated BCP-47 timezonesbenselme2015-01-111-7/+8
|
* File name and checksum for CLDR-25benselme2015-01-111-3/+3
|
* Fixed import and format_timedelta to handle new time unit patterns in cldr-24.benselme2015-01-091-8/+19
| | | | Fixed tests to account for various minor changes in cldr-24.
* Some language aliases, which we do not want now use _ instead of -benselme2015-01-081-1/+1
|
* Update CLDR URL for v24, filename and MD5benselme2015-01-081-3/+3
|