com.ibm.commerce.ras

Class LocaleTranslator

  • java.lang.Object
    • com.ibm.commerce.ras.LocaleTranslator


  • public class LocaleTranslator
    extends java.lang.Object
    LocaleTranslator is used to translate the message to specific locale.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      LocaleTranslator()
      Constructor for LocaleTranslator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getTranslation(ECMessage ecmsg, java.lang.Object[] parms)
      Uses the resource bundle to get the translation of the message.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocaleTranslator

        public LocaleTranslator()
        Constructor for LocaleTranslator.
    • Method Detail

      • getTranslation

        public java.lang.String getTranslation(ECMessage ecmsg,
                                               java.lang.Object[] parms)
        Uses the resource bundle to get the translation of the message. The default is used for the translation.
        Parameters:
        ecmsg - message object
        parms - the list of parameters that will be substituted into the message text
        Returns:
        the translated message text