From 162e8b5cac46c2c10d167437c4b4774f8f9e581b Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Fri, 29 Aug 2008 20:33:32 +0800 Subject: [PATCH] Translate "Switch engine". --- launcher/ibus.in | 2 +- panel/languagebar.py | 7 ++++++- po/ja.po | 6 +++++- po/zh_CN.po | 6 +++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/launcher/ibus.in b/launcher/ibus.in index ecac8f24..0f7cb21e 100644 --- a/launcher/ibus.in +++ b/launcher/ibus.in @@ -115,7 +115,7 @@ class Launcher(object): self.__x11_pid = self.__start_process(x11, [x11, "--kill-daemon"], "ibus-x11") self.__panel_pid = self.__start_process(panel, [panel], "ibus-panel") - + ibus.main() if __name__ == "__main__": diff --git a/panel/languagebar.py b/panel/languagebar.py index 1dda0397..4a95a229 100644 --- a/panel/languagebar.py +++ b/panel/languagebar.py @@ -30,6 +30,10 @@ from toolitem import ToolButton,\ SeparatorToolItem, \ MenuToolButton +from gettext import dgettext +_ = lambda a : dgettext("ibus", a) +N_ = lambda a : a + ICON_SIZE = gtk.ICON_SIZE_MENU class LanguageBar(gtk.Toolbar): @@ -74,7 +78,8 @@ class LanguageBar(gtk.Toolbar): self.insert(self.__handle, -1) # create input methods menu - self.__im_menu = ToggleToolButton(ibus.Property(name = "", type = ibus.PROP_TYPE_TOGGLE, icon = "ibus", tooltip = "Swicth engine")) + prop = ibus.Property(name = "", type = ibus.PROP_TYPE_TOGGLE, icon = "ibus", tooltip = _("Switch engine")) + self.__im_menu = ToggleToolButton(prop) self.__im_menu.set_homogeneous(False) self.__im_menu.connect("toggled", self.__im_menu_toggled_cb) self.insert(self.__im_menu, -1) diff --git a/po/ja.po b/po/ja.po index d37aa1b0..0aa05739 100644 --- a/po/ja.po +++ b/po/ja.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ibus VERSION\n" "Report-Msgid-Bugs-To: http://code.google.com/p/ibus/issues/entry\n" -"POT-Creation-Date: 2008-08-28 19:00+0800\n" +"POT-Creation-Date: 2008-08-29 20:32+0800\n" "PO-Revision-Date: 2008-08-28 17:31+0900\n" "Last-Translator: UTUMI Hirosi \n" "Language-Team: Japanese \n" @@ -388,6 +388,10 @@ msgstr "中国語 (繁体)" msgid "iBus - Running" msgstr "iBus - 実行中" +#: panel/languagebar.py:81 +msgid "Switch engine" +msgstr "" + #: setup/main.py:103 msgid "trigger" msgstr "トリガー" diff --git a/po/zh_CN.po b/po/zh_CN.po index 7a65928b..d8884657 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.1.1.20080813\n" "Report-Msgid-Bugs-To: http://code.google.com/p/ibus/issues/entry\n" -"POT-Creation-Date: 2008-08-28 19:00+0800\n" +"POT-Creation-Date: 2008-08-29 20:32+0800\n" "PO-Revision-Date: 2008-08-13 21:59+0800\n" "Last-Translator: Huang Peng \n" "Language-Team: Huang Peng \n" @@ -387,6 +387,10 @@ msgstr "繁体中文" msgid "iBus - Running" msgstr "iBus - 运行" +#: panel/languagebar.py:81 +msgid "Switch engine" +msgstr "切换引擎" + #: setup/main.py:103 msgid "trigger" msgstr "开关" -- 2.34.1