On Sun, Apr 03, 2005 at 03:15:35PM +0200, Nicolas François wrote:
On Sun, Apr 03, 2005 at 01:27:25AM +0200, Denis Barbier wrote:
> On Sat, Apr 02, 2005 at 09:57:15PM +0000, Nicolas FRAN??OIS wrote:
> > Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
> > In directory haydn:/tmp/cvs-serv27444/lib/Locale/Po4a
> >
> > Modified Files:
> > TransTractor.pm
> > Log Message:
> > If a comment is "0", it is evaluated to false and thus ignored.
> > Use defined rather than the string evaluation.
>
> Martin has another solution for this problem, which is IMO better:
> he checks if length($foo) > 0.
I'm not sure it is needed here, because $options{'comment'}||"" was
just
used to make sure that $options{'comment'} is defined.
Yes, it is (should be) checked for length later, when producing a pot file.
Anyhow, the commited solution is not perfect, but I think it's good enough.
Mt.