From: Robin Dunn Date: Sat, 2 Sep 2006 17:43:00 +0000 (+0000) Subject: Move the language catalogs install directory on MSW from 'locale' to X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b5c5355ba39f4ab9147270b32fe29b74bd1aa7e8 Move the language catalogs install directory on MSW from 'locale' to 'i18n' to avoid conflict (and an import warning) with the standard locale.py module. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/distrib/make_installer.py b/wxPython/distrib/make_installer.py index 8dcd68359c..58015de893 100644 --- a/wxPython/distrib/make_installer.py +++ b/wxPython/distrib/make_installer.py @@ -579,7 +579,7 @@ def build_locale_string(pkgdir): if not os.path.isdir(filename): lst.append( locale_template % (filename, pkgdir, dirname) ) - os.path.walk('wx\\locale', walk_helper, stringlst) + os.path.walk('wx\\i18n', walk_helper, stringlst) return '\n'.join(stringlst) diff --git a/wxPython/distrib/make_installer_inno4.py b/wxPython/distrib/make_installer_inno4.py index cee7c888a0..b3cc96dbd6 100755 --- a/wxPython/distrib/make_installer_inno4.py +++ b/wxPython/distrib/make_installer_inno4.py @@ -582,7 +582,7 @@ def build_locale_string(pkgdir): if not os.path.isdir(filename): lst.append( locale_template % (filename, pkgdir, dirname) ) - os.path.walk('wx\\locale', walk_helper, stringlst) + os.path.walk('wx\\i18n', walk_helper, stringlst) return '\n'.join(stringlst) diff --git a/wxPython/setup.py b/wxPython/setup.py index 7710b73271..951b307e1d 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -156,8 +156,8 @@ CLEANUP.append('licence') if os.name == 'nt': - build_locale_dir(opj(PKGDIR, 'locale')) - DATA_FILES += build_locale_list(opj(PKGDIR, 'locale')) + build_locale_dir(opj(PKGDIR, 'i18n')) + DATA_FILES += build_locale_list(opj(PKGDIR, 'i18n')) if os.name == 'nt': diff --git a/wxPython/src/_intl_ex.py b/wxPython/src/_intl_ex.py index f572dd2549..bc0ae4b947 100644 --- a/wxPython/src/_intl_ex.py +++ b/wxPython/src/_intl_ex.py @@ -3,7 +3,7 @@ # to the default catalog path. if wx.Platform == "__WXMSW__": import os - _localedir = os.path.join(os.path.split(__file__)[0], "locale") + _localedir = os.path.join(os.path.split(__file__)[0], "i18n") Locale.AddCatalogLookupPathPrefix(_localedir) del os