> I was recently asked about how to make an application multilingual.
> ie. how to have the app's menubar show up in a different language,
> and have this be changeable from the menubar.
>
> Here's an example that shows a common technique, which involves
> assigning each menu item an 'internal name' the app uses internally
> for searching and internal bookkeeping, separate from the menu item's
> label() names, which can change depending on the currently selected
> language.
>
> The technique used is to make a simple little class ("ItemData)
> is used as the userdata() for each menu item, to allow more data
> to be associated with each item than just the 'this' of the app;
> it keeps track of the 'internal menu name' as well.
>
> I've added this example to my FLTK cheat sheet here:
> http://seriss.com/people/erco/fltk/#MultiLanguageApp
Oh yes - I like this one, that's good stuff.
SELEX Galileo Ltd
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