From f9b18aa62f30527880377d2c1dd391af4be04a6c Mon Sep 17 00:00:00 2001 From: kostikov Date: Fri, 20 Jul 2018 00:22:04 +0200 Subject: Update php2po.php --- util/php2po.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'util/php2po.php') diff --git a/util/php2po.php b/util/php2po.php index ff41e6d1e..352ed41f6 100644 --- a/util/php2po.php +++ b/util/php2po.php @@ -1,11 +1,11 @@ \n\n"; -- cgit v1.2.3 From 062633d312b4d595e21ac09029f73ca8768508b0 Mon Sep 17 00:00:00 2001 From: kostikov Date: Fri, 20 Jul 2018 16:40:35 +0200 Subject: Add var to respect current hstrings.php format --- util/php2po.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/php2po.php') diff --git a/util/php2po.php b/util/php2po.php index 352ed41f6..c47dcac1b 100644 --- a/util/php2po.php +++ b/util/php2po.php @@ -2,9 +2,9 @@ if(! class_exists('App')) { class App { - static public $strings = Array(); + static public $rtl; + static public $strings = Array(); } - //$a = new App(); } if ($argc!=2) { -- cgit v1.2.3 From 64efd07f6bf9220d31da61edef07adc43c271af5 Mon Sep 17 00:00:00 2001 From: kostikov Date: Sun, 22 Jul 2018 19:39:53 +0200 Subject: Escape internal quotes in translation on export --- util/php2po.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/php2po.php') diff --git a/util/php2po.php b/util/php2po.php index c47dcac1b..c165006a1 100644 --- a/util/php2po.php +++ b/util/php2po.php @@ -32,17 +32,17 @@ if ($k!="" && substr($l,0,7)=="msgstr "){ $ink = False; - $v = '""'; + $v = ''; //echo "DBG: k:'$k'\n"; if (isset(App::$strings[$k])) { - $v= '"'.App::$strings[$k].'"'; + $v= App::$strings[$k]; //echo "DBG\n"; //var_dump($k, $v, App::$strings[$k], $v); //echo "/DBG\n"; } //echo "DBG: v:'$v'\n"; - $l = "msgstr ".$v."\n"; + $l = "msgstr \"".str_replace('"','\"',$v)."\"\n"; } if (substr($l,0,6)=="msgid_" || substr($l,0,7)=="msgstr[" )$ink = False;; -- cgit v1.2.3