From a11809cccc5caba31a6fc572b5d561a167269af1 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 23 Mar 2007 14:05:42 +0000 Subject: Actually setup translations in the shell. Fix the it translation to use utf8. --- (limited to 'shell/sugar-shell') 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() -- cgit v0.9.1