[Po4a-commits] "po4a NEWS, 1.54, 1.55 po4a, 1.79, 1.80 changelog, 1.349, 1.350"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Wed Apr 2 20:19:09 UTC 2008
Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv926
Modified Files:
NEWS po4a changelog
Log Message:
* NEWS, po4a: Add options --package-name and --package-version
(similar to xgettext's options).
* lib/Locale/Po4a/Po.pm: Add support for the --package-name and
--package-version options.
Index: NEWS
===================================================================
RCS file: /cvsroot/po4a/po4a/NEWS,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- NEWS 2 Apr 2008 20:03:51 -0000 1.54
+++ NEWS 2 Apr 2008 20:19:07 -0000 1.55
@@ -3,6 +3,10 @@
===============================================================================
* Major changes in release 0.33.3 (UNRELEASED)
+po4a:
+ * Add options --package-name and --package-version (similar to xgettext's
+ options).
+
translations:
* Actually ship Japanese translations.
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- po4a 13 Jan 2008 15:21:16 -0000 1.79
+++ po4a 2 Apr 2008 20:19:07 -0000 1.80
@@ -301,6 +301,14 @@
Set the copyright holder in the POT header. The default value is
"Free Software Foundation, Inc."
+=item --package-name string
+
+Set the package name for the POT header. The default is "PACKAGE".
+
+=item --package-version string
+
+Set the package version for the POT header. The default is "VERSION".
+
=item --msgmerge-opt options
Extra options for msgmerge.
@@ -405,6 +413,8 @@
"variables" => {},
"copyright-holder"=> undef,
"msgid-bugs-address"=> undef,
+ "package-name" => undef,
+ "package-version" => undef,
"msgmerge-opt" => ""
);
Getopt::Long::config('bundling', 'no_getopt_compat', 'no_auto_abbrev');
@@ -430,6 +440,8 @@
'variable=s' => \@variables,
'copyright-holder=s' => \$opts{"copyright-holder"},
'msgid-bugs-address=s' => \$opts{"msgid-bugs-address"},
+ 'package-name=s' => \$opts{"package-name"},
+ 'package-version=s' => \$opts{"package-version"},
'previous' => \$previous,
'msgmerge-opt=s' => \$opts{"msgmerge-opt"}
) or pod2usage();
@@ -794,6 +806,12 @@
if (defined $po4a_opts{'copyright-holder'}) {
$Po_opts{'copyright-holder'} = $po4a_opts{'copyright-holder'};
}
+if (defined $po4a_opts{'package-name'}) {
+ $Po_opts{'package-name'} = $po4a_opts{'package-name'};
+}
+if (defined $po4a_opts{'package-version'}) {
+ $Po_opts{'package-version'} = $po4a_opts{'package-version'};
+}
my $potfile=Locale::Po4a::Po->new(\%Po_opts);
if ($update_pot_file) {
foreach my $master (sort { return -1 if ($a eq "");
Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.349
retrieving revision 1.350
diff -u -d -r1.349 -r1.350
--- changelog 2 Apr 2008 20:03:51 -0000 1.349
+++ changelog 2 Apr 2008 20:19:07 -0000 1.350
@@ -1,5 +1,12 @@
2008-04-02 Nicolas François <nicolas.francois at centraliens.net>
+ * NEWS, po4a: Add options --package-name and --package-version
+ (similar to xgettext's options).
+ * lib/Locale/Po4a/Po.pm: Add support for the --package-name and
+ --package-version options.
+
+2008-04-02 Nicolas François <nicolas.francois at centraliens.net>
+
* NEWS: Prepare 0.33.3.
2008-04-02 Noritada Kobayashi <nori1 at dolphin.c.u-tokyo.ac.jp>
More information about the Po4a-commits
mailing list