On Sun, 10 May 2009 23:58:40 +0200 Peter Wehrfritz <[email protected]>
said:
we should possibly do this... but i think this might get put off for a while as
i don't think its too urgent and it may invole a lot of fiddling around the
strings. maybe do it once dialogs are settled and strings are stable.
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [email protected]
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel