[PATCH] help: fix search with `-k` option in non-ASCII locales

Nikolaj Sjujskij sterkrig at myopera.com
Mon Jun 4 14:21:01 CDT 2012


Den 2012-06-04 22:42:06 skrev Josh Soref <timeless.bmo3 at gmail.com>:

>>  Hm-m-m... Why? If `entry[0]` has no '__doc__', then `gettext` (imported
>> as _) returns None, and non-string `docs` would break code below.
>
> I only moved the ). If _(None) returns None then you will get None or
> '', which should be ok.
>
> Am I missing something?

# Be careful not to translate the empty string -- it holds the
# meta data of the .po file.
http://selenic.com/repo/hg/file/0a0cf3f26938/mercurial/i18n.py#l40


More information about the Mercurial-devel mailing list