Class I18N
- 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 Summary
Constructors Constructor Description I18N()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static char
decimalSepator()
static String
formatDate(Date date)
static String
formatDateShort(Date date)
static String
getAttributeLabel(String name)
static com.smartgwt.client.types.DateDisplayFormat
getDateDisplayFormat(boolean withTime)
static com.google.gwt.i18n.client.DateTimeFormat
getDateFormat()
static com.google.gwt.i18n.client.DateTimeFormat
getDateFormatShort()
static String
getDefaultLocaleForDoc()
Computes the default suitable language for documentsstatic GUIValue[]
getGuiLanguages()
GUIValue[]
getLanguages()
static String
getLocale()
static LinkedHashMap<String,String>
getSupportedGuiLanguages(boolean addEmpty)
static LinkedHashMap<String,String>
getSupportedLanguages(boolean addEmpty)
static char
groupingSepator()
static void
init(GUIInfo info)
static String
message(String key)
static String
message(String key, String val)
static String
message(String key, String[] vals)
static String
message(String key, String val1, String val2)
static String
messageWithDefault(String key, String def)
static void
setGuiLanguages(GUIValue[] guiLanguages)
static void
setLanguages(GUIValue[] languages)
static void
setLocale(String locale)
-
-
-
Method Detail
-
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)
-
getGuiLanguages
public static GUIValue[] getGuiLanguages()
-
setGuiLanguages
public static void setGuiLanguages(GUIValue[] guiLanguages)
-
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)
-
-