org.apache.tools.ant.taskdefs.optional.i18n
Class Translate
- SelectorContainer
Translates text embedded in files using Resource Bundle files.
Since ant 1.6 preserves line endings
void | addFileset(FileSet set) - Adds a set of files to translate as a nested fileset element.
|
void | execute() - Check attributes values, load resource map and translate
|
void | setBundle(String bundle) - Sets Family name of resource bundle; required.
|
void | setBundleCountry(String bundleCountry) - Sets locale specific country of resource bundle; optional.
|
void | setBundleEncoding(String bundleEncoding) - Sets Resource Bundle file encoding scheme; optional.
|
void | setBundleLanguage(String bundleLanguage) - Sets locale specific language of resource bundle; optional.
|
void | setBundleVariant(String bundleVariant) - Sets locale specific variant of resource bundle; optional.
|
void | setDestEncoding(String destEncoding) - Sets destination file encoding scheme; optional.
|
void | setEndToken(String endToken) - Sets ending token to identify keys; required.
|
void | setForceOverwrite(boolean forceOverwrite) - Whether or not to overwrite existing file irrespective of
whether it is newer than the source file as well as the
resource bundle file.
|
void | setSrcEncoding(String srcEncoding) - Sets source file encoding scheme; optional,
defaults to encoding of local system.
|
void | setStartToken(String startToken) - Sets starting token to identify keys; required.
|
void | setToDir(File toDir) - Sets Destination directory; required.
|
XsetIgnore , XsetItems , add , addAnd , addContains , addContainsRegexp , addCustom , addDate , addDepend , addDepth , addDifferent , addFilename , addMajority , addModified , addNone , addNot , addOr , addPresent , addSelector , addSize , addType , appendSelector , createExclude , createExcludesFile , createInclude , createIncludesFile , createPatternSet , getDirectoryScanner , getImplicitFileSet , getSelectors , hasSelectors , selectorCount , selectorElements , setCaseSensitive , setDefaultexcludes , setExcludes , setExcludesfile , setFollowSymlinks , setIncludes , setIncludesfile , setProject |
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
addFileset
public void addFileset(FileSet set)
Adds a set of files to translate as a nested fileset element.
set
- the fileset to be added
execute
public void execute()
throws BuildException
Check attributes values, load resource map and translate
- execute in interface Task
setBundle
public void setBundle(String bundle)
Sets Family name of resource bundle; required.
bundle
- family name of resource bundle
setBundleCountry
public void setBundleCountry(String bundleCountry)
Sets locale specific country of resource bundle; optional.
bundleCountry
- country of the bundle
setBundleEncoding
public void setBundleEncoding(String bundleEncoding)
Sets Resource Bundle file encoding scheme; optional. Defaults to source file
encoding
bundleEncoding
- bundle file encoding scheme
setBundleLanguage
public void setBundleLanguage(String bundleLanguage)
Sets locale specific language of resource bundle; optional.
bundleLanguage
- langage of the bundle
setBundleVariant
public void setBundleVariant(String bundleVariant)
Sets locale specific variant of resource bundle; optional.
bundleVariant
- locale variant of resource bundle
setDestEncoding
public void setDestEncoding(String destEncoding)
Sets destination file encoding scheme; optional. Defaults to source file
encoding
destEncoding
- destination file encoding scheme
setEndToken
public void setEndToken(String endToken)
Sets ending token to identify keys; required.
endToken
- ending token to identify keys
setForceOverwrite
public void setForceOverwrite(boolean forceOverwrite)
Whether or not to overwrite existing file irrespective of
whether it is newer than the source file as well as the
resource bundle file.
Defaults to false.
forceOverwrite
- whether or not to overwrite existing files
setSrcEncoding
public void setSrcEncoding(String srcEncoding)
Sets source file encoding scheme; optional,
defaults to encoding of local system.
srcEncoding
- source file encoding
setStartToken
public void setStartToken(String startToken)
Sets starting token to identify keys; required.
startToken
- starting token to identify keys
setToDir
public void setToDir(File toDir)
Sets Destination directory; required.
toDir
- destination directory
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.