aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-07-25 10:15:23 +0200
committerMario Vavti <mario@mariovavti.com>2018-07-25 10:15:23 +0200
commit35200e5f1b10cdd18af8f0ea646996e438b97011 (patch)
treee29804fad16e1958ce0852da58be25354d9a1f1c /util
parent7e2635adfe2d20545d3a699c6fc14552c01a35a9 (diff)
parent091ef33f18e4c9af8980ef1e8a4513c40e58b4b3 (diff)
downloadvolse-hubzilla-35200e5f1b10cdd18af8f0ea646996e438b97011.tar.gz
volse-hubzilla-35200e5f1b10cdd18af8f0ea646996e438b97011.tar.bz2
volse-hubzilla-35200e5f1b10cdd18af8f0ea646996e438b97011.zip
Merge branch '3.6RC' of https://framagit.org/hubzilla/core into 3.6RC
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;;