object UTF8Messages
An object for constructing Messages based on Java-style UTF8 MessageFormat resource bundles
- Alphabetic
- By Inheritance
- UTF8Messages
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(locale: Locale, fileBaseDir: String = "conf", fileBaseName: String = "messages", fileExt: String = "txt"): Messages
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )