X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..61563ef347c921036a48a76ea6aba0b9521c2d63:/wxPython/wx/lib/colourchooser/intl.py diff --git a/wxPython/wx/lib/colourchooser/intl.py b/wxPython/wx/lib/colourchooser/intl.py index 2004276cad..cfc84f1359 100644 --- a/wxPython/wx/lib/colourchooser/intl.py +++ b/wxPython/wx/lib/colourchooser/intl.py @@ -1,11 +1,24 @@ +""" +wxPyColourChooser +Copyright (C) 2002 Michael Gilfix -"""Renamer stub: provides a way to drop the wx prefix from wxPython objects.""" +This file is part of wxPyColourChooser. -__cvsid__ = "$Id$" -__revision__ = "$Revision$"[11:-2] +This version of wxPyColourChooser is open source; you can redistribute it +and/or modify it under the licensed terms. -from wx import _rename -from wxPython.lib.colourchooser import intl -_rename(globals(), intl.__dict__, modulename='lib.colourchooser.intl') -del intl -del _rename +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('wxpycolourchooser') + gettext.textdomain('wxpycolourchooser') + _ = gettext.gettext +except Exception, strerror: + print "Warning: Couldn't import translation function: %(str)s" %{ 'str' : strerror } + print "Defaulting to En" + _ = lambda x: x