[Po4a-commits] "po4a po4a,1.34,1.35"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Wed Nov 16 19:27:18 UTC 2005
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv32464
Modified Files:
po4a
Log Message:
Adds a --no-translations option.
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- po4a 6 Oct 2005 19:28:23 -0000 1.34
+++ po4a 16 Nov 2005 19:27:15 -0000 1.35
@@ -203,6 +203,10 @@
Output some debugging information.
+=item --no-translations
+
+Do not generate the translated documents, only update the POT and PO files.
+
=back
=head1 SHORTCOMINGS
@@ -285,6 +289,7 @@
"verbose" => 0,
"quiet" => 0,
"split" => 0,
+ "no-translations" => 0,
"threshold" => 80,
"mastchar" => "",
"locchar" => "",
@@ -304,6 +309,7 @@
'quiet|q' => \$opts{"quiet"},
'split|s' => \$opts{"split"},
'keep|k=s' => \$opts{"threshold"},
+ 'no-translations' => \$opts{"no-translations"},
'version|V' => \&show_version,
'option|o=s' => \@options
) or pod2usage();
@@ -594,6 +600,8 @@
die wrap_msg(gettext("Error while copying the po file: %s"), $!);
}
}
+
+if (not $po4a_opts{"no-translations"}) {
# update all translations
foreach $lang (sort keys %po_filename) {
@@ -660,5 +668,6 @@
$doc->write($document{$master}{$lang});
}
}
+}
__END__
More information about the Po4a-commits
mailing list