aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/l10n.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-11 11:33:40 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-11 12:42:21 +0100
commitcbad5c998b260040523ac8e6a2797591d0086938 (patch)
treef53b611ef5fad393979b5f3cc1c39eac3cd0e729 /lib/private/l10n.php
parentb33d8a3d60555de3e6e99a92eed3a303e55a3380 (diff)
downloadnextcloud-server-cbad5c998b260040523ac8e6a2797591d0086938.tar.gz
nextcloud-server-cbad5c998b260040523ac8e6a2797591d0086938.zip
Correctly fallback to english, if the plural case is not translated
Diffstat (limited to 'lib/private/l10n.php')
-rw-r--r--lib/private/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php
index 3c759a9e3a2..6c66bee3e79 100644
--- a/lib/private/l10n.php
+++ b/lib/private/l10n.php
@@ -238,7 +238,7 @@ class OC_L10N implements \OCP\IL10N {
$this->init();
$identifier = "_${text_singular}_::_${text_plural}_";
if( array_key_exists($identifier, $this->translations)) {
- return new OC_L10N_String( $this, $identifier, $parameters, $count );
+ return new OC_L10N_String($this, $identifier, $parameters, $count, array($text_singular, $text_plural));
}else{
if($count === 1) {
return new OC_L10N_String($this, $text_singular, $parameters, $count);