• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Localization for SWINGS

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look at the Java Tutorial Internationalization trail for the mechanisms Java makes available for localization.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic