Fix openvk::tr()

This commit is contained in:
Alma Armas 2020-08-04 14:28:02 +00:00
parent 9dd55c4453
commit 6fd283cc38

View file

@ -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++)