I18n.properties not found after upgrade to 2.6

Upload core product.
Post Reply
tbraber
Posts: 5
Joined: Sun Apr 25, 2010 8:56 pm

I18n.properties not found after upgrade to 2.6

Post by tbraber »

After upgrade from 2.4 to 2.6 the Applet will not load any more. The error is:
SEVERE: Cannot load i18n.properties
java.io.FileNotFoundException: http://127.0.0.1/sfdemo/start/i18n.properties

It looks like the javaupload is looking at the wrong location because I have set the codebase to:
/sfdemo/public/applets where the i18n.properties file is located.
The location /sfdemo/start/ is where the html page was started from that loaded the javascript, that loaded the applet

The exact code was working fine in version 2.4.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: I18n.properties not found after upgrade to 2.6

Post by support »

Since 2.6 .properties files are loaded from document base location. We have to remove it from codebase to avoid security warning since JRE 1.6.0_19. However, you can setup full absolute URL in resources parameter such as:
<PARAM NAME="resources" VALUE="http://yourserver.com/whatyouwant/i18n">

Does it help?

tbraber
Posts: 5
Joined: Sun Apr 25, 2010 8:56 pm

Re: I18n.properties not found after upgrade to 2.6

Post by tbraber »

It is looking for the i18N file at the right location now but it only uses the default i18n.properties file, not the i18n_xx.properties language specific files I have added.

Although if I change the default i18n.properties file this will be seen in the applet.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: I18n.properties not found after upgrade to 2.6

Post by support »

Language auto-detection has been removed because of new security issue. You can re-enable it by using: <PARAM NAME="localeresources" VALUE="true">
Then you can keep your former "resources" parameter based on CODEBASE. However, you will get the warning :(

The only good solution is to auto-detect language yourself and then setup the correct i18n_xx parameter accordingly.

tbraber
Posts: 5
Joined: Sun Apr 25, 2010 8:56 pm

Re: I18n.properties not found after upgrade to 2.6

Post by tbraber »

No problem, I will detect the language in my application and point to the correct file.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: I18n.properties not found after upgrade to 2.6

Post by support »

You have a sample at:
viewtopic.php?f=2&t=478

Post Reply