• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Internationalization Problem on WebObjects 5.1, Windows 2000
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Internationalization Problem on WebObjects 5.1, Windows 2000


  • Subject: Internationalization Problem on WebObjects 5.1, Windows 2000
  • From: "Paul-Liviu Petrus" <email@hidden>
  • Date: Fri, 14 Feb 2003 17:22:35 +0100
  • Thread-topic: WebObjects 5.1.4 on Mac OSX 10.2.3

This is my first message on this forum, greetings to all of you.

I have a problem with the localization (internationalization) of my
JavaWebObjectsApplication type project on Win2k. I am upgrading it from
WO 4.5 to WO 5.1 and my localization functions don't work in anymore.

My app is designed to be localizable, i.e. all of the web components
take their messages from the bundles eCompany.properties,
eCompany_de.properties, eCompany_en.properties etc, which are in
<app-dir>/resources/Bundles. When I was working in 4.5, it took some
time until I found out that I must modify the file CustomInfo.plist in
order for WO to find the bundles. So, my CustomInfo.plist looks like
this:

{
     // ** Add your class paths here in the form of an array as follows:
     // ** NSJavaUserPath = ("/some/class/path", "/another/class/path");
     NSJavaUserPath = ("resources/Bundles");
}

The sequence of code in which I load the bundle looks like this:

public class Session extends WOSession
{
	....
    	protected Locale currentLocale;
    	protected ResourceBundle labels;

	public Session() {

		super();
		currentLocale = new Locale( "de", "DE" );
		labels = ResourceBundle.getBundle( "eCompany",
currentLocale );
		...
	}
}

Then I use ((Session) session()).labels() in all the components of the
application.
All this worked in 4.5. Now in 5.1 I get:

Error:  java.util.MissingResourceException
Reason:  Can't find bundle for base name eCompany, locale de_DE

WO doesn't find the resource boundle files, no matter where I copy the
.properties files.
Can anyone help me with this matter? I haven't found anything and im
stuck in this.

Thanks, Paul
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Anyone running WO 5.1 Dep on XP Pro.
  • Next by Date: Re: Servlet session management
  • Previous by thread: Anyone running WO 5.1 Dep on XP Pro.
  • Next by thread: Re: WebObjects 5.1.4 on Mac OSX 10.2.3
  • Index(es):
    • Date
    • Thread