|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.workplace.CmsXmlLanguageFile
| Field Summary | |
static String |
C_BUNDLE_NAME
The name of the property file |
| Constructor Summary | |
CmsXmlLanguageFile(CmsObject cms)
Constructor for creating a new language file initialized with the workplace preferences locale of the current user. |
|
CmsXmlLanguageFile(CmsObject cms,
String locale)
Constructor for creating a new language file initialized with the provided locale. |
|
| Method Summary | |
static String |
getCurrentUserLanguage(CmsObject cms)
Returns the language set for the current user. |
String |
getEncoding()
Returns the content encoding defined for this language. |
String |
getLanguageValue(String keyName)
Returns the language value of the requested label key. |
CmsMessages |
getMessages()
Returns the messages initialized for this language file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String C_BUNDLE_NAME
| Constructor Detail |
public CmsXmlLanguageFile(CmsObject cms)
throws CmsException
cms - for accessing system resources
public CmsXmlLanguageFile(CmsObject cms,
String locale)
throws CmsException
cms - for accessing system resourceslocale - the locale to initialize| Method Detail |
public String getEncoding()
public CmsMessages getMessages()
public String getLanguageValue(String keyName)
keyName - the key for the desired string
public static String getCurrentUserLanguage(CmsObject cms)
This is look up in the following places:
cms - for accessing system resources
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||