diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-03-31 05:42:51 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-03-31 05:42:51 (GMT) |
commit | 0545a72ada331a7d5e7466d8424ba848caaec26c (patch) | |
tree | 876be3b420f6f100e21db890642a400efbaaeb35 /turtleart.py | |
parent | 5bba62b88156e73bca1fa81c7c0aa0c47c0f73e3 (diff) |
Refactored gettext imports -- fixes running from src in Sugar (martin langhoff)
Diffstat (limited to 'turtleart.py')
-rwxr-xr-x | turtleart.py | 10 |
1 files changed, 2 insertions, 8 deletions
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 |