]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wx/lib/colourchooser/intl.py
Reworked how stock objects are initialized. They now have an
[wxWidgets.git] / wxPython / wx / lib / colourchooser / intl.py
CommitLineData
d14a1e28
RD
1"""
2wxPyColourChooser
3Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu>
1fded56b 4
d14a1e28 5This file is part of wxPyColourChooser.
1fded56b 6
d14a1e28
RD
7This version of wxPyColourChooser is open source; you can redistribute it
8and/or modify it under the licensed terms.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13"""
14
15try:
16 import gettext
17
18 gettext.bindtextdomain('wxpycolourchooser')
19 gettext.textdomain('wxpycolourchooser')
20 _ = gettext.gettext
21except Exception, strerror:
22 print "Warning: Couldn't import translation function: %(str)s" %{ 'str' : strerror }
23 print "Defaulting to En"
24 _ = lambda x: x