public interface SoyBidirectionalMsgPlugin extends SoyMsgPlugin
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
generateTranslatedMsgsFile(SoyMsgBundle msgBundle,
SoyMsgBundleHandler.OutputFileOptions options)
Builds the content of a translated msgs file from a given message bundle object.
|
SoyMsgBundle |
parseExtractedMsgsFile(String extractedMsgsFileContent)
Parses the content of an extracted messages file (source messages to be translated) and builds
a message bundle object.
|
generateExtractedMsgsFile, parseTranslatedMsgsFileSoyMsgBundle parseExtractedMsgsFile(String extractedMsgsFileContent)
Currently, this method exists purely for consistency. There's currently no functionality in Soy that uses this method.
extractedMsgsFileContent - The content of the extracted messages file.SoyMsgException - If there was an error parsing the file content.CharSequence generateTranslatedMsgsFile(SoyMsgBundle msgBundle, SoyMsgBundleHandler.OutputFileOptions options)
For example, the given message bundle may be the result of postprocessing a message bundle parsed from an original translated msgs file.
msgBundle - The bundle of messages.options - The options to use for generating the translated msgs file. Not all options will
apply to all message plugins.SoyMsgException - If there was an error building the file content.