Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-09-25 19:52:50 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-09-25 19:52:50 (GMT)
commit70a565de7518de90a386fd8e80096e1ca5beeeaa (patch)
tree1006125d133bb6615e524ca300dc40ee3be51bcf
parent8e6cfb7cf8797bb1356ca594bb7ec8c75bae5334 (diff)
fixed i18n oversight
-rw-r--r--taexporthtml.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/taexporthtml.py b/taexporthtml.py
index ac36475..5deb360 100644
--- a/taexporthtml.py
+++ b/taexporthtml.py
@@ -25,6 +25,7 @@ from sugar.datastore import datastore
import os.path
import subprocess
from talogo import get_pixbuf_from_journal
+from tahoverhelp import *
from gettext import gettext as _
def save_html(self, tw, embed_flag=True):
@@ -238,8 +239,10 @@ src=\"data:image/png;base64,\n", " \"/>\n")
if len(data) > 0:
code += this_stack
- # if no show or template blocks were present, we've got no slides,
- # so save a screendump instead
+ """
+ if no show or template blocks were present, we've got no slides,
+ so save a screendump instead
+ """
if slidecount == 0:
# save a screen dump instead
filename = os.path.join(datapath, 'image.png')
@@ -260,6 +263,20 @@ src=\"data:image/png;base64,\n", " \"/>\n")
code = code + html_glue['div'][0]
data = walk_stack(self, tw, b)
for d in data:
+ if type(d) is not float:
+ if d[0:2] == "#s":
+ d = d[2:]
+ elif d[0:3] == "nop":
+ stack = {"nop" :"",\
+ "nop1":"stack1",\
+ "nop2":"stack2",\
+ "nop3":"stack"}
+ d = stack[d]
+ # translate block name if it is in the dictionary
+ if d in blocks_dict:
+ d = _(blocks_dict[d])
+ else:
+ d = _(d)
code = code + str(d) + " "
code = code + html_glue['div'][1]