Author: tchemit Date: 2014-05-14 14:31:56 +0200 (Wed, 14 May 2014) New Revision: 2828 Url: http://forge.nuiton.org/projects/jaxx/repository/revisions/2828 Log: report refs #5062 [PUPITRI] Gestion du m?\195?\169lange (from version 3.4.2) Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/I18nHelper.java Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/I18nHelper.java =================================================================== --- trunk/jaxx-compiler/src/main/java/jaxx/compiler/I18nHelper.java 2014-05-13 17:04:46 UTC (rev 2827) +++ trunk/jaxx-compiler/src/main/java/jaxx/compiler/I18nHelper.java 2014-05-14 12:31:56 UTC (rev 2828) @@ -87,7 +87,7 @@ if (log.isDebugEnabled()) { log.debug(" try i18n support for [" + widgetId + ":" + attributeName + "] : " + attributeValueCode); } - if (attributeValueCode.contains("t(") && attributeValueCode.contains(")") && !attributeValueCode.contains(",")) { + if (!attributeValueCode.contains("t()") && attributeValueCode.contains("t(") && attributeValueCode.contains(")") && !attributeValueCode.contains(",")) { compiler.reportWarning("\n\tjaxx supports i18n, no need to add explicit call to I18n.t for attribute '" + attributeName + "' in component '" + widgetId + "' : [" + attributeValueCode + "]"); } else { compiler.addImport("static " + I18n.class.getName() + ".t");