Revert "[FIX] translate: don't translate DOCTYPE tag"
This reverts commit 44e8b92beb.
The condition is wrong as a view starting with DOCTYPE as top element will be
excluded, including its child (the whole page them).
Re-add the translatable title that was excluded by the condition.
This commit is contained in:
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-05-26 11:19+0000\n"
|
||||
"PO-Revision-Date: 2016-05-26 11:19+0000\n"
|
||||
"POT-Creation-Date: 2016-05-26 12:06+0000\n"
|
||||
"PO-Revision-Date: 2016-05-26 12:06+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -419,6 +419,11 @@ msgstr ""
|
||||
msgid "Livechat Support Channel Statistics allows you to easily check and analyse your company livechat session performance. Extract informations about the missed sessions, the audiance, the duration of a session, etc."
|
||||
msgstr ""
|
||||
|
||||
#. module: im_livechat
|
||||
#: model:ir.ui.view,arch_db:im_livechat.support_page
|
||||
msgid "Livechat Support Page"
|
||||
msgstr ""
|
||||
|
||||
#. module: im_livechat
|
||||
#: model:ir.model,name:im_livechat.model_im_livechat_report_channel
|
||||
#: model:ir.model,name:im_livechat.model_im_livechat_report_operator
|
||||
|
||||
@@ -32,7 +32,7 @@ _logger = logging.getLogger(__name__)
|
||||
# used to notify web client that these translations should be loaded in the UI
|
||||
WEB_TRANSLATION_COMMENT = "openerp-web"
|
||||
|
||||
SKIPPED_ELEMENTS = ('script', 'style', 'title')
|
||||
SKIPPED_ELEMENTS = ('script', 'style')
|
||||
|
||||
_LOCALE2WIN32 = {
|
||||
'af_ZA': 'Afrikaans_South Africa',
|
||||
@@ -231,8 +231,7 @@ class XMLTranslator(object):
|
||||
isinstance(node, SKIPPED_ELEMENT_TYPES) or
|
||||
node.tag in SKIPPED_ELEMENTS or
|
||||
node.get("t-translation", "").strip() == "off" or
|
||||
node.tag == "attribute" and node.get("name") not in TRANSLATED_ATTRS or
|
||||
not node.getparent() and node.text and '<!DOCTYPE' in node.text
|
||||
node.tag == "attribute" and node.get("name") not in TRANSLATED_ATTRS
|
||||
):
|
||||
# do not translate the contents of the node
|
||||
tail, node.tail = node.tail, None
|
||||
|
||||
Reference in New Issue
Block a user