Multilanguage support with MFC buttons

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 1
Joined: Tue Nov 04, 2014 3:48 pm

Multilanguage support with MFC buttons

Post by batto » Tue Nov 04, 2014 4:07 pm


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:

best regards

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Multilanguage support with MFC buttons

Post by Support Team » Thu Nov 06, 2014 2:05 pm

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]

Markus (S)

Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Multilanguage support with MFC buttons

Post by krstcs » Thu Nov 06, 2014 3:01 pm

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.
Shortcuts usually aren't...