X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b9a4190f70909de9568f45389e7aa3ecbc66b8a..6fd864d1591eca9ccd0cb2ccad5a92d9e15f893b:/wxPython/wx/lib/colourchooser/intl.py

diff --git a/wxPython/wx/lib/colourchooser/intl.py b/wxPython/wx/lib/colourchooser/intl.py
index 448a8a6f7a..b10d291a34 100644
--- a/wxPython/wx/lib/colourchooser/intl.py
+++ b/wxPython/wx/lib/colourchooser/intl.py
@@ -1,8 +1,24 @@
+"""
+PyColourChooser
+Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
 
-"""Renamer stub: provides a way to drop the wx prefix from wxPython objects."""
+This file is part of PyColourChooser.
 
-from wx import _rename
-from wxPython.lib.colourchooser import intl
-_rename(globals(), intl.__dict__, modulename='lib.colourchooser.intl')
-del intl
-del _rename
+This version of PyColourChooser is open source; you can redistribute it
+and/or modify it under the licensed terms.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+"""
+
+try:
+    import gettext
+
+    gettext.bindtextdomain('pycolourchooser')
+    gettext.textdomain('pycolourchooser')
+    _ = gettext.gettext
+except Exception, strerror:
+    print "Warning: Couldn't import translation function: %(str)s" %{ 'str' : strerror }
+    print "Defaulting to En"
+    _ = lambda x: x