Object

s_mach.i18n.messages

UTF8Messages

Related Doc: package messages

Permalink

object UTF8Messages

An object for constructing Messages based on Java-style UTF8 MessageFormat resource bundles

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UTF8Messages
  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. def apply(locale: Locale, fileBaseDir: String = "conf", fileBaseName: String = "messages", fileExt: String = "txt"): Messages

    Permalink

    Create a Messages instance that reads all message files that match the file name and extension from all jar files on the classpath.

    Create a Messages instance that reads all message files that match the file name and extension from all jar files on the classpath. Message files that match the supplied locale are concatenated and form the first tier of messages. Message files that have no locale are concatenated and form the backup tier. When a key is selected, the first tier is used. If the key is missing from the first tier, the backup tier is used. Note: message files on the same tier should never have the same key. It is undefined which value will be selected if the same key appears in more than one file in a tier.

    Example:

    Files in jar1 "conf/": messages.txt messages_fr.txt messages_us.txt

    Files in jar2 "conf/": messages.txt messages_us.txt

    For locale US, First tier: jar1:conf/messages_us.txt jar2:conf/messages_us.txt Backup tier: jar1:conf/messages.txt jar2:conf/messages.txt

    For locale FR, First tier: jar1:conf/messages_fr.txt Backup tier: jar1:conf/messages.txt jar2:conf/messages.txt

    locale

    the locale used to select messages for the first tier

    fileBaseDir

    the base resource directory to select message files from. Note: this must not be empty, currently a bug in the class loader only allows loading multiple resources when they are located in a sub-directory.

    fileBaseName

    the base file name for message files

    fileExt

    the file extension for message files

    returns

    messages that returns keys from the first tier or if the key is not present in the first tier, from the backup tier.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped