com.gridsystems.utils
Class I18n

java.lang.Object
  extended by com.gridsystems.utils.I18n

public final class I18n
extends java.lang.Object

Internationalisation for the com.gridsystems.utils package.

Author:
SJM

Method Summary
static java.lang.String translate(java.lang.String resource, java.lang.String... params)
          Gets the translation of a message merging it with its parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

translate

public static java.lang.String translate(java.lang.String resource,
                                         java.lang.String... params)
Gets the translation of a message merging it with its parameters.

Parameters:
resource - a String with the id of a message.
params - a String[] with a list of the parameters that will be merged with the stored message. It can be null.
Returns:
a String with the translated message.


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.