TRT перевод

This commit is contained in:
2020-08-17 11:27:33 +06:00
parent c2e133debe
commit 347b0b969e
7 changed files with 117 additions and 109 deletions

View File

@ -153,7 +153,7 @@
}
//Функция для перевода текста без применения GetText
function __($text)
function trt($text)
{
global $db,$lng,$Schema;
@ -202,7 +202,7 @@
if($pos2 !== false)
{
$result.=substr($text, $cut, $pos1 - $cut );
$result.=__(substr($text, $pos1+3, $pos2 - $pos1 - 3 ));
$result.=trt(substr($text, $pos1+3, $pos2 - $pos1 - 3 ));
$cut=$pos2+2;
$from = $pos2 + 2;
}