Jump to content
Sign in to follow this  
Guest edwardt_tril

localization of script

Recommended Posts

Guest edwardt_tril

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
erebus

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
roctavio

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.