From da78545292d7228694b922d58ad42fd9290583bb Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 5 Mar 2003 17:43:48 +0000 Subject: fixed translation to C as almost 2000 lines of urpm.pm are not examined ! --- po/fake_c.pl | 5 +++-- 1 file 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 -- cgit v1.2.1