keyword: remove docstrings to ease translation

Martin Geisler mg at daimi.au.dk
Tue Feb 10 16:04:59 CST 2009


Matt Mackall <mpm at selenic.com> writes:

>> Thanks, but I already have a patch ready which will remove the
>> comments in all the extensions. That removes some 124 useless
>> messages from the hg.pot file.
>>
>> I haven't pushed it since I'm not sure if others agree to solve the
>> problem this way?
>
> I think it's a bad plan. It means on-going work and education.

Not so much ongoing work -- it is only the extensions shipped with
Mercurial that we have to care about. When we include a new extension
we'll convert the docstrings.

> Better to just have smarter tools that know how to find the
> interesting strings.

That would indeed be nice.

> We're eventually going to want to translate templates too, so we'll
> need a tool eventually.

Hmm... I hope we're using a more general template system at that point,
a system with support for string extraction. The Babel package is one
tool that can extract strings from a number of common template systems:

  http://babel.edgewall.org/wiki/BabelPlugins

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090210/513d7a76/attachment.pgp 


More information about the Mercurial-devel mailing list