[PATCH 1 of 7] gpg: make a message translatable

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Wed May 25 17:01:40 UTC 2016


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1464195454 -32400
#      Thu May 26 01:57:34 2016 +0900
# Node ID 25a9f8af572b602dd44f1a2f59417589ac93f040
# Parent  1b7d907ec18a7e2ff244a30e8a63ac46cd121588
gpg: make a message translatable

This message has been overlooked by check-code, because it starts with
non-alphabet character ('%').

This is also a part of preparation for making "missing _() in ui
message" detection of check-code more exact.

diff --git a/hgext/gpg.py b/hgext/gpg.py
--- a/hgext/gpg.py
+++ b/hgext/gpg.py
@@ -198,7 +198,7 @@ def sigcheck(ui, repo, rev):
         return
 
     # print summary
-    ui.write("%s is signed by:\n" % hgnode.short(rev))
+    ui.write(_("%s is signed by:\n") % hgnode.short(rev))
     for key in keys:
         ui.write(" %s\n" % keystr(ui, key))
 


More information about the Mercurial-devel mailing list