public enum KyeroLanguage extends Enum<KyeroLanguage>
Enum Constant and Description |
---|
AR
Arabic
|
BG
Bulgarian
|
CA
Catalan
|
CS
Czech
|
DA
Danish
|
DE
German
|
EL
Greek
|
EN
English
|
ES
Spanish
|
ET
Estonian
|
FA
Farsi
|
FI
Finnish
|
FR
French
|
HE
Hebrew
|
HI
Hindi
|
HU
Hungarian
|
ID
Indonesian
|
IT
Italian
|
JA
Japanese
|
KO
Korean
|
LT
Lithuanian
|
LV
Latvian
|
NL
Dutch
|
NO
Norwegian
|
PL
Polish
|
PT
Portuguese
|
RO
Romanian
|
RU
Russian
|
SK
Slovak
|
SL
Slovenian
|
SV
Swedish
|
TH
Thai
|
TR
Turkish
|
UK
Ukranian
|
VI
Vietnamese
|
ZH
Simplified Chinese
|
Modifier and Type | Method and Description |
---|---|
static void |
clear(LangType container)
Removes all translations from a
LangType object. |
static KyeroLanguage |
fromLanguageCode(String languageCode)
Returns the
KyeroLanguage for a certain language code. |
static KyeroLanguage |
fromLocale(Locale locale)
Returns the
KyeroLanguage for a certain Locale object. |
static KyeroLanguage[] |
getLanguages(LangType container)
Returns languages, that have a translation in a
LangType container. |
String |
getText(LangType container)
Returns the translation from a
LangType container for this
language. |
static String |
getText(LangType container,
KyeroLanguage language)
Returns the translation from a
LangType container for a language. |
void |
setText(LangType container,
String txt)
Sets the translation for this language in a
LangType container. |
static void |
setText(LangType container,
String txt,
KyeroLanguage language)
Sets the translation for a language in a
LangType container. |
String |
toLanguageCode()
Returns the language code for this language.
|
Locale |
toLocale()
Returns the
Locale for this language. |
static KyeroLanguage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KyeroLanguage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KyeroLanguage AR
public static final KyeroLanguage BG
public static final KyeroLanguage CA
public static final KyeroLanguage CS
public static final KyeroLanguage DA
public static final KyeroLanguage DE
public static final KyeroLanguage EL
public static final KyeroLanguage EN
public static final KyeroLanguage ES
public static final KyeroLanguage ET
public static final KyeroLanguage FA
public static final KyeroLanguage FI
public static final KyeroLanguage FR
public static final KyeroLanguage HE
public static final KyeroLanguage HI
public static final KyeroLanguage HU
public static final KyeroLanguage ID
public static final KyeroLanguage IT
public static final KyeroLanguage JA
public static final KyeroLanguage KO
public static final KyeroLanguage LT
public static final KyeroLanguage LV
public static final KyeroLanguage NL
public static final KyeroLanguage NO
public static final KyeroLanguage PL
public static final KyeroLanguage PT
public static final KyeroLanguage RO
public static final KyeroLanguage RU
public static final KyeroLanguage SK
public static final KyeroLanguage SL
public static final KyeroLanguage SV
public static final KyeroLanguage TH
public static final KyeroLanguage TR
public static final KyeroLanguage UK
public static final KyeroLanguage VI
public static final KyeroLanguage ZH
public static KyeroLanguage[] values()
for (KyeroLanguage c : KyeroLanguage.values()) System.out.println(c);
public static KyeroLanguage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void clear(LangType container)
LangType
object.container
- container, where translations are removed frompublic static KyeroLanguage fromLanguageCode(String languageCode)
KyeroLanguage
for a certain language code.languageCode
- the language codepublic static KyeroLanguage fromLocale(Locale locale)
KyeroLanguage
for a certain Locale
object.locale
- the localepublic static KyeroLanguage[] getLanguages(LangType container)
LangType
container.container
- container to lookuppublic String getText(LangType container)
LangType
container for this
language.container
- container to lookuppublic static String getText(LangType container, KyeroLanguage language)
LangType
container for a language.container
- container to lookuplanguage
- language to lookuppublic void setText(LangType container, String txt)
LangType
container.container
- container to modifytxt
- translation to setpublic static void setText(LangType container, String txt, KyeroLanguage language)
LangType
container.container
- container to modifytxt
- translation to setlanguage
- language to setpublic String toLanguageCode()
Copyright © 2015 OpenEstate. All rights reserved.