international support in TK frontend?

Q&A's, tips, howto's
Post Reply
Posts: 1377
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany

international support in TK frontend?

Post by HPW »

The discussion about locale makes me thinking about international support for a/the TK frontend.

A start would be the config:

set Ide(Lang) "EN"
set Ide(Lang) "DE"
set Ide(Lang) "FR"
set Ide(Lang) "NL"
A submenu in the options menu would be the next step

Then there is a subfolder in the Bwidget folder called lang.
There are resource files for language support in bwidget dialogs.
The bwidget demo shows how to use this resources.
To use this from the TK frontend would be the next step.

Then all visible GUI in the frontend have to be changed to using a variable instead of a hard-coded string.
The content of the variables could come from the config file or a seperate language-table file.

All GUI generation started from newlisp would use such approach.

Other ideas for doing a multi-language newlisp/app?

Post Reply