public class BundleWriterNg2Translate extends BundleWriterJson
BundleWriter.FileTypeallowedLocales, bundles, configFile, currentBundle, debugMode, deleteOldFiles, fileType, flexLayout, myUsedLocales, outputPath, overwrite, task| Constructor and Description |
|---|
BundleWriterNg2Translate(org.apache.tools.ant.Task task,
String configFile,
String outputPath,
String outputFile,
BundleWriter.FileType fileType,
Set<String> allowedLocales) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addGroupedEntries(String locale,
org.codehaus.jettison.json.JSONObject slot,
MBBundle bundle,
boolean merged,
boolean debugMode,
org.apache.tools.ant.Task task) |
protected void |
deleteFiles() |
protected String |
getFileName(String locale) |
protected List<String> |
getLocalesUsed() |
protected boolean |
needsNewFiles()
true when generation is neccessary, false when up-to-date
|
static List<String> |
split(String baseOrKey) |
protected String |
suffix() |
protected void |
writeOutputFilePerLocale(String locale) |
protected void |
writeOutputFiles()
generate the current bundle's property files
|
build, buildOutputFileNameBase, getOutputFile, isMerged, setMergedbuildOutputFileNameBase, createProperties, createProperties, deleteFiles, execute, getCurrentBundle, getFileNameFlex, getFileNameJava, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, setBundles, setDebugMode, setDeleteOldFiles, setFlexLayout, setOverwriteprotected boolean needsNewFiles()
throws FileNotFoundException
BundleWriterneedsNewFiles in class BundleWriterFileNotFoundExceptionprotected void writeOutputFiles()
throws Exception
BundleWriterwriteOutputFiles in class BundleWriterExceptionprotected List<String> getLocalesUsed()
getLocalesUsed in class BundleWriterprotected String suffix()
suffix in class BundleWriterJsonprotected void deleteFiles()
deleteFiles in class BundleWriterprotected void writeOutputFilePerLocale(String locale) throws Exception
writeOutputFilePerLocale in class BundleWriterJsonExceptionpublic static void addGroupedEntries(String locale, org.codehaus.jettison.json.JSONObject slot, MBBundle bundle, boolean merged, boolean debugMode, org.apache.tools.ant.Task task) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected String getFileName(String locale)
getFileName in class BundleWriterCopyright © 2017. All rights reserved.