mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Fix openvk::tr()
This commit is contained in:
parent
9dd55c4453
commit
6fd283cc38
1 changed files with 7 additions and 1 deletions
|
@ -80,7 +80,13 @@ function tr(string $stringId, ...$variables): string
|
|||
}
|
||||
|
||||
$newOutput = $localizer->_($numberedStringId, $lang);
|
||||
$output = $newOutput === "@$numberedStringId" ? $output : $newOutput;
|
||||
if($newOutput === "@$numberedStringId") {
|
||||
$newOutput = $localizer->_($stringId . "_other", $lang);
|
||||
if($newOutput === ("@" . $stringId . "_other"))
|
||||
$newOutput = $output;
|
||||
}
|
||||
|
||||
$output = $newOutput;
|
||||
}
|
||||
|
||||
for($i = 0; $i < sizeof($variables); $i++)
|
||||
|
|
Loading…
Reference in a new issue