From b39ca81f1300ad9e59839a9a52e9a6081dd4a517 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sat, 9 Oct 2010 21:50:58 +0200 Subject: Handling of translations. --- org/madore/damlengine/TodoBodyElement.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'org/madore/damlengine/TodoBodyElement.java') diff --git a/org/madore/damlengine/TodoBodyElement.java b/org/madore/damlengine/TodoBodyElement.java index 05073c8..ce1f064 100644 --- a/org/madore/damlengine/TodoBodyElement.java +++ b/org/madore/damlengine/TodoBodyElement.java @@ -42,12 +42,13 @@ public final class TodoBodyElement extends TodoDefaultElement { bodyNode.appendChild(token); toProcess.add(new TodoNavbar(token, this.ctx, this)); } - if ( node.getAttributeNS(null, "notranslations").equals("") ) { + if ( node.getAttributeNS(null, "notranslations").equals("") + && ctx.translations != null ) { Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:implicit-do-translations"); bodyNode.appendChild(ctx.doc.createTextNode("\n")); bodyNode.appendChild(token); - // toProcess.add(new TodoTranslations(token, this.ctx, this)); + toProcess.add(new TodoTranslations(token, this.ctx, this)); } for ( Node child : childList ) { if ( child.getNodeType() == Node.TEXT_NODE -- cgit v1.2.3