Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Strategy for I18N (how to internationalize the code generated with WB)
Strategy for I18N [message #815710] Wed, 07 March 2012 19:47 Go to previous message
Shaohua Ma is currently offline Shaohua Ma
Messages: 4
Registered: March 2012
Junior Member
what's the best way to internationalize the code generated with WB, yet not inhibit the capability of using the visual editor?

for example, if i create a label "Name", the code generated by WB will have a line like this:
JLabel nameLabel = new JLabel("User Name:");

Now I want to I18N it. I will create a key for the info:
static String NAME_KEY = "NAME_KEY";

and i will have code for retrieving the proper text based on the key. but how do i put the retrieved text back into the code, without impact on the visual editing capability?

I am thinking of a post init process as a solution. but I'd like to here some advice first.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Windowbuilder I18N-additional source folder
Next Topic:ThemePainter ClassCastException Office2003Painter Jide
Goto Forum:
  


Current Time: Wed May 22 05:56:47 EDT 2013

Powered by FUDForum. Page generated in 0.01709 seconds