- Declared in: RT.Lingo.Lingo
Declaration
public static TTranslation LoadTranslationOrDefault<TTranslation>(
string module,
ref Language language
)
Summary
Attempts to load 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 loaded successfully, returns the translation instance.
Otherwise, the
TTranslation default constructor is called and the result returned, and
language is set to the default language returned by this constructor.
Generic type parameters
TTranslation | The type of the translation class to load the translation into. |
Parameters
string | module | The name of the module whose translation to load. |
ref Language | language | The language code of the language to load. This is set to the default language if the specified language cannot be loaded. |
Returns
The loaded or default translation.