|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.i18n.Lang
public class Lang
Language support
Field Summary | |
---|---|
static java.lang.ThreadLocal<java.lang.String> |
current
|
Constructor Summary | |
---|---|
Lang()
|
Method Summary | |
---|---|
static void |
change(java.lang.String locale)
Change language for next requests |
static void |
clear()
Clears the current language - This wil trigger resolving language from request if not manually set. |
static java.lang.String |
get()
Retrieve the current language or null |
static java.util.Locale |
getLocale()
|
static java.util.Locale |
getLocale(java.lang.String localeStr)
|
static boolean |
set(java.lang.String locale)
Force the current language |
static void |
setDefaultLocale()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.ThreadLocal<java.lang.String> current
Constructor Detail |
---|
public Lang()
Method Detail |
---|
public static java.lang.String get()
public static boolean set(java.lang.String locale)
locale
- (fr, ja, it ...)
public static void clear()
public static void change(java.lang.String locale)
locale
- (e.g. "fr", "ja", "it", "en_ca", "fr_be", ...)public static void setDefaultLocale()
public static java.util.Locale getLocale()
public static java.util.Locale getLocale(java.lang.String localeStr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |