Fix parsing of language code
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
1822eec68f
commit
45df26ccf1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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('-'))
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue