summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-12 13:42:57 +0100
committerJoas Schilling <coding@schilljs.com>2019-03-12 13:48:05 +0100
commita0792137cf72c145fb17adca5169fe993d175442 (patch)
treed51c81bdd4841b7211634459d9c4a0a36ea55b01 /core/src
parentc9026fc75cba6c48ee7978174a68772c243943fa (diff)
downloadnextcloud-server-a0792137cf72c145fb17adca5169fe993d175442.tar.gz
nextcloud-server-a0792137cf72c145fb17adca5169fe993d175442.zip
Rename the variable aswell
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/l10n.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js
index ee19a366a00..5dc1b62e222 100644
--- a/core/src/OC/l10n.js
+++ b/core/src/OC/l10n.js
@@ -173,18 +173,18 @@ const L10n = {
* @private
*/
_getPlural: function(number) {
- var locale = OC.getLanguage();
- if ('pt_BR' === locale) {
+ var language = OC.getLanguage();
+ if ('pt_BR' === language) {
// temporary set a locale for brazilian
- locale = 'xbr';
+ language = 'xbr';
}
- if (typeof locale === 'undefined') {
+ if (typeof language === 'undefined') {
return (1 == number) ? 0 : 1;
}
- if (locale.length > 3) {
- locale = locale.substring(0, locale.lastIndexOf('_'));
+ if (language.length > 3) {
+ language = language.substring(0, language.lastIndexOf('_'));
}
/*
@@ -192,7 +192,7 @@ const L10n = {
* which is subject to the new BSD license (http://framework.zend.com/license/new-bsd).
* Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
*/
- switch (locale) {
+ switch (language) {
case 'az':
case 'bo':
case 'dz':