public class XliffMsgPlugin extends Object implements SoyMsgPlugin
| Constructor and Description |
|---|
XliffMsgPlugin() |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
generateExtractedMsgsFile(SoyMsgBundle msgBundle,
SoyMsgBundleHandler.OutputFileOptions options,
ErrorReporter errorReporter)
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.
|
public CharSequence generateExtractedMsgsFile(SoyMsgBundle msgBundle, SoyMsgBundleHandler.OutputFileOptions options, ErrorReporter errorReporter)
SoyMsgPlugingenerateExtractedMsgsFile in interface SoyMsgPluginmsgBundle - 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.errorReporter - For reporting errors.public SoyMsgBundle parseTranslatedMsgsFile(String translatedMsgsFileContent)
SoyMsgPluginparseTranslatedMsgsFile in interface SoyMsgPlugintranslatedMsgsFileContent - The content of the translated messages file.