Announcement Announcement Module
Collapse
No announcement yet.
Messages localization Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Messages localization

    Hi,

    Is there a way to localize messages in RCP?

    There are three language versions (fr, nl, de) of messages.properties in
    the package org.springframework.application.

    How can switch between them?

    Thanks,
    Miroslav

  • #2
    Miroslav,

    it's more a spring-core than spring-rcp feature...
    you provide the different message.properties files for any language you need...
    which message is shown depends on the given or chosen locale, which by default is the default_locale... sounds logical, doesn't it...

    you should take a look at the basic usage of MessageSource and the examples in the documentation:
    http://static.springframework.org/sp...-messagesource

    hth, sebastian

    Comment


    • #3
      for testing the easiest way is with a jre param, something like:

      java -D???language=nl -D???region=BE

      Google for it.

      In your code you can use use Locale (part of JDK) before using ApplicationLauncher

      Comment

      Working...
      X