]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blame - music_sampler/actions/pause.py
Make music_sampler multilingual
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler / actions / pause.py
CommitLineData
c4f4f2a1
IB
1def run(action, music=None, **kwargs):
2 for music in action.music_list(music):
3 if music.is_loaded_playing():
4 music.pause()
5
6def description(action, music=None, **kwargs):
7 if music is not None:
6a327173 8 return _("pausing « {} »").format(music.name)
c4f4f2a1 9 else:
6a327173 10 return _("pausing all musics")