-
Notifications
You must be signed in to change notification settings - Fork 1
/
example-user-program.au3
27 lines (24 loc) · 1.25 KB
/
example-user-program.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.2
Author: Martin Stut
Script Function:
Example of an end user program that is available in several languages
#ce ----------------------------------------------------------------------------
AutoItSetOption("MustDeclareVars", 1)
#include "gettext_au3_runtime_library.au3"
Local $apptitle = "Internationalized Test Application"
Global $gettext_au3_lang = gettext_au3_language_select_ui($apptitle, gettext_au3_language_list(), gettext_au3_windows2char(@OSLang))
Local $apptitle = gettext("Internationalized Test Application")
Local $apptitle_en = $gettext_au3_sourceString
MsgBox(64, $apptitle, StringFormat(gettext("gettext_au3_language_select_ui() has returned %s%s%s."), '"', $gettext_au3_lang, '"'))
If $gettext_au3_lang = "cancel" Then
Exit
EndIf
Local $sBook = gettext("Gospel of John")
Local $nChapter = 3
Local $nVerse = 16
$gettext_au3_sourceString = ""
MsgBox(64, $apptitle, StringFormat(gettext("Jesus loves you!") & @CRLF & gettext("See the Bible, %s, chapter %d, verse %d."), $sBook, $nChapter, $nVerse))
MsgBox(64, $apptitle_en, StringFormat($gettext_au3_sourceString, $sBook, $nChapter, $nVerse))
MsgBox(64, $apptitle, gettext("Good bye!"))
Exit