summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-17 21:48:05 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-17 21:48:05 +0000
commit9ca0657e0f119fc06257a6f86b2d0346fba93bcb (patch)
treefa0a94f7dfa5520c2c8343034e356da44b3693ee
parent08700b02ef623f93eb3d4aca0c4a9f2820fe6c56 (diff)
downloaddrakwizard-9ca0657e0f119fc06257a6f86b2d0346fba93bcb.tar
drakwizard-9ca0657e0f119fc06257a6f86b2d0346fba93bcb.tar.gz
drakwizard-9ca0657e0f119fc06257a6f86b2d0346fba93bcb.tar.bz2
drakwizard-9ca0657e0f119fc06257a6f86b2d0346fba93bcb.tar.xz
drakwizard-9ca0657e0f119fc06257a6f86b2d0346fba93bcb.zip
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 :-(
-rwxr-xr-xpo/fake_c.pl2
1 files changed, 2 insertions, 0 deletions
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;