Method Export
Export(LocaleIdentifier, string, string, XliffVersion, ICollection<StringTableCollection>, ITaskReporter)
Exports all StringTable in collections
as 1 or more XLIFF files where each file represents a single language.
Declaration
public static void Export(LocaleIdentifier source, string directory, string name, XliffVersion version, ICollection<StringTableCollection> collections, ITaskReporter reporter = null)
Parameters
Type | Name | Description |
---|---|---|
LocaleIdentifier | source | This is the language that will be used as the source language for all generated XLIFF files. |
string | directory | The directory to output the generated XLIFF files. |
string | name | The default name for all generated XLIFF files. Files will be saved with the full name "[name]_[Language Code].xlf" |
XliffVersion | version | The XLIFF version to generate the files in. |
ICollection<StringTableCollection> | collections | 1 or more StringTableCollection. The collections will be combines into language groups where each file represents a single |
ITaskReporter | reporter | Optional reporter which can report the current progress. |
Export(StringTable, string, XliffVersion, ICollection<StringTable>, ITaskReporter)
Export the values in tables
using sourceLanguage
as the source language to one or more XLIFF files.
Declaration
public static void Export(StringTable sourceLanguage, string directory, XliffVersion version, ICollection<StringTable> tables, ITaskReporter reporter = null)
Parameters
Type | Name | Description |
---|---|---|
StringTable | sourceLanguage | This is the table that will be used as the source language for all generated XLIFF files. |
string | directory | The directory where all generated XLIFF files will be saved to. |
XliffVersion | version | The XLIFF version to generate the files in. |
ICollection<StringTable> | tables | 1 or more StringTable that will be used as the target language for each XLIFF file. 1 XLIFF file will be generated for each table. |
ITaskReporter | reporter | Optional reporter which can report the current progress. |