]> git.ipfire.org Git - thirdparty/babel.git/log
thirdparty/babel.git
8 years agoFix spelling word into Raise TypeError 449/head
Rodrigo Ramírez Norambuena [Wed, 5 Oct 2016 18:56:33 +0000 (15:56 -0300)] 
Fix spelling word into Raise TypeError

8 years agoMerge pull request #436 from akx/correct-lies
Aarni Koskela [Wed, 21 Sep 2016 04:58:48 +0000 (07:58 +0300)] 
Merge pull request #436 from akx/correct-lies

Straighten up lying extraction docstrings

8 years agoMerge pull request #440 from jwilk/spelling
Aarni Koskela [Sat, 20 Aug 2016 17:20:23 +0000 (20:20 +0300)] 
Merge pull request #440 from jwilk/spelling

Fix typos

8 years agoFix typos 440/head
Jakub Wilk [Sat, 20 Aug 2016 17:02:14 +0000 (19:02 +0200)] 
Fix typos

9 years agoMerge pull request #437 from scop/misc
Aarni Koskela [Wed, 27 Jul 2016 06:09:07 +0000 (09:09 +0300)] 
Merge pull request #437 from scop/misc

Miscellaneous small improvements

9 years agoAbort catalog update earlier if there are no message catalogs 437/head
Ville Skyttä [Tue, 26 Jul 2016 20:33:52 +0000 (23:33 +0300)] 
Abort catalog update earlier if there are no message catalogs

9 years agoHandle file open/close with "with"
Ville Skyttä [Tue, 26 Jul 2016 20:31:43 +0000 (23:31 +0300)] 
Handle file open/close with "with"

9 years agoClose files earlier
Ville Skyttä [Tue, 26 Jul 2016 20:30:06 +0000 (23:30 +0300)] 
Close files earlier

9 years agoAvoid reading files entirely into memory
Ville Skyttä [Tue, 26 Jul 2016 20:28:10 +0000 (23:28 +0300)] 
Avoid reading files entirely into memory

9 years agoLet logging format messages on demand
Ville Skyttä [Tue, 26 Jul 2016 20:24:19 +0000 (23:24 +0300)] 
Let logging format messages on demand

9 years agoUse assertEqual instead of deprecated assertEquals
Ville Skyttä [Tue, 26 Jul 2016 20:23:56 +0000 (23:23 +0300)] 
Use assertEqual instead of deprecated assertEquals

9 years agoStraighten up lying extraction docstrings 436/head
Aarni Koskela [Fri, 15 Jul 2016 12:23:51 +0000 (15:23 +0300)] 
Straighten up lying extraction docstrings

Fixes #403

9 years agoMerge pull request #431 from mshenfield/issue-430-revise-harcoded-plural-mappings
Aarni Koskela [Fri, 15 Jul 2016 09:28:56 +0000 (12:28 +0300)] 
Merge pull request #431 from mshenfield/issue-430-revise-harcoded-plural-mappings

Updated plurals.py to match Mozilla and CLDR references

9 years agoUpdated plurals.py to match Mozilla and CLDR references 431/head
Max Shenfield [Mon, 11 Jul 2016 15:17:15 +0000 (10:17 -0500)] 
Updated plurals.py to match Mozilla and CLDR references

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

9 years agoMerge pull request #427 from sublee/issue-426
Aarni Koskela [Sat, 9 Jul 2016 09:51:11 +0000 (12:51 +0300)] 
Merge pull request #427 from sublee/issue-426

Python message extractor respects unicode_literals in __future__

9 years agoFix #426 427/head
Heungsub Lee [Fri, 1 Jul 2016 10:50:34 +0000 (19:50 +0900)] 
Fix #426

Parse compiler flags based on __future__ imports in Python codes.
Evaluate a string literal with the parsed compiler flags.

9 years agoMerge pull request #410 from etanol/decimal-control
Aarni Koskela [Fri, 8 Jul 2016 19:24:13 +0000 (22:24 +0300)] 
Merge pull request #410 from etanol/decimal-control

Allow full control on Decimal behaviour

9 years agoMerge pull request #373 from ykshatroff/fix-issue-372-wrong-plurals-for-cs-and-sk
Aarni Koskela [Fri, 8 Jul 2016 18:03:48 +0000 (21:03 +0300)] 
Merge pull request #373 from ykshatroff/fix-issue-372-wrong-plurals-for-cs-and-sk

Сorrect plural forms for cs and sk locales

