Sign in to follow this  
Followers 0
LynnS

Displaying dialog in multiple languages

1 post in this topic

In the previous versions of AutoIt, it was possible to store double-byte character languages like Japanese, Chinese, and Korean in a UTF8 format ini file. Then by simply accessing the various fields in the ini file, configuring the script dialogue for different languages.

In this latest version 3.3.0.0, how can something like this be implemented? I do not understand the changes that have been made, nor why they were made.

I used to save dialog for multiple languages in ini files in UTF8 format like so:

[English]

$title = "Sophos Security Suite Install"

[spanish]

$title = "Instalación del Paquete de Seguridad Sophos"

[Korean]

$title = "Sophos Security Suite 설치"

[Chinese]

$title = "安裝 Sophos Security Suite"

[Japanese]

$title = "Sophos Security Suite インストール"

Then I'd determine the language an OS is displaying in, and set the variables to the appropriate language.

Example:

$lang = "Japanese"

$title = Translate("$title")

Func Translate($txt)

Return IniRead(@TempDir & "\Sophoslang.ini", $lang, $txt, IniRead(@TempDir & "\Sophoslang.ini", "English", $txt, $txt))

EndFunc ;==>Translate

Does anyone have any suggestions on how to get something similar to work in this latest version of AutoIt?

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0