diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2011-10-06 15:37:34 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2011-10-06 15:37:34 (GMT) |
commit | f3fa7e4f57e586d601cc439725940f95a888e113 (patch) | |
tree | 5101eb7bdf721a4db52ada501f9a94d929bd6586 /activity.py | |
parent | caed065488947ed436f7e314fc34387cf407e466 (diff) |
Fix i18n warning
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/activity.py b/activity.py index 17cd708..ee00da9 100644 --- a/activity.py +++ b/activity.py @@ -442,8 +442,11 @@ class SpeakActivity(SharedActivity): if i[0].short_name == old_voice.short_name] if not new_voice: new_voice = brain.get_default_voice() - sorry = _("Sorry, I can't speak %s, let's talk %s instead.") % \ - (old_voice.friendlyname, new_voice.friendlyname) + sorry = _("Sorry, I can't speak %(old_voice)s, " \ + "let's talk %(new_voice)s instead.") % { + 'old_voice': old_voice.friendlyname, + 'new_voice': new_voice.friendlyname, + } else: new_voice = new_voice[0] sorry = None |