forked from Lainports/freebsd-ports
written in Python and uses cairo for its rendering. It is intended to be as light and intuitive as possible, but still provide a wide range of powerful features. WWW: http://code.google.com/p/labyrinth/ PR: ports/123675 Submitted by: Romain Tartiere <romain@blogreen.org>
23 lines
756 B
Python
23 lines
756 B
Python
|
|
$FreeBSD$
|
|
|
|
--- src/labyrinth.py.orig
|
|
+++ src/labyrinth.py
|
|
@@ -56,11 +56,12 @@
|
|
if hasattr(gettext, 'bind_textdomain_codeset'):
|
|
gettext.bind_textdomain_codeset('labyrinth','UTF-8')
|
|
gettext.textdomain('labyrinth')
|
|
-if not os.name == 'nt':
|
|
- locale.bindtextdomain('labyrinth', localedir)
|
|
- if hasattr(locale, 'bind_textdomain_codeset'):
|
|
- locale.bind_textdomain_codeset('labyrinth','UTF-8')
|
|
- locale.textdomain('labyrinth')
|
|
+if hasattr(locale, 'bindtextdomain'):
|
|
+ if not os.name == 'nt':
|
|
+ locale.bindtextdomain('labyrinth', localedir)
|
|
+ if hasattr(locale, 'bind_textdomain_codeset'):
|
|
+ locale.bind_textdomain_codeset('labyrinth','UTF-8')
|
|
+ locale.textdomain('labyrinth')
|
|
|
|
gtk.glade.bindtextdomain('labyrinth')
|
|
gtk.glade.textdomain('labyrinth')
|