>>>>> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes:
Alfredo> Jean-Marc Lasgouttes wrote: >> and these ones which come from the math panel Û ± ´ £ @ S ò !(£ >> @) (can these be replaced with real icons?) Alfredo> Can't we make these non-translatable at all? I know there was Alfredo> a reason, but I can't remember. I took a look at what is needed to make these strings non-translatable. A typical entry that we want to skip looks like: -------------------- class: FL_BUTTON type: NORMAL_BUTTON box: 5 105 50 30 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER style: 15 size: 0 lcol: FL_BLACK label: S ò shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_varsize callback: C_FormBaseInputCB argument: 0 The important part here is the "style: 15" entry, which indicates symbol font. The algorithm that needs to be implemented that each style entry should set a 'skip' variable to true if style is 15 and false otherwise. Then, when "label:" is encountered, it should be skipped according to the 'skip' variable. The way to do this would be to add awk magic to the following makefile target: $(srcdir)/xforms_l10n.pot: $(top_srcdir)/src/frontends/xforms/forms/*.fd awk ' \ BEGIN { \ print "#, fuzzy"; \ print "msgid \"\""; \ print "msgstr \"\""; \ print "\"Content-Type: text/plain; charset=ISO-8859-1\\n\""; \ print "\"Content-Transfer-Encoding: 8bit\\n\""; \ print "\n"; \ } \ /label: / { \ if (NF > 1) { \ line=$$0;\ sub(/label: /,"",line);\ printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", FILENAME, FNR, line);\ }\ }' \ `find $(top_srcdir)/src/frontends/xforms/forms -name \*.fd` > $@ Unfortunately, I know nothing about awk. Any taker? JMarc