|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.i18n.Messages
public class Messages
Responsible for the access to messages that are visible to the user.
Messages are read from the properties file messages_LANG.properties
(LANG is always a lowercased ISO 639
code), so internationalization is supported. If a certain property (or the property file) for the specific default
language of the system is not found, the message is taken from messages_en.properties
.
Locale.getLanguage()
Constructor Summary | |
---|---|
Messages()
|
Method Summary | |
---|---|
static String |
get(Locale loc,
String key,
Object... arguments)
|
static String |
get(String key,
Object... arguments)
Alias for #getMessage. |
static String |
getMessage(String key,
Object... arguments)
Returns the message assigned to the passed key. |
static Properties |
getProperties(Locale locale)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Messages()
Method Detail |
---|
public static String get(Locale loc, String key, Object... arguments)
loc
- the locale to be usedkey
- to getarguments
- to fill in the message
public static Properties getProperties(Locale locale)
locale
-
public static String get(String key, Object... arguments)
key
- arguments
-
public static String getMessage(String key, Object... arguments)
key
- arguments
-
for conventions on string formatting and escape characters.
|
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org