From db044d313042734d341ff1b22c50d8867176a0d0 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sun, 9 Mar 2014 20:17:02 +0000 Subject: about/reports page first migrated to gettext system + small bugfix of toolchain needed --- tools/extract2gettext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/extract2gettext.php') diff --git a/tools/extract2gettext.php b/tools/extract2gettext.php index 424bb9172..8eff15de0 100644 --- a/tools/extract2gettext.php +++ b/tools/extract2gettext.php @@ -70,7 +70,7 @@ foreach ($out as $str) { if (preg_match_all('/\_(g|r)\(\'(.+)\'/imU', $arr, $reg)) { // i=PCRE_CASELESS, m=PCRE_MULTILINE, U=PCRE_UNGREEDY foreach ($reg[2] as $found) { $found = str_replace('_apostrophe_', '\'', $found); - $strings[$domain][$found][] = $file . ' +' . $line; + $strings[$domain][$found][] = '/web/' . $file . ' +' . $line; } } else { @@ -87,7 +87,7 @@ foreach ($strings as $domain => $strs) { $f[] = '# This file is distributed under the same license as'; $f[] = '# the content of the corresponding web page(s).'; $f[] = '#'; - $f[] = sprintf('# Generated by extract2gettext.php on %s', $cur_date = date('Y m d H:i:sO')); + $f[] = sprintf('# Generated by extract2gettext.php on %s', $cur_date = date('Y-m-d H:i:sO')); $f[] = sprintf('# Domain: %s', $domain); $f[] = '#'; $f[] = '# include translation strings from:'; -- cgit v1.2.1