From 0545a72ada331a7d5e7466d8424ba848caaec26c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 31 Mar 2011 05:42:51 +0000 Subject: Refactored gettext imports -- fixes running from src in Sugar (martin langhoff) --- (limited to 'turtleart.py') diff --git a/turtleart.py b/turtleart.py index ea3a784..9ef87a1 100755 --- a/turtleart.py +++ b/turtleart.py @@ -43,14 +43,8 @@ except ImportError, e: argv = sys.argv[:] # Workaround for import behavior of gst in tagplay sys.argv[1:] = [] # Execution of import gst cannot see '--help' or '-h' -import gettext - -# Commenting out bindtextdomain so that GNOME can find the installed .mo files, -# but it will not find the .mo files in the local locale directory when running -# from a git repository or the unzipped .xo file. -# gettext.bindtextdomain('org.laptop.TurtleArtActivity', 'locale') -gettext.textdomain('org.laptop.TurtleArtActivity') -_ = gettext.gettext +# installs the global _() magic +import TurtleArt.tagettext from TurtleArt.taconstants import OVERLAY_LAYER, DEFAULT_TURTLE_COLORS from TurtleArt.tautils import data_to_string, data_from_string, get_save_name -- cgit v0.9.1