[gcompris] gnumch, fixed localization of eat.wav.



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]