UI::Various::language::en - English language support of UI::Various
# This module should never be used directly! # It is used indirectly using the following: use UI::Various;
This module contains all English texts of UI::Various.
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.
sprintf
_
All non-word characters are replaced with underscores (_).
Multiple underscores (_) are replaced by a single one, except for those of a sprintf 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.
bad_debug_level__1
"bad debug-level '%s'"
The easiest way to get the right key / text entry is calling the helper script update-language.pl with the string as sole parameter.
update-language.pl
Note that %T is not exported into the callers name-space, it must always be fully qualified.
%T
UI::Various
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.
Thomas Dorner <dorner (AT) cpan.org>
To install UI::Various, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UI::Various
CPAN shell
perl -MCPAN -e shell install UI::Various
For more information on module installation, please visit the detailed CPAN module installation guide.