utility: make sure prompt text is internationalized
This patch internationlize the prompt text by passing the into mercurial.i18n._
--- 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