Locale::Maketext::Lexicon::Auto - Auto fallback lexicon for Maketext |
Locale::Maketext::Lexicon::Auto - Auto fallback lexicon for Maketext
package Hello::L10N; use base 'Locale::Maketext'; use Locale::Maketext::Lexicon { en => ['Auto'], # ... other languages };
This module builds a simple Lexicon hash that contains nothing but
( '_AUTO' => 1)
, which tells Locale::Maketext
that no
localizing is needed -- just use the lookup key as the returned string.
It is especially useful if you're starting to prototype a program, and do not want to deal with the localization files yet.
If the key to ->maketext
begins with a _
, Locale::Maketext
will still throw an exception. See CONTROLLING LOOKUP FAILURE in the Locale::Maketext manpage for how to prevent it.
the Locale::Maketext manpage, the Locale::Maketext::Lexicon manpage
Autrijus Tang <autrijus@autrijus.org>
Copyright 2002 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
Locale::Maketext::Lexicon::Auto - Auto fallback lexicon for Maketext |