perl-i18n

I18N of Module Interface

2003-05-12 18:14:54
 
 
Greetings,
 
I was just looking into subclassing a module at CPAN that
uses English for a default language.  While debating the best
way to about it I was lead to wonder if there is a recommended
way?
 
I've found modules at CPAN that use two interface styles.  The
first is just an explict load of the language specific package,
it will in turn load and set things up with the base:
 
use Module::MyLanguage;
 
the other style is to pass your language's iso 639 code to the
base class and it loads your language specific package and sets
your lang as a default:
 
use Module ( "xx" );
 
 
there are pros and cons to both approaches and plausibly both
styles could even be used.  But has a recommendation ever been
issued by some party (CPAN, Perl maintainers, this group, etc)?

thanks,

/Daniel

<Prev in Thread] Current Thread [Next in Thread>