diff options
author | Peng Wu <alexepico@gmail.com> | 2013-02-20 10:54:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-02-20 10:54:32 +0800 |
commit | b30d259c0cd2c4f844048fa315b453d3b03af6bd (patch) | |
tree | ef629449bc1a1e215c30131131a94bcc2f7c8688 /setup/dicttreeview.py | |
parent | 4dc12953941dcc034bcbe680d529d24b88f79ddd (diff) | |
download | ibus-libpinyin-b30d259c0cd2c4f844048fa315b453d3b03af6bd.tar.gz ibus-libpinyin-b30d259c0cd2c4f844048fa315b453d3b03af6bd.tar.xz ibus-libpinyin-b30d259c0cd2c4f844048fa315b453d3b03af6bd.zip |
update dictionaries
Diffstat (limited to 'setup/dicttreeview.py')
-rw-r--r-- | setup/dicttreeview.py | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/setup/dicttreeview.py b/setup/dicttreeview.py index b35f8b9..9d834cf 100644 --- a/setup/dicttreeview.py +++ b/setup/dicttreeview.py @@ -25,6 +25,24 @@ from gi.repository import Gtk _ = lambda x : gettext.gettext(x) +( + RESERVED, + GB_DICTIONARY, + GBK_DICTIONARY, + MERGED_DICTIONARY, + ART_DICTIONARY, + CULTURE_DICTIONARY, + ECONOMY_DICTIONARY, + GEOLOGY_DICTIONARY, + HISTORY_DICTIONARY, + LIFE_DICTIONARY, + NATURE_DICTIONARY, + SCITECH_DICTIONARY, + SOCIETY_DICTIONARY, + SPORT_DICTIONARY, + RESERVED1, + USER_DICTIONARY +) = range(16) ( COLUMN_SENSITIVE, @@ -34,8 +52,19 @@ COLUMN_ACTIVE ) = range(4) dictionaries = \ - ((False, 1, _("GB Dictionary"), True), - (True, 2, _("GBK Dictionary"), True)) + ( + (True, GBK_DICTIONARY, _("Low Frequent Characters"), True), + (True, ART_DICTIONARY, _("Art"), True), + (True, CULTURE_DICTIONARY, _("Culture"), True), + (True, ECONOMY_DICTIONARY, _("Economy"), True), + (True, GEOLOGY_DICTIONARY, _("Geology"), True), + (True, HISTORY_DICTIONARY, _("History"), True), + (True, LIFE_DICTIONARY, _("Life"), True), + (True, NATURE_DICTIONARY, _("Nature"), True), + (True, SCITECH_DICTIONARY, _("SciTech"), True), + (True, SOCIETY_DICTIONARY, _("Society"), True), + (True, SPORT_DICTIONARY, _("Sport"), True) + ) class DictionaryTreeView(Gtk.TreeView): |