diff options
author | Filip Komar <filip@mageia.org> | 2014-03-09 20:17:02 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2014-03-09 20:17:02 +0000 |
commit | db044d313042734d341ff1b22c50d8867176a0d0 (patch) | |
tree | b396ac2ff0fecce86a303e67a775fb2eed5b1233 /tools/extract2gettext.php | |
parent | 860178e777d469b751c4f09e5009345aa7599a27 (diff) | |
download | www-db044d313042734d341ff1b22c50d8867176a0d0.tar www-db044d313042734d341ff1b22c50d8867176a0d0.tar.gz www-db044d313042734d341ff1b22c50d8867176a0d0.tar.bz2 www-db044d313042734d341ff1b22c50d8867176a0d0.tar.xz www-db044d313042734d341ff1b22c50d8867176a0d0.zip |
about/reports page first migrated to gettext system + small bugfix of toolchain needed
Diffstat (limited to 'tools/extract2gettext.php')
-rw-r--r-- | tools/extract2gettext.php | 4 |
1 files changed, 2 insertions, 2 deletions
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:'; |