I18N of Module Interface
[email protected] (Daniel Yacob) Mon, 12 May 2003 21:36:23 -0400
| Newsgroups | perl.i18n |
|---|---|
| Message-ID | <[email protected]> |
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