Apply use_gettext setting
Udi Fuchs <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CABznK11p5GUBS8LJnzdFBKTpBR_tVjOA=rJnPhexh+RTZPymrw@mail.gmail.com> |
wxglade seems to ignore the setting for enabling gettext support. Even
though it is disabled in the wxg file, it is always enabled on startup.
The following patch fixes the issue:
--- xml_parse.py
+++ xml_parse.py
@@ -172,9 +172,8 @@
use_gettext = int(attrs["use_gettext"])
except (KeyError, ValueError):
use_gettext = config.default_use_gettext
- if use_gettext:
- app.use_gettext = True
- app.use_gettext_prop.set_value(True)
+ app.use_gettext = bool(use_gettext)
+ app.use_gettext_prop.set_value(bool(use_gettext))
try:
is_template = int(attrs["is_template"])
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general