diff options
author | zotlabs <mike@macgirvin.com> | 2018-07-27 15:27:52 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-07-27 15:27:52 -0700 |
commit | 38c2070aabf590d90ccd854e0542affe2ca6a2a2 (patch) | |
tree | ed96858870025eeff1737f8f9cfaeadca2061d02 /util | |
parent | a0f28708ab125e953157299d13d8ebbea8b77396 (diff) | |
parent | ec3a066e4e94ad7c72d1d07371081318a4d5e9ab (diff) | |
download | volse-hubzilla-38c2070aabf590d90ccd854e0542affe2ca6a2a2.tar.gz volse-hubzilla-38c2070aabf590d90ccd854e0542affe2ca6a2a2.tar.bz2 volse-hubzilla-38c2070aabf590d90ccd854e0542affe2ca6a2a2.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into xdev_merge
Diffstat (limited to 'util')
-rw-r--r-- | util/php2po.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/php2po.php b/util/php2po.php index ff41e6d1e..c165006a1 100644 --- a/util/php2po.php +++ b/util/php2po.php @@ -1,11 +1,11 @@ <?php - if(! class_exists('App')) { - class TmpA { - public $strings = Array(); - } - $a = new TmpA(); - } + if(! class_exists('App')) { + class App { + static public $rtl; + static public $strings = Array(); + } + } if ($argc!=2) { print "Usage: ".$argv[0]." <hstrings.php>\n\n"; @@ -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;; |