Skip to content

Commit

Permalink
Fix behaviour of plural default rule
Browse files Browse the repository at this point in the history
* undefined and empty string should trigger the default plural form

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke authored and rullzer committed Mar 27, 2019
1 parent 156419a commit 7b23324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/js/l10n.js
Expand Up @@ -173,7 +173,7 @@ OC.L10N = {
language = 'xbr';
}

if (typeof language === 'undefined') {
if (typeof language === 'undefined' || language === '') {
return (1 == number) ? 0 : 1;
}

Expand Down

0 comments on commit 7b23324

Please sign in to comment.