9 years agoMerge pull request #420 from kruton/read-locale
Aarni Koskela [Fri, 8 Jul 2016 17:59:04 +0000 (20:59 +0300)] 
Merge pull request #420 from kruton/read-locale

Read locale from .po if it has Language header

9 years agoMerge pull request #424 from gardentechno/master
Aarni Koskela [Fri, 8 Jul 2016 17:58:14 +0000 (20:58 +0300)] 
Merge pull request #424 from gardentechno/master

Fix extraction order

9 years agoMerge pull request #429 from mbirtwell/multi_line_obsolete
Aarni Koskela [Fri, 8 Jul 2016 17:39:56 +0000 (20:39 +0300)] 
Merge pull request #429 from mbirtwell/multi_line_obsolete

Support reading multi line obsolete units in po files

9 years agoAccept catalog argument to PoFileParser 429/head
Michael Birtwell [Fri, 8 Jul 2016 17:08:48 +0000 (18:08 +0100)] 
Accept catalog argument to PoFileParser

Also make it not private and document it a bit.

9 years agoRemove osx build from travis.
Michael Birtwell [Fri, 8 Jul 2016 15:24:09 +0000 (16:24 +0100)] 
Remove osx build from travis.

Something in pyenv appears broken

9 years agoread_po: Support multiline obsolete units
Michael Birtwell [Fri, 8 Jul 2016 13:33:12 +0000 (14:33 +0100)] 
read_po: Support multiline obsolete units

9 years agoRefactor read_po to use a class for state
Michael Birtwell [Fri, 8 Jul 2016 13:10:28 +0000 (14:10 +0100)] 
Refactor read_po to use a class for state

This means we don't need to do tricks like have local variables which
are length 1 arrays to hold booleans

9 years agoMerge pull request #405 from akx/cldr-29
Aarni Koskela [Thu, 7 Jul 2016 18:30:06 +0000 (21:30 +0300)] 
Merge pull request #405 from akx/cldr-29

Use CLDR 29

9 years agoFix extraction order 424/head
Nicolas Grilly [Fri, 24 Jun 2016 19:49:06 +0000 (21:49 +0200)] 
Fix extraction order

Before Babel 2.3, the input directories were always extracted
in the order specified by the command line arguments.

For example, `pybabel extract dir_a dir_b dir_c` would process
`dir_a` first, then `dir_b`, and finally `dir_c`.

Since Babel 2.3, the inputs are stored in a Python dictionary,
and we loop over items in the dictionary using items().
This makes the order unspecified, not matching the order
specified on the command line anymore.

9 years agoFix day periods to work with CLDR 29 data 405/head
Aarni Koskela [Tue, 17 May 2016 06:21:46 +0000 (09:21 +0300)] 
Fix day periods to work with CLDR 29 data

9 years agoDownload CLDR 29 instead of 28
Aarni Koskela [Tue, 17 May 2016 05:55:30 +0000 (08:55 +0300)] 
Download CLDR 29 instead of 28

9 years agoRead locale from .po if it has Language header 420/head
Kenny Root [Fri, 17 Jun 2016 06:11:56 +0000 (23:11 -0700)] 
Read locale from .po if it has Language header

When a .po file was written out it would write the "Language"
header, but it wouldn't subsequently read that header back in. This
change makes that symmetric so you can write out a file and get back the
same Catalog by reading it in again.

Additionally other values like charset get overridden when the header is
read, so codify the behavior that the read "Language" header gets set as
the locale of the Catalog object.

9 years agoMerge pull request #414 from jtwang/407_jtwang_NumberPattern_preserves_raw_pattern
Aarni Koskela [Sat, 4 Jun 2016 16:38:08 +0000 (19:38 +0300)] 
Merge pull request #414 from jtwang/407_jtwang_NumberPattern_preserves_raw_pattern

parse_pattern now preserves original pattern #407

9 years agoparse_pattern now passes original pattern string to NumberPattern 414/head
Jennifer Wang [Thu, 2 Jun 2016 19:30:46 +0000 (12:30 -0700)] 
parse_pattern now passes original pattern string to NumberPattern

9 years agoMerge pull request #412 from adamchainz/readthedocs.io
Aarni Koskela [Sun, 29 May 2016 14:01:46 +0000 (17:01 +0300)] 
Merge pull request #412 from adamchainz/readthedocs.io

Convert readthedocs link for their .org -> .io migration for hosted projects

