Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABOUT
"about": The name for the "The article is about" text.
|
static java.lang.String |
AND
"and": The name for the "and" text.
|
static java.lang.String |
BEGIN_REVIEW
"beginReview": The name for the the start review button in review.
|
static java.lang.String |
CATEGORIES
"categories": The name for accessing the Categories page.
|
static java.lang.String |
CATEGORY
"category": The name for each Category.
|
static java.lang.String |
CONTAINING
"containing": The name for the full text search category.
|
static java.lang.String |
DAYS
"days": The name for the days.
|
static java.lang.String |
DICTIONARY
"dictionary": The name for accessing the A page.
|
static java.lang.String |
DISAMB_CAT
"disambCat": The name for the disambiguation category text.
|
static java.lang.String |
DISAMB_PRES
"disambPres": The name for a disambiguation article presentation.
|
static java.lang.String |
DISAMB_TEXT
"disambText": The name for the disambiguation text.
|
static java.lang.String |
FALLBACK_TITLE
"fallback": The name for fallback articles title.
|
static java.lang.String |
FOR
"for": The name for the "For ..., see" text.
|
static java.lang.String |
FROM
"from": The name for the "from" text.
|
static java.lang.String |
FULLTEXTSEARCH
"searchResults": The name for accessing the Full Text Search page title.
|
static java.lang.String |
GLOSSARY
"glossary": The name for the glossary.
|
static java.lang.String |
HOME
"home": The name for accessing the Home page.
|
static java.lang.String |
INDEX_CHAPTER
"index": The title for the index chapter.
|
static java.lang.String |
INTRO_CHAPTER
"introduction": The title for the introduction chapter.
|
static java.lang.String |
LANGUAGE
"language": The language name.
|
static java.lang.String |
LINKS_FROM
"linksFrom": The name for the "Pages that link to" text.
|
static java.lang.String |
LOCALE
"locale": The localization name.
|
static java.lang.String |
MAIN_ARTICLE
"mainArticle": The name for the Main Article reference.
|
static java.lang.String |
MISC_CHAPTER
"miscellanous": The title for the miscellanous topics chapter.
|
static java.lang.String |
MONTHS
"months": The name for the months.
|
static java.lang.String |
NEXT
"next": The name for the the next comment in review.
|
static java.lang.String |
NOTES
"notes": The name for the Notes chapter.
|
static java.lang.String |
NOTES_CHAPTER
"notesChapter": The title for the notes chapter.
|
static java.lang.String |
PREVIOUS
"previous": The name for the the previous comment in review.
|
static java.lang.String |
REASON
"reason": The name for the "reason" text.
|
static java.lang.String |
SEARCH
"search": The name for the "Search..." text.
|
static java.lang.String |
SEE
"see": The name for the "For ..., see" text.
|
static java.lang.String |
SEEALSO
"seealso": The name for the See Also chapter.
|
static java.lang.String |
START_REVIEW
"startReview": The name for the the start review button in review.
|
static java.lang.String |
TOC_CHAPTER
"toc": The title for the TOC_CHAPTER chapter.
|
static java.lang.String |
YEARS
"years": The name for the years.
|
Modifier and Type | Method and Description |
---|---|
static Localization |
getInstance()
Return the unique instance.
|
java.util.Locale |
getLocale()
Return the Localization associated Locale.
|
java.lang.String |
getLocalization()
Return the Localization.
|
java.lang.String |
getName(java.lang.String key)
Return the name for a key.
|
boolean |
hasKey(java.lang.String key)
Return true if a key is supported.
|
void |
reset()
Reset the Localization and sets an en-us Localization.
|
boolean |
setLocalization(java.lang.String locale)
Set the Localization for one of the built-in locale.
|
void |
setLocalization(java.lang.String locale,
java.util.Map<java.lang.String,java.lang.String> localized)
Set the properties-values for the Localization.
|
public static final java.lang.String LOCALE
public static final java.lang.String LANGUAGE
public static final java.lang.String HOME
public static final java.lang.String DICTIONARY
public static final java.lang.String CATEGORIES
public static final java.lang.String CATEGORY
public static final java.lang.String ABOUT
public static final java.lang.String FOR
public static final java.lang.String AND
public static final java.lang.String SEE
public static final java.lang.String LINKS_FROM
public static final java.lang.String MAIN_ARTICLE
public static final java.lang.String NOTES
public static final java.lang.String SEEALSO
public static final java.lang.String DISAMB_TEXT
public static final java.lang.String DISAMB_CAT
public static final java.lang.String DISAMB_PRES
public static final java.lang.String MISC_CHAPTER
public static final java.lang.String INTRO_CHAPTER
public static final java.lang.String INDEX_CHAPTER
public static final java.lang.String NOTES_CHAPTER
public static final java.lang.String TOC_CHAPTER
public static final java.lang.String SEARCH
public static final java.lang.String GLOSSARY
public static final java.lang.String FALLBACK_TITLE
public static final java.lang.String FULLTEXTSEARCH
public static final java.lang.String CONTAINING
public static final java.lang.String DAYS
public static final java.lang.String MONTHS
public static final java.lang.String YEARS
public static final java.lang.String PREVIOUS
public static final java.lang.String NEXT
public static final java.lang.String START_REVIEW
public static final java.lang.String BEGIN_REVIEW
public static final java.lang.String FROM
public static final java.lang.String REASON
public static Localization getInstance()
public java.util.Locale getLocale()
getLocalization()
does not refer to an existing
Locale.public java.lang.String getLocalization()
public void reset()
public void setLocalization(java.lang.String locale, java.util.Map<java.lang.String,java.lang.String> localized)
locale
- the localelocalized
- the properties-values Mappublic boolean setLocalization(java.lang.String locale)
locale
- the localepublic boolean hasKey(java.lang.String key)
key
- the keypublic java.lang.String getName(java.lang.String key)
HOME
key in "en-us", or "Accueil" in "fr".key
- the keyCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence