summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-06-04 09:19:00 +0800
committerPeng Wu <alexepico@gmail.com>2012-06-04 09:19:00 +0800
commit5226ce8b3e72f2ed3727e10ac21477ebdba1a0c1 (patch)
tree6cd31444e2ff68609671cd78c172106ff18ea140 /setup
parent2bd60050bde533846bab6d63e585430aaa9e418b (diff)
downloadibus-libpinyin-5226ce8b3e72f2ed3727e10ac21477ebdba1a0c1.tar.gz
ibus-libpinyin-5226ce8b3e72f2ed3727e10ac21477ebdba1a0c1.tar.xz
ibus-libpinyin-5226ce8b3e72f2ed3727e10ac21477ebdba1a0c1.zip
update main2.py
Diffstat (limited to 'setup')
-rw-r--r--setup/main2.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setup/main2.py b/setup/main2.py
index 404c791..abf7c3e 100644
--- a/setup/main2.py
+++ b/setup/main2.py
@@ -33,19 +33,19 @@ from xdg import BaseDirectory
import version
-_ = lambda a : gettext.dgettext("ibus-pinyin", a)
+_ = lambda a : gettext.dgettext("ibus-libpinyin", a)
class PreferencesDialog:
def __init__(self, engine):
locale.setlocale(locale.LC_ALL, "")
localedir = os.getenv("IBUS_LOCALEDIR")
- gettext.bindtextdomain("ibus-pinyin", localedir)
- gettext.bind_textdomain_codeset("ibus-pinyin", "UTF-8")
+ gettext.bindtextdomain("ibus-libpinyin", localedir)
+ gettext.bind_textdomain_codeset("ibus-libpinyin", "UTF-8")
self.__bus = IBus.Bus()
self.__config = self.__bus.get_config()
self.__builder = Gtk.Builder()
- self.__builder.set_translation_domain("ibus-pinyin")
+ self.__builder.set_translation_domain("ibus-libpinyin")
self.__builder.add_from_file("ibus-libpinyin-preferences.ui")
self.__dialog = self.__builder.get_object("dialog")
self.__init_pages()
@@ -341,7 +341,7 @@ class PreferencesDialog:
path = os.path.join(path, "phrases.txt")
if not os.path.exists(path):
datadir = os.getenv("IBUS_DATAROOTDIR") or "/usr/share"
- src = os.path.join(datadir, "ibus-pinyin", "phrases.txt")
+ src = os.path.join(datadir, "ibus-libpinyin", "phrases.txt")
shutil.copyfile(src, path)
os.system("xdg-open %s" % path)