]>
Commit | Line | Data |
---|---|---|
d14a1e28 | 1 | """ |
d4b73b1b | 2 | PyColourChooser |
d14a1e28 | 3 | Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu> |
1fded56b | 4 | |
d4b73b1b | 5 | This file is part of PyColourChooser. |
1fded56b | 6 | |
d4b73b1b | 7 | This version of PyColourChooser is open source; you can redistribute it |
d14a1e28 RD |
8 | and/or modify it under the licensed terms. |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
13 | """ | |
14 | ||
15 | try: | |
16 | import gettext | |
17 | ||
d4b73b1b RD |
18 | gettext.bindtextdomain('pycolourchooser') |
19 | gettext.textdomain('pycolourchooser') | |
d14a1e28 RD |
20 | _ = gettext.gettext |
21 | except Exception, strerror: | |
22 | print "Warning: Couldn't import translation function: %(str)s" %{ 'str' : strerror } | |
23 | print "Defaulting to En" | |
24 | _ = lambda x: x |