[Po4a-commits] "po4a/lib/Locale/Po4a Xml.pm,1.98,1.99"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Tue Mar 3 20:02:45 UTC 2009


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv11213/lib/Locale/Po4a

Modified Files:
	Xml.pm 
Log Message:
Do not use variables in the gettext string. Replace it with a format
string.


Index: Xml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Xml.pm,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- Xml.pm	2 Mar 2009 21:44:35 -0000	1.98
+++ Xml.pm	3 Mar 2009 20:02:42 -0000	1.99
@@ -161,7 +161,7 @@
 		} else {
 			# TODO: It will be hard to identify the location.
 			#       => find a way to retrieve the reference.
-			die wrap_mod("po4a::xml", dgettext("po4a", "'po4a-id=$id' in the translation does not exist in the original string (or 'po4a-id=$id' used twice in the translation)."));
+			die wrap_mod("po4a::xml", dgettext("po4a", "'po4a-id=%d' in the translation does not exist in the original string (or 'po4a-id=%d' used twice in the translation)."), $id, $id);
 		}
 	}
 # TODO: check that %folded_attributes is empty at some time




More information about the Po4a-commits mailing list