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) throws SoyMsgException
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) throws SoyMsgException
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.