Simone Giannecchini a écrit : > I am playig around with the internationalization classes in geotools. > I have a few quick questions for you :-) > > is there any doc available on thir internal machinery
I never documented GeoTools IndexResourceBundle because I though that it would be temporary. This class lives in org.geotools.resources (our non-commited package for internal stuff) on purpose. In the Java 2 days, the javadoc in java.util.ResourceBundle said that they would improve resources bundles, so I waited. In Java 6 it appears that an improvement landed in the form of ResourceBundle.Control: http://java.sun.com/javase/6/docs/api/java/util/ResourceBundle.Control.html Unfortunatly we are not yet allowed to use Java 6 in GeoTools... > would it be possible to have the message files distributed on a per > module base instead of the actual centralized approach? I have managed > to do something like it but I am having troubles with the utf files > generation. You can duplicate what is done there (for UTF generation, look at Compiler.java. It is small). https://seagis.svn.sourceforge.net/svnroot/seagis/trunk/postgrid/src/main/java/net/seagis/resources/i18n But all this stuff is bad, uncommited API. I just never had the time to do something better, was waiting for Sun improvement in ResourceBundle and now waiting for authorisation to target Java 6 in GeoTools... Martin ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
