Actually setup translations in the shell.

Fix the it translation to use utf8.
master
Marco Pesenti Gritti 17 years ago
parent 81d216babd
commit a11809cccc

@ -13,7 +13,7 @@ msgstr ""
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: ../services/clipboard/typeregistry.py:29 #: ../services/clipboard/typeregistry.py:29

@ -18,6 +18,7 @@
import sys import sys
import os import os
from ConfigParser import ConfigParser from ConfigParser import ConfigParser
import gettext
import pygtk import pygtk
pygtk.require('2.0') pygtk.require('2.0')
@ -64,8 +65,14 @@ def _save_session_info():
f.close() f.close()
def _setup_translations():
domain = 'sugar'
gettext.bindtextdomain(domain, env.get_locale_path())
gettext.textdomain(domain)
_save_session_info() _save_session_info()
_start_matchbox() _start_matchbox()
_setup_translations()
# Do initial setup if needed # Do initial setup if needed
key = profile.get_pubkey() key = profile.get_pubkey()

@ -58,6 +58,9 @@ def get_user_activities_path():
def get_bin_path(path=None): def get_bin_path(path=None):
return _get_prefix_path('bin', path) return _get_prefix_path('bin', path)
def get_locale_path(path=None):
return _get_prefix_path('share/locale', path)
def get_service_path(name): def get_service_path(name):
return _get_prefix_path('share/sugar/services', name) return _get_prefix_path('share/sugar/services', name)

Loading…
Cancel
Save