Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] Where to get translated string for File..Preferences etc?

Hi

I have some small tests running for our RCP application (www.elexis.org).

Before adding more stuff I would like to have resolved some issues.

One of my priorities is to run SWTbot in different languages (taking 
screenshots along the way). 

For my own classes it is easy to write things like
ch.elexis.laborimport.analytica.Messages.getString("PreferencePage.title.description")

But where do I get the translated string from for something like
	bot.menu("File").menu("Preferences").click();
Running the test in German using
	bot.menu("Datei").menu("Einstellungen").click();
works fine.

IWorkbenchActionConstants.M_FILE returns '!file!'

I know this is maybe a little bit off topic, but I tried a few hours to find a 
solution and do not know where to ask.

Would it be a lot of work to improve SWTbot to try to find automatically 
translations when calling stuff like 
bot.menu(IWorkbenchActionConstants.M_FILE)?

Thanks in advance for your advice.

Best regards

-- 
Niklaus Giger


Back to the top