org.apache.tools.ant.taskdefs.optional.i18n
public class Translate extends MatchingTask
Method Summary | |
---|---|
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. |
Parameters: set the fileset to be added
Throws: BuildException if the required attributes are not set
Required :
Parameters: bundle family name of resource bundle
Parameters: bundleCountry country of the bundle
Parameters: bundleEncoding bundle file encoding scheme
Parameters: bundleLanguage langage of the bundle
Parameters: bundleVariant locale variant of resource bundle
Parameters: destEncoding destination file encoding scheme
Parameters: endToken ending token to identify keys
Parameters: forceOverwrite whether or not to overwrite existing files
Parameters: srcEncoding source file encoding
Parameters: startToken starting token to identify keys
Parameters: toDir destination directory