]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler/actions/seek.py
Make music_sampler multilingual
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / actions / seek.py
index 467af7d4656d261cc36a8f0d91890dd748d9d404..9f19798fbf923c6fa84f9de41fb0f1de4a02aa07 100644 (file)
@@ -5,15 +5,15 @@ def run(action, music=None, value=0, delta=False, **kwargs):
 def description(action, music=None, value=0, delta=False, **kwargs):
     if delta:
         if music is not None:
-            return "moving music « {} » by {:+d}s" \
+            return _("moving music « {} » by {:+d}s") \
                     .format(music.name, value)
         else:
-            return "moving all musics by {:+d}s" \
+            return _("moving all musics by {:+d}s") \
                     .format(value)
     else:
         if music is not None:
-            return "moving music « {} » to position {}s" \
+            return _("moving music « {} » to position {}s") \
                     .format(music.name, value)
         else:
-            return "moving all musics to position {}s" \
+            return _("moving all musics to position {}s") \
                     .format(value)