Skip to content
Snippets Groups Projects
Commit eee2c369 authored by Jakob Sack's avatar Jakob Sack
Browse files

Fix copy and paste errors in l10n.php

parent 9673a563
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment