|Strategy for I18N [message #815710]
||Wed, 07 March 2012 19:47
| Shaohua Ma
Registered: March 2012
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.
Powered by FUDForum
. Page generated in 0.01863 seconds