• Post Reply Bookmark Topic Watch Topic
  • New Topic

Localization for SWINGS

 
Mortin kim
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one java calss,which contains all string constants of the lable values which are hardcoded that are using for UI.

like this
public class PanelConstants
{
public static final String LBL_GROUP = "Group:";
public static final String LBL_VENDOR = "Vendor:";
public static final String LBL_PRODUCT = "Product:";
public static final String LBL_VERSION = "Version:";
and so on.......
}
Now I want to do localization,If i have changed reginal settings to china..the content should be shown in China language..as i am getting lable names from this file i need to change the content in this according to local settings..
can any one tell how to do that..

Thanks
Kim.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the Java Tutorial Internationalization trail for the mechanisms Java makes available for localization.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!