Index: lutinutil/src/java/org/codelutin/i18n/LanguageManager.java diff -u lutinutil/src/java/org/codelutin/i18n/LanguageManager.java:1.3 lutinutil/src/java/org/codelutin/i18n/LanguageManager.java:1.4 --- lutinutil/src/java/org/codelutin/i18n/LanguageManager.java:1.3 Mon Mar 3 13:17:42 2008 +++ lutinutil/src/java/org/codelutin/i18n/LanguageManager.java Mon Mar 17 22:37:03 2008 @@ -63,6 +63,8 @@ Language result = getLanguage(locale, encoding); if (result == null) { result = addLanguage(locale, encoding); + } else { + log.debug("using cached " + result); } LanguageManager.language = result; } Index: lutinutil/src/java/org/codelutin/i18n/I18n.java diff -u lutinutil/src/java/org/codelutin/i18n/I18n.java:1.11 lutinutil/src/java/org/codelutin/i18n/I18n.java:1.12 --- lutinutil/src/java/org/codelutin/i18n/I18n.java:1.11 Mon Mar 3 13:17:42 2008 +++ lutinutil/src/java/org/codelutin/i18n/I18n.java Mon Mar 17 22:37:03 2008 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.11 $ + * @version $Revision: 1.12 $ * - * Mise a jour: $Date: 2008-03-03 13:17:42 $ + * Mise a jour: $Date: 2008-03-17 22:37:03 $ * par : $Author: tchemit $ */ @@ -69,14 +69,6 @@ /** Filtre a appliquer avant de retourner les chaines */ protected static I18nFilter filter; - /** - * l'objet langue à utiliser - * - * @deprecated Utiliser plutot LanguageManager.getLanguage() a la place - * par l'intermediare du getter getLanguage() - */ - protected static Language language; - /** Indique le chamin du fichier dans lequel ecrire les entrees non trouvees */ protected static String recordFilePath; Index: lutinutil/src/java/org/codelutin/i18n/I18nable.java diff -u /dev/null lutinutil/src/java/org/codelutin/i18n/I18nable.java:1.1 --- /dev/null Mon Mar 17 22:37:11 2008 +++ lutinutil/src/java/org/codelutin/i18n/I18nable.java Mon Mar 17 22:37:03 2008 @@ -0,0 +1,30 @@ +/** + * ##% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * ##% + */ +package org.codelutin.i18n; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Une annotation pour marquer les classes java a traiter par le plugin i18n pour traiter les clefs. + * + * @author chemit + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +public @interface I18nable { +}