diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2015-02-02 13:23:06 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2015-02-02 13:23:06 +0100 |
| commit | cd6454ea6e9e0999720d053a857d37513cc8ef7e (patch) | |
| tree | 6a1e9f078317b7fe91bbe6345b18029de46eecc5 /client/modules | |
| parent | fe02dbcfb22bef26c0490d826ed29b49551a3cdf (diff) | |
| download | jasper-client-cd6454ea6e9e0999720d053a857d37513cc8ef7e.tar.gz jasper-client-cd6454ea6e9e0999720d053a857d37513cc8ef7e.zip | |
add more translatable strings
Diffstat (limited to 'client/modules')
| -rw-r--r-- | client/modules/Life.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/modules/Life.py b/client/modules/Life.py index 658e5cf..f59137a 100644 --- a/client/modules/Life.py +++ b/client/modules/Life.py @@ -2,7 +2,7 @@ import random import re -WORDS = ["MEANING", "OF", "LIFE"] +WORDS = [_("MEANING"), _("OF"), _("LIFE")] def handle(text, mic, profile): @@ -16,8 +16,8 @@ def handle(text, mic, profile): profile -- contains information related to the user (e.g., phone number) """ - messages = ["It's 42, you idiot.", - "It's 42. How many times do I have to tell you?"] + messages = [_("It's 42, you idiot."), + _("It's 42. How many times do I have to tell you?")] message = random.choice(messages) @@ -31,4 +31,4 @@ def isValid(text): Arguments: text -- user-input, typically transcribed speech """ - return bool(re.search(r'\bmeaning of life\b', text, re.IGNORECASE)) + return bool(re.search(r'\b', _('meaning of life'), r'\b', text, re.IGNORECASE)) |
