public class I18nUtil extends Object
| 构造器和说明 |
|---|
I18nUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static I18nBundle |
getBundle(String bundleName,
org.noear.solon.core.handle.Context ctx)
获取国际化内容包
|
static I18nBundle |
getBundle(String bundleName,
Locale locale)
获取国际化内容包
|
static LocaleResolver |
getLocaleResolver()
获取 地区解析器
|
static String |
getMessage(org.noear.solon.core.handle.Context ctx,
String code)
获取国际化消息
|
static String |
getMessage(org.noear.solon.core.handle.Context ctx,
String code,
Object[] args)
获取国际化消息
|
static String |
getMessage(Locale locale,
String code)
获取国际化消息
|
static String |
getMessage(Locale locale,
String code,
Object[] args)
获取国际化消息
|
static String |
getMessage(String code)
获取国际化消息
|
static String |
getMessage(String code,
Object[] args)
获取国际化消息
|
static I18nBundle |
getMessageBundle()
获取国际化消息包
|
static I18nBundle |
getMessageBundle(org.noear.solon.core.handle.Context ctx)
获取国际化消息包
|
static I18nBundle |
getMessageBundle(Locale locale)
获取国际化消息包
|
static String |
getMessageBundleName()
获取 消息国际化内容包名
|
public static LocaleResolver getLocaleResolver()
public static String getMessageBundleName()
public static I18nBundle getBundle(String bundleName, Locale locale)
public static I18nBundle getBundle(String bundleName, org.noear.solon.core.handle.Context ctx)
public static String getMessage(org.noear.solon.core.handle.Context ctx, String code)
ctx - 上下文code - 代码public static String getMessage(String code, Object[] args)
code - 代码args - 格式化参数public static String getMessage(org.noear.solon.core.handle.Context ctx, String code, Object[] args)
ctx - 上下文code - 代码args - 格式化参数public static String getMessage(Locale locale, String code, Object[] args)
locale - 地区code - 代码args - 格式化参数public static I18nBundle getMessageBundle()
public static I18nBundle getMessageBundle(org.noear.solon.core.handle.Context ctx)
ctx - 上下文public static I18nBundle getMessageBundle(Locale locale)
locale - 地区Copyright © 2024. All rights reserved.