Translate "Switch engine".
authorHuang Peng <shawn.p.huang@gmail.com>
Fri, 29 Aug 2008 12:33:32 +0000 (20:33 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Fri, 29 Aug 2008 12:33:32 +0000 (20:33 +0800)
launcher/ibus.in
panel/languagebar.py
po/ja.po
po/zh_CN.po

index ecac8f24f9ebf18c69d8fc5d5e019366f1d6c213..0f7cb21e0bf030ce6b1ab5e634f037afff040b5b 100644 (file)
@@ -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__":
index 1dda039736102667cee1b18bb2491c21ff940c55..4a95a229017cee28aefaa215dc8ae1393f703e3d 100644 (file)
@@ -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)
index d37aa1b0725d25e8b924d96ff86b2bc59fda2d90..0aa057396fc06ef8da65036453ec4e9a91965a35 100644 (file)
--- 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 <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 "トリガー"
index 7a65928b8754d28844f1587ba9e4b58f406e7e92..d88846576a6a3428c5cccef0f8c79b45410a31fb 100644 (file)
@@ -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 "开关"