Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-02 01:44:59 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-02 01:44:59 (GMT)
commit03287ec1783980f81deb9708ca4db3937ede1584 (patch)
tree6798952f5af64835f809183f3a835611714195ba
parent1276a0f8e42095b704be2a580e03c4dcd9ea9c16 (diff)
fixed some i18n strings
-rw-r--r--TurtleArt/tabasics.py22
-rw-r--r--plugins/turtle_blocks_plugin.py14
2 files changed, 23 insertions, 13 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py
index 00d71eb..39fd514 100644
--- a/TurtleArt/tabasics.py
+++ b/TurtleArt/tabasics.py
@@ -179,7 +179,7 @@ class Palettes():
b.set_label(_('left'))
b.set_prim_name('left')
b.set_default(90)
- b.set_help(_('turns turtle counterclockwise (angle in degrees'))
+ b.set_help(_('turns turtle counterclockwise (angle in degrees)'))
PLUGIN_DICTIONARY['right'] = self._prim_right
self.tw.lc._def_prim('right', 1,
lambda self, x: PLUGIN_DICTIONARY['right'](-x))
@@ -191,7 +191,7 @@ class Palettes():
b.set_label(_('right'))
b.set_prim_name('right')
b.set_default(90)
- b.set_help(_('turns turtle clockwise (angle in degrees'))
+ b.set_help(_('turns turtle clockwise (angle in degrees)'))
self.tw.lc._def_prim('right', 1,
lambda self, x: PLUGIN_DICTIONARY['right'](x))
b.add_prim()
@@ -238,7 +238,7 @@ class Palettes():
b.set_label(_('set heading'))
b.set_prim_name('seth')
b.set_default(0)
- b.set_help(_('sets the heading of the turtle (0 is towards the top of the screen.'))
+ b.set_help(_('sets the heading of the turtle (0 is towards the top of the screen.)'))
PLUGIN_DICTIONARY['set'] = self._prim_set
self.tw.lc._def_prim('seth', 1,
lambda self, x: PLUGIN_DICTIONARY['set'](
@@ -249,7 +249,7 @@ class Palettes():
b.set_palette('turtle')
b.set_style('box-style')
b.set_label(_('xcor'))
- b.set_help(_('holds current x-coordinate value of the turtle (can be used in place of a number block'))
+ b.set_help(_('holds current x-coordinate value of the turtle (can be used in place of a number block)'))
b.set_value_block(True)
b.set_prim_name('xcor')
self.tw.lc._def_prim(
@@ -260,7 +260,7 @@ class Palettes():
b.set_palette('turtle')
b.set_style('box-style')
b.set_label(_('ycor'))
- b.set_help(_('holds current y-coordinate value of the turtle (can be used in place of a number block'))
+ b.set_help(_('holds current y-coordinate value of the turtle (can be used in place of a number block)'))
b.set_value_block(True)
b.set_prim_name('ycor')
self.tw.lc._def_prim(
@@ -271,7 +271,7 @@ class Palettes():
b.set_palette('turtle')
b.set_style('box-style')
b.set_label(_('heading'))
- b.set_help(_('holds current heading value of the turtle (can be used in place of a number block'))
+ b.set_help(_('holds current heading value of the turtle (can be used in place of a number block)'))
b.set_value_block(True)
b.set_prim_name('heading')
self.tw.lc._def_prim(
@@ -544,7 +544,7 @@ class Palettes():
b.set_label('100')
b.set_default(100)
b.set_special_name(_('number'))
- b.set_help('used as numeric input in mathematic operators')
+ b.set_help(_('used as numeric input in mathematic operators'))
b.add_prim()
b = Primitive('greater2')
@@ -745,7 +745,7 @@ class Palettes():
b.set_label(_('text'))
b.set_default(_('text'))
b.set_special_name('')
- b.set_help('string value')
+ b.set_help(_('string value'))
b.add_prim()
b = Primitive('box1')
@@ -753,7 +753,7 @@ class Palettes():
b.set_style('box-style')
b.set_label(_('box 1'))
b.set_prim_name('box1')
- b.set_help('Variable 1 (numeric value)')
+ b.set_help(_('Variable 1 (numeric value)'))
b.set_value_block(True)
self.tw.lc._def_prim('box1', 0, lambda self: self.tw.lc.boxes['box1'])
b.add_prim()
@@ -763,7 +763,7 @@ class Palettes():
b.set_style('box-style')
b.set_label(_('box 2'))
b.set_prim_name('box2')
- b.set_help('Variable 2 (numeric value)')
+ b.set_help(_('Variable 2 (numeric value)'))
b.set_value_block(True)
self.tw.lc._def_prim('box2', 0, lambda self: self.tw.lc.boxes['box2'])
b.add_prim()
@@ -774,7 +774,7 @@ class Palettes():
b.set_label(_('box'))
b.set_prim_name('box')
b.set_default(_('my box'))
- b.set_help('named variable (numeric value)')
+ b.set_help(_('named variable (numeric value)'))
PLUGIN_DICTIONARY['box'] = self._prim_box
self.tw.lc._def_prim('box', 1,
lambda self, x: PLUGIN_DICTIONARY['box'](x))
diff --git a/plugins/turtle_blocks_plugin.py b/plugins/turtle_blocks_plugin.py
index 4570ab7..dcf7ef1 100644
--- a/plugins/turtle_blocks_plugin.py
+++ b/plugins/turtle_blocks_plugin.py
@@ -79,6 +79,9 @@ class Turtle_blocks_plugin(Plugin):
self.tw = parent
def setup(self):
+ self.heap = self.tw.lc.heap
+ self.keyboard = self.tw.lc.keyboard
+
# set up Turtle Block palettes
self._flow_palette()
@@ -177,7 +180,7 @@ class Turtle_blocks_plugin(Plugin):
b.set_label(_('text'))
b.set_default(_('text'))
b.set_special_name('')
- b.set_help('string value')
+ b.set_help(_('string value'))
b.add_prim()
b = Primitive('show')
@@ -512,7 +515,7 @@ class Turtle_blocks_plugin(Plugin):
b.set_style('collapsible-bottom')
b.set_label([' ', ' '])
b.set_prim_name('nop')
- b.set_help(_('bottom of a collapsed stack'))
+ b.set_help(_('bottom of a collapsible stack'))
b.add_prim()
b = Primitive('sandwichcollapsed')
@@ -1012,6 +1015,13 @@ class Turtle_blocks_plugin(Plugin):
"holds current text color (can be used in place of a number block)"),
'textsize': _(
"holds current text size (can be used in place of a number block)")}
+ 'settextcolor': [1, lambda self, x: self.tw.canvas.settextcolor(x)],
+ 'settextsize': [1, lambda self, x: self.tw.canvas.settextsize(x)],
+ 'textcolor': [0, lambda self: self.tw.canvas.textcolor],
+ 'textsize': [0, lambda self: self.tw.textsize]}
+ 'insertimage': [1, lambda self, x: self._insert_image(False,
+ filepath=x)],
+ 'container': [1, lambda self, x: x],
PORTFOLIO_STYLE_2x2 = ['template2x2']
PORTFOLIO_STYLE_1x1 = ['template1x1', 'template1x1a']
PORTFOLIO_STYLE_2x1 = ['template2x1']