[Po4a-commits] "po4a NEWS, 1.21, 1.22 changelog, 1.192, 1.193 po4a, 1.75, 1.76"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Mon Apr 16 22:45:57 UTC 2007


Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv14788

Modified Files:
	NEWS changelog po4a 
Log Message:
Do not activate the creation of .po4a-stamp files by default (broke
adduser). Add a --stamp option.


Index: NEWS
===================================================================
RCS file: /cvsroot/po4a/po4a/NEWS,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- NEWS	16 Apr 2007 20:08:54 -0000	1.21
+++ NEWS	16 Apr 2007 22:45:54 -0000	1.22
@@ -20,12 +20,14 @@
 
   general: po4a now uses timestamps to avoid re-generating a translation
            if no changes are expected: if a translation is more recent
-           than its associated PO and master document, then there is no
-           need to update it. For the documents which do not pass the
-           translation threshold, a file is created with the .po4a-stamp
-           extension. This file is also used as a timestamp file, and
-           permits to avoid spending time if po4a expect that the
-           translation will not be generated.
+           than its associated PO, master document, addenda or
+           configuration file, then there is no need to update it. For the
+           documents which do not pass the translation threshold, a
+           --stamp option was added to tell po4a to create files with a
+           .po4a-stamp extension (you can also create them manually).
+           This can save a lot of time when po4a knows that the
+           translation will not be generated because there were no changes
+           since the last po4a run.
 
   general: Beginning of a C extension. This provides speedup. Testers are
            welcomed.

Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- po4a	16 Apr 2007 21:29:16 -0000	1.75
+++ po4a	16 Apr 2007 22:45:54 -0000	1.76
@@ -247,9 +247,8 @@
 Also, a translation is regenerated only if its master document, the PO file,
 one of its addenda or the configuration file is more recent.
 To avoid trying to regenerate translations which do not pass the threshold
-test (see B<--keep>), a file with the '.po4a-stamp' extension is created.
-These stamp files are removed when po4a is called with the
-B<--rm-translations> flag or when a file is finally translated.
+test (see B<--keep>), a file with the '.po4a-stamp' extension can be created
+(see B<--stamp>).
 
 =back
 
@@ -259,6 +258,17 @@
 
 The PO files are always re-generated based on the POT with B<msgmerge -U>.
 
+=item --stamp
+
+Tells po4a to create stamp files when a translation is not generated
+because it it does not reach the threshold. These stamp files are named
+according to the expected translated document, with the I<.po4a-stamp>
+extension.
+
+Note: This only activates the creation of the I<.po4a-stamp> files. The stamp
+files are always used if they exist, and they are removed with
+B<--rm-translations> or when the file is finally translated.
+
 =item --no-translations
 
 Do not generate the translated documents, only update the POT and PO files.
@@ -397,6 +407,7 @@
         'verbose|v'             => \@verbose,
         'debug|d'               => \$opts{"debug"},
         'force|f'               => \$opts{"force"},
+        'stamp'                 => \$opts{"stamp"},
         'quiet|q'               => \$opts{"quiet"},
         'keep|k=s'              => \$opts{"threshold"},
         'no-translations'       => \$opts{"no-translations"},
@@ -1051,10 +1062,12 @@
 		    $percent, $file_opts{"threshold"});
 		unlink($document{$master}{$lang}) if (-e $document{$master}{$lang});
 		unless ($po4a_opts{"force"}) {
+		    if ($po4a_opts{"stamp"}) {
 		    touch($document{$master}{$lang}.".po4a-stamp");
 		    print wrap_msg(gettext("Timestamp %s created."),
 		                   $document{$master}{$lang}.".po4a-stamp")
 			if ($po4a_opts{"verbose"});
+		    }
 		}
 		next DOC;
 	    }

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -d -r1.192 -r1.193
--- changelog	16 Apr 2007 21:56:24 -0000	1.192
+++ changelog	16 Apr 2007 22:45:54 -0000	1.193
@@ -1,3 +1,9 @@
+2007-04-17  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* po4a: Do not activate the creation of .po4a-stamp files by
+	default. Some packages do not expect the creation of .po4a-stamp
+	files and this broke at least adduser. Add a --stamp option.
+
 2007-04-16  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* po4a: Fix the sorting algorithm. This caused some changes in the




More information about the Po4a-commits mailing list