Class I18N
java.lang.Object
com.logicaldoc.gui.common.client.i18n.I18N
Retrieves i18n resources
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic charstatic StringformatDate(Date date) static StringformatDateLong(Date date) static StringformatDateShort(Date date) static StringgetAttributeLabel(String name) static com.smartgwt.client.types.DateDisplayFormatgetDateDisplayFormat(boolean withTime) static com.google.gwt.i18n.client.DateTimeFormatstatic com.google.gwt.i18n.client.DateTimeFormatstatic StringComputes the default suitable language for documentsstatic StringgetSupportedGuiLanguages(boolean addEmpty) getSupportedLanguages(boolean addEmpty) static charstatic voidstatic voidstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic StringmessageWithDefault(String key, String def) static voidsetGuiLanguages(List<GUIValue> guiLanguages) static voidsetLanguages(List<GUIValue> languages) static void
- 
Constructor Details- 
I18Npublic I18N()
 
- 
- 
Method Details- 
messageWithDefault
- 
message
- 
message
- 
message
- 
message
- 
message
- 
getLocale
- 
getDefaultLocaleForDocComputes the default suitable language for documents- Returns:
- the default locale
 
- 
groupingSepatorpublic static char groupingSepator()
- 
decimalSepatorpublic static char decimalSepator()
- 
setLocale
- 
getSupportedLanguages
- 
getSupportedGuiLanguages
- 
getLanguages
- 
setLanguages
- 
init
- 
init
- 
getGuiLanguages
- 
setGuiLanguages
- 
formatDateShort
- 
formatDate
- 
formatDateLong
- 
getDateFormatShortpublic static com.google.gwt.i18n.client.DateTimeFormat getDateFormatShort()
- 
getDateFormatpublic static com.google.gwt.i18n.client.DateTimeFormat getDateFormat()
- 
getDateDisplayFormatpublic static com.smartgwt.client.types.DateDisplayFormat getDateDisplayFormat(boolean withTime) 
- 
getAttributeLabel
 
-