diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-07-08 21:03:09 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-07-23 09:33:32 +0300 |
commit | 81de66ffafb120a9f8a020cc1dbc3ef0f2ae94ad (patch) | |
tree | 4134ba33e136a8766f1d740eca004e507776f46d /core/src | |
parent | 1fa74fce9eaddb26bed224a4a3bb83185e98c4a4 (diff) |
Fix parsing of language code
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/l10n.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js index 6495f514c7d..ccba89fae3d 100644 --- a/core/src/OC/l10n.js +++ b/core/src/OC/l10n.js @@ -167,7 +167,7 @@ const L10n = { */ _getPlural: function(number) { let language = OC.getLanguage() - if (language === 'pt_BR') { + if (language === 'pt-BR') { // temporary set a locale for brazilian language = 'xbr' } @@ -177,7 +177,7 @@ const L10n = { } if (language.length > 3) { - language = language.substring(0, language.lastIndexOf('_')) + language = language.substring(0, language.lastIndexOf('-')) } /* |