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

Replace dash with underscore for applying proper languages #172

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

juliushaertl
Copy link
Contributor

  • Set Nextcloud language to de_DE or any other language that uses a _ separator in the identifier.
  • Use @nextcloud/vue which comes with translations that are depending on the result of getLanguage https://github.com/nextcloud/nextcloud-l10n/blob/master/lib/index.ts#L31

OC.getLanguage just returns the lang value of the <html> element however - are used there instead of _ so the language cannot be found in the provided pot files of @nextcloud/vue:

Before:

  • Strings don't get translated

After:

  • String get properly translated

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@ChristophWurst ChristophWurst merged commit 42947ad into master Sep 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the bugfix/noid/use-proper-languagecode branch September 7, 2020 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants