OneLocaleDlg_Dialog(parentTitle, locale_info_object)
OneLocaleDlg_Result()OneLocaleDlg_Result() {
msg := OneLocaleDlg.StatusMessage
if (msg = "Cancel") ; user Canceled
return
if (InStr(msg, "Language=")) ; user selected a new language
Reload ; easiest way to update the language
; if here, something went wrong
MsgBox msg
return
}
{String} sParentWinTitle - the parent window’s Title
{Object} optional_args - a set of named values, listed below.
You only need to supply the values which are non-default.
sLangFolder {String} default = “lang”
sLangFolder is “” (empty), .LANG files go in script directorysName {String} default = “”
sName is empty (default), it’s set to A_ScriptName without extensionlangID {String} the current Language ID
langID overrides any .INI file entry.langID argument, A_Language will be used for automatic
language selection (provided a compatible language file has been installed)langID sources, lowest to highest priotity:
A_Language, .INI file, optional_argslangID (wherever it came from) isn’t a valid language ID, this routine fails.mapPriority - {Boolean} determines whether Maps or Files have
priority when a given Language is supported by both; if true (default),
Maps have priority (does not affect dialog listbox sort order):point_right: NOTE simply pass the returned object from OneLocale_Init().
OneLocaleDlg_Result(), which you must write (see generic implementation below)Sets global OneLocaleDlg.StatusMessage.
OneLocaleDlg.StatusMessage will have an error message.Back to README