Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: TTranslation CreateTranslation<TTranslation>(string, string, float)

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
  • Must derive from: RT.Lingo.TranslationBase.
  • Must have a default constructor.
Class containing the translatable strings.

Parameters

stringmoduleNameName of the module being translated (forms part of the translation's XML file).
stringfontNameSpecifies the name of the font to use in this dialog, or null for the default font.
floatfontSizeSpecifies 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.