Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internationalization: Select language from combo box

alejandro garcia
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying to make the user select the language of a very simple menu.
I post here the 2 classes: Menus and Selector.
In the Menus class, there are 2 items: File and Help
When you click on File then you select Configuration, and it shows the Selector class which is only a ComboBox, where you select the Language.

The Menus class is in part internationalized because I defined a file with this pairs:


So that's first step is done, and it works fine, now I need the end user to select the language in the Configuration combo box and on the fly load TITLE, FILE,HELP,OPEN and CONFIGIRATION from an appropiate file that I've already created, if for example he selects Spanish, that properties file has this pairs:
HELP= Ayuda

Any help please?

Here is the menu class just to select the Configuration option:

And here is the selector it's just a combo box to select the language

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic