Jump to content

localization of script


Guest edwardt_tril
 Share

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 .....

Link to comment
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.

Link to comment
Share on other sites

  • 2 years later...

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

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