]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix copy and paste errors in l10n.php
authorJakob Sack <mail@jakobsack.de>
Thu, 1 Aug 2013 19:36:33 +0000 (21:36 +0200)
committerJakob Sack <mail@jakobsack.de>
Thu, 1 Aug 2013 19:36:33 +0000 (21:36 +0200)
lib/l10n.php
lib/l10n/string.php

index 208fa930c99bd419d5c002b699af23024735c9f7..ab2de5d9f19af814ac985be1cd7ccef42f0eced5 100644 (file)
@@ -320,7 +320,7 @@ class OC_L10N{
         *
         * returned function accepts the argument $n
         */
-       public function getPluralFormString() {
+       public function getPluralFormFunction() {
                $this->init();
                if(is_null($this->plural_form_function)) {
                        $this->plural_form_function = createPluralFormFunction($this->plural_form_string);
index 8d83f1f61fb4eb5b354f550f00ad40749e8748ad..c72b744a7ec680fdd6919910073d24dcb82bc8bc 100644 (file)
@@ -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 = $l10n->getPluralFormFunction()( $count );
+                               $id = $l10n->getPluralFormFunction()($count);
                                $text = $translations[$this->text][$id];
                        }
                        else{