Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-02-04 18:16:46 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-02-04 18:16:46 (GMT)
commit1c361ea5dd1349ddcb95e21de91a0aa036415ff7 (patch)
treec90860701e52f84d8a346ae58e3620f0662cd0f3 /bin
parentb3cc0bec550378fa5eb9b6b2983defdd1037be78 (diff)
Add a config module into the shell holding path informations.
Get rid of env.get_locale_path()
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sugar-shell5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/sugar-shell b/bin/sugar-shell
index ef69fc1..b8f44a3 100755
--- a/bin/sugar-shell
+++ b/bin/sugar-shell
@@ -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):