mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Fix parsing of language code
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
1fa74fce9e
commit
81de66ffaf
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue