Hello, Regarding the way the resource files are processed, it is indeed described in the java doc about i18n internationalization. - it first looks for a property file matching language AND locale (en_US) - if it does not find, it looks for a file matching only the language (en) - if it does not find, it looks for a default property file which must be specified (we chosed to include it in the jar, at the same location than I18N.java so that it is always found).
However, when we implemented the code we had to do some adjustments to be sure that at least one resource file is found when they are placed in the /language folder which is outside the jar. The behavior may therefore differ if the property files are inside or outside the jar. Best regards, Steve ----Message d'origine---- De: [EMAIL PROTECTED] Date: 16.01.2007 22:49 À: "List for discussion of JPP development and use."<jump-pilot- [EMAIL PROTECTED]> Copie: <[EMAIL PROTECTED]> Objet: Re: [JPP-Devel] R: Problem with internationalization??? There are a set of rules defined within java for both the search path and naming conventions for resources (in this case languages). Here's a link which may help you out: <a href="http://java.sun. com/j2se/1.4.2/docs/api/java/util/Locale.html" target="_BLANK">http: //java.sun.com/j2se/1.4.2/docs/api/java/util/Locale.html</a> David -----Original Message----- From: [EMAIL PROTECTED] [mailto:jump- [EMAIL PROTECTED] On Behalf Of Stefan Steiniger Sent: January 16, 2007 1:42 PM To: List for discussion of JPP development and use. Subject: Re: [JPP-Devel] R: Problem with internationalization??? jep.. could make sense. In that case the language files were not included in your jar file (if you unzip the workbench jar is a language folder inside with the files) stefan Sunburned Surveyor schrieb: > Thanks Stefan. > > I'm no expert at internationalization. But the problem seemed to be > fixed when I copied the languages folder to the proper location in my > OpenJUMP source code directory. > > Does this make sense to you? > > The Sunburned Surveyor > > > On 1/16/07, *Stefan Steiniger* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > the US local does not exists. > Therefore you need to specify the command line argument which starts > with "default" english only: > -i18n en > > we can add such a locale file but is not that a good idea, since this > would mean to add for every language the locale characteristics files > (e.g. for Spanish this would be quite a lot) > > stefan > > Sunburned Surveyor schrieb: > > Thanks Paolo. > > > > I can probably figure it out with that information. > > > > The Sunburned Surveyor > > > > > > On 1/15/07, *P.Rizzi Ag.Mobilità Ambiente* <paolo. [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] it>>> wrote: > > > > Looking back inside " jump-workbench-1.0.1.jar" from OpenJUMP > 1.0.1 > > I can see a "language" directory with a few . properties > files, and > > one of them > > is "jump_en.properties". > > If this file is missing from the JAR you are creating, that's > > probably why you're getting this exception. > > > > Bye > > Paolo Rizzi > > > > > > -----Messaggio originale----- > > *Da:* [EMAIL PROTECTED] net > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] net > <mailto:[EMAIL PROTECTED]>> > > [mailto: [EMAIL PROTECTED] sourceforge.net > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] net > <mailto:[EMAIL PROTECTED]>>] *Per > > conto di *Sunburned Surveyor > > *Inviato:* lunedì 15 gennaio 2007 16.53 > > *A:* List for discussion of JPP development and use. > > *Oggetto:* [JPP-Devel] Problem with internationalization??? > > > > Hey guys. > > > > I'm trying to correctly build OpenJUMP with Ant and then > run it > > on my Linux box. I'm having some trouble getting the JAR file > > for OpenJUMP to execute, and I think it is because I'm > missing > > some internationalization files in the JAR file that Ant puts > > together. I was hoping that some of you guys that are more > > experienced with Java internationalization might be able > to give > > some assistance with this. > > > > Here is the exception message: > > > > exception in thread "main" > java.lang.ExceptionInInitializerError > > at > > > com.vividsolutions.jump.workbench.JUMPWorkbench.<clinit> (JUMPWorkbench.java:82) > > Caused by: java.util.MissingResourceException: Can't find > bundle > > for base name language/jump, locale en_US > > at > > > java.util.ResourceBundle.throwMissingResourceException (ResourceBundle.java:836) > > at java.util.ResourceBundle.getBundleImpl > > (ResourceBundle.java :805) > > at > > java.util.ResourceBundle.getBundle(ResourceBundle. java:549) > > at > com.vividsolutions.jump.I18N.<clinit>(I18N.java:101) > > ... 1 more > > > > Do you guys have any ideas? > > > > Thanks, > > > > The Sunburned Surveyor > > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net 's Techsay panel and you'll get the > chance to > > share your > > opinions on IT & business topics through brief surveys - and > earn cash > > > <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> > <<a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV>" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV></a> > > < > <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> > <<a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV>>" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>></a> > > > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > <mailto:Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net>> > > <a href="https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel" target="_BLANK">https://lists. sourceforge.net/lists/listinfo/jump-pilot-devel</a> > > <<a href="https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel>" target="_BLANK">https://lists. sourceforge.net/lists/listinfo/jump-pilot-devel></a> > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > > opinions on IT & business topics through brief surveys - and earn > cash > > > <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> > <<a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV>" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV></a> > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > > <a href="https://lists.sourceforge.net/lists/listinfo/jump- pilot-devel" target="_BLANK">https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel</a> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net 's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> > <<a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV>" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV></a> > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > <mailto:Jump-pilot-devel@lists.sourceforge.net> > <a href="https://lists.sourceforge.net/lists/listinfo/jump- pilot-devel" target="_BLANK">https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel</a> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > <a href="https://lists.sourceforge.net/lists/listinfo/jump-pilot- devel" target="_BLANK">https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net <a href="https://lists.sourceforge.net/lists/listinfo/jump-pilot- devel" target="_BLANK">https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash <a href="http://www.techsay.com/default.php?page=join. php&p=sourceforge&CID=DEVDEV" target="_BLANK">http://www.techsay. com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net <a href="https://lists.sourceforge.net/lists/listinfo/jump-pilot- devel" target="_BLANK">https://lists.sourceforge. net/lists/listinfo/jump-pilot-devel</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel