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
*/
_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':