]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_intl_ex.py
Added Brian Victor's Patch
[wxWidgets.git] / wxPython / src / _intl_ex.py
CommitLineData
d14a1e28
RD
1#----------------------------------------------------------------------------
2# wxGTK sets the locale when initialized. Doing this at the Python
3# level should set it up to match what GTK is doing at the C level.
4if wx.Platform == "__WXGTK__":
5 try:
6 import locale
7 locale.setlocale(locale.LC_ALL, "")
8 except:
9 pass
10
11# On MSW add the directory where the wxWindows catalogs were installed
12# to the default catalog path.
13if wx.Platform == "__WXMSW__":
14 import os
15 localedir = os.path.join(os.path.split(__file__)[0], "locale")
16 Locale_AddCatalogLookupPathPrefix(localedir)
17 del os
18
19#----------------------------------------------------------------------------