Merge branch 'master' of github.com:openvk/openvk

This commit is contained in:
veselcraft 2022-05-31 17:40:04 +03:00
commit b731cb4c87
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 3 additions and 3 deletions

View file

@ -149,7 +149,7 @@ class User extends RowModel
{
$name = $this->getRecord()->deleted ? "DELETED" : mb_convert_case($this->getRecord()->first_name, MB_CASE_TITLE);
if((($ts = tr("__transNames")) !== "@__transNames") && !$pristine)
return transliterator_transliterate($ts, $name);
return mb_convert_case(transliterator_transliterate($ts, $name), MB_CASE_TITLE);
else
return $name;
}
@ -158,7 +158,7 @@ class User extends RowModel
{
$name = $this->getRecord()->deleted ? "DELETED" : mb_convert_case($this->getRecord()->last_name, MB_CASE_TITLE);
if((($ts = tr("__transNames")) !== "@__transNames") && !$pristine)
return transliterator_transliterate($ts, $name);
return mb_convert_case(transliterator_transliterate($ts, $name), MB_CASE_TITLE);
else
return $name;
}

View file

@ -1,5 +1,5 @@
"__locale" = "en_US.UTF-8;Eng";
"__transNames" = "Latin";
"__transNames" = "Russian-Latin/BGN; Any-Latin";
/* Check for https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html */