[FIX] tools, base: typo for t-translation

This commit is contained in:
Nicolas Lempereur
2015-11-26 16:56:53 +01:00
parent e9dadadd07
commit 9d012d2157
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ class TranslationToolsTestCase(unittest.TestCase):
terms = []
source = """<div>
stuff before
<div translation="off">Do not translate this</div>
<div t-translation="off">Do not translate this</div>
stuff after
</div>"""
result = xml_translate(terms.append, source)
+1 -1
View File
@@ -215,7 +215,7 @@ class XMLTranslator(object):
if (
isinstance(node, SKIPPED_ELEMENT_TYPES) or
node.tag in SKIPPED_ELEMENTS or
node.get("translation", "").strip() == "off" or
node.get("t-translation", "").strip() == "off" or
node.tag == "attribute" and node.get("name") not in TRANSLATED_ATTRS
):
# do not translate the contents of the node