List Info

Thread: Re: SwingX and ResourceBundles




Re: SwingX and ResourceBundles
user name
2007-11-06 06:58:48
Jeanette,

That's fine.  I been working on a more robust test.  It
appears that UIManager.getDefaults().addResourceBundle will
only allow language-based file to be found.  So far this is
what I'm seeing (working on the test case to isolate):
swingx.properties
swingx_de.properties
swingx_fr_FR.properties
If I set my locale to FRANCE or even FRENCH, I get the
default properties.  If I rename swingx_fr_FR.properties to
swingx_fr.properties, both FRANCE and FRENCH return the
French properties.  If there is both a swingx_fr.properties
and a swingx_fr_FR.properties, FRANCE gets me
swingx_fr.properties and not the expected
swingx_fr_FR.properties.  It looks as if (again preliminary
testing) that country-based files are failing.

I'm concerned that this has something to do with encoding. 
We've been bad and added non-ASCII property files to the
tree, so I am isolating those issues from the rest.

Sorry, not going to be out your way, but I'll hold you to
that beer ;).  My next big Java event should be JavaOne.

Karl
[Message sent by forum member 'kschaefe' (kschaefe)]

http://forums.java.net/jive/thread.jspa?messageID=244055


------------------------------------------------------------
---------
To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
For additional commands, e-mail: jdnc-helpjdnc.dev.java.net


Re: SwingX and ResourceBundles
user name
2007-11-06 07:22:45
Karl,
> Jeanette,
>
> That's fine.  I been working on a more robust test.  It
appears that UIManager.getDefaults().addResourceBundle will
only allow language-based file to be found.  So far this is
what I'm seeing (working on the test case to isolate):
> swingx.properties
> swingx_de.properties
> swingx_fr_FR.properties
> If I set my locale to FRANCE or even FRENCH, I get the
default properties.  If I rename swingx_fr_FR.properties to
swingx_fr.properties, both FRANCE and FRENCH return the
French properties.  If there is both a swingx_fr.properties
and a swingx_fr_FR.properties, FRANCE gets me
swingx_fr.properties and not the expected
swingx_fr_FR.properties.  It looks as if (again preliminary
testing) that country-based files are failing.
>
>   
sounds as nasty as it could get - good luck! BTW, we have a
wiki about 
localization - if you feel like adding your findings (it
already has a 
link to this thread):

http://wiki.java.net/bin/view/Javadesktop/SwingXLoca
lization
> Sorry, not going to be out your way, but I'll hold you
to that beer ;).  My next big Java event should be JavaOne.
>   
okay, will keep it cold <g>

Jeanette

------------------------------------------------------------
---------
To unsubscribe, e-mail: jdnc-unsubscribejdnc.dev.java.net
For additional commands, e-mail: jdnc-helpjdnc.dev.java.net


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )