net.sf.bloof.util.intl
Class Messages

java.lang.Object
  |
  +--net.sf.bloof.util.intl.Messages

public class Messages
extends java.lang.Object

This class manages the externalization of strings that will possiby be presented to the user. On default it loads the English text resources. It also can load language specific property files.

Version:
$Id: Messages.java,v 1.10 2003/09/06 08:35:09 pekacki Exp $
Author:
Lukasz Pekacki

Field Summary
static java.lang.String NL
          Newline constant
static java.lang.String WS
          Whitespace constant
 
Constructor Summary
Messages()
           
 
Method Summary
static Language[] getAvailableLanguages()
          Returns the currenty available Languages
static java.util.Locale getCurrentLocale()
          Returns the current Locale
static java.lang.String getString(TextKey aKey)
          Returns the value for the specified key. key-value pairs are specivied in the resourcebundle properties file.
static void setLanguage(Language aLanguage)
          Sets a language for Bloof
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NL

public static final java.lang.String NL
Newline constant

See Also:
Constant Field Values

WS

public static final java.lang.String WS
Whitespace constant

See Also:
Constant Field Values
Constructor Detail

Messages

public Messages()
Method Detail

getAvailableLanguages

public static Language[] getAvailableLanguages()
Returns the currenty available Languages

Returns:
Language[]

getCurrentLocale

public static java.util.Locale getCurrentLocale()
Returns the current Locale

Returns:
current Locale

getString

public static java.lang.String getString(TextKey aKey)
Returns the value for the specified key. key-value pairs are specivied in the resourcebundle properties file.

Parameters:
aKey - key of the requested string
Returns:
String

setLanguage

public static void setLanguage(Language aLanguage)
Sets a language for Bloof

Parameters:
aLanguage - the language that bloof should use for user output


Copyright © 2003 bloof@Sourceforge. All Rights Reserved.