DefaultTextBundleRegistry

org.beangle.commons.text.i18n.DefaultTextBundleRegistry

Attributes

Since

3.0.0

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addDefaults(bundleNames: String*): Unit

Load and cache default bundles

Load and cache default bundles

Attributes

def getBundles(locale: Locale): List[TextBundle]

List locale bundles

List locale bundles

Attributes

def getDefaultText(key: String, locale: Locale): Option[String]

Get default locale message

Get default locale message

Attributes

def load(locale: Locale, bundleName: String): TextBundle

Load and cache bundle

Load and cache bundle

Attributes

protected def loadJavaBundle(bundleName: String, locale: Locale): Option[TextBundle]

Load java properties bundle with iso-8859-1

Load java properties bundle with iso-8859-1

Attributes

protected def loadNewBundle(bname: String, locale: Locale): Map[String, TextBundle]
protected def toDefaultResourceName(bundleName: String, locale: Locale): String

Generater resource name like bundleName.zh_CN

Generater resource name like bundleName.zh_CN

Attributes

protected def toJavaResourceName(bundleName: String, locale: Locale): String

java properties bundle name

java properties bundle name

Attributes

protected def toLocaleStr(locale: Locale): String

Convert locale to string with language_country[_variant]

Convert locale to string with language_country[_variant]

Attributes

Concrete fields

protected val caches: HashMap[Locale, ConcurrentHashMap[String, TextBundle]]
protected val defaultBundleNames: ListBuffer[String]
var reloadable: Boolean