]> git.saurik.com Git - wxWidgets.git/commitdiff
Move the language catalogs install directory on MSW from 'locale' to
authorRobin Dunn <robin@alldunn.com>
Sat, 2 Sep 2006 17:43:00 +0000 (17:43 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 2 Sep 2006 17:43:00 +0000 (17:43 +0000)
'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

wxPython/distrib/make_installer.py
wxPython/distrib/make_installer_inno4.py
wxPython/setup.py
wxPython/src/_intl_ex.py

index 8dcd68359c03de3e9747831b1eead79a11ef2489..58015de8936a10a7202f002a41f813de6b6a7bbd 100644 (file)
@@ -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)
 
 
index cee7c888a09acc56ac0d21ae5a94c81438733c2b..b3cc96dbd6e05e2a3576821882bcd0e8db92e900 100755 (executable)
@@ -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)
 
 
index 7710b73271f9be78ef264ee16ff0463ce9dd7b18..951b307e1d91fc305457ecea03b1ded784f76138 100755 (executable)
@@ -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':
index f572dd25494490560b048b7a2b00cbaa2311ff9b..bc0ae4b947ccdd3a894d9ee065e68fded5a0f21b 100644 (file)
@@ -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