mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
amogus fix
should work now with weblate xddd
This commit is contained in:
parent
55ec291650
commit
d09e647d1d
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ class User extends RowModel
|
||||||
$name = ($this->isDeleted() && !$this->isDeactivated() ? "DELETED" : mb_convert_case($this->getRecord()->first_name, MB_CASE_TITLE));
|
$name = ($this->isDeleted() && !$this->isDeactivated() ? "DELETED" : mb_convert_case($this->getRecord()->first_name, MB_CASE_TITLE));
|
||||||
$tsn = tr("__transNames");
|
$tsn = tr("__transNames");
|
||||||
if(( $tsn !== "@__transNames" && !empty($tsn) ) && !$pristine)
|
if(( $tsn !== "@__transNames" && !empty($tsn) ) && !$pristine)
|
||||||
return mb_convert_case(transliterator_transliterate($ts, $name), MB_CASE_TITLE);
|
return mb_convert_case(transliterator_transliterate($tsn, $name), MB_CASE_TITLE);
|
||||||
else
|
else
|
||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ class User extends RowModel
|
||||||
$name = ($this->isDeleted() && !$this->isDeactivated() ? "DELETED" : mb_convert_case($this->getRecord()->last_name, MB_CASE_TITLE));
|
$name = ($this->isDeleted() && !$this->isDeactivated() ? "DELETED" : mb_convert_case($this->getRecord()->last_name, MB_CASE_TITLE));
|
||||||
$tsn = tr("__transNames");
|
$tsn = tr("__transNames");
|
||||||
if(( $tsn !== "@__transNames" && !empty($tsn) ) && !$pristine)
|
if(( $tsn !== "@__transNames" && !empty($tsn) ) && !$pristine)
|
||||||
return mb_convert_case(transliterator_transliterate($ts, $name), MB_CASE_TITLE);
|
return mb_convert_case(transliterator_transliterate($tsn, $name), MB_CASE_TITLE);
|
||||||
else
|
else
|
||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue