public class I18N extends Object
I18N utils
| Modifier and Type | Method and Description |
|---|---|
static ResourceBundle |
bundle(ITemplate template,
String name,
Locale locale) |
static ResourceBundle |
bundle(String name) |
static void |
clearBundleCache() |
static Locale |
locale() |
static Locale |
locale(ITemplate template)
Return a
template’s current locale, or the the current engine’s locale configuration or finally the default locale with java.util.Locale.getDefault() call |
public static Locale locale(ITemplate template)
Return a template’s current locale, or the the current engine’s locale configuration or finally the default locale with java.util.Locale.getDefault() call
template - the template being executingpublic static Locale locale()
public static ResourceBundle bundle(String name)
public static ResourceBundle bundle(ITemplate template, String name, Locale locale)
public static void clearBundleCache()
Copyright © 2017–2021 OSGL (Open Source General Library). All rights reserved.