aboutsummaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/l10n.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js
index 8eeb978b6d9..2d4c96d61d0 100644
--- a/core/src/OC/l10n.js
+++ b/core/src/OC/l10n.js
@@ -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('-'))
}
/*