summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-05 17:43:48 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-05 17:43:48 +0000
commitda78545292d7228694b922d58ad42fd9290583bb (patch)
treeef3256e19531fa81cfffe7171e2c35e7d5a528c6 /po
parent3e1dd843eac8e8a3f1a06b78fbbb30300b493d7b (diff)
downloadurpmi-da78545292d7228694b922d58ad42fd9290583bb.tar
urpmi-da78545292d7228694b922d58ad42fd9290583bb.tar.gz
urpmi-da78545292d7228694b922d58ad42fd9290583bb.tar.bz2
urpmi-da78545292d7228694b922d58ad42fd9290583bb.tar.xz
urpmi-da78545292d7228694b922d58ad42fd9290583bb.zip
fixed translation to C as almost 2000 lines of urpm.pm are not examined !
Diffstat (limited to 'po')
-rwxr-xr-xpo/fake_c.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/po/fake_c.pl b/po/fake_c.pl
index 21cf25b0..c456c7f1 100755
--- a/po/fake_c.pl
+++ b/po/fake_c.pl
@@ -4,9 +4,10 @@ s|^(__?\()| $1|; # add a blank at the beginning (?!)
s|_\(\[(.*),\s*(.*),\s*(.*)\]|ngettext($2,$3,$1)|; # special plural form handling
-s,\Qs/#.*//,,; # ugly special case
+s,\Ws/#.*//,,; # ugly special case
-s,(^|[^\$])#([^+].*),"$1/*" . simpl($2) . "*/",e;
+s,\$#\w+,,; # $#xxx are removed
+s,#([^+].*),"$1/*" . simpl($2) . "*/",e;
# rewrite comments to C format except for:
# - ``#+ xxx'' comments which are kept
# - ``$#xxx'' which are not comments