NAME
UI::Various::language::en - English language support of UI::Various
SYNOPSIS
# This module should never be used directly!
# It is used indirectly using the following:
use UI::Various;
ABSTRACT
This module contains all English texts of UI::Various.
DESCRIPTION
The module just provides a hash of texts to be used in UI::Various::core.
The keys are the original English strings (to make mapping easy), with the following rules applied:
All characters are converted to lowercase.
Each
sprintf
conversion sequence is replaced by an underscore (_
) followed by the index of the sequence in the English string.All non-word characters are replaced with underscores (
_
).Multiple underscores (
_
) are replaced by a single one, except for those of asprintf
conversion sequence. E.g. a conversion sequence after one or more non-word characters appears as two underscores (_
) followed by the index number.All leading and trailing underscores (
_
) are removed.Keys and messages are on two separate lines, with the second line beginning with the
=>
and ending with,
. This eases the transfer of messages added later to other language files.
See bad_debug_level__1
("bad debug-level '%s'"
) in the code as an example.
The easiest way to get the right key / text entry is calling the helper script update-language.pl
with the string as sole parameter.
EXPORT
%T - hash of English texts, 3 sections (errors, warnings/information and special), each section alphabetically sorted by key
Note that %T
is not exported into the callers name-space, it must always be fully qualified.
SEE ALSO
LICENSE
Copyright (C) Thomas Dorner.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See LICENSE file for more details.
AUTHOR
Thomas Dorner <dorner (AT) cpan.org>