[FIX] tools, base: typo for t-translation
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user