Messages

com.osinka.i18n.Messages
See theMessages companion object
trait Messages

Messages externalization

== Overview == You would use it like so:

Localized(user) { implicit lang =>
 val error = Messages("error")
}

Messages are stored in messages_XXX.txt files in UTF-8 encoding in resources. The lookup will fallback to default file messages.txt if the string is not found in the language-specific file.

Messages are formatted with java.text.MessageFormat.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Messages

Members list

Value members

Concrete methods

def apply(msg: String, args: Any*)(implicit lang: Lang): String
def raw(msg: String)(implicit lang: Lang): String

get the message w/o formatting

get the message w/o formatting

Attributes

Concrete fields

val FileExt: String
val FileName: String