]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler/actions/run_command.py
Make music_sampler multilingual
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / actions / run_command.py
index 1e80c1eeb31f2dc6ae41b00192c879abdb36465e..df230561579fcecf78646919c536a69cf757ba50 100644 (file)
@@ -6,8 +6,10 @@ def run(action, command="", wait=False, **kwargs):
         action.process.wait()
 
 def description(action, command="", wait=False, **kwargs):
-    message = "running command {}".format(command)
+    formats = []
+    message = "running command {}"
+    formats.append(command)
     if wait:
         message += " (waiting for its execution to finish)"
 
-    return message
+    return _(message).format(*formats)