Declaration
public static TTranslation CreateTranslation<TTranslation>(
string moduleName,
string fontName,
float fontSize
)
Summary
Presents the user with a dialog to select a language from, and (if they click "OK") creates a new XML file for the new translation.
Generic type parameters
TTranslation | Class containing the translatable strings. |
Parameters
string | moduleName | Name of the module being translated (forms part of the translation's XML file). |
string | fontName | Specifies the name of the font to use in this dialog, or null for the default font. |
float | fontSize | Specifies the size of the font to use in this dialog. Ignored if fontName is null. |
Returns
If the user clicked OK, creates a new XML file and returns the translation. If the user clicked Cancel, returns null.