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 chardecimalSepator()static StringformatDate(Date date)static StringformatDateShort(Date date)static StringgetAttributeLabel(String name)static com.smartgwt.client.types.DateDisplayFormatgetDateDisplayFormat(boolean withTime)static com.google.gwt.i18n.client.DateTimeFormatgetDateFormat()static com.google.gwt.i18n.client.DateTimeFormatgetDateFormatShort()static StringgetDefaultLocaleForDoc()Computes the default suitable language for documentsstatic GUIValue[]getGuiLanguages()GUIValue[]getLanguages()static StringgetLocale()static LinkedHashMap<String,String>getSupportedGuiLanguages(boolean addEmpty)static LinkedHashMap<String,String>getSupportedLanguages(boolean addEmpty)static chargroupingSepator()static voidinit(GUIInfo info)static Stringmessage(String key)static Stringmessage(String key, String val)static Stringmessage(String key, String[] vals)static Stringmessage(String key, String val1, String val2)static StringmessageWithDefault(String key, String def)static voidsetGuiLanguages(GUIValue[] guiLanguages)static voidsetLanguages(GUIValue[] languages)static voidsetLocale(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)
 
 - 
 
 -