[Po4a-commits] "po4a Build.PL,1.40,1.41 changelog,1.446,1.447"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sun Feb 22 15:16:26 UTC 2009


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

Modified Files:
	Build.PL changelog 
Log Message:
	* Build.PL: Fix the title (release and center titles) of the
	English po4a.7 manpage.
	* Build.PL: Fix the titles (release and center titles) of
	translated manpages (they use to be doubly encoded in UTF-8).


Index: Build.PL
===================================================================
RCS file: /cvsroot/po4a/po4a/Build.PL,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- Build.PL	9 Feb 2009 23:10:30 -0000	1.40
+++ Build.PL	22 Feb 2009 15:16:23 -0000	1.41
@@ -4,6 +4,8 @@
 use strict;
 use warnings;
 
+use Encode;
+
 my $builder = Module::Build->subclass
 (
     class => 'My::Builder',
@@ -148,7 +150,9 @@
 		my $lang = $out;
 		$lang =~ s/^blib\/man\/([^\/]*)\/.*$/$1/;
 
-		unless ($lang eq "man7") {
+		if ($lang eq "man7") {
+			$parser->{release} = $parser->{center} = "Po4a Tools";
+		} else {
 			my $command;
 			$command = "msggrep -K -E -e \"Po4a Tools\" po/pod/$lang.po |";
 			$command .= "msgconv -t UTF-8 | ";
@@ -157,6 +161,7 @@
 
 			my $title = `$command 2> /dev/null`;
 			$title = "Po4a Tools" unless length $title;
+			$title = Encode::decode_utf8($title);
 			$parser->{release} = $parser->{center} = $title;
 		}
 		$parser->parse_from_file ($file, $out);

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.446
retrieving revision 1.447
diff -u -d -r1.446 -r1.447
--- changelog	22 Feb 2009 12:12:23 -0000	1.446
+++ changelog	22 Feb 2009 15:16:23 -0000	1.447
@@ -1,3 +1,10 @@
+2009-02-22  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* Build.PL: Fix the title (release and center titles) of the
+	English po4a.7 manpage.
+	* Build.PL: Fix the titles (release and center titles) of
+	translated manpages (they use to be doubly encoded in UTF-8).
+
 2009-02-22  Robert Luberda  <robert at debian.org>
 
 	* doc/po4a.7.pod: Fixed typo.




More information about the Po4a-commits mailing list