diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-15 01:19:39 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-15 01:19:43 +0100 |
commit | e58d5721a4623841d65c978555bec53ceb16ed3e (patch) | |
tree | 5cca174f54afc27bacc5a33af8aa64607d45178b /core/src | |
parent | a0792137cf72c145fb17adca5169fe993d175442 (diff) | |
download | nextcloud-server-e58d5721a4623841d65c978555bec53ceb16ed3e.tar.gz nextcloud-server-e58d5721a4623841d65c978555bec53ceb16ed3e.zip |
Fix behaviour of plural default rule
* undefined and empty string should trigger the default plural form
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/l10n.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/OC/l10n.js b/core/src/OC/l10n.js index 5dc1b62e222..73c239569a0 100644 --- a/core/src/OC/l10n.js +++ b/core/src/OC/l10n.js @@ -179,7 +179,7 @@ const L10n = { language = 'xbr'; } - if (typeof language === 'undefined') { + if (typeof language === 'undefined' || language === '') { return (1 == number) ? 0 : 1; } |