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
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk