Fix copy and paste errors in l10n.php
This commit is contained in:
parent
9673a563b5
commit
eee2c369d9
|
@ -320,7 +320,7 @@ class OC_L10N{
|
||||||
*
|
*
|
||||||
* returned function accepts the argument $n
|
* returned function accepts the argument $n
|
||||||
*/
|
*/
|
||||||
public function getPluralFormString() {
|
public function getPluralFormFunction() {
|
||||||
$this->init();
|
$this->init();
|
||||||
if(is_null($this->plural_form_function)) {
|
if(is_null($this->plural_form_function)) {
|
||||||
$this->plural_form_function = createPluralFormFunction($this->plural_form_string);
|
$this->plural_form_function = createPluralFormFunction($this->plural_form_string);
|
||||||
|
|
|
@ -23,7 +23,7 @@ class OC_L10N_String{
|
||||||
$text = $this->text;
|
$text = $this->text;
|
||||||
if(array_key_exists($this->text, $translations)) {
|
if(array_key_exists($this->text, $translations)) {
|
||||||
if(is_array($translations[$this->text])) {
|
if(is_array($translations[$this->text])) {
|
||||||
$id = $l10n->getPluralFormFunction()( $count );
|
$id = $l10n->getPluralFormFunction()($count);
|
||||||
$text = $translations[$this->text][$id];
|
$text = $translations[$this->text][$id];
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in New Issue