类 I18nUtils

java.lang.Object
com.tlcsdm.core.util.I18nUtils

public class I18nUtils extends Object
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private static final String
    资源包默认路径
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    private
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static String
    get(String key, Object... args)
    gets the string with the given key from the resource bundle for the current locale and uses it as first argument to MessageFormat.format, passing in the optional args and returning the result.
    static String
    Returns the base name of the resource bundle.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

    • I18nUtils

      private I18nUtils()
  • 方法详细资料

    • getBasename

      public static String getBasename()
      Returns the base name of the resource bundle.
      返回:
      the base name for the resource bundle
    • get

      public static String get(String key, Object... args)
      gets the string with the given key from the resource bundle for the current locale and uses it as first argument to MessageFormat.format, passing in the optional args and returning the result.
      参数:
      key - message key
      args - optional arguments for the message
      返回:
      localized formatted string