aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-27 15:27:52 -0700
committerzotlabs <mike@macgirvin.com>2018-07-27 15:27:52 -0700
commit38c2070aabf590d90ccd854e0542affe2ca6a2a2 (patch)
treeed96858870025eeff1737f8f9cfaeadca2061d02 /util
parenta0f28708ab125e953157299d13d8ebbea8b77396 (diff)
parentec3a066e4e94ad7c72d1d07371081318a4d5e9ab (diff)
downloadvolse-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.php18
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;;