getStringRes

open fun getStringRes(key: String): String

Looks up on the property files and returns the correct String.

Return

the string

Parameters

key

the key

Throws

if no object for the given key or no resource bundle can be found

if the object found for the given key is not a string


open fun getStringRes(key: String, locale: Locale): String

Looks up on the property files and returns the correct String.

Return

the string

Parameters

key

the key

locale

the locale

Throws

if key or locale is null

if no object for the given key or no resource bundle can be found

if the object found for the given key is not a string