diff options
Diffstat (limited to 'util/po2php.php')
| -rwxr-xr-x | util/po2php.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/po2php.php b/util/po2php.php index 535e5567c..508e1b776 100755 --- a/util/po2php.php +++ b/util/po2php.php @@ -1,5 +1,9 @@ <?php +function escape_s($match){ + return str_replace('$','\$',$match[0]); +} + function po2php_run($argc,$argv) { if ($argc < 2) { @@ -42,10 +46,6 @@ function po2php_run($argc,$argv) { $inv = False; $escape_s_exp = '|[^\\\\]\$[a-z]|'; - function escape_s($match){ - return str_replace('$','\$',$match[0]); - } - foreach ($infile as $l) { $l = str_replace(array('$projectname','$Projectname'),array('\$projectname','\$Projectname'),$l); $len = strlen($l); |
