summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-11 15:14:57 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-03-27 13:33:44 +0100
commitb9684ee0d3514429e6668cbffa924e68abfff4f0 (patch)
tree3207c513b6ef654b6bb155ea69540683957c68ec /core
parentc1fa96596a571d08f0ecf908648e87e1501dd253 (diff)
downloadnextcloud-server-b9684ee0d3514429e6668cbffa924e68abfff4f0.tar.gz
nextcloud-server-b9684ee0d3514429e6668cbffa924e68abfff4f0.zip
Fix plural rule detection for languages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/js/l10n.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/l10n.js b/core/js/l10n.js
index 6027d42dca0..426fc706a56 100644
--- a/core/js/l10n.js
+++ b/core/js/l10n.js
@@ -167,7 +167,7 @@ OC.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';