|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.cms.util.LanguageUtil
Utility methods for dealing with the multilingual items.
Constructor Summary | |
LanguageUtil()
|
Method Summary | |
static Collection |
convertTo3LA(Collection list)
Takes in a list of 2 letter codes and converts into 3 letter codes. |
static Collection |
convertToFull(Collection list)
|
static Collection |
convertToG11N(Collection list)
|
static Collection |
getCreatableLanguages(ContentPage item)
Get the List of languages in which this item can be created. |
static String |
getLang3LA(String lang)
Returns three letter acronym for language code mapped from two letter code. |
static String |
getLangFull(String lang)
Returns the full language name mapped from the two letter acronym. |
static String |
getSupportedLanguages()
Get the comma separated list of all supported languages |
static Collection |
getSupportedLanguages2LA()
Returns the collection of all supported languages. |
static Collection |
getSupportedLanguages3LA()
Returns the collection of all supported languages. |
static Collection |
getSupportedLanguagesFull()
Returns the collection of all supported languages. |
static com.arsdigita.globalization.GlobalizedMessage |
globalize(String key)
|
static void |
setSupportedLanguages(String languages)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LanguageUtil()
Method Detail |
public static com.arsdigita.globalization.GlobalizedMessage globalize(String key)
public static void setSupportedLanguages(String languages)
public static String getSupportedLanguages()
public static Collection getSupportedLanguages2LA()
public static Collection getSupportedLanguages3LA()
public static Collection getSupportedLanguagesFull()
public static Collection getCreatableLanguages(ContentPage item)
public static String getLang3LA(String lang)
public static String getLangFull(String lang)
lang
- 2 letter language code
public static Collection convertTo3LA(Collection list)
public static Collection convertToFull(Collection list)
public static Collection convertToG11N(Collection list)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |