diff options
-rw-r--r-- | setup/dicttreeview.py | 4 | ||||
-rw-r--r-- | src/PYLibPinyin.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/setup/dicttreeview.py b/setup/dicttreeview.py index 9d834cf..b4dde52 100644 --- a/setup/dicttreeview.py +++ b/setup/dicttreeview.py @@ -110,12 +110,12 @@ class DictionaryTreeView(Gtk.TreeView): # column for toggles renderer = Gtk.CellRendererToggle() renderer.connect('toggled', self.__active_toggled, self.__model) - column = Gtk.TreeViewColumn('Active', renderer, active=COLUMN_ACTIVE, sensitive=COLUMN_SENSITIVE) + column = Gtk.TreeViewColumn(_('Active'), renderer, active=COLUMN_ACTIVE, sensitive=COLUMN_SENSITIVE) self.append_column(column) # column for description render = Gtk.CellRendererText() - column = Gtk.TreeViewColumn('Description', render, text=COLUMN_DESCRIPTION) + column = Gtk.TreeViewColumn(_('Description'), render, text=COLUMN_DESCRIPTION) self.append_column(column) def __active_toggled(self, cell, path, model): diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index a9a75e9..eb88e16 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -70,7 +70,7 @@ LibPinyinBackEnd::initPinyinContext (Config *config) g_free (userdir); const char *dicts = config->dictionaries ().c_str (); - gchar ** indices = g_strsplit_set (dicts, "", -1); + gchar ** indices = g_strsplit_set (dicts, ";", -1); for (size_t i = 0; i < g_strv_length(indices); ++i) { int index = atoi (indices [i]); if (index <= 1) @@ -119,7 +119,7 @@ LibPinyinBackEnd::initChewingContext (Config *config) g_free(userdir); const char *dicts = config->dictionaries ().c_str (); - gchar ** indices = g_strsplit_set (dicts, "", -1); + gchar ** indices = g_strsplit_set (dicts, ";", -1); for (size_t i = 0; i < g_strv_length(indices); ++i) { int index = atoi (indices [i]); if (index <= 1) |