utility: make sure prompt text is internationalized
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 21 Mar 2018 16:52:46 +0530
changeset 3581 846f7d4fe47e
parent 3580 031d70bcbb42
child 3582 8d93f76aa04d
utility: make sure prompt text is internationalized This patch internationlize the prompt text by passing the into mercurial.i18n._
hgext3rd/evolve/utility.py
--- a/hgext3rd/evolve/utility.py	Wed Mar 21 17:59:15 2018 +0100
+++ b/hgext3rd/evolve/utility.py	Wed Mar 21 16:52:46 2018 +0530
@@ -155,12 +155,12 @@
     promptmsg = customheader + "\n"
     for idx, rev in enumerate(revs):
         curctx = repo[rev]
-        revmsg = "%d: [%s] %s\n" % (idx, curctx,
-                                    curctx.description().split("\n")[0])
+        revmsg = _("%d: [%s] %s\n" % (idx, curctx,
+                                      curctx.description().split("\n")[0]))
         promptmsg += revmsg
 
-    promptmsg += "q: quit the prompt\n"
-    promptmsg += "enter the index of the revision you want to select:"
+    promptmsg += _("q: quit the prompt\n")
+    promptmsg += _("enter the index of the revision you want to select:")
     idxselected = ui.prompt(promptmsg)
 
     intidx = None