Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | CLDR: Use CLDR 32.0.1 | Aarni Koskela | 2018-01-19 | 1 | -3/+3 | |
| | ||||||
* | cldr: use CLDR 31.0.1 (and fix test changes); see below!cldr-30 | Aarni Koskela | 2018-01-17 | 1 | -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 30 | Aarni Koskela | 2018-01-17 | 1 | -1/+13 | |
| | ||||||
* | cldr: use CLDR 30.0.2 (and fix test changes) | Aarni Koskela | 2018-01-17 | 2 | -7/+11 | |
| | ||||||
* | Python 3.6 invalid escape sequence deprecation fixes | Ville Skyttä | 2017-12-17 | 1 | -1/+1 | |
| | | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior | |||||
* | Add currency utilities and helpers. | Kevin Deldycke | 2017-05-17 | 1 | -4/+10 | |
| | ||||||
* | Pull flags out of regular expressions | David Baumgold | 2016-12-29 | 1 | -3/+5 | |
| | ||||||
* | Handle file open/close with "with" | Ville Skyttä | 2016-07-27 | 2 | -7/+4 | |
| | ||||||
* | Fix day periods to work with CLDR 29 data | Aarni Koskela | 2016-06-22 | 1 | -0/+2 | |
| | ||||||
* | Download CLDR 29 instead of 28 | Aarni Koskela | 2016-06-22 | 1 | -3/+3 | |
| | ||||||
* | Revert "import_cldr: if lxml is installed, use it" | Jennifer Wang | 2016-04-19 | 1 | -5/+2 | |
| | | | | This reverts commit 9b5c7f3678167f03ec39fd1c25f98d0e0d41621f. | |||||
* | Import and expose more measurement unit related information | Aarni Koskela | 2016-04-06 | 1 | -0/+17 | |
| | ||||||
* | CLDR: import unit_patterns as nested dicts | Aarni Koskela | 2016-04-06 | 1 | -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 Koskela | 2016-03-30 | 1 | -4/+9 | |
| | | | | | * Refactor into a separate function * Use `_import_type_text` when importing measurement systems | |||||
* | Expose measurement system names. | alexbodn@gmail.com | 2016-03-30 | 1 | -0/+4 | |
| | ||||||
* | Move character order parsing into a function of its own | Aarni Koskela | 2016-03-30 | 1 | -3/+6 | |
| | ||||||
* | Add support for character order information | alexbodn@gmail.com | 2016-03-19 | 1 | -0/+3 | |
| | ||||||
* | Merge pull request #349 from akx/import-day-periods | Aarni Koskela | 2016-03-09 | 1 | -9/+62 | |
|\ | | | | | Day period API | |||||
| * | import_cldr: improve parsing of day periods | Aarni Koskela | 2016-03-05 | 1 | -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 Balaga | 2016-03-07 | 1 | -1/+0 | |
|/ | ||||||
* | Apply pre-commit fixes. | Lukas Balaga | 2016-02-27 | 1 | -0/+1 | |
| | ||||||
* | import_cldr: further DRY out draft/alt skipping | Aarni Koskela | 2016-02-15 | 1 | -34/+64 | |
| | | | | Thanks for the idea, @jtwang! | |||||
* | import_cldr: Use parentheses instead of backslashes to continue lines | Aarni Koskela | 2016-02-15 | 1 | -8/+4 | |
| | ||||||
* | import_cldr: separate argument parsing from processing | Aarni Koskela | 2016-02-15 | 1 | -7/+13 | |
| | ||||||
* | import_cldr: fix flake8 nits and remove duplicate code | Aarni Koskela | 2016-02-14 | 1 | -55/+29 | |
| | ||||||
* | import_cldr: refactor locale data parsing into multiple functions | Aarni Koskela | 2016-02-14 | 1 | -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 function | Aarni Koskela | 2016-02-14 | 1 | -126/+133 | |
| | | | | Care was taken to make the `-w` diff as minimal as possible. | |||||
* | import_cldr: if lxml is installed, use it | Aarni Koskela | 2016-02-14 | 1 | -2/+5 | |
| | ||||||
* | CLDR: Import interval format data | Aarni Koskela | 2016-01-23 | 1 | -2/+23 | |
| | | | | Refs #276 | |||||
* | scripts: add territory-language import from CLDR | Erik Romijn | 2016-01-08 | 1 | -0/+11 | |
| | | | | Available in the global data onder the 'territory_language' key. | |||||
* | Add support for date-time skeletons | Michael Birtwell | 2016-01-04 | 1 | -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 Koskela | 2015-12-21 | 1 | -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 flag | Aarni Koskela | 2015-12-21 | 1 | -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` flag | Aarni Koskela | 2015-12-21 | 1 | -3/+7 | |
| | ||||||
* | import_cldr: support currency format lengths | Aarni Koskela | 2015-12-21 | 1 | -15/+23 | |
| | | | | Non-default currency format lengths acquire colon-separated suffixes like units already do since 9327e0824a1bbed538e73d42b971988f8214b490 | |||||
* | download_import_cldr: unzip into versioned dir | Aarni Koskela | 2015-12-21 | 1 | -2/+3 | |
| | ||||||
* | Add an ordinal_form property to Locale | Michael Birtwell | 2015-10-31 | 1 | -9/+17 | |
| | ||||||
* | Add list_patterns to Locale | Michael Birtwell | 2015-09-30 | 1 | -0/+7 | |
| | ||||||
* | numbers: Properly load and expose currency format types | Isaac Jurado | 2015-09-27 | 1 | -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 information | Isaac Jurado | 2015-09-27 | 1 | -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/wheel | Lasse Schuirmann | 2015-09-25 | 1 | -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/workaround | Erick Wilder | 2015-09-09 | 1 | -4/+2 | |
|\ | | | | | Avoid incompatible *.dat files between Python 2 and 3 | |||||
| * | Removed uses of datetime.date class from *.dat files (#174) | Jun Omae | 2015-08-06 | 1 | -4/+2 | |
| | | | | | | | | To avoid incompatible *.dat files between Python 2 and 3. | |||||
* | | Import parent locale exceptions | Isaac Jurado | 2015-08-05 | 1 | -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. | benselme | 2015-01-11 | 1 | -3/+3 | |
| | ||||||
* | Don't try and import deprecated BCP-47 timezones | benselme | 2015-01-11 | 1 | -7/+8 | |
| | ||||||
* | File name and checksum for CLDR-25 | benselme | 2015-01-11 | 1 | -3/+3 | |
| | ||||||
* | Fixed import and format_timedelta to handle new time unit patterns in cldr-24. | benselme | 2015-01-09 | 1 | -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 - | benselme | 2015-01-08 | 1 | -1/+1 | |
| | ||||||
* | Update CLDR URL for v24, filename and MD5 | benselme | 2015-01-08 | 1 | -3/+3 | |
| |