[gcompris] gnumch, fixed localization of eat.wav.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] gnumch, fixed localization of eat.wav.
- Date: Thu, 27 Feb 2014 22:28:51 +0000 (UTC)
commit f170a98a4a107088188e162e2e3203b56e4c3dc8
Author: Bruno Coudoin <bruno coudoin gcompris net>
Date: Thu Feb 27 23:27:32 2014 +0100
gnumch, fixed localization of eat.wav.
A localize eat.wav can be provided in voices/$LOCALE/misc/eat.wav
src/gnumch-equality-activity/gnumch.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnumch-equality-activity/gnumch.py b/src/gnumch-equality-activity/gnumch.py
index 900e1b2..7b6a7ac 100644
--- a/src/gnumch-equality-activity/gnumch.py
+++ b/src/gnumch-equality-activity/gnumch.py
@@ -384,6 +384,8 @@ class Player(object):
eatfile = gcompris.utils.find_file_absolute("voices/$LOCALE/misc/eat.wav")
if(not eatfile):
gcompris.sound.play_ogg("sounds/eat.wav")
+ else:
+ gcompris.sound.play_ogg(eatfile)
self.anim.setState(2)
self.munch_timer = game.timeout_add(game.munch_time, self.stopMunching)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]