summaryrefslogtreecommitdiff
path: root/addons/website_gengo/static/src/xml
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-01-04 16:26:45 +0000
committerRomain Derie <rde@odoo.com>2019-01-04 16:43:19 +0000
commit56243f4670d23770ea83ce1cf66d00549b681297 (patch)
tree106a8e937916c7711270d7fe5738d1d6f05a845f /addons/website_gengo/static/src/xml
parent8c8b32e5e437e8c18179f267ec47959c4ebeff9d (diff)
[FIX] website_gengo: override of static template was not working
The template `website_gengo.web_editor.TranslatorInfoDialog` was not used anymore. It is supposed to replace the one in `web_editor` module. Among other things, 2972976 refactored the `web_editor` template to contain only the modal body content. The bug might be coming from it. closes odoo/odoo#29955
Diffstat (limited to 'addons/website_gengo/static/src/xml')
-rw-r--r--addons/website_gengo/static/src/xml/website.gengo.xml60
1 files changed, 18 insertions, 42 deletions
diff --git a/addons/website_gengo/static/src/xml/website.gengo.xml b/addons/website_gengo/static/src/xml/website.gengo.xml
index 0069ad10374..42c43d11397 100644
--- a/addons/website_gengo/static/src/xml/website.gengo.xml
+++ b/addons/website_gengo/static/src/xml/website.gengo.xml
@@ -6,51 +6,27 @@
<a class="btn btn-danger hidden gengo_inprogress disabled" href="#"> <i class="fa fa-clock-o"></i> Translation in Progress</a>
<a class="btn btn-link gengo_info" data-action="translation_gengo_info">Count Words</a>
</t>
-<t t-name="web_editor.TranslatorInfoDialog">
- <div class="modal fade" tabindex="-1" role="dialog">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button title="Close" type="button" class="close" data-dismiss="modal">×</button>
- <h2 class="modal-title">Translate this page</h2>
- </div>
- <div class="modal-body">
- <section>
- <p>You are about to enter the translation mode.</p>
- <p>
- Here are the visuals used to help you translate efficiently:
- <ul class="oe_translate_examples">
- <li style="background:#ffffb6;">
- Content to translate or you can post them to <b><a href="http://gengo.com/" >Gengo</a></b> for translation.
- </li>
- <li data-oe-translation-state="inprogress">
- Translation in process (Gengo)
- </li>
- <li data-oe-translation-state="translated">
- Already translated content
- </li>
- </ul>
- </p>
- <p>
+<t t-extend="web_editor.TranslatorInfoDialog">
+ <t t-jquery=".oe_translate_examples" t-operation="replace">
+ <ul class="oe_translate_examples">
+ <li style="background:#ffffb6;">
+ Content to translate or you can post them to <b><a href="http://gengo.com/" >Gengo</a></b> for translation.
+ </li>
+ <li data-oe-translation-state="inprogress">
+ Translation in process (Gengo)
+ </li>
+ <li data-oe-translation-state="translated">
+ Already translated content
+ </li>
+ </ul>
+ </t>
+ <t t-jquery="p:last" t-operation="replace">
+ <p> <!-- Keep wrong indent for translation -->
In this mode, you can translate texts or post texts to Gengo for translation.
To change the structure of the page, you must edit the
master page.
- </p>
- </section>
- </div>
- <div class="modal-footer">
- <div>
- <input type="checkbox" name="do_not_show"/>
- Do not show this dialog later.
- </div>
- <div>
- <button type="button" data-action="activate" class="btn btn-primary">Ok</button>
- <button type="button" class="btn btn-default" data-action="discard" data-dismiss="modal">Cancel</button>
- </div>
- </div>
- </div>
- </div>
- </div>
+ </p>
+ </t>
</t>
<t t-name="website.GengoTranslatorPostDialog">