[Kati-devel] XML Editor
Status: Pre-Alpha
Brought to you by:
nemcs
|
From: Francisco J. G. C. <mul...@gm...> - 2008-11-10 17:32:29
|
Hi, I have been away for a couple weeks but have been working on the XML Editor multilanguage support. This is what I have done. The "main" of the program calls a frame that has a list where you can select the language you what to use (default English). The select works. I have translated the Title of the program and the two menus to see if it works. I have also created a class: "public static String KLanguage (int language, String Bundle, String field)" Which can be used by developers instead of a string to set labels, menus,... all you have to do is: JMenuItem prog = new JMenu(KLanguage.KLanguage( Kati.location, "KatiMenu", "Program")); "Kati.location == is a array with the different languages. The language is selected when you assign a value to "public static int location = 0;" //in the Kati.java "KatiMenu" == Bundle used. "Program == is the key word that will contain the real string depending on the language selected. Please let me know how to send you the source code so you can take a look at it. Take care, Frank |