summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.translator.js
AgeCommit message (Collapse)Author
2017-08-16[MOV] web_editor, website: reorganize filesqsm-odoo
2017-08-08[MOV] website, http_routing: move translation support in http_routingThibault Delavallée
Code managing language in URLs and redirection is moved from website to http_routing. Override of _dispatch in website now consists in adding website to the request. url_for and is_multilang_url tools methods are also moved from website to http_routing.ir_http as those are required for the moved code. Some renaming is performed on request attributes previously added in website. Indeed as website keyword may be misleading now a renaming has been performed to better understand them : * request.website_enabled -> request.is_frontend * request.website_multilang -> request.is_frontend_multilang * request.httprequest.cookies.get('website_lang') -> ('frontend_lang') * first_pass variable in _dispatch is replaced by a new attribute of request, routing_iteration, that is the number of routing iterations currently done
2017-02-24[FIX] website: allow to edit master if 'automatic footer' is disabledJeremy Kersten
Before this commit, impossible to edit the master if no language switcher was displayed on the web page.
2016-06-16[FIX] *: use new JS module to read from/write in localStorageAdrien Dieudonne
to prevent errors when the localStorage capacity is 0, which is the case e.g. on private browsing with Safari.
2016-02-24[REF] web_editor,website,mass_mailing: JS/XML updateqsm-odoo
* Adapt DOM selectors * Refactore dialog XMLs to have odoo styling * New editor options (background-position, ...) * Various improvements
2016-02-24[REF] website,web_editor: complete restylingstefanorigano
2015-12-08[FIX] website: fix edit master when using old templateJeremy Kersten
When no update has been done on website, we don't have this default-lang data/attribute. So we use an hack to find the default lang which one is the shortest because no lang is present in the url.
2015-07-10[IMP] web_editor: adapt css, js and xml to use web_editorChristophe Matthieu
2015-07-10[IMP] web_editor: split website into web_editor (to use editor in backend ↵Christophe Matthieu
for html field) and website
2015-05-28[MERGE] forward port of branch saas-6 up to bf1e999Christophe Simonis
2015-05-21[MERGE] forward port of branch 8.0 up to 327e471Christophe Simonis
2015-05-18[FIX] website, website_report: backwards compatibility with outdated templatesOlivier Dony
* Complements commits a696913364ffc4d5f1ce0675bc9be82f84f3ff93 and 21d4b3fda9dd1ba480ee407f62c83375cfe1d8ef by adding the missing `data-lang` attribute also in the report layout (in saas-6 a single QWeb template is used for language links in both reports and website layouts). * Fix the "Edit Master" link to work also for outdated templates where the data-lang attribute is dynamically set to 'default', and thus cannot be used as URL prefix -> use /website/lang controller to switch lang instead.
2015-05-18[MERGE] forward port of branch 8.0 up to f722254Christophe Simonis
2015-05-18[TYPO] website: add semicolonJeremy Kersten
Thanks @sle-odoo
2015-05-18[FIX] website: force default lang for edit master optionJeremy Kersten
Since user is redirected automatically in his preferred language, the button edit_master redirect always to the current lang and so not the master.
2015-05-04[FIX] website: force default lang for edit master optionJeremy Kersten
Since user is redirected automatically in his preferred language, the button edit_master redirect always to the current lang and so not the master.
2015-04-28[FIX] website: translation doen't work with t-field translatableChristophe Matthieu
2015-03-26[FIX] remove forgotten references to variable openerpGéry Debongnie
2015-03-21[MERGE] forward port of branch saas-6 up to 42db2dbChristophe Simonis
2015-03-18[IMP] To allow to translate pages in version.Goffin Simon
The translations of a page A in a version are applied to all the pages with the same key of page A.
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] website: update to the new module systemGéry Debongnie
2015-03-04[MERGE] forward port of branch 8.0 up to 017f346Christophe Simonis
2015-03-03[FIX] website: translations for qweb templates not applied.Goffin Simon
-Website.tours must be loaded after the translation data: "website.ready" before the tour ensure that the translations are loaded. -Translations for qweb templates not applied: Translate all text nodes in qweb templates when translation data are loaded. -Add some translations in website tours. opw:619786
2015-01-05[IMP] website: use the new summernote editorChristophe Matthieu
2014-09-03[FIX] Website translation pairing bugFabien Meghazi
I think we could get rid of the .trim() calls (for performance sake) but I don't want to break anything so I'll leave them.
2014-07-01[IMP] website translator: allow to translate a page even when you can't edit itSimon Lejeune
2014-06-27[MERGE] backend front end integrationSimon Lejeune
Render the top-menu (backend menu or frontend editbar) server-side. Use Fontawesome icons (mail, timezone, chat). Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-25[MERGE] forward port of branch saas-4 up to f68c835Christophe Simonis
2014-06-20[FIX] Gengo - Update modoel ir_translation for gengo and make it working. ↵Jeremy Kersten
Works with order and not job, because when you send a batch to translate, you don't know all the job but only the order.
2014-04-25[FIX] remove @translatable conditions and de-activate group_website_designer ↵Fabien Meghazi
specifics Bundlification (and later merge of editor and web client) can't work with conditional script inclusion bzr revid: fme@openerp.com-20140425124913-9jsfhbfhoq6j6xxl
2014-03-31[IMP] added new supportable languages, bog solved in config dialog, improved ↵Parth Gajjar (Open ERP)
count words dialog bzr revid: pga@tinyerp.com-20140331070625-qtr7l45lnca5rfze
2014-03-26[MERGE] merged with trunk addonsParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140326112709-m1iqkkmjt1xtmio1
2014-03-24[IMP] merged gengo translator with main translator, removed 'Restart Job' ↵Parth Gajjar (Open ERP)
from wizard,removed constraint from base_gengo bzr revid: pga@tinyerp.com-20140324103631-j4cswrlk5huuibt5
2014-03-20[IMP] minor changesParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140320120758-ojgqpqb8sakdhkbb
2014-03-20[IMP] removed unnecessary codeParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140320094434-4zp7x6dmd27wfza2
2014-03-20[IMP] minor changesParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140320092643-1pw62dmbj9h6sjh4
2014-03-20[IMP] improved statistics, added sendbox options for testing, improved UIParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140320071028-adyh8d89o7dij81o
2014-03-19[IMP] added gengo statistics, displayed inprogress elementsParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140319133121-31umju0ea84sm93y
2014-03-18[ADD] added website_gengo moduleParth Gajjar (Open ERP)
bzr revid: pga@tinyerp.com-20140318133036-j1hcrz7bybolw44u
2014-03-17[FIX] website translation won't properly find inherited view's idFabien Meghazi
bzr revid: fme@openerp.com-20140317132416-nu10ltrskc8d0orf
2014-01-21[FIX] website: display or not editor edit button; website_sale: test tour; ↵Christophe Matthieu
website: contact qweb widget bzr revid: chm@openerp.com-20140121123912-0ya4ziusj09efti3
2013-11-05[WIP] Trying to use t-fields for menusFabien Meghazi
Not working quite well Working it out bzr revid: fme@openerp.com-20131105151651-8jn1po2fhyojum2c
2013-11-05[FIX] Hide edit structure on other languages than masterFabien Meghazi
bzr revid: fme@openerp.com-20131105091547-b5k014x090m91qed
2013-10-29[FIX] Buggy qweb template loadingFabien Meghazi
bzr revid: fme@openerp.com-20131029161128-ko0ocpa0h6kziooh
2013-10-23[FIX] option typo: unable_editor -> enable_editorFabien Meghazi
bzr revid: fme@openerp.com-20131023091152-h0hxw47hzfor2al8
2013-10-23[ADD] UI improvement: Translate "or Edit Master"Fabien Meghazi
bzr revid: fme@openerp.com-20131023081501-f9owb501j16757bk
2013-10-22[IMP] warnings and shitXavier Morel
bzr revid: xmo@openerp.com-20131022151144-tblwba9rf77iuidl
2013-10-22[FIX] Attribute values in selectors must be attributes or stringsXavier Morel
http://www.w3.org/TR/css3-selectors/#attribute-selectors http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier > identifiers (including element names, classes, and IDs in selectors) > can contain only the characters [a-zA-Z0-9] and ISO 10646 characters > U+00A0 and higher, plus the hyphen (-) and the underscore (_); they > cannot start with a digit, two hyphens, or a hyphen followed by a > digit. so "0" or "1" is not a valid identifier, must be a string and must thus be quoted. bzr revid: xmo@openerp.com-20131022142049-6fq70sielv95kmu0
2013-09-27[FIX] Translation dialog box bugFabien Meghazi
bzr revid: fme@openerp.com-20130926233158-cj2ldz323emynivg