File SMLexicon.mys
Enhance built-in translation lexicon used by Dialog.Translate
:
- No need of a Dialog object ;
- For small scripts, can be created in 100% code, without packaging lex_*.txt files ;
- reports missing entries.
SMLexicon.mys is automatically included when you Include "SMUtils"
.
- Sylvain Machefert
Class
Class | Summary |
---|---|
Lexicon | Lexicon object that call Dialog.Translate for all texts of an item (caption, context help, items, tab labels...), and reports missing entries in lexicon file. |
Table
Table | Summary |
---|---|
Dialog.UserTable | Functions and variables in MyrScript's Dialog.UserTable |
Summary
Return type | Function and summary |
---|---|
SetDefaultLanguage(string language) At the beginning of a script, force the default language for Lexicon. |
Function
SetDefaultLanguage(string language)
At the beginning of a script, force the default language for Lexicon.
Note that this language remain the default for next scripts run in the same Harmony Assistant session, unless you call ForceLanguage(nil)
.
Parameter | Type | Default | Description |
---|---|---|---|
language | string | "en", "fr" or nil |
- See
- Lexicon