Carsten Haitzler (The Rasterman) schrieb: > yes - its a translation problem. this is one of the problems with simple > string > mappings. 1 word in english may have multiple meanings. i think it is possible > in gettext to somehow mark such strings specially, but i don't know how. >
The gettext manual proposes to use sgettext(). You pass a string to it that has a more explaining prefix. For example sgettext("DOCUMENT|New") or sgettext("FILE|New") if it does not find a translation for it it will strip every thing before the last '|', so it returns only "New". Since the separator character ('|') may not work for everyone and the function is relative simple, sgettext is not part of the API. In elitaire I use the following function: inline char * sgettext(const char *msgid) { char *msgval = gettext(msgid); if (msgval == msgid) msgval = strrchr(msgid, '|') + 1; return msgval; } Peter ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel