grep: make a message translatable
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Thu, 26 May 2016 01:57:34 +0900
changeset 29244 a38c1808fbc6
parent 29243 28dc0030228a
child 29245 9d0d1242cd48
grep: 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.
mercurial/commands.py
--- a/mercurial/commands.py	Thu May 26 01:57:34 2016 +0900
+++ b/mercurial/commands.py	Thu May 26 01:57:34 2016 +0900
@@ -4410,7 +4410,7 @@
             if not opts.get('files_with_matches'):
                 ui.write(sep, label='grep.sep')
                 if not opts.get('text') and binary():
-                    ui.write(" Binary file matches")
+                    ui.write(_(" Binary file matches"))
                 else:
                     for s, label in l:
                         ui.write(s, label=label)