Class I18N
java.lang.Object
com.logicaldoc.gui.common.client.i18n.I18N
Retrieves i18n resources
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic char
static String
formatDate
(Date date) static String
formatDateLong
(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
static com.google.gwt.i18n.client.DateTimeFormat
static String
Computes the default suitable language for documentsstatic GUIValue[]
GUIValue[]
static String
static LinkedHashMap<String,
String> getSupportedGuiLanguages
(boolean addEmpty) static LinkedHashMap<String,
String> getSupportedLanguages
(boolean addEmpty) static char
static void
static void
static String
static String
static String
static String
static String
messageWithDefault
(String key, String def) static void
setGuiLanguages
(GUIValue[] guiLanguages) static void
setLanguages
(GUIValue[] languages) static void
-
Constructor Details
-
I18N
public I18N()
-
-
Method Details
-
messageWithDefault
-
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
-