Author: glandais Date: 2008-02-26 12:58:07 +0000 (Tue, 26 Feb 2008) New Revision: 1249 Modified: trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/ContentType.java trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java Log: i18n Modified: trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/ContentType.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/ContentType.java 2008-02-26 10:38:06 UTC (rev 1248) +++ trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/ContentType.java 2008-02-26 12:58:07 UTC (rev 1249) @@ -23,14 +23,14 @@ /** * Content handler contract. - * + * * @author landais */ public interface ContentType extends Serializable { /** * Index content. - * + * * @param is Input stream * @return Indexable text * @throws Exception the exception @@ -39,14 +39,14 @@ /** * Gets the mime type. - * + * * @return the mimeType */ String getMimeType(); /** - * Gets the description. - * + * Gets the description (as a i18n key, application using this library has to translate by itself, using _ method). + * * @return the description */ String getDescription(); Modified: trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java 2008-02-26 10:38:06 UTC (rev 1248) +++ trunk/simexplorer-is/simexplorer-is-entities/src/java/fr/cemagref/simexplorer/is/entities/attachment/RawType.java 2008-02-26 12:58:07 UTC (rev 1249) @@ -17,7 +17,7 @@ * ##% */ package fr.cemagref.simexplorer.is.entities.attachment; -import static org.codelutin.i18n.I18n._; +import static org.codelutin.i18n.I18n.n_; import java.io.InputStream; import java.io.InputStreamReader; @@ -47,9 +47,7 @@ */ @Override public String getDescription() { - //TODO, il vaudrait mieux utiliser la clef de marquage i18n - //TODO, sinon on ne peut pas changer de langue... - return _("simexplorer.contenttype.rawtype"); + return n_("simexplorer.contenttype.rawtype"); } /* (non-Javadoc)