diff options
| -rw-r--r-- | addons/website_form/i18n/website_form.pot | 45 | ||||
| -rw-r--r-- | addons/website_form/static/src/js/website_form_editor.js | 18 |
2 files changed, 54 insertions, 9 deletions
diff --git a/addons/website_form/i18n/website_form.pot b/addons/website_form/i18n/website_form.pot index 95673ddb007..88c5de2333f 100644 --- a/addons/website_form/i18n/website_form.pot +++ b/addons/website_form/i18n/website_form.pot @@ -243,6 +243,30 @@ msgid "Ok" msgstr "" #. module: website_form +#. openerp-web +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#, python-format +msgid "Option 1" +msgstr "" + +#. module: website_form +#. openerp-web +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#, python-format +msgid "Option 2" +msgstr "" + +#. module: website_form +#. openerp-web +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#, python-format +msgid "Option 3" +msgstr "" + +#. module: website_form #: code:addons/website_form/controllers/main.py:0 #, python-format msgid "Other Information:" @@ -400,6 +424,27 @@ msgstr "" #. module: website_form #. openerp-web +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#, python-format +msgid "You can't duplicate a model field." +msgstr "" + +#. module: website_form +#. openerp-web +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#, python-format +msgid "You can't duplicate an item which refers to an actual record." +msgstr "" + +#. module: website_form +#. openerp-web +#: code:addons/website_form/static/src/js/website_form_editor.js:0 +#, python-format +msgid "You can't remove a field that is required by the model itself." +msgstr "" + +#. module: website_form +#. openerp-web #: code:addons/website_form/static/src/xml/website_form.xml:0 #: model_terms:ir.ui.view,arch_db:website_form.contactus_form #, python-format diff --git a/addons/website_form/static/src/js/website_form_editor.js b/addons/website_form/static/src/js/website_form_editor.js index 3382b723e17..d659f51dd06 100644 --- a/addons/website_form/static/src/js/website_form_editor.js +++ b/addons/website_form/static/src/js/website_form_editor.js @@ -273,30 +273,30 @@ odoo.define('website_form_editor', function (require) { records: [ { id: 'Option 1', - display_name: 'Option 1' + display_name: _t('Option 1') }, { id: 'Option 2', - display_name: 'Option 2' + display_name: _t('Option 2') }, { id: 'Option 3', - display_name: 'Option 3' + display_name: _t('Option 3') } ], // Default values for selection fields selection: [ [ 'Option 1', - 'Option 1' + _t('Option 1') ], [ 'Option 2', - 'Option 2' + _t('Option 2') ], [ 'Option 3', - 'Option 3' + _t('Option 3') ], ] }); @@ -612,7 +612,7 @@ odoo.define('website_form_editor', function (require) { // Disable duplicate button for model fields options.registry['website_form_editor_field_model'] = disable_overlay_button_option.extend({ start: function () { - this.disable_button('clone', 'You can\'t duplicate a model field.'); + this.disable_button('clone', _t('You can\'t duplicate a model field.')); return this._super.apply(this, arguments); } }); @@ -620,7 +620,7 @@ odoo.define('website_form_editor', function (require) { // Disable delete button for model required fields options.registry['website_form_editor_field_required'] = disable_overlay_button_option.extend({ start: function () { - this.disable_button('remove', 'You can\'t remove a field that is required by the model itself.'); + this.disable_button('remove', _t('You can\'t remove a field that is required by the model itself.')); return this._super.apply(this, arguments); } }); @@ -628,7 +628,7 @@ odoo.define('website_form_editor', function (require) { // Disable duplicate button for non-custom checkboxes and radio buttons options.registry['website_form_editor_field_x2many'] =disable_overlay_button_option.extend({ start: function () { - this.disable_button('clone', 'You can\'t duplicate an item which refers to an actual record.'); + this.disable_button('clone', _t('You can\'t duplicate an item which refers to an actual record.')); return this._super.apply(this, arguments); } }); |
