summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-15 01:19:39 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-15 01:19:43 +0100
commite58d5721a4623841d65c978555bec53ceb16ed3e (patch)
tree5cca174f54afc27bacc5a33af8aa64607d45178b /core/src
parenta0792137cf72c145fb17adca5169fe993d175442 (diff)
downloadnextcloud-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.js2
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;
}