Sign in to follow this  
Followers 0
Guest edwardt_tril

localization of script

4 posts in this topic

in visual test we can do localization of those windows titile text,

button text, as long as those strings are found in the string table ..

so that we don't need to write those same function again and again

and wrose of all, testing them again and again and again .. GOSH ...

just becasue the underlying product display differently in other language

does autoit allow this kind of functionality?

please post your scripts or any suggestion .....

Share this post


Link to post
Share on other sites



If I understood correctly:

You may write your texts in an ini file, dividing it to language sections as desired (i.e...

[English]
Text1=Welcome to my program
Text2=Press this button
Text3=to exit

[Greek]
Text1=Καλώς ήρθατε στο πρόγραμμά μου
Text2=Πατήστε αυτό το πλήκτρο
Text3=για να κλείσετε το πρόγραμμα

After that you will call each option (Text1, Text2 etc) depending on the Regional Setting of each user, or the language it prefers based on a check in your program... That's all.

Share this post


Link to post
Share on other sites

That option to have the translated strings seems easy until you start dealing with a huge UI where the button text or dialogs are constantly changing.

Is there a way to script for a button ID instead of the specific text. This would make the script work no matter what language/text was displayed in the button.

Share this post


Link to post
Share on other sites

Autoit Info Tool - Look for classname or id :whistle:


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - 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