[FIX] mail: make rtc dialogs title translatable
Before this commit, the title of RTC dialogs -- like "Change Layout" menu during a video-conference -- was not properly translated. The titles were always shown in English as a result. This commit now properly mark them as translatable string, so they should now be properly translated in other languages than English. Task-2703292 closes odoo/odoo#80689 X-original-commit: fbcdb644f24ecd10049a3730099c4a426a1f607f Signed-off-by: Sébastien Theys (seb) <seb@odoo.com> Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -6029,6 +6029,7 @@ msgstr ""
|
||||
#. module: mail
|
||||
#. openerp-web
|
||||
#: code:addons/mail/static/src/components/rtc_option_list/rtc_option_list.xml:0
|
||||
#: code:addons/mail/static/src/models/rtc_call_viewer/rtc_call_viewer.js:0
|
||||
#, python-format
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
@@ -6480,6 +6481,13 @@ msgstr ""
|
||||
msgid "The FullScreen mode was denied by the browser"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail
|
||||
#. openerp-web
|
||||
#: code:addons/mail/static/src/models/rtc_call_viewer/rtc_call_viewer.js:0
|
||||
#, python-format
|
||||
msgid "Change Layout"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail
|
||||
#: model:ir.model.fields,help:mail.field_res_partner__vat
|
||||
#: model:ir.model.fields,help:mail.field_res_users__vat
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
<!-- Dialogs -->
|
||||
<t t-if="messaging.userSetting.rtcConfigurationMenu.isOpen">
|
||||
<Dialog size="'small'" title="'Settings'" onClosed="rtcCallViewer.onRtcSettingsDialogClosed">
|
||||
<Dialog size="'small'" title="rtcCallViewer.settingsTitle" onClosed="rtcCallViewer.onRtcSettingsDialogClosed">
|
||||
<RtcConfigurationMenu/>
|
||||
<t t-set-slot="buttons">
|
||||
<!-- Explicit No buttons -->
|
||||
@@ -59,7 +59,7 @@
|
||||
</Dialog>
|
||||
</t>
|
||||
<t t-if="rtcCallViewer and rtcCallViewer.rtcLayoutMenu">
|
||||
<Dialog size="'small'" title="'Change Layout'" onClosed="rtcCallViewer.onLayoutSettingsDialogClosed">
|
||||
<Dialog size="'small'" title="rtcCallViewer.layoutSettingsTitle" onClosed="rtcCallViewer.onLayoutSettingsDialogClosed">
|
||||
<RtcLayoutMenu localId="rtcCallViewer.rtcLayoutMenu.localId"/>
|
||||
<t t-set-slot="buttons">
|
||||
<!-- Explicit No buttons -->
|
||||
|
||||
@@ -179,6 +179,13 @@ registerModel({
|
||||
}
|
||||
return this.messaging.userSetting.rtcLayout;
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
* @returns {string}
|
||||
*/
|
||||
_computeLayoutSettingsTitle() {
|
||||
return this.env._t("Change Layout");
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
@@ -195,6 +202,13 @@ registerModel({
|
||||
}
|
||||
return unlink();
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
* @returns {string}
|
||||
*/
|
||||
_computeSettingsTitle() {
|
||||
return this.env._t("Settings");
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
@@ -333,6 +347,12 @@ registerModel({
|
||||
default: 'tiled',
|
||||
compute: '_computeLayout',
|
||||
}),
|
||||
/**
|
||||
* Text content that is displayed on title of the layout settings dialog.
|
||||
*/
|
||||
layoutSettingsTitle: attr({
|
||||
compute: '_computeLayoutSettingsTitle',
|
||||
}),
|
||||
/**
|
||||
* If set, the card to be displayed as the "main/spotlight" card.
|
||||
*/
|
||||
@@ -357,6 +377,12 @@ registerModel({
|
||||
inverse: 'callViewer',
|
||||
isCausal: true,
|
||||
}),
|
||||
/**
|
||||
* Text content that is displayed on title of the settings dialog.
|
||||
*/
|
||||
settingsTitle: attr({
|
||||
compute: '_computeSettingsTitle',
|
||||
}),
|
||||
/**
|
||||
* Determines if we show the overlay with the control buttons.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user