[Zope3-dev] re: comment in size.py

Florent Guillaume fg@nuxeo.com
17 Jan 2003 13:23:04 +0100


On Fri, 2003-01-17 at 12:39, Steve Alexander wrote:
> You recently checked this into size.py
> 
> -        return u'n/a'
> +        return u'n/a' # XXX this should be localizable
> 
> What do you think about a convention that comments marking stuff that 
> should be localised, but isn't, be marked with the following:
> 
>    # XXX L10N explanatory text
> 
> Such comments could be found by a script (perhaps an altered version of 
> Zope3/utilities/XXXreport) searching for a regexp like "XXX[: ] *L10N".

As a matter of fact, when writing that comment, I asked myself a similar
question, and thought that grepping for 'localiz' would do it.

But a more formalized way to write such comments could only be
beneficial. So +1 from me.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com