Section "resources"
The error terms are displayed using the multilingual strings
facility. Whereby strings acting as formatting templates are used
when the error term has further parameters. Multilingual strings
can be retrieved by the predicates get_message/[3,4]. Multilingual
strings can be defined by extending the predicate string/3.
Locales are assumed underscore separated.
The following resources predicates are provided:
- get_message(T, V, R):
- get_message(T, L, V, R):
- The predicate succeeds in V respectively R with the value
respectively with the remaining arguments of the term T
according to the current locale. The ternary predicate allows
specifying a locale L.
- strings(K, L, V):
- The predicate succeeds in the key K, the value V and the
locale L. The predicate can be extended by libraries and
applications.