Page 1 of 1

Multilanguage support with MFC buttons

Posted: Tue Nov 04, 2014 4:07 pm
by batto
Hi,

what is the best solution for multilanguage MFCToolBar Buttons? I know a similar question exist on the forum but it seems like I can only identify those buttons with the @accessiblename attribute, which in our application is language dependant.
Using the OR operator for each language (eng, ger, nor, etc.) and maintaining the name when changes are made (eg. new description) would be too much work for our testers.

System: Windows Server 2012 R2
Ranorex Version: 5.2.0.20272

best regards
Øystein

Re: Multilanguage support with MFC buttons

Posted: Thu Nov 06, 2014 2:05 pm
by Support Team
Hi batto,

May I ask you to provide a snapshot of your application? This will help us to find another attribute in order to adapt your path.
You can find a detailed description 'how to create a Snapshot' by following this link

If you don’t want to post the snapshot in this public forum, you can send it to [email protected]

Regards
Markus (S)

Re: Multilanguage support with MFC buttons

Posted: Thu Nov 06, 2014 3:01 pm
by krstcs
My suggestion would be to talk with your developers about using an ID that doesn't change when the language changes. Then Ranorex can use the ID to identify the object, regardless of the language. You can still validate that the button has the right text based on the language settings during the test.