diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-23 14:05:42 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-03-23 14:05:42 (GMT) |
commit | a11809cccc5caba31a6fc572b5d561a167269af1 (patch) | |
tree | 9065e2a0c2b354262ff77706ec1a35cf086dce54 /shell/sugar-shell | |
parent | 81d216babd32aa30c37932f5c6d766be32c6adb1 (diff) |
Actually setup translations in the shell.
Fix the it translation to use utf8.
Diffstat (limited to 'shell/sugar-shell')
-rwxr-xr-x | shell/sugar-shell | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/sugar-shell b/shell/sugar-shell index 753fd67..19bcbae 100755 --- a/shell/sugar-shell +++ b/shell/sugar-shell @@ -18,6 +18,7 @@ import sys import os from ConfigParser import ConfigParser +import gettext import pygtk pygtk.require('2.0') @@ -64,8 +65,14 @@ def _save_session_info(): f.close() +def _setup_translations(): + domain = 'sugar' + gettext.bindtextdomain(domain, env.get_locale_path()) + gettext.textdomain(domain) + _save_session_info() _start_matchbox() +_setup_translations() # Do initial setup if needed key = profile.get_pubkey() |