[FIX] web: translate "View ..." title

And remove code content

X-original-commit: 65cc90107d176e349bdedfebeb6f92d7312ef202
This commit is contained in:
Martin Trigaux
2021-03-01 10:31:32 +01:00
parent 9bed319507
commit 4a1c2e3607
4 changed files with 15 additions and 12 deletions
+9 -9
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server saas~14.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-18 14:29+0000\n"
"PO-Revision-Date: 2021-02-18 14:29+0000\n"
"POT-Creation-Date: 2021-02-25 10:30+0000\n"
"PO-Revision-Date: 2021-02-25 10:30+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -4369,6 +4369,13 @@ msgstr ""
msgid "Variation"
msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/xml/base.xml:0
#, python-format
msgid "View %s"
msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/xml/debug.xml:0
@@ -4952,13 +4959,6 @@ msgstr ""
msgid "or"
msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/xml/colorpicker.xml:0
#, python-format
msgid "p-0 text-center text-monospace bg-transparent text-white"
msgstr ""
#. module: web
#. openerp-web
#: code:addons/web/static/src/js/widgets/domain_selector.js:0
@@ -123,6 +123,8 @@ odoo.define('web.ControlPanel', function (require) {
};
this.fields = this._formatFields(this.props.fields);
this.sprintf = _.str.sprintf;
}
mounted() {
+3 -2
View File
@@ -631,12 +631,13 @@
</t>
<t t-name="web.ViewSwitcherButton" owl="1">
<t t-set="buttonLabel">View %s</t>
<button type="button"
t-att-accesskey="view.accessKey"
t-attf-class="btn btn-secondary fa fa-lg o_switch_view o_{{ view.type }} {{ view.icon }}"
t-att-class="{ active: env.view.type === view.type }"
t-attf-aria-label="View {{ view.type }}"
t-attf-title="View {{ view.type }}"
t-att-aria-label="sprintf(buttonLabel.toString(), view.type)"
t-att-title="sprintf(buttonLabel.toString(), view.type)"
data-toggle="tooltip"
tabindex="-1"
t-on-click="trigger('switch-view', { view_type: view.type })"
+1 -1
View File
@@ -16,7 +16,7 @@
</div>
<div t-if="widget.options.colorPreview" class="o_color_preview mb-1 w-100 p-2"/>
<div class="o_color_picker_inputs d-flex justify-content-between mb-2">
<t t-set="input_classes">p-0 text-center text-monospace bg-transparent text-white</t>
<t t-set="input_classes" t-value="'p-0 text-center text-monospace bg-transparent text-white'" />
<div class="o_hex_div bg-black-50 px-1 d-flex align-items-baseline">
<input type="text" t-attf-class="o_hex_input {{input_classes}}" data-color-method="hex" size="1"/>