From 7cae647a4488bbc4e8157ae7463ceccd1aa9f9a5 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 2 Oct 2006 20:03:01 +0000 Subject: [PATCH] Change the name of the dir where the message catalogs are installed on MSW back to 'locale' and also change back to the full directory structure including the LC_MESSAGES dir. The reasons these changes were orginally made no longer apply git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/config.py | 3 ++- wxPython/distrib/make_installer.py | 6 +++--- wxPython/distrib/make_installer_inno4.py | 6 +++--- wxPython/setup.py | 4 ++-- wxPython/src/_intl_ex.py | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/wxPython/config.py b/wxPython/config.py index 47d330fb44..e06fe61391 100644 --- a/wxPython/config.py +++ b/wxPython/config.py @@ -503,7 +503,8 @@ def build_locale_dir(destdir, verbose=1): moFiles = glob.glob(opj(WXDIR, 'locale', '*.mo')) for src in moFiles: lang = os.path.splitext(os.path.basename(src))[0] - dest = opj(destdir, lang) + #dest = opj(destdir, lang) + dest = opj(destdir, lang, 'LC_MESSAGES') mkpath(dest, verbose=verbose) copy_file(src, opj(dest, 'wxstd.mo'), update=1, verbose=verbose) CLEANUP.append(opj(dest, 'wxstd.mo')) diff --git a/wxPython/distrib/make_installer.py b/wxPython/distrib/make_installer.py index 48568ea4e4..85d7ee91a9 100644 --- a/wxPython/distrib/make_installer.py +++ b/wxPython/distrib/make_installer.py @@ -33,7 +33,7 @@ ISS_Template = r''' AppName = wxPython%(SHORTVER)s-%(CHARTYPE)s-%(PYVER)s AppVerName = wxPython %(VERSION)s (%(CHARTYPE)s) for Python %(PYTHONVER)s OutputBaseFilename = wxPython%(SHORTVER)s-win32-%(CHARTYPE)s-%(VERSION)s-%(PYVER)s -AppCopyright = Copyright © 2004 Total Control Software +AppCopyright = Copyright © 2006 Total Control Software DefaultDirName = {code:GetInstallDir|c:\DoNotInstallHere} DefaultGroupName = wxPython %(VERSION)s (%(CHARTYPE)s) for Python %(PYTHONVER)s AlwaysCreateUninstallIcon = no @@ -336,7 +336,7 @@ ISS_DocDemo_Template = r''' AppName = wxPython%(SHORTVER)s-docs-demos AppVerName = wxPython Docs and Demos %(VERSION)s OutputBaseFilename = wxPython%(SHORTVER)s-win32-docs-demos-%(VERSION)s -AppCopyright = Copyright © 2004 Total Control Software +AppCopyright = Copyright © 2006 Total Control Software DefaultDirName = {pf}\wxPython%(SHORTVER)s Docs and Demos DefaultGroupName = wxPython%(SHORTVER)s Docs Demos and Tools AlwaysCreateUninstallIcon = yes @@ -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\\i18n', walk_helper, stringlst) + os.path.walk('wx\\locale', walk_helper, stringlst) return '\n'.join(stringlst) diff --git a/wxPython/distrib/make_installer_inno4.py b/wxPython/distrib/make_installer_inno4.py index 02b1bd2853..a1ed9ffda6 100755 --- a/wxPython/distrib/make_installer_inno4.py +++ b/wxPython/distrib/make_installer_inno4.py @@ -38,7 +38,7 @@ ISS_Template = r''' AppName = wxPython%(SHORTVER)s-%(CHARTYPE)s-%(PYVER)s AppVerName = wxPython %(VERSION)s (%(CHARTYPE)s) for Python %(PYTHONVER)s OutputBaseFilename = wxPython%(SHORTVER)s-win32-%(CHARTYPE)s-%(VERSION)s-%(PYVER)s -AppCopyright = Copyright © 2004 Total Control Software +AppCopyright = Copyright © 2006 Total Control Software DefaultDirName = {code:GetInstallDir|c:\DoNotInstallHere} DefaultGroupName = wxPython %(VERSION)s (%(CHARTYPE)s) for Python %(PYTHONVER)s AdminPrivilegesRequired = no @@ -340,7 +340,7 @@ ISS_DocDemo_Template = r''' AppName = wxPython%(SHORTVER)s-docs-demos AppVerName = wxPython Docs and Demos %(VERSION)s OutputBaseFilename = wxPython%(SHORTVER)s-win32-docs-demos-%(VERSION)s -AppCopyright = Copyright © 2004 Total Control Software +AppCopyright = Copyright © 2006 Total Control Software DefaultDirName = {pf}\wxPython%(SHORTVER)s Docs and Demos DefaultGroupName = wxPython%(SHORTVER)s Docs Demos and Tools ;AlwaysCreateUninstallIcon = yes @@ -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\\i18n', walk_helper, stringlst) + os.path.walk('wx\\locale', walk_helper, stringlst) return '\n'.join(stringlst) diff --git a/wxPython/setup.py b/wxPython/setup.py index 34b0b5dacc..d910f2a7ac 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, 'i18n')) - DATA_FILES += build_locale_list(opj(PKGDIR, 'i18n')) + build_locale_dir(opj(PKGDIR, 'locale')) + DATA_FILES += build_locale_list(opj(PKGDIR, 'locale')) if os.name == 'nt': diff --git a/wxPython/src/_intl_ex.py b/wxPython/src/_intl_ex.py index bc0ae4b947..f572dd2549 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], "i18n") + _localedir = os.path.join(os.path.split(__file__)[0], "locale") Locale.AddCatalogLookupPathPrefix(_localedir) del os -- 2.45.2