Commit 0747876a authored by Jérome Perrin's avatar Jérome Perrin

xhtml_style: expose methods from interface_translation.html

This way we can use gadgets using of ERP5JS translation API in xhtml
style.
This is really minimal compatibility layer and translation is not
actually performed.
parent 4dc401b8
......@@ -88,6 +88,17 @@
return this.element.querySelector('form').querySelector('[type="submit"]').click();
})
// Comply to interface_translation.html, but without actually translating.
.allowPublicAcquisition('translate', function (argument_list) {
return argument_list[0];
})
.allowPublicAcquisition('getTranslationList', function (argument_list) {
return argument_list[0];
})
.allowPublicAcquisition('translateHtml', function (argument_list) {
return argument_list[0];
})
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment