diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-30 08:00:08 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-30 08:00:08 +0800 |
commit | bea516f4d9a1bb164a80df8065aae23a06585795 (patch) | |
tree | 5438005f0e584baa920a2c623152fa04f0655a22 | |
parent | 5ea3f8adfbd564ff9e3a68deea67dc40fe863dad (diff) | |
download | ibus-anthy-bea516f4d9a1bb164a80df8065aae23a06585795.tar.gz |
Translate engine name.
-rw-r--r-- | engine/factory.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/factory.py b/engine/factory.py index 30c388a..f2d7105 100644 --- a/engine/factory.py +++ b/engine/factory.py @@ -24,11 +24,15 @@ from os import path import ibus import engine +from gettext import dgettext +_ = lambda a : dgettext("ibus-anthy", a) +N_ = lambda a : a + FACTORY_PATH = "/com/redhat/IBus/engines/Anthy/Factory" ENGINE_PATH = "/com/redhat/IBus/engines/Anthy/Engine/" class EngineFactory(ibus.EngineFactoryBase): - NAME = "Anthy" + NAME = _("Anthy") LANG = "ja" ICON = path.join(os.getenv("IBUS_ANTHY_PKGDATADIR"), "icons/ibus-anthy.png") AUTHORS = "Huang Peng <shawn.p.huang@gmail.com>" |