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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix locale folder names #2963

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Fix locale folder names #2963

merged 1 commit into from
Oct 17, 2018

Conversation

voodoorai2000
Copy link
Member

@voodoorai2000 voodoorai2000 commented Oct 10, 2018

References

PR: #2961

Objectives

Make translations findable by rails

What

Remove locale extended names from conflicting locales:
"de-DE" -> "de" https://crowdin.com/project/consul/de
"fa-IR" -> "fa" https://crowdin.com/project/consul/fa
"pl-PL" -> "pl" https://crowdin.com/project/consul/pl
"sq-AL" -> "sq" https://crowdin.com/project/consul/sq
"sv-SE" -> "sv" https://crowdin.com/project/consul/sv

Why

There seems to be some differences between the folder name and the locale name used in the files themselves.

For example: the folder was called "de-DE", for German, but the files used only the "de" key.

And thus translations where not being displayed.

Notes

Keep this PR in mind for the next Crowdin pull, let's hope folder and file locales are equal.

There are a couple of changes in this PR regarding language names, from an upcoming PR. No biggie 馃槍

@voodoorai2000 voodoorai2000 self-assigned this Oct 10, 2018
@voodoorai2000 voodoorai2000 changed the title Fix locale folder names [WIP] Fix locale folder names Oct 10, 2018
@voodoorai2000 voodoorai2000 changed the title [WIP] Fix locale folder names Fix locale folder names Oct 10, 2018
@voodoorai2000 voodoorai2000 changed the title Fix locale folder names [WIP] Fix locale folder names Oct 10, 2018
There seems to be some differences between the folder name and the locale name used in the files themselves.

For example: the folder might have been called "de-DE", for German, but the files use one "de"

And thus translations where not being displayed

Using the locale key in the files and modifying the folder name if neccesary, let's see what happens in the next Crowdin pull, might need to review more thoroughly why this is happening (maybe due to custom settings in Crowdin)
@voodoorai2000 voodoorai2000 changed the title [WIP] Fix locale folder names Fix locale folder names Oct 10, 2018
@voodoorai2000 voodoorai2000 added this to Review in Roadmap Oct 17, 2018
@voodoorai2000 voodoorai2000 merged commit 2f5fc5d into master Oct 17, 2018
@voodoorai2000 voodoorai2000 deleted the locale_names branch October 17, 2018 10:46
@voodoorai2000 voodoorai2000 moved this from Review to Release 0.17 in Roadmap Nov 5, 2018
voodoorai2000 added a commit that referenced this pull request Nov 6, 2018
Crowind in sending folders named `de-DE` eventhough the locale in those files is just `de`

We did a previous PR[1] trying to make this consistent

But Crowdin keeps sending[2] this inconsistent locale folder and locale codes. So removing the duplicate folders named `de`.

The locale is still being properly displayed as we are using the code `de` as the locale in application.rb

[1] #2963
[2] #3005
decabeza pushed a commit that referenced this pull request Jan 21, 2019
Crowind in sending folders named `de-DE` eventhough the locale in those files is just `de`

We did a previous PR[1] trying to make this consistent

But Crowdin keeps sending[2] this inconsistent locale folder and locale codes. So removing the duplicate folders named `de`.

The locale is still being properly displayed as we are using the code `de` as the locale in application.rb

[1] #2963
[2] #3005
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

2 participants