Packages

t

xitrum

I18n

trait I18n extends AnyRef

Self Type
Action
Linear Supertypes
AnyRef, Any
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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def autosetLanguage(availableLanguages: String*): Unit

    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]

    returns

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

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def language: String

    Default language is "en".

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

    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

    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
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def t(singular: String, args: Any*): String

    formatLocal using the current locale.

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

    formatLocal using the current locale.

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

    formatLocal using the current locale.

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

    formatLocal using the current locale.

  28. def tn(singular: String, plural: String, n: Long): String
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped