| Apache-MP3 documentation | Contained in the Apache-MP3 distribution. |
Apache::MP3::L10N - base class for Apache::MP3 interface localization
[nil]
This module is the base class for generating language handles (via Locale::Maketext) which Apache::MP3 (and subclasses) use for presenting their interface.
To localize this for your language of choice, see the source for
Apache/L10N/fr.pm for an example lexicon that should contain
all the English phrases, and an example French translation.
For example, if you're localizing this to Swahili, you'd copy
Apache/L10N/fr.pm to Apache/L10N/sw.pm (since
I18N::LangTags::List tells us that sw is the language tag
for Swahili), and change its package Apache::MP3::L10N::fr;
line to package Apache::MP3::L10N::sw;, and then you'd replace
all the French phrases that are the values in %Lexicon with
Swahili phrases.
For example, you'd change:
'fetch' => 'sauvegarder',
to:
'fetch' => 'lete',
if you considered "lete" (from the infinitive "kuleta", haul) to be a good translation of the English "fetch" in that context.
Email me (Sean) if you have any questions.
Copyright 2002, Sean M. Burke <sburke&64;cpan.org>
This module is distributed under the same terms as Perl itself. Feel free to use, modify and redistribute it as long as you retain the correct attribution.
| Apache-MP3 documentation | Contained in the Apache-MP3 distribution. |
use strict; package Apache::MP3::L10N; use Locale::Maketext; require Apache::MP3::L10N::Aliases; use vars qw(@ISA %Lexicon $VERSION); @ISA = ('Locale::Maketext'); %Lexicon = ( _AUTO => 1, '_VERSION' => __PACKAGE__ . ' v' . ($VERSION= '20020601'), # Last modified "_CREDITS_before_author" => "Apache::MP3 was written by ", "_CREDITS_author" => "Lincoln D. Stein", "_CREDITS_after_author" => ".", ); sub encoding { "iso-8859-1" } # Latin-1 # Override as necessary if you use a different encoding # Things overridden in RightToLeft.pm: sub left { 'left' } sub right { 'right' } sub direction { 'ltr' } sub must_escape { $_[0]{'must_escape'} || '' } # don't override that unless you know what you're doing. 1; __END__
# "Try to make things that can become better in other people's # minds than they were in yours." # -- Brian Eno, /Year with Swollen Appendices/, p165