Files
Phoenix/wx/lib/colourchooser/intl.py
Robin Dunn 700f95c632 PR 50: Py3 fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-14 03:09:16 +00:00

25 lines
727 B
Python

"""
PyColourChooser
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
This file is part of PyColourChooser.
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 as strerror:
print("Warning: Couldn't import translation function: %(str)s" %{ 'str' : strerror })
print("Defaulting to En")
_ = lambda x: x