aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/actions/run_command.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-29 18:15:03 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-29 18:44:42 +0200
commit6a3271735186a2b4d3c500f4f60c0c03a12bdd2f (patch)
treee5ceaf01ba400b1ef552fbeec92919826200cd30 /music_sampler/actions/run_command.py
parent7d6df771f603e9642047264f967525422ef09e99 (diff)
downloadMusicSampler-6a3271735186a2b4d3c500f4f60c0c03a12bdd2f.tar.gz
MusicSampler-6a3271735186a2b4d3c500f4f60c0c03a12bdd2f.tar.zst
MusicSampler-6a3271735186a2b4d3c500f4f60c0c03a12bdd2f.zip
Make music_sampler multilingual1.2.0
Diffstat (limited to 'music_sampler/actions/run_command.py')
-rw-r--r--music_sampler/actions/run_command.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/music_sampler/actions/run_command.py b/music_sampler/actions/run_command.py
index 1e80c1e..df23056 100644
--- a/music_sampler/actions/run_command.py
+++ b/music_sampler/actions/run_command.py
@@ -6,8 +6,10 @@ def run(action, command="", wait=False, **kwargs):
6 action.process.wait() 6 action.process.wait()
7 7
8def description(action, command="", wait=False, **kwargs): 8def description(action, command="", wait=False, **kwargs):
9 message = "running command {}".format(command) 9 formats = []
10 message = "running command {}"
11 formats.append(command)
10 if wait: 12 if wait:
11 message += " (waiting for its execution to finish)" 13 message += " (waiting for its execution to finish)"
12 14
13 return message 15 return _(message).format(*formats)