java.lang.Object
com.logicaldoc.gui.common.client.i18n.I18N

public class I18N extends Object
Retrieves i18n resources
Since:
6.0
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • I18N

      public I18N()
  • Method Details

    • messageWithDefault

      public static String messageWithDefault(String key, String def)
    • message

      public static String message(String key)
    • message

      public static String message(String key, String val)
    • message

      public static String message(String key, String val1, String val2)
    • message

      public static String message(String key, String[] vals)
    • getLocale

      public static String getLocale()
    • getDefaultLocaleForDoc

      public static String getDefaultLocaleForDoc()
      Computes the default suitable language for documents
      Returns:
      the default locale
    • groupingSepator

      public static char groupingSepator()
    • decimalSepator

      public static char decimalSepator()
    • setLocale

      public static void setLocale(String locale)
    • getSupportedLanguages

      public static LinkedHashMap<String,String> getSupportedLanguages(boolean addEmpty)
    • getSupportedGuiLanguages

      public static LinkedHashMap<String,String> getSupportedGuiLanguages(boolean addEmpty)
    • getLanguages

      public GUIValue[] getLanguages()
    • setLanguages

      public static void setLanguages(GUIValue[] languages)
    • init

      public static void init(GUIInfo info)
    • init

      public static void init(GUIUser user)
    • getGuiLanguages

      public static GUIValue[] getGuiLanguages()
    • setGuiLanguages

      public static void setGuiLanguages(GUIValue[] guiLanguages)
    • formatDateShort

      public static String formatDateShort(Date date)
    • formatDate

      public static String formatDate(Date date)
    • formatDateLong

      public static String formatDateLong(Date date)
    • getDateFormatShort

      public static com.google.gwt.i18n.client.DateTimeFormat getDateFormatShort()
    • getDateFormat

      public static com.google.gwt.i18n.client.DateTimeFormat getDateFormat()
    • getDateDisplayFormat

      public static com.smartgwt.client.types.DateDisplayFormat getDateDisplayFormat(boolean withTime)
    • getAttributeLabel

      public static String getAttributeLabel(String name)