Patchwork [STABLE] i18n: make empty string not i18n-ed to avoid hiding translation meta data

login
register
mail settings
Submitter Matt Mackall
Date Nov. 1, 2014, 6:12 p.m.
Message ID <1414865526.7216.2.camel@calx>
Download mbox | patch
Permalink /patch/6509/
State Accepted
Headers show

Comments

Matt Mackall - Nov. 1, 2014, 6:12 p.m.
On Sat, 2014-11-01 at 19:22 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> # Date 1414837160 -32400
> #      Sat Nov 01 19:19:20 2014 +0900
> # Branch stable
> # Node ID abe750321a0fc546af053cb1c3b75fbf815b0281
> # Parent  2dc6b7917cdfbba243ecbaad93b2d375124e8521
> i18n: make empty string not i18n-ed to avoid hiding translation meta data

Seems the right fix here is to just add in the missing text:

Patch

diff -r 234760fc0065 mercurial/commands.py
--- a/mercurial/commands.py	Sat Nov 01 19:02:31 2014 +0100
+++ b/mercurial/commands.py	Sat Nov 01 13:11:12 2014 -0500
@@ -2352,7 +2352,7 @@ 
          [('L', 'force-lock', None, _('free the store lock (DANGEROUS)')),
           ('W', 'force-wlock', None,
            _('free the working state lock (DANGEROUS)'))],
-         _(''))
+         _('[OPTION]...'))
 def debuglocks(ui, repo, **opts):
     """show or modify state of locks