From f451f374cad06ac749d30b5ad8284436ee1a206a Mon Sep 17 00:00:00 2001 From: irigm Date: Tue, 18 Aug 2020 09:38:09 +0600 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=80=D0=B5=D0=B7=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata/dbms/records.php | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/metadata/dbms/records.php b/metadata/dbms/records.php index c913ef5..ac1d762 100644 --- a/metadata/dbms/records.php +++ b/metadata/dbms/records.php @@ -152,39 +152,6 @@ } } - //Функция для перевода текста без применения GetText - /* - закоментил так как есть в tools.php - function trt($text) { - global $db,$lng,$Schema; - - $language_id=1; - if($lng=='kz') $language_id=2; - if($lng=='en') $language_id=3; - - $result=''; - $sql='select translation from '.$Schema.'_translations where del=false and language_id='.$language_id.' and identifier=\''.$text.'\';'; - $res = NULL; - try - { - $res = $db->query($sql); - }catch (Exception $e) - { - echo $e->getMessage(); - } - if($res!=NULL && $res->rowCount()>0) - { - while ($row = $res->fetch(PDO::FETCH_NUM)) - { - $result=$row[0]; - } - }else - { - $result=str_replace("_", " ", $text); - } - return $result; - }*/ - //Перевод для строки в которой встречаются подстроки вида: trt('') function parseGT($text) { @@ -204,7 +171,7 @@ if($pos2 !== false) { $result.=substr($text, $cut, $pos1 - $cut ); - $result.=__(substr($text, $pos1+3, $pos2 - $pos1 - 3 )); + //$result.=__(substr($text, $pos1+3, $pos2 - $pos1 - 3 )); $toTranslate=substr($text, $pos1+$pLen+1, $pos2 - $pos1 - $pLen-1 ); $result.=trt($toTranslate); $cut=$pos2+2;