Rename the variable aswell

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-03-12 13:42:57 +01:00
parent c9026fc75c
commit a0792137cf
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -173,18 +173,18 @@ const L10n = {
* @private * @private
*/ */
_getPlural: function(number) { _getPlural: function(number) {
var locale = OC.getLanguage(); var language = OC.getLanguage();
if ('pt_BR' === locale) { if ('pt_BR' === language) {
// temporary set a locale for brazilian // temporary set a locale for brazilian
locale = 'xbr'; language = 'xbr';
} }
if (typeof locale === 'undefined') { if (typeof language === 'undefined') {
return (1 == number) ? 0 : 1; return (1 == number) ? 0 : 1;
} }
if (locale.length > 3) { if (language.length > 3) {
locale = locale.substring(0, locale.lastIndexOf('_')); 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). * 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) * Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
*/ */
switch (locale) { switch (language) {
case 'az': case 'az':
case 'bo': case 'bo':
case 'dz': case 'dz':