# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1521631366 -19800 # Node ID 846f7d4fe47ed024e5d9f02b0d435c4dd0f38f2f # Parent 031d70bcbb42fcae487c32177a9b8fa9b2b4d6cc utility: make sure prompt text is internationalized This patch internationlize the prompt text by passing the into mercurial.i18n._ diff -r 031d70bcbb42 -r 846f7d4fe47e 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