[Po4a-commits] "po4a/lib/Locale/Po4a Po.pm,1.61,1.62"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Mon Apr 3 22:03:55 UTC 2006


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv27290/lib/Locale/Po4a

Modified Files:
	Po.pm 
Log Message:
During the gettextization, if the msgid with the same msgstr was already
pushed, do not push this couple again (this causes double references).


Index: Po.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Po.pm,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- Po.pm	2 Apr 2006 19:10:53 -0000	1.61
+++ Po.pm	3 Apr 2006 22:03:53 -0000	1.62
@@ -462,7 +462,11 @@
 			 'flags' => ($poorig->{po}{$orig}{'flags'} ? $poorig->{po}{$orig}{'flags'} :"")." fuzzy",
 	                 'type'  => $typeorig,
 			 'reference' => $reforig,
-			 'conflict' => 1);
+			 'conflict' => 1)
+	    unless (defined($pores->{po}{$orig})
+	            and ($pores->{po}{$orig}{'msgstr'} eq $trans))
+	# FIXME: maybe we should be smarter about what reference should be
+	#        sent to push_raw.
     }
     die "$toobad\n" if $please_fail; # make sure we return a useful error message when entry count differ
     return $pores;




More information about the Po4a-commits mailing list