9 years agoConvert readthedocs link for their .org -> .io migration for hosted projects 412/head
Adam Chainz [Sun, 29 May 2016 13:50:32 +0000 (14:50 +0100)] 
Convert readthedocs link for their .org -> .io migration for hosted projects

As per their email ‘Changes to project subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.

9 years agoMerge pull request #411 from etanol/proper-localtime-test
Aarni Koskela [Sun, 29 May 2016 10:08:26 +0000 (13:08 +0300)] 
Merge pull request #411 from etanol/proper-localtime-test

Fix the way a local time is constructed in tests

9 years agoFix the way local time is constructed in tests 411/head
Isaac Jurado [Sun, 29 May 2016 08:50:42 +0000 (10:50 +0200)] 
Fix the way local time is constructed in tests

In summer time zones, the test for "get_timezone_name" failed because the
construct used to obtain a local time did not deal properly with DST offsets.
As recommended by pytz, it is better to convert to local time from UTC.

9 years agoAdd a documentation section about number rounding 410/head
Isaac Jurado [Sun, 29 May 2016 08:26:07 +0000 (10:26 +0200)] 
Add a documentation section about number rounding

Explain how the user can control the behaviour of number rounding when
formatting numeric values or currencies.

9 years agoSimplify the selection of decimal implementation
Isaac Jurado [Sun, 29 May 2016 07:40:24 +0000 (09:40 +0200)] 
Simplify the selection of decimal implementation

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.

9 years agoRemove explicit enforcement from Decimal rounding
Isaac Jurado [Sat, 28 May 2016 21:00:24 +0000 (23:00 +0200)] 
Remove explicit enforcement from Decimal rounding

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

9 years agoMerge pull request #406 from zyegfryed/patch-1
Aarni Koskela [Sun, 22 May 2016 11:27:14 +0000 (14:27 +0300)] 
Merge pull request #406 from zyegfryed/patch-1

Typo

9 years agoTypo 406/head
Sébastien Fievet [Fri, 20 May 2016 12:58:24 +0000 (14:58 +0200)] 
Typo

9 years agoMerge pull request #399 from asottile/default_source_encoding
Aarni Koskela [Thu, 28 Apr 2016 17:09:27 +0000 (20:09 +0300)] 
Merge pull request #399 from asottile/default_source_encoding

Default to UTF-8 source encoding (PEP8: python3)

9 years agoDefault to UTF-8 source encoding (PEP8: python3) 399/head
Anthony Sottile [Wed, 27 Apr 2016 19:26:29 +0000 (12:26 -0700)] 
Default to UTF-8 source encoding (PEP8: python3)

9 years agoMerge pull request #392 from karloskar/feature/evolve-jsx-extraction
Aarni Koskela [Sat, 23 Apr 2016 21:16:18 +0000 (00:16 +0300)] 
Merge pull request #392 from karloskar/feature/evolve-jsx-extraction

jslexer.py: Change jsx_tag regex

9 years agoMerge pull request #389 from akx/fix-388
Aarni Koskela [Tue, 19 Apr 2016 19:05:15 +0000 (22:05 +0300)] 
Merge pull request #389 from akx/fix-388

Re-harmonize argument parsing between distutils and optparse CLIs

9 years agoTeach the optparse CLI about the parameter aliases it had forgotten in #311 389/head
Aarni Koskela [Sun, 17 Apr 2016 15:20:10 +0000 (18:20 +0300)] 
Teach the optparse CLI about the parameter aliases it had forgotten in #311

Vaguely refs #390

9 years agoRemind the optparse CLI about `extract -s` (a shorthand for `--strip-comments`)
Aarni Koskela [Sun, 17 Apr 2016 15:06:03 +0000 (18:06 +0300)] 
Remind the optparse CLI about `extract -s` (a shorthand for `--strip-comments`)

Fixes #390

9 years agoextract: don't die badly when no input paths are specified in optparse mode
Aarni Koskela [Sun, 17 Apr 2016 15:16:01 +0000 (18:16 +0300)] 
extract: don't die badly when no input paths are specified in optparse mode

9 years agofrontend: don't use unicode-variant %r for logging
Aarni Koskela [Thu, 14 Apr 2016 08:41:27 +0000 (11:41 +0300)] 
frontend: don't use unicode-variant %r for logging

Now that arguments are more likely to be unicode than bytestrings, %r is not a good idea between Python versions.

9 years agoHarmonize extraction keyword parsing between distutils and standalone CLI
Aarni Koskela [Thu, 14 Apr 2016 08:23:01 +0000 (11:23 +0300)] 
Harmonize extraction keyword parsing between distutils and standalone CLI

Fixes #388

Refs #384

Refs #311

9 years agoMerge pull request #393 from jtwang/391_jtwang_revert_lxml_optimization
Aarni Koskela [Tue, 19 Apr 2016 16:07:54 +0000 (19:07 +0300)] 
Merge pull request #393 from jtwang/391_jtwang_revert_lxml_optimization

Revert "import_cldr: if lxml is installed, use it"

9 years agoRevert "import_cldr: if lxml is installed, use it" 393/head
Jennifer Wang [Mon, 18 Apr 2016 22:30:54 +0000 (15:30 -0700)] 
Revert "import_cldr: if lxml is installed, use it"

This reverts commit 9b5c7f3678167f03ec39fd1c25f98d0e0d41621f.

9 years agojslexer.py: Change jsx_tag regex 392/head
KO. Mattsson [Mon, 18 Apr 2016 16:33:11 +0000 (18:33 +0200)] 
jslexer.py: Change jsx_tag regex

A less greedy jsx_tag regex. Can handle translatable strings both as
children or as props to a component.

9 years agoMerge pull request #386 from akx/fix-384
Aarni Koskela [Tue, 12 Apr 2016 06:31:33 +0000 (09:31 +0300)] 
Merge pull request #386 from akx/fix-384

Fix CLI command usage regressions

9 years agoTest that `update` actually accepts those boolean parameters 386/head
Aarni Koskela [Mon, 11 Apr 2016 10:45:59 +0000 (13:45 +0300)] 
Test that `update` actually accepts those boolean parameters

9 years agoRefactor out `configure_cli_command`
Aarni Koskela [Mon, 11 Apr 2016 10:44:39 +0000 (13:44 +0300)] 
Refactor out `configure_cli_command`

9 years agofix typos in messages frontend
Sébastien Diemer [Fri, 8 Apr 2016 14:46:48 +0000 (16:46 +0200)] 
fix typos in messages frontend

The 'no-wrap', 'ignore-obsolete', 'no-fuzzy-matching', 'previous' and
'update-header-comment' were not correctly parsed in the update_catalog
command.

9 years agoMake the CLI extraction command support multiple `-k`s again
Aarni Koskela [Mon, 11 Apr 2016 10:35:49 +0000 (13:35 +0300)] 
Make the CLI extraction command support multiple `-k`s again

Fixes #384 (https://github.com/python-babel/babel/issues/384)

Thanks to @ajaeger for the bug report.

9 years agoMake the command-line frontend easier to test
Aarni Koskela [Mon, 11 Apr 2016 10:28:37 +0000 (13:28 +0300)] 
Make the command-line frontend easier to test

9 years agoMerge pull request #382 from python-babel/sils/ci
Aarni Koskela [Fri, 8 Apr 2016 09:10:20 +0000 (12:10 +0300)] 
Merge pull request #382 from python-babel/sils/ci

Sils/ci

9 years agoREADME: Rename to rst 382/head
Lasse Schuirmann [Fri, 8 Apr 2016 08:07:44 +0000 (10:07 +0200)] 
README: Rename to rst

Converted with pandoc. This way it should be shown on PyPI correctly
too.

Fixes https://github.com/python-babel/babel/issues/376

9 years agotravis: Don't build on mac for all versions
Lasse Schuirmann [Fri, 8 Apr 2016 08:05:21 +0000 (10:05 +0200)] 
travis: Don't build on mac for all versions

That's pretty redundant.

Fixes https://github.com/python-babel/babel/issues/377

9 years agoAppVeyor: Remove unneeded builds
Lasse Schuirmann [Fri, 8 Apr 2016 08:03:27 +0000 (10:03 +0200)] 
AppVeyor: Remove unneeded builds

Related to https://github.com/python-babel/babel/issues/377

9 years agoMerge pull request #379 from akx/fix-378
Aarni Koskela [Fri, 8 Apr 2016 07:44:43 +0000 (10:44 +0300)] 
Merge pull request #379 from akx/fix-378

Fix day period formatting (#378)

9 years agoAdd smoke tests for basic operations 379/head
Aarni Koskela [Fri, 8 Apr 2016 05:34:31 +0000 (08:34 +0300)] 
Add smoke tests for basic operations

Refs #378

9 years agodates: Use format context and fallback through widths
Aarni Koskela [Fri, 8 Apr 2016 05:14:06 +0000 (08:14 +0300)] 
dates: Use format context and fallback through widths

`zh_Hant` locale data does not have names for the
`am` and `pm` day periods in the `format`/`abbreviated` context,
so fallback logic is added to deal with that eventuality.

Fixes #378

9 years agoMerge pull request #374 from python-babel/sils/release
Aarni Koskela [Fri, 8 Apr 2016 05:12:51 +0000 (08:12 +0300)] 
Merge pull request #374 from python-babel/sils/release

Release 2.3

9 years agoVERSION: Bump to development 374/head
Lasse Schuirmann [Thu, 7 Apr 2016 20:20:01 +0000 (22:20 +0200)] 
VERSION: Bump to development

9 years agoVERSION: Bump to 2.3
Lasse Schuirmann [Thu, 7 Apr 2016 20:14:11 +0000 (22:14 +0200)] 
VERSION: Bump to 2.3

9 years agoUpdate Changelog
Lasse Schuirmann [Thu, 7 Apr 2016 20:07:09 +0000 (22:07 +0200)] 
Update Changelog

9 years agoMerge pull request #369 from akx/unit_format
Aarni Koskela [Thu, 7 Apr 2016 19:28:08 +0000 (22:28 +0300)] 
Merge pull request #369 from akx/unit_format

Add unit and compound unit formatting

9 years agoMake compound unit formatting adhere more closely to the TR-35 spec 369/head
Aarni Koskela [Wed, 6 Apr 2016 13:59:37 +0000 (16:59 +0300)] 
Make compound unit formatting adhere more closely to the TR-35 spec

9 years agoAdd new unit formatting APIs:
Aarni Koskela [Wed, 30 Mar 2016 17:03:53 +0000 (20:03 +0300)] 
Add new unit formatting APIs:

* babel.units.format_unit
* babel.units.format_compound_unit
* babel.units.get_unit_name

9 years agoImport and expose more measurement unit related information
Aarni Koskela [Wed, 30 Mar 2016 16:15:59 +0000 (19:15 +0300)] 
Import and expose more measurement unit related information

9 years agoCLDR: import unit_patterns as nested dicts
Aarni Koskela [Wed, 30 Mar 2016 16:41:52 +0000 (19:41 +0300)] 
CLDR: import unit_patterns as nested dicts

(Instead of colon-separated flat dicts.)

This should not be a breaking change, unless someone has used the private
API `l._data["unit_patterns"]`.

9 years agoMerge pull request #368 from akx/char-order-and-measurement-systems
Aarni Koskela [Tue, 5 Apr 2016 20:52:55 +0000 (23:52 +0300)] 
Merge pull request #368 from akx/char-order-and-measurement-systems

Character order and measurement systems

9 years agoplurals: correct plural forms for cs and sk locales 373/head
Yuriy Shatrov [Tue, 5 Apr 2016 08:24:51 +0000 (11:24 +0300)] 
plurals: correct plural forms for cs and sk locales

Change plural forms for Czech (cs) and Slovak (sk) locales from Plural rule #_7_ to Plural rule #_8_ according to https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals .

Fixes https://github.com/python-babel/babel/issues/372

9 years agoEmbetter measurement system parsing: 368/head
Aarni Koskela [Wed, 30 Mar 2016 14:40:14 +0000 (17:40 +0300)] 
Embetter measurement system parsing:

* Refactor into a separate function
* Use `_import_type_text` when importing measurement systems

9 years agoExpose measurement system names.
alexbodn@gmail.com [Sat, 19 Mar 2016 12:46:28 +0000 (14:46 +0200)] 
Expose measurement system names.

9 years agoRename `Locale.direction` to `Locale.text_direction`.
Aarni Koskela [Wed, 30 Mar 2016 14:32:27 +0000 (17:32 +0300)] 
Rename `Locale.direction` to `Locale.text_direction`.

9 years agoMove character order parsing into a function of its own
Aarni Koskela [Wed, 30 Mar 2016 14:53:09 +0000 (17:53 +0300)] 
Move character order parsing into a function of its own

9 years agoAdd support for character order information
alexbodn@gmail.com [Sun, 13 Mar 2016 11:28:20 +0000 (13:28 +0200)] 
Add support for character order information

9 years agoMerge pull request #332 from akx/improved-js
Aarni Koskela [Wed, 9 Mar 2016 19:30:05 +0000 (21:30 +0200)] 
Merge pull request #332 from akx/improved-js

Improved JavaScript extraction

9 years agoMerge pull request #349 from akx/import-day-periods
Aarni Koskela [Wed, 9 Mar 2016 07:36:31 +0000 (09:36 +0200)] 
Merge pull request #349 from akx/import-day-periods

Day period API

9 years agoMerge pull request #366 from lukas-b/lukas_add_pre_commit_hooks_and_apply_fixes
Aarni Koskela [Wed, 9 Mar 2016 06:54:23 +0000 (08:54 +0200)] 
Merge pull request #366 from lukas-b/lukas_add_pre_commit_hooks_and_apply_fixes

Add `flake8` pre-commit hook and apply fixes

9 years agoAdd flake8 pre-commit hook and apply fixes. 366/head
Lukas Balaga [Tue, 8 Mar 2016 05:15:37 +0000 (21:15 -0800)] 
Add flake8 pre-commit hook and apply fixes.

9 years agoMerge pull request #364 from saurabhiiit/master
Aarni Koskela [Sun, 6 Mar 2016 18:46:51 +0000 (20:46 +0200)] 
Merge pull request #364 from saurabhiiit/master

docs/numbers.rst: Correct line length

9 years agodocs/numbers.rst: Correct line length 364/head
saurabhiiit [Sun, 6 Mar 2016 18:34:07 +0000 (00:04 +0530)] 
docs/numbers.rst: Correct line length

Fixes https://github.com/python-babel/babel/issues/363

9 years agodates: Add day period API 349/head
Aarni Koskela [Sun, 14 Feb 2016 18:56:02 +0000 (20:56 +0200)] 
dates: Add day period API

9 years agodates: refactor `_get_time()` into a helper
Aarni Koskela [Sun, 14 Feb 2016 18:04:45 +0000 (20:04 +0200)] 
dates: refactor `_get_time()` into a helper

9 years agoUse `day_periods` for `get_period_names`
Aarni Koskela [Sun, 14 Feb 2016 17:37:40 +0000 (19:37 +0200)] 
Use `day_periods` for `get_period_names`

9 years agoimport_cldr: improve parsing of day periods
Aarni Koskela [Sun, 14 Feb 2016 17:19:51 +0000 (19:19 +0200)] 
import_cldr: improve parsing of day periods

* Day period rules are now imported
* All periods (not just a single context/width) are imported

9 years agoMerge pull request #355 from lukas-b/lukas_add_pre_commit_and_apply_fixes
Aarni Koskela [Thu, 3 Mar 2016 20:14:25 +0000 (22:14 +0200)] 
Merge pull request #355 from lukas-b/lukas_add_pre_commit_and_apply_fixes

Add pre-commit and apply fixes

9 years agoMerge pull request #347 from sachinpali146/master
Aarni Koskela [Thu, 3 Mar 2016 19:00:41 +0000 (21:00 +0200)] 
Merge pull request #347 from sachinpali146/master

Additional Support for Date Time pattern formats

9 years agoMerge pull request #361 from kdeldycke/mixed_cased_locale_id
Aarni Koskela [Thu, 3 Mar 2016 18:13:42 +0000 (20:13 +0200)] 
Merge pull request #361 from kdeldycke/mixed_cased_locale_id

Parsing of mixed-cased locale ID.

9 years agoOnly attempt a normalization search if filesystem lookup fails. 361/head
Kevin Deldycke [Thu, 3 Mar 2016 17:17:44 +0000 (18:17 +0100)] 
Only attempt a normalization search if filesystem lookup fails.

9 years agoExplicit normalize_locale() documentation.
Kevin Deldycke [Thu, 3 Mar 2016 17:09:05 +0000 (18:09 +0100)] 
Explicit normalize_locale() documentation.

9 years agoMerge pull request #362 from saurabhiiit/master
Lasse Schuirmann [Thu, 3 Mar 2016 10:40:23 +0000 (11:40 +0100)] 
Merge pull request #362 from saurabhiiit/master

license.rst: Fix minor typo

9 years agolicense.rst: Fix typo in General License Defination 362/head
saurabhiiit [Wed, 2 Mar 2016 18:30:03 +0000 (00:00 +0530)] 
license.rst: Fix typo in General License Defination

9 years agoForce normalization of locale ID.
Kevin Deldycke [Wed, 2 Mar 2016 16:04:13 +0000 (17:04 +0100)] 
Force normalization of locale ID.