#1205: Demo games doesn't work with locales
---------------------+------------------------------------------------------
Reporter: fabix | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: 0.9.2
Component: ui | Version: 0.9.1
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by fabix):
It seems it's because there is no locale for "File". But there is one for
"&File". A simple patch is replacing "File" by "&File" (I tested, that
works).
{{{
Index: BubbletForm.py
===================================================================
--- BubbletForm.py (révision 5075)
+++ BubbletForm.py (copie de travail)
@@ -63,7 +63,7 @@
# Add the menu items
mb = self.MenuBar
- fm = mb.getMenu(_("File"))
+ fm = mb.getMenu(_("&File"))
quitPos = fm.getItemIndex(_("Quit"))
if quitPos is None:
}}}
Curiously, there is no problem with ''fm.getItemIndex(_("Quit"))'' whereas
there is no locale for it too...
--
Ticket URL: <http://trac.dabodev.com/ticket/1205#comment:1>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]