From 9ca0657e0f119fc06257a6f86b2d0346fba93bcb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Nov 2003 21:48:05 +0000 Subject: fix xgettext vs perl bug: perl need special caraters "$", "@", "*" and "%" to be escaped in doble quotes strings but xgettext doesn't know anything about that and just hapilly extract "blabla \@users blabla" whereas perl will pass "blabla @users blabla" to gettext at runtime which will make gettext to fail :-( --- po/fake_c.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/po/fake_c.pl b/po/fake_c.pl index 21cf25b0..d3ed27b0 100755 --- a/po/fake_c.pl +++ b/po/fake_c.pl @@ -15,6 +15,8 @@ s|//|/""/|g; # ensure // or not understood as comments s|$|\\n\\|; # multi-line strings not handled in C +s/\\(@|$)/$1/g; # perl needs escaped special caracters but gettext must *not* + sub simpl { local $_ = $_[0]; s,\*/,,g; -- cgit v1.2.1