Class I18N
java.lang.Object
com.logicaldoc.gui.common.client.i18n.I18N
Retrieves i18n resources
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
I18N
public I18N()
-
-
Method Details
-
messageWithDefault
-
message
-
message
-
message
-
message
-
message
-
getLocale
-
getDefaultLocaleForDoc
Computes the default suitable language for documents- Returns:
- the default locale
-
groupingSepator
public static char groupingSepator() -
decimalSepator
public static char decimalSepator() -
setLocale
-
getSupportedLanguages
-
getSupportedGuiLanguages
-
getLanguages
-
setLanguages
-
init
-
init
-
getGuiLanguages
-
setGuiLanguages
-
formatDateShort
-
formatDate
-
formatDateLong
-
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
-