[Fedora-i18n-bugs] [Bug 701202] us(dvorak) does not show up in list

bugzilla at redhat.com bugzilla at redhat.com
Mon May 9 07:45:24 UTC 2011


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=701202

fujiwara <tfujiwar at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from fujiwara <tfujiwar at redhat.com> 2011-05-09 03:45:24 EDT ---
Thanks for filing the bug.
It seems a regression of bug 696481.

Revised the patch:
--- /usr/lib/python2.7/site-packages/ibus/xkbxml.py
+++ /usr/lib/python2.7/site-packages/ibus/xkbxml.py
@@ -75,7 +75,8 @@ class XKBConfigRegistryHandler(XMLFilter
                    self.__layout_label in self.__layoutlist_array:
                     self.__layoutlist_array[self.__layout_label].append(text)
             elif self.__current_node == "description":
-                self.__variant_desc[self.__variant_label] = text
+                label =  "%s(%s)" % (self.__layout_label,
self.__variant_label)
+                self.__variant_desc[label] = text
             elif self.__current_node == "iso639Id":
                 label = self.__layout_label
                 if label != None:
--- /usr/share/ibus/setup/xkbsetup.py
+++ /usr/share/ibus/setup/xkbsetup.py
@@ -84,15 +84,18 @@ class XKBSetup(gobject.GObject):
                 xkb_engines.append(engine)
             for variant in layout_list[layout]:
                 label = "%s(%s)" % (layout, variant)
+                sub_langs = []
                 if label in layout_lang:
-                    langs = layout_lang[label]
-                for lang in langs:
+                    sub_langs = layout_lang[label]
+                else:
+                    sub_langs = langs
+                for lang in sub_langs:
                     engine = ibus.XKBConfigRegistry.engine_desc_new(
                         lang,
                         layout,
                         layout_desc[layout],
                         variant,
-                        variant_desc[variant])
+                        variant_desc[label])
                     xkb_engines.append(engine)
         return xkb_engines


https://github.com/fujiwarat/ibus/commit/f85c5d2370d416f4f4b585358e65e36609e2f2dc

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list