Add a config module into the shell holding path informations.

Get rid of env.get_locale_path()
This commit is contained in:
Marco Pesenti Gritti
2008-02-04 19:16:46 +01:00
parent b3cc0bec55
commit 1c361ea5dd
4 changed files with 9 additions and 5 deletions
+4 -1
View File
@@ -41,6 +41,7 @@ from shellservice import ShellService
from hardware import hardwaremanager
from intro import intro
import logsmanager
import config
def _start_matchbox():
cmd = ['matchbox-window-manager']
@@ -68,8 +69,10 @@ def _save_session_info():
f.close()
def _setup_translations():
locale_path = os.path.join(config.prefix, 'share', 'locale')
domain = 'sugar'
gettext.bindtextdomain(domain, env.get_locale_path())
gettext.bindtextdomain(domain, locale_path)
gettext.textdomain(domain)
def check_cm(bus_name):