public interface SoyMsgPlugin
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
generateExtractedMsgsFile(SoyMsgBundle msgBundle,
SoyMsgBundleHandler.OutputFileOptions options)
Builds the content of an extracted messages file (source messages to be translated) from a
given message bundle object containing messages extracted from source files.
|
SoyMsgBundle |
parseTranslatedMsgsFile(String translatedMsgsFileContent)
Parses the content of a translated messages file and builds a message bundle object.
|
CharSequence generateExtractedMsgsFile(SoyMsgBundle msgBundle, SoyMsgBundleHandler.OutputFileOptions options) throws SoyMsgException
msgBundle - The bundle of messages extracted from source files.options - The options to use for generating the extracted messages file (e.g. the source
locale/language of the messages). Not all options will apply to all message plugins.SoyMsgException - If there was an error building the file content.SoyMsgBundle parseTranslatedMsgsFile(String translatedMsgsFileContent) throws SoyMsgException
translatedMsgsFileContent - The content of the translated messages file.SoyMsgException - If there was an error parsing the file content.