Trait

xitrum

I18n

Related Doc: package xitrum

Permalink

trait I18n extends AnyRef

Self Type
Action
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. I18n
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def autosetLanguage(availableLanguages: String*): Unit

    Permalink

    Sets current language automatically based on the matching of the "Accept-Language" header against the list of given languages.

    Sets current language automatically based on the matching of the "Accept-Language" header against the list of given languages. The languages should have corresponding files i18n/language.po in classpath (the language should be in IETF BCP 47 format).

    If there's no match, the language is still the default "en".

  6. lazy val browserLanguages: List[LanguageRange]

    Permalink

    returns

    List of Locale.LanguageRange sorted by priority from high to low

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def language: String

    Permalink

    Default language is "en".

  15. def language_=(language: String): Unit

    Permalink

    Sets current language manually.

    Sets current language manually. The language should have a corresponding file i18n/language.po in classpath (the language should be in IETF BCP 47 format).

  16. def locale: Locale

    Permalink

    The locale corresponding to the language.

    The locale corresponding to the language. It will be updated automatically when you update language.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def t(singular: String, args: Any*): String

    Permalink

    formatLocal using the current locale.

  22. def t(singular: String): String

    Permalink
  23. def tc(ctx: String, singular: String, args: Any*): String

    Permalink

    formatLocal using the current locale.

  24. def tc(ctx: String, singular: String): String

    Permalink
  25. def tcn(ctx: String, singular: String, plural: String, n: Long, args: Any*): String

    Permalink

    formatLocal using the current locale.

  26. def tcn(ctx: String, singular: String, plural: String, n: Long): String

    Permalink
  27. def tn(singular: String, plural: String, n: Long, args: Any*): String

    Permalink

    formatLocal using the current locale.

  28. def tn(singular: String, plural: String, n: Long): String

    Permalink
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped