pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: Localization
Date Fri, 10 Dec 2010 12:38:07 GMT
The Resources class works like ResourceBundles in the JDK. Do you have a file named applet/Login.json,
applet/Login_fr.json, or applet/Login_fr_FR.json?

On Dec 10, 2010, at 4:37 AM, Jérôme Serré wrote:

> Hello,
> Another question !
> When i use the example from localization, I have an error :
> 
> Thank you for your help
> Jérôme
> 
> The code :
> Locale locale = Locale.getDefault();
> Resources resources = new Resources(getClass().getName(), locale);
> è final WTKXSerializer wtkxSerializer = new WTKXSerializer(resources);
> 
> Error :
> java.util.MissingResourceException: Can't find resource for base name
> applet.Login, locale fr_FR
>                        at
> org.apache.pivot.util.Resources.<init>(Resources.java:147)
>                        at
> org.apache.pivot.util.Resources.<init>(Resources.java:57)
>                        at applet.Login.startup(Login.java:48)
> ____________________________
> La gestion de votre cave
> <http://85.216.59.161:8000/cave> http://85.216.59.161:8000/cave
> 
> 


Mime
View raw message