aboutsummaryrefslogtreecommitdiffstats
path: root/tools/extract2gettext.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-03-11 22:00:55 +0000
committerFilip Komar <filip@mageia.org>2014-03-11 22:00:55 +0000
commitd9f9613fdaba65f16c4e9c4116ea107cf4889504 (patch)
tree87a7b47a3b2dc3c0861c98c4307fa8f942543ac8 /tools/extract2gettext.php
parent326eac8a3d1f926f2707ad1de61818a97f6f8dbe (diff)
downloadwww-d9f9613fdaba65f16c4e9c4116ea107cf4889504.tar
www-d9f9613fdaba65f16c4e9c4116ea107cf4889504.tar.gz
www-d9f9613fdaba65f16c4e9c4116ea107cf4889504.tar.bz2
www-d9f9613fdaba65f16c4e9c4116ea107cf4889504.tar.xz
www-d9f9613fdaba65f16c4e9c4116ea107cf4889504.zip
do not regenerate pot and po files if there are no changes in the source
Diffstat (limited to 'tools/extract2gettext.php')
-rw-r--r--tools/extract2gettext.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/extract2gettext.php b/tools/extract2gettext.php
index 8eff15de0..1cbdb3a17 100644
--- a/tools/extract2gettext.php
+++ b/tools/extract2gettext.php
@@ -87,7 +87,8 @@ 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'));
+ $cur_date = date('Y-m-d H:i:sO');
+ $f[] = '# Generated by extract2gettext.php';
$f[] = sprintf('# Domain: %s', $domain);
$f[] = '#';
$f[] = '# include translation strings from:';