ItEr34S15ArquitecturaServidorItEr33S13: Added mock I18nHelper in navalplanner-business

This commit is contained in:
Diego Pino Garcia 2009-11-12 17:54:52 +01:00 committed by Javier Moran Rua
parent d21bf569ae
commit 77b50e6295

View file

@ -20,53 +20,44 @@
package org.navalplanner.business.i18n; package org.navalplanner.business.i18n;
import java.util.HashMap;
import java.util.Locale; import java.util.Locale;
import com.sun.org.apache.xml.internal.security.utils.I18n; import org.xnap.commons.i18n.I18n;
import org.xnap.commons.i18n.I18nFactory;
public class I18nHelper { public class I18nHelper {
// private I18nHelper() { private I18nHelper() {
// }
// }
// private static HashMap<Locale, I18n> localesCache = new HashMap<Locale, I18n>();
// public static I18n getI18n() {
// public static I18n getI18n() { return I18nFactory.getI18n(I18nHelper.class, Locale.getDefault(),
// if (localesCache.keySet().contains(Locales.getCurrent())) { org.xnap.commons.i18n.I18nFactory.FALLBACK);
// return localesCache.get(Locales.getCurrent()); }
// }
// public static String _(String text) {
// I18n i18n = I18nFactory.getI18n(I18nHelper.class, Locales return getI18n().tr(text);
// .getCurrent(), }
// org.xnap.commons.i18n.I18nFactory.FALLBACK);
// localesCache.put(Locales.getCurrent(), i18n); public static String _(String text, Object o1) {
// return getI18n().tr(text, o1);
// return i18n; }
// }
// public static String _(String text, Object o1, Object o2) {
// public static String _(String text) { return getI18n().tr(text, o1, o2);
// return getI18n().tr(text); }
// }
// public static String _(String text, Object o1, Object o2, Object o3) {
// public static String _(String text, Object o1) { return getI18n().tr(text, o1, o2, o3);
// return getI18n().tr(text, o1); }
// }
// public static String _(String text, Object o1, Object o2, Object o3,
// public static String _(String text, Object o1, Object o2) { Object o4) {
// return getI18n().tr(text, o1, o2); return getI18n().tr(text, o1, o2, o3, o4);
// } }
//
// public static String _(String text, Object o1, Object o2, Object o3) { public static String _(String text, Object[] objects) {
// return getI18n().tr(text, o1, o2, o3); return getI18n().tr(text, objects);
// } }
//
// public static String _(String text, Object o1, Object o2, Object o3,
// Object o4) {
// return getI18n().tr(text, o1, o2, o3, o4);
// }
//
// public static String _(String text, Object[] objects) {
// return getI18n().tr(text, objects);
// }
} }