Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taprimitive.py
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-08-01 17:13:41 (GMT)
committer Marion <marion.zepf@gmail.com>2013-08-01 17:13:41 (GMT)
commit9762cdd7b160ad3ac1a596114a7f0fc9e273837c (patch)
tree6787d8ff98e6a7956a403b92763e4ffa1584fe72 /TurtleArt/taprimitive.py
parent0942aecc5b6dcb4d4ba1e5de926a0943da25cc06 (diff)
highlight faulty block if an error occurs during export
Diffstat (limited to 'TurtleArt/taprimitive.py')
-rw-r--r--TurtleArt/taprimitive.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/TurtleArt/taprimitive.py b/TurtleArt/taprimitive.py
index b2d6683..b36062b 100644
--- a/TurtleArt/taprimitive.py
+++ b/TurtleArt/taprimitive.py
@@ -19,6 +19,7 @@
#THE SOFTWARE.
import ast
+from gettext import gettext as _
from tacanvas import TurtleGraphics
from talogo import LogoCode
@@ -39,10 +40,9 @@ class PyExportError(BaseException):
def __str__(self):
if self.block is not None:
- return "error in block '%s': %s" % (str(self.block.name),
- str(self.message))
+ return _("error in highlighted block") + ": " + str(self.message)
else:
- return "error: " + str(self.message)
+ return _("error") + ": " + str(self.message)
class Primitive(object):