Mercurial > evolve
changeset 3581:846f7d4fe47e
utility: make sure prompt text is internationalized
This patch internationlize the prompt text by passing the into mercurial.i18n._
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 21 Mar 2018 16:52:46 +0530 |
parents | 031d70bcbb42 |
children | 8d93f76aa04d |
files | hgext3rd/evolve/utility.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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