Open aakrandan opened 2 years ago
You could try to use command line args for this purpose. Read https://forum.xojo.com/t/start-app-in-a-different-language-with-different-locale-settings/25219 for more details.
@mykola-mokhnach thank you. I will go through the link.
Okay, the above article talks about how to launch the application in different languages. But is there a way to make use of it and automate? For example, fetching all the localised strings from the application contents folder and then comparing it with the UI strings. Can this be done?
For example, fetching all the localised strings from the application contents folder and then comparing it with the UI strings.
No the driver does not provide such functionality. You could try to fetch this info using AppleScript though as a possible workaround
@mykola-mokhnach I see that there is this API "getAppStringMap", but it is throwing an error for me.
Also could you help me, what do you have in your mind w.r.t apple script and localisation?
I wanted to test my Mac application for multi-language issues. As in if i change the language and locale of my system, there should not be any truncation or distortion in the UI. Is there way to test such scenarios using Mac2-driver?