0

I want to make my SWT app multi-language. So, I am using the new Eclipse string externalization mechanism, described here.

I made different messages_xx_XX.properties for some languages, and I am addressing to locale-dependent string through Messages.localeDependentString.

What I can't understand, is how can I switch locale to use other Messages_xx_XX.properties and not default Messages.properties? Is this possible to do at run-time?

Prizoff
  • 4,486
  • 4
  • 41
  • 69
  • possible duplicate of [Dynamic language switching in an Eclipse RCP application](http://stackoverflow.com/questions/1431949/dynamic-language-switching-in-an-eclipse-rcp-application) – Alonso Dominguez Apr 06 '12 at 17:25
  • Probably this is not possible. Which is a pity. That means that for sufficiently large application this mechanism will be ineffective - your message.properties file will be a complete mess. It also means problems with translation variants. In this case however, you might want to try create Locale variant and include this in message file name... – Paweł Dyda Apr 07 '12 at 15:49

0 Answers0