Class Translater

java.lang.Object
com.vdoc.sdk.commons.freemarker.Translater
All Implemented Interfaces:
FMSerializable

public class Translater extends Object implements FMSerializable
Translater
  • Field Details

  • Constructor Details

    • Translater

      public Translater()
      Default constructor
    • Translater

      public Translater(Locale locale)
      Constructor
      Parameters:
      locale - the local
    • Translater

      public Translater(String language)
      Constructor
      Parameters:
      language - the language
  • Method Details

    • translate

      public String translate(String key)
      Translate a key
      Parameters:
      key - the key
      Returns:
      the translation
    • translate

      public String translate(String key, String param)
      Translate a key with parameter
      Parameters:
      key - the key
      param - the parameter
      Returns:
      the translation
    • translate

      public String translate(String key, String param1, String param2)
      Translate a key with two parameters
      Parameters:
      key - the key
      param1 - the parameter 1
      param2 - the parameter 2
      Returns:
      the translation
    • translate

      public String translate(String key, String param1, String param2, String param3)
      Translate a key with three parameters
      Parameters:
      key - the key
      param1 - the parameter 1
      param2 - the parameter 2
      param3 - the parameter 3
      Returns:
      the translation