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_string/[2,3]. Multilingual strings can be defined by extending the predicate string/3. Locales are assumed underscore separated.

The following resources predicates are provided:

get_string(K, V):
get_string(K, L, V):
The predicate succeeds in V with the value for the key K. The ternary predicate allows overriding the current locale by 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.
atom_time(A, F, T):
atom_time(A, F, T, L):
If A is a variable, the built-in succeeds in A with the millisecond time T formatted by the pattern F. Otherwise the built-in succeeds in T with the millisecond time parsed from A by the pattern F. The quaternary predicate allows specifying time options. The following time field specifiers are supported:

%a: Day of week as abbreviated text.
%b: Month as abbreviated text.
%Y: Year as a 4-digit decimal number.
%m: Month as a 2-digit decimal number.
%d: Day as a 2-digit decimal number.
%H: Hour as a 2-digit decimal number.
%M: Minute as a 2-digit decimal number.
%S: Second as a 2-digit decimal number.
%%: The percent sign (‘%’) as literal text.

The following time options are available:

face(F): The zone and language F, ‘local’ or ‘utc’.