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 'TurtleArtActivity.py') diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py index b36a051..8614fb8 100644 --- a/TurtleArtActivity.py +++ b/TurtleArtActivity.py @@ -39,10 +39,12 @@ from sugar.graphics.toolbutton import ToolButton from sugar.datastore import datastore from sugar import profile -from gettext import gettext as _ import os.path import tarfile +# installs the global _() magic +import TurtleArt.tagettext + from TurtleArt.tapalette import palette_names, help_strings from TurtleArt.taconstants import OVERLAY_LAYER, ICON_SIZE, BLOCK_SCALE from TurtleArt.taexporthtml import save_html -- cgit v0.9.1