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

Moved Intl data translations to a new plugin #8017

Merged
merged 6 commits into from Jun 8, 2015
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented May 28, 2015

I decided to move the Intl-data translations away from core into a new plugin.
That makes it much easier to handle the translations and doesn't make it necessary to change to much in the translation logic.

I've also reverted some of the changes made before, as they weren't needed anymore.

The Intl-Plugin now contains the translations for:

  • countries
  • continents
  • languages
  • day names
  • month names

I maybe add some more stuff as cldr also contains translations for date fields like tomorrow, yesterday, day, week, month, year and so on

Note: Some language names have changed, but I think we should use those provided by CLDR, as they might be more correct than those we used.

@sgiehl sgiehl added the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label May 28, 2015
@sgiehl sgiehl force-pushed the i18n-data-extended branch 5 times, most recently from 98cd4f8 to bd85069 Compare June 5, 2015 21:53
@sgiehl sgiehl added Needs Review PRs that need a code review and removed Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. labels Jun 7, 2015
mattab pushed a commit that referenced this pull request Jun 8, 2015
Moved Intl data translations to a new plugin
@mattab mattab merged commit 7fec55f into master Jun 8, 2015
@mattab mattab added this to the 2.14.0 milestone Jun 8, 2015
@mattab mattab added the Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. label Jun 8, 2015
@mattab
Copy link
Member

mattab commented Jun 8, 2015

LGTM.

Especially nice that it can be improved later and add more strings from i18n project, to save time to our translators, and save them from translating incorrectly those important date/time strings.

@mnapoli mnapoli deleted the i18n-data-extended branch June 8, 2015 09:06
@mattab
Copy link
Member

mattab commented Jun 9, 2015

@sgiehl I noticed a small regression, in French for example, translation for "Today" becomes "aujourd'hui". Expected to get "Aujourd'hui" with ucfirst/ capital letter. Maybe the Intl data has the version with capital letter first? or maybe we can use ucfirst (although not sure if it will work for all languages)

ucfirst missing

@sgiehl
Copy link
Member Author

sgiehl commented Jun 9, 2015

No. There's no data with other cases. In Germany the first letters are uppercase. Not sure why they aren't for French. I could apply a ucfirst when importing those data...

@sgiehl sgiehl mentioned this pull request Jun 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants