summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-11 15:14:57 +0100
committerJoas Schilling <coding@schilljs.com>2019-03-11 15:19:23 +0100
commitc9026fc75cba6c48ee7978174a68772c243943fa (patch)
tree418c444f507939e4c9ed2b6d4c2958ad5d19c8cc /core/src
parent1832537571a0b60f81fa31fd992f97507d84ff33 (diff)
downloadnextcloud-server-c9026fc75cba6c48ee7978174a68772c243943fa.tar.gz
nextcloud-server-c9026fc75cba6c48ee7978174a68772c243943fa.zip
Fix plural rule detection for languages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/l10n.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js
index ac5a7d93875..ee19a366a00 100644
--- a/core/src/OC/l10n.js
+++ b/core/src/OC/l10n.js
@@ -173,7 +173,7 @@ const L10n = {
* @private
*/
_getPlural: function(number) {
- var locale = OC.getLocale();
+ var locale = OC.getLanguage();
if ('pt_BR' === locale) {
// temporary set a locale for brazilian
locale = 'xbr';