Jump to content

Recommended Posts

Posted

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?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...