Index: lutinutil/src/java/org/codelutin/util/LocaleConverter.java diff -u lutinutil/src/java/org/codelutin/util/LocaleConverter.java:1.1 lutinutil/src/java/org/codelutin/util/LocaleConverter.java:1.2 --- lutinutil/src/java/org/codelutin/util/LocaleConverter.java:1.1 Sat Mar 22 23:25:48 2008 +++ lutinutil/src/java/org/codelutin/util/LocaleConverter.java Sun Mar 23 20:46:54 2008 @@ -23,7 +23,6 @@ import org.apache.commons.beanutils.Converter; import static org.apache.commons.logging.LogFactory.getLog; import org.codelutin.i18n.CountryEnum; -import static org.codelutin.i18n.I18n._; import org.codelutin.i18n.LanguageEnum; import java.util.Locale; @@ -47,7 +46,7 @@ public Object convert(Class aClass, Object value) { if (value == null) { - throw new ConversionException(_("lutin.error.convertor.noValue", this)); + throw new ConversionException("can not convert null value in " + this + " convertor"); } if (isEnabled(aClass)) { Object result; @@ -60,7 +59,7 @@ return result; } } - throw new ConversionException(_("lutin.error.no.convertor", aClass.getName(), value)); + throw new ConversionException("could not find a convertor for type " + aClass.getName() + " and value : " + value); } protected Locale valueOf(String value) { @@ -77,7 +76,7 @@ return result; } catch (Exception e) { - throw new ConversionException(_("lutin.error.url.convertor", value, this, e.getMessage())); + throw new ConversionException("could not convert locale " + value + " for reason " + e.getMessage()); } }