2003-11-12 16:34:20 -05:00
|
|
|
"""
|
2003-12-22 14:09:54 -05:00
|
|
|
PyColourChooser
|
2003-11-12 16:34:20 -05:00
|
|
|
Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
|
2003-07-02 19:13:10 -04:00
|
|
|
|
2003-12-22 14:09:54 -05:00
|
|
|
This file is part of PyColourChooser.
|
2003-07-02 19:13:10 -04:00
|
|
|
|
2003-12-22 14:09:54 -05:00
|
|
|
This version of PyColourChooser is open source; you can redistribute it
|
2003-11-12 16:34:20 -05:00
|
|
|
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
|
|
|
|
|
2003-12-22 14:09:54 -05:00
|
|
|
gettext.bindtextdomain('pycolourchooser')
|
|
|
|
gettext.textdomain('pycolourchooser')
|
2003-11-12 16:34:20 -05:00
|
|
|
_ = gettext.gettext
|
|
|
|
except Exception, strerror:
|
|
|
|
print "Warning: Couldn't import translation function: %(str)s" %{ 'str' : strerror }
|
|
|
|
print "Defaulting to En"
|
|
|
|
_ = lambda x: x
|