Fix parsing of language code

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2020-07-08 20:03:09 +02:00
parent c354f6d2eb
commit 5ba9825452
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,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'
}
@ -178,7 +178,7 @@ const L10n = {
}
if (language.length > 3) {
language = language.substring(0, language.lastIndexOf('_'))
language = language.substring(0, language.lastIndexOf('-'))
}
/*