Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parent locale exceptions #117

Closed
wants to merge 3 commits into from
Closed

Add support for parent locale exceptions #117

wants to merge 3 commits into from

Conversation

etanol
Copy link
Contributor

@etanol etanol commented Nov 5, 2014

The method to generate the name for the parent locale has some exceptions. Notably the latin america regions (es_MX, es_CO, es_AR, etc...) which should inherit from es_419 instead of es. Fortunately, these exceptions are described in the element of the supplemental data document.

This pull request tries to implement the proper locale inheritance for such cases.

There is an ugly hack because one of the commits introduces a circular dependency between babel.core and babel.locale.

the <parentLocales> element contains the locale inheritance exceptions
when deriving the parent locale from the given name, look in the parent
exceptions first (e.g. the parent of "es_MX" is "es_419", not "es")
According to the colombian locales, the currency symbol is placed at the
beginning, like in english locales.  This needs to be changed because "es_CO"
now inherits the definitions from "es_419", thus conforming to the standard.
@etanol
Copy link
Contributor Author

etanol commented Nov 5, 2014

@etanol
Copy link
Contributor Author

etanol commented Dec 5, 2014

This fixes issue #97 too

@sils sils added the duplicate label Jul 31, 2015
@sils
Copy link
Member

sils commented Jul 31, 2015

@etanol reopen if you have a special reason for keeping this one alive.

@etanol
Copy link
Contributor Author

etanol commented Aug 3, 2015

Superseded by #180 since GitHub's UI does not allow to change the base/origin branch.

@eduardolujan
Copy link

Hi @etanol about the problem with es_MX what is the stable version for (#117) that solves that problem.

Best regards,
Eduardo

@etanol
Copy link
Contributor Author

etanol commented Mar 10, 2016

2.1.1 onwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants