OneLocale

OneLocaleDlg_Dialog() – language chooser

OneLocaleDlg_Dialog(parentTitle, locale_info_object)

What it does

Callback - minimal implementation

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
}

Arguments

{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.

:point_right: NOTE simply pass the returned object from OneLocale_Init().

Return value (none)

Back to README