|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.openfoundation.internationalization.XPLanguageResourceSet
public class XPLanguageResourceSet
XPLanguageResourceSet is similar to XPResourceSet, except that it maps a locale or language identifier to the human readable string that describes that language or locale.
Constructor Summary | |
---|---|
XPLanguageResourceSet()
|
Method Summary | |
---|---|
java.lang.String |
GetDisplayLanguageFromLocaleID(java.lang.String sLocaleID)
MES- GetDisplayLanguageFromLocaleID is used to convert from a locale identifier (e.g. |
java.lang.String |
GetDisplayLocaleFromLocaleID(java.lang.String sLocaleID)
This method converts from a locale identifier (e.g. |
java.lang.String[] |
GetSupportedLocales()
MES- GetSupportedLocales returns an array of the locales that are mapped to languages in the UI. |
protected void |
LoadResource(java.lang.String sFileName,
java.lang.String[] arrSupportedLanguageIDs)
MES- LoadResource is used to load an instance of this class with the contents of a PropertyBag file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPLanguageResourceSet()
Method Detail |
---|
public java.lang.String GetDisplayLocaleFromLocaleID(java.lang.String sLocaleID)
sLocaleID
- is the ID of the locale to be looked up
public java.lang.String GetDisplayLanguageFromLocaleID(java.lang.String sLocaleID)
sLocaleID
- is the ID of the locale to be looked up
public java.lang.String[] GetSupportedLocales()
protected void LoadResource(java.lang.String sFileName, java.lang.String[] arrSupportedLanguageIDs) throws XPException
sFileName
- is the name of the PropertyBag file we're loadingarrSupportedLanguageIDs
- is a string array containing the Language IDs
of all the languages the UI supports (i.e. the names of all folders under the
msgs folder.
XPException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |