[Po4a-commits] "po4a po4a,1.74,1.75 changelog,1.190,1.191"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Mon Apr 16 21:29:19 UTC 2007
Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv9785
Modified Files:
po4a changelog
Log Message:
Fix the sorting algorithm. This caused some changes in the order of
documents in the PO files.
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- po4a 16 Apr 2007 18:41:11 -0000 1.74
+++ po4a 16 Apr 2007 21:29:16 -0000 1.75
@@ -768,7 +768,8 @@
}
my $potfile=Locale::Po4a::Po->new(\%Po_opts);
if ($update_pot_file) {
- foreach my $master (sort { return -1 if ($a eq "" or $b eq "");
+ foreach my $master (sort { return -1 if ($a eq "");
+ return 1 if ($b eq "");
$document{$a}{'pos'} <=> $document{$b}{'pos'}
} keys %document) {
next if ($master eq '');
@@ -985,7 +986,8 @@
my $po = Locale::Po4a::Po->new();
$po->read($po_filename{$lang});
- DOC: foreach my $master (sort { return -1 if ($a eq "" or $b eq "");
+ DOC: foreach my $master (sort { return -1 if ($a eq "");
+ return 1 if ($b eq "");
$document{$a}{'pos'} <=>
$document{$b}{'pos'} } keys %document) {
next if ($master eq '');
Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -d -r1.190 -r1.191
--- changelog 16 Apr 2007 20:08:54 -0000 1.190
+++ changelog 16 Apr 2007 21:29:17 -0000 1.191
@@ -1,5 +1,10 @@
2007-04-16 Nicolas François <nicolas.francois at centraliens.net>
+ * po4a: Fix the sorting algorithm. This caused some changes in the
+ order of documents in the PO files.
+
+2007-04-16 Nicolas François <nicolas.francois at centraliens.net>
+
* NEWS: document the timestamping mechanism in the NEWS file.
2007-04-16 Nicolas François <nicolas.francois at centraliens.net>
More information about the Po4a-commits
mailing list