libintl-perl

Home -> libintl-perl -> 2004 -> May

 Litte bug in Locale::TextDomain (fix) 
Login Login Subscribe Subscribe  Date  05/27/04 10:07:33 GMT
 From  Guido Flohr
 Subject  Litte bug in Locale::TextDomain (fix)
 Previous Thread
 Next Thread
 Start of Thread
 Reference
 Previous Reply
 This Message
 Reply
 Next Reply
Hi Daniel,

Daniel Schreiber wrote:
> Hi Guido,
> I currently use your Locale::TextDomain package in a i18ned rewrite my
> student networks website. Line 104 of the Locale::TextDomain package should
> probably replaced by
>
> __find_domain $textdomain if defined $textdomain and exists
> $bound_dirs{$textdomain} and defined $bound_dirs{$textdomain};
> It will then not throw lots of warnings into the logs when there are
> untranslated strings. My version is
> $Id: TextDomain.pm,v 1.25 2004/01/12 12:03:42 guido Exp $,
> to my knowledge the latest published version. If you like, you might want
> to change that.

Which warnings are thrown? The only one that I could think of now, would be
caused by an undefined $textdomain and this could only happen, if you had not
called the import() function of Locale::TextDomain, i. e. if you have said
"require Locale::TextDomain" instead of "use Locale::TextDomain 'MyDomain'",
see the USAGE section of Locale::TextDomain(3pm).

The function __() is performance critical and I'm a little reluctant to
insert any extra code there.

If you think that I have missed your point, could you explain me, how to
reproduce the warnings?

> Thanks for attention,
> Daniel
> CSN-Team

Thanks for your interest. :-)

Guido
--
Imperia AG, Development
Leyboldstr. 10 - D-50354 Hürth - http://www.imperia.net/
Attachments
 1  +-index.html message/rfc822  

ATTENTION: HTML attachments to this mail have been converted to plain text to prevent you from possibly malicious HTML files. Other attachments are included here without any checking. Choose your own poison! The maintainers of this site cannot be held responsible for any damage caused by these attachments.

 Litte bug in Locale::TextDomain (fix)
 Previous Thread
 Next Thread
 Start of Thread
 Reference
 Previous Reply
 This Message
 Reply
 Next Reply
 
 05/27/04 10:07:33 GMT  Guido Flohr

Powered by Imperia
Home | Top | Imprint