Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-12 15:42:57 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-03-27 15:33:44 +0300
commit156419af80347607370698ff71422533ef8f590e (patch)
tree451a281ef8cc3f43c1179722f83f0400fe3e145d
parentb9684ee0d3514429e6668cbffa924e68abfff4f0 (diff)
Rename the variable aswell
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--core/js/l10n.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/js/l10n.js b/core/js/l10n.js
index 426fc706a56..5b1fae798ee 100644
--- a/core/js/l10n.js
+++ b/core/js/l10n.js
@@ -167,18 +167,18 @@ OC.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('_'));
}
/*
@@ -186,7 +186,7 @@ OC.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':