summaryrefslogtreecommitdiffstats
path: root/lib/l10n
diff options
context:
space:
mode:
authorJakob Sack <mail@jakobsack.de>2013-08-01 21:18:18 +0200
committerJakob Sack <mail@jakobsack.de>2013-08-01 21:25:14 +0200
commit9673a563b567ee6f580c157a901f038f38f0b5a2 (patch)
tree699c20139788dd5f2528e87d2d26c81be99bdc12 /lib/l10n
parent495e44e76c15d43eb847dd73317bdb9d6926ff31 (diff)
downloadnextcloud-server-9673a563b567ee6f580c157a901f038f38f0b5a2.tar.gz
nextcloud-server-9673a563b567ee6f580c157a901f038f38f0b5a2.zip
Create plural functions on the fly
Diffstat (limited to 'lib/l10n')
-rw-r--r--lib/l10n/string.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n/string.php b/lib/l10n/string.php
index 5b9dbaee8a2..8d83f1f61fb 100644
--- a/lib/l10n/string.php
+++ b/lib/l10n/string.php
@@ -23,7 +23,7 @@ class OC_L10N_String{
$text = $this->text;
if(array_key_exists($this->text, $translations)) {
if(is_array($translations[$this->text])) {
- $id = $localizations["selectplural"]( $count );
+ $id = $l10n->getPluralFormFunction()( $count );
$text = $translations[$this->text][$id];
}
else{