X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..3a9becbd5439254a77e7dbc0278d80117a397264:/wxPython/src/_intl_ex.py?ds=sidebyside diff --git a/wxPython/src/_intl_ex.py b/wxPython/src/_intl_ex.py index bfab10096f..f572dd2549 100644 --- a/wxPython/src/_intl_ex.py +++ b/wxPython/src/_intl_ex.py @@ -1,19 +1,10 @@ #---------------------------------------------------------------------------- -# wxGTK sets the locale when initialized. Doing this at the Python -# level should set it up to match what GTK is doing at the C level. -if wx.Platform == "__WXGTK__": - try: - import locale - locale.setlocale(locale.LC_ALL, "") - except: - pass - -# On MSW add the directory where the wxWindows catalogs were installed +# On MSW add the directory where the wxWidgets catalogs were installed # to the default catalog path. if wx.Platform == "__WXMSW__": import os - localedir = os.path.join(os.path.split(__file__)[0], "locale") - Locale_AddCatalogLookupPathPrefix(localedir) + _localedir = os.path.join(os.path.split(__file__)[0], "locale") + Locale.AddCatalogLookupPathPrefix(_localedir) del os #----------------------------------------------------------------------------