diff options
| author | Vidhin Mehta (OpenERP) <vme@tinyerp.com> | 2012-06-15 12:41:06 +0530 |
|---|---|---|
| committer | Vidhin Mehta (OpenERP) <vme@tinyerp.com> | 2012-06-15 12:41:06 +0530 |
| commit | 7fc06fc81f7ab9efa6084e8ed708cc7a694527ec (patch) | |
| tree | b28418185d9e78356c323e8475a6269f1dabc452 /addons/web/static/src | |
| parent | 2472f1919eaaabe7f99782e0af0b924c0e4682c4 (diff) | |
[IMP]add placeholder attribute for translation in qweb.
bzr revid: vme@tinyerp.com-20120615071106-hagp49jwh9ntz5z4
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/coresetup.js | 2 | ||||
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index 4defde54a3c..77355dd163a 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -497,7 +497,7 @@ instance.web.qweb.preprocess_node = function() { break; case 1: // Element - var attr, attrs = ['label', 'title', 'alt']; + var attr, attrs = ['label', 'title', 'alt', 'placeholder']; while (attr = attrs.pop()) { if (this.attributes[attr]) { this.attributes[attr] = instance.web._t(this.attributes[attr]); diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 2a55ca0cd4f..6f2a297b3d7 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1391,7 +1391,7 @@ <div class="oe_searchview_custom"> <h4>Save current filter</h4> <form> - <p><input id="oe_searchview_custom_input" t-att-placeholder="_t('Filter name')"/></p> + <p><input id="oe_searchview_custom_input" t-att-placeholder="Filter name"/></p> <p><input id="oe_searchview_custom_public" type="checkbox"/> <label for="oe_searchview_custom_public">Share with all users</label></p> <button>Save</button> @@ -1711,7 +1711,7 @@ </tr> <tr> <td t-foreach="records[0]" t-as="column"> - <input class="sel_fields" t-att-placeholder="_t('--- Don't Import ---')"/><span class="oe-m2o-drop-down-button"> + <input class="sel_fields" t-att-placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button"> <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span> </td> </tr> |
