'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
if not os.path.isdir(filename):
lst.append( locale_template % (filename, pkgdir, dirname) )
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)
return '\n'.join(stringlst)
if not os.path.isdir(filename):
lst.append( locale_template % (filename, pkgdir, dirname) )
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)
return '\n'.join(stringlst)
- 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'))
# to the default catalog path.
if wx.Platform == "__WXMSW__":
import os
# 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
Locale.AddCatalogLookupPathPrefix(_localedir)
del os