RAP Locale translation of MessageBox buttons [message #1712070] |
Wed, 21 October 2015 08:22 |
|
When using a MessageBox in RAP, is there a method to translate the caption of the buttons, such as Cancel or Retry etc.?
style = SWT.ICON_QUESTION|SWT.OK|SWT.CANCEL;
MessageBox msgBox = new MessageBox(useShell, style);
---
Just because you can doesn't mean you should
|
|
|
|
|
Re: RAP Locale translation of MessageBox buttons [message #1712159 is a reply to message #1712158] |
Wed, 21 October 2015 15:07 |
|
Thanks Alex and Ivan.
Is Babel the correct approach for this then? Perhaps this is not just for RAP... even in SWT, how would you normally provide translations for these standard strings?
Can you simply insert org.eclipse.swt.internal.SWTMessages_fr.properties files for French etc.?
---
Just because you can doesn't mean you should
|
|
|
|
Re: RAP Locale translation of MessageBox buttons [message #1713614 is a reply to message #1712363] |
Thu, 05 November 2015 14:05 |
|
Been a while getting round to looking at this again, but thank-you all for your help.
I have used the pre-translated JARs for RAP/RWT from Babel, and they are working very well - just included them all (46 languages?) in my Target, and included them in the RunConfig (as well as my config.ini for WAR builds), and it all works perfectly!
Great stuff!
---
Just because you can doesn't mean you should
|
|
|
Powered by
FUDForum. Page generated in 0.03579 seconds