-
May 23rd, 2006, 07:50 AM
#1
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
-
May 23rd, 2006, 01:34 PM
#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
-
May 24th, 2006, 02:14 AM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules