Untranslated strings from 'hg -v help cmd'

Matt Mackall mpm at selenic.com
Wed Jan 25 14:06:56 CST 2012


On Wed, 2012-01-25 at 20:05 +0100, Jens Bäckman wrote:
> Yup, dear list, what the subject says.

Fix queued, thanks. Next time, please see:

http://mercurial.selenic.com/wiki/ContributingChanges

> There are two strings shown that are untranslated - "options:" and "global options:". Here's a quick, dirty fix. Feel free to make it cleaner if needed.
> 
> diff -r c2e6c5ef4555 mercurial/commands.py
> --- a/mercurial/commands.py	Wed Jan 25 03:01:19 2012 +0700
> +++ b/mercurial/commands.py	Wed Jan 25 20:02:42 2012 +0100
> @@ -3062,11 +3062,15 @@
>  
>          # options
>          if not ui.quiet and entry[1]:
> -            rst += '\noptions:\n\n'
> +            rst += '\n'
> +            rst += _("options:")
> +            rst += '\n\n'
>              rst += optrst(entry[1])
>  
>          if ui.verbose:
> -            rst += '\nglobal options:\n\n'
> +            rst += '\n'
> +            rst += _("global options:")
> +            rst += '\n\n'
>              rst += optrst(globalopts)
>  
>          keep = ui.verbose and ['verbose'] or []
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list