|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ant.ConditionalElement
de.enough.polish.ant.Setting
de.enough.polish.ant.build.LocalizationSetting
public class LocalizationSetting
Stores the localization settings.
Copyright Enough Software 2004 - 2011
history
09-Sep-2004 - rob creation
| Constructor Summary | |
|---|---|
LocalizationSetting()
Creates an empty setting |
|
| Method Summary | |
|---|---|
void |
addConfiguredLocale(LocaleSetting setting)
Adds a specific setting for a locale, this can be used for allowing different locale dependent encodings, for example. |
void |
addConfiguredLocalesetting(LocaleSetting setting)
Adds a specific setting for a locale, this can be used for allowing different locale dependent encodings, for example. |
void |
addConfiguredLocaleSetting(LocaleSetting setting)
Adds a specific setting for a locale, this can be used for allowing different locale dependent encodings, for example. |
LocaleSetting |
getDefaultLocale()
Retrieves the default locale. |
String |
getExternalMessagesFileName()
Retrieves the file-name containing the messages for localizations which should be loaded at a later stage. |
String |
getMessagesFileName()
Retrieves the file-name containing the messages for localizations. |
String |
getPreprocessorClassName()
Retrieves the name of the preprocessor class. |
LocaleSetting[] |
getSupportedLocales(Environment env)
Retrieves all supported locales. |
String |
getSupportedLocalesAsString(Environment env)
Retrieves all supported locale as a comma separated string, e.g. |
String |
getTranslationManagerClassName()
Retrieves the name of the translation manager class. |
boolean |
includeAllLocales()
Determines whether all found locales should be included. |
boolean |
isDynamic()
Determines whether dynamic translations should be supported. |
boolean |
isValid()
Checks if this localization setting is valid |
void |
setDefault(String locale)
Sets the default locale. |
void |
setDefaultLocale(String locale)
Sets the default locale. |
void |
setDynamic(boolean dynamic)
Defines whether dynamic translations should be supported. |
void |
setExternalMessages(String messages)
Sets the name of messages-files which can be loaded later after application start, e.g. |
void |
setLocale(String locale)
Sets a single locale |
void |
setLocales(String supportedLocalesStr)
Sets the locales which should be supported during this build. |
void |
setMessages(String messages)
Sets the name of messages-files. |
void |
setPreprocessor(String preprocessorClassName)
Sets the name of the preprocessor class. |
void |
setTranslationManager(String translationManagerClassName)
Sets the name of the translation manager class. |
| Methods inherited from class de.enough.polish.ant.Setting |
|---|
addConfiguredParameter, getAllParameters, getParameters, hasParameters |
| Methods inherited from class de.enough.polish.ant.ConditionalElement |
|---|
getCondition, getIf, getUnless, isActive, isActive, isActive, isActive, setIf, setUnless |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalizationSetting()
| Method Detail |
|---|
public void addConfiguredLocaleSetting(LocaleSetting setting)
setting - the settingpublic void addConfiguredLocalesetting(LocaleSetting setting)
setting - the settingpublic void addConfiguredLocale(LocaleSetting setting)
setting - the settingpublic LocaleSetting[] getSupportedLocales(Environment env)
env - the environment
public void setLocales(String supportedLocalesStr)
supportedLocalesStr - The locales which should be supported or "*" for all found locales.public void setLocale(String locale)
locale - the supported localepublic boolean includeAllLocales()
public void setMessages(String messages)
messages - the name of files containing the messages.public String getMessagesFileName()
public void setExternalMessages(String messages)
messages - the name of files containing the messages.public String getExternalMessagesFileName()
public boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic - true when dynamic translations should be supported.public void setDefault(String locale)
locale - the default locale, e.g. "en_US"setDefaultLocale(String)public void setDefaultLocale(String locale)
locale - the default locale, e.g. "en_US"public LocaleSetting getDefaultLocale()
public String getPreprocessorClassName()
public void setPreprocessor(String preprocessorClassName)
preprocessorClassName - the class name of the preprocessorpublic String getTranslationManagerClassName()
public void setTranslationManager(String translationManagerClassName)
translationManagerClassName - the class name of the translation managerpublic String getSupportedLocalesAsString(Environment env)
env - the environment
public boolean isValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||