loc
This filter translates its body text into another language,
using the current Locale settings.
This is much the same as the [L] and
[loc] tags,
except that it allows you to localise values in a filter chain.
|
Availability
This filter was introduced in version 5.4.0,
and is therefore not available for use with any earlier Interchange version.
|
Example
(Assuming the current locale is "fr_FR" and
appropriate translations are set up and operational.)
|
[filter loc]January[/filter]
|
Results in:
Source code
sub {
my $val = shift;
return errmsg($val);
}
|