Landon,

1. Long strings should be fine, although if you start having a bunch of
HTML in there then maybe look at having a I18N mechanism for HTML fragments.

2. What I typically do is define a constant for each of my I18N strings
and use those where required.

Paul
Sunburned Surveyor wrote:
> I've almost finished the internationalization of the Super Select
> Plug-In. I had a couple of questions about best practices for I18N in
> Java:
>
> [1] Is there a limit to the size of a String that should be
> internationalized in a Resource Bundle? For example, I have a couple
> paragraphs of help text that appear in a little JFrame. Is this really
> appropriate for internationlization, or is the internationalization
> method only meant for shorter and more terse phrases. (Longer strings
> just look a little odd in the prbEditor interface.)
>
> [2] I've decided to put all my internationalization code in a separate
> method of each of my GUI classes, instead of having them sprinkled
> throught the code that sets up and intializes each JComponent on my
> form. I think this has some advantages, especially if someone ever
> wants to modify our mechanism for accessing I18N Strings. Does anyone
> see a problem with this approach.
>
> Landon
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to