localize

abstract fun localize(tableName: String, key: String): String

Localizes a string to this context's language (the locale set in documentInfo) by looking up a key in a localization table.

Return

the localized string corresponding to the key in the table, if there is any

Parameters

tableName

name of the localization table, which must exist within localizationTables

key

localization key to look up within the table

See also

Throws

if a locale is not set within documentInfo

if the table does not exist

if the key does not exist in the table entry for the locale