package bambooAL.internationalization; import java.util.*; import java.text.*; /** * Classe permettant le chargement du ressourceBundle dans la * locale voulue. * Date de création : (02/06/2004 09:53:52) * @author : SBO */ public class BooI18N { public static Locale BOO_LOCALE = getLocale(); public static ResourceBundle BOO_RESSOURCE_BUNDLE = getRB(); /**uage * Insérez la description de la méthode à cet endroit. * Date de création : (05/08/2004 11:02:07) * @author : Marjolaine BODIN */ public static Locale getLocale() { //INT_BEGIN int=0 Properties langProp = new Properties(); try { java.io.FileInputStream fis = new java.io.FileInputStream("language.properties"); langProp.load(fis); fis.close(); } catch (Exception e) { e.printStackTrace(); langProp = null; } return new Locale(langProp.getProperty("language"),""); //INT_END } /** * Insérez la description de la méthode à cet endroit. * Date de création : (05/08/2004 11:02:07) * @author : Marjolaine BODIN */ public static ResourceBundle getRB() { //INT int=0 return ResourceBundle.getBundle("Internationalisation\\bambooLanguage", BOO_LOCALE); } }