From d94941015df79b55a2457bb1252bf137d38ddfd0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 21 May 2005 16:01:52 +0000 Subject: [PATCH] translate status messages too --- src/common/config.py | 14 ++++++++------ src/gajim.py | 9 +++++---- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/common/config.py b/src/common/config.py index 4be05b812..bfab8ae50 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -20,6 +20,8 @@ import sre import copy +from common import i18n +_ = i18n._ OPT_TYPE = 0 OPT_VAL = 1 @@ -192,12 +194,12 @@ class Config: } statusmsg_default = { - 'Nap': 'I\'m taking a nap.', - 'Brb': 'Back in some minutes.', - 'Eating': 'I\'m eating, so leave me a message.', - 'Movie' : 'I\'m watching a movie.' , - 'Working': 'I\'m working.', - 'Phone': 'I\'m on the phone.', + _('Nap'): _('I\'m taking a nap.'), + _('Brb'): _('Back in some minutes.'), + _('Eating'): _('I\'m eating, so leave me a message.'), + _('Movie'): _('I\'m watching a movie.'), + _('Working'): _('I\'m working.'), + _('Phone'): _('I\'m on the phone.'), } soundevents_default = { diff --git a/src/gajim.py b/src/gajim.py index f2251ccd7..166562684 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -30,13 +30,9 @@ import gobject import os import sre import signal -import common.sleepy -import check_for_new_version import sys import getopt -from common import gajim -from common import connection from common import i18n i18n.init() _ = i18n._ @@ -44,6 +40,11 @@ APP = i18n.APP gtk.glade.bindtextdomain(APP, i18n.DIR) gtk.glade.textdomain(APP) +import common.sleepy +import check_for_new_version +from common import gajim +from common import connection + from common import optparser profile = ''