diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-29 20:33:32 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-29 20:33:32 +0800 |
commit | 162e8b5cac46c2c10d167437c4b4774f8f9e581b (patch) | |
tree | 5fcf498ce66a1e6876fe9e39f7fd78da5e274ccb | |
parent | 96fe474472fee96070763602c44c711d90dcab5f (diff) | |
download | ibus-162e8b5cac46c2c10d167437c4b4774f8f9e581b.tar.gz ibus-162e8b5cac46c2c10d167437c4b4774f8f9e581b.tar.xz ibus-162e8b5cac46c2c10d167437c4b4774f8f9e581b.zip |
Translate "Switch engine".
-rw-r--r-- | launcher/ibus.in | 2 | ||||
-rw-r--r-- | panel/languagebar.py | 7 | ||||
-rw-r--r-- | po/ja.po | 6 | ||||
-rw-r--r-- | po/zh_CN.po | 6 |
4 files changed, 17 insertions, 4 deletions
diff --git a/launcher/ibus.in b/launcher/ibus.in index ecac8f2..0f7cb21 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 1dda039..4a95a22 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) @@ -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 <utuhiro78@yahoo.co.jp>\n" "Language-Team: Japanese <gnome-translation@gnome.gr.jp>\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 7a65928..d888465 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 <shawn.p.huang@gmail.com>\n" "Language-Team: Huang Peng <shawn.p.huang@gmail.com>\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 "开关" |