>       put the utf8 strings into a separate file, and use a message
>       library that handles converting the english equivalents (in your
>       source code) into the appropriate language files. So in 
> your code
>       you might have:
> 
>               somewidget.label( lang("This is a test") );
> 
>       ..where lang() does a fast lookup in the appropriate language
>       file (based on the LOCALE variable, or some such) and prints
>       the appropriate utf8 string. gnu has such a lib, but I can't
>       remember the name of it at the moment.

That might be quite a useful suggestion, actually.
Fluid can provide support for either gnu gettext or the posix compliant
catgets mechanisms, either of which does basically what Greg suggests
here.

To enable this support on fluid, go to Edit->Project
Settings->Internationalization and select which of the two approaches
you prefer from the dropdown box.

How to actually use gettext et al? Time to hit the web I think, but in
essence to works as outlined above - you put the strings in you program
in a language you know, and provide a series of ".po" files in other
languages that provide replacement strings in other languages.

-- 
Ian



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to