MtgServer
Class LanguageMsg

java.lang.Object
  |
  +--MtgServer.LanguageMsg
Direct Known Subclasses:
EnglishMsg, FrenchMsg, SpanishMsg

public abstract class LanguageMsg
extends java.lang.Object

Base class for all languages classes


Field Summary
protected  MtgServer.languages language
          the language of the current language object
protected  java.util.Hashtable messages
          table of messages
 
Constructor Summary
LanguageMsg()
          Creates a new instance of Language
 
Method Summary
 java.lang.String get(java.lang.String id_message)
          get the message fron its ID string first look in the table of messages in the current language and if not found try to get the message from the defaut message table (in english). this is to allow partial traduction of the server messages.
 MtgServer.languages getLanguage()
          get the language of the current object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

language

protected MtgServer.languages language
the language of the current language object


messages

protected java.util.Hashtable messages
table of messages

Constructor Detail

LanguageMsg

public LanguageMsg()
Creates a new instance of Language

Method Detail

getLanguage

public MtgServer.languages getLanguage()
get the language of the current object

Returns:
the language of the current object

get

public java.lang.String get(java.lang.String id_message)
get the message fron its ID string first look in the table of messages in the current language and if not found try to get the message from the defaut message table (in english). this is to allow partial traduction of the server messages.

Parameters:
id_message - the ID string of the message to get
Returns:
the string of the message