Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: TTranslation LoadTranslation<TTranslation>(string, Language)

  • Declared in: RT.Lingo.Lingo

Declaration

public static TTranslation LoadTranslation<TTranslation>(
    string module,
    Language language
)

Summary

Loads and returns the translation for the specified module and language. The translation must exist in the application executable directory under a subdirectory called "Translations". If the translation cannot be loaded successfully, an exception is thrown.

Generic type parameters

TTranslation
  • Must derive from: RT.Lingo.TranslationBase.
  • Must have a default constructor.
The type of the translation class to load the translation into.

Parameters

stringmoduleThe name of the module whose translation to load.
LanguagelanguageThe language code of the language to load.

Returns

The loaded translation.