Results 1 to 3 of 3

Thread: Messages localization

  1. #1
    Join Date
    Nov 2005
    Posts
    9

    Question 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. #2

    Default

    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

  3. #3
    Join Date
    May 2005
    Posts
    394

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •