From a008049be9ce50481fc267ac61bde385819f5b65 Mon Sep 17 00:00:00 2001 From: mehjabinfarsana <mehjabinfarsanapc@gmail.com> Date: Mon, 10 Jul 2023 12:49:27 +0000 Subject: [PATCH] [FIX] point_of_sale: make confirmation message translatable before this commit, the confirmation message to use web printer was not translatable to user language after this commit, confirmation message will be shown in user's language closes odoo/odoo#127930 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> --- addons/point_of_sale/i18n/point_of_sale.pot | 64 +++++++++++++------ .../src/js/Misc/AbstractReceiptScreen.js | 2 +- 2 files changed, 47 insertions(+), 19 deletions(-) diff --git a/addons/point_of_sale/i18n/point_of_sale.pot b/addons/point_of_sale/i18n/point_of_sale.pot index 375a5c551635..4619cdd61f7f 100644 --- a/addons/point_of_sale/i18n/point_of_sale.pot +++ b/addons/point_of_sale/i18n/point_of_sale.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-12-09 16:49+0000\n" -"PO-Revision-Date: 2021-12-09 16:49+0000\n" +"POT-Creation-Date: 2023-08-06 08:36+0000\n" +"PO-Revision-Date: 2023-08-06 08:36+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -1677,6 +1677,13 @@ msgstr "" msgid "Do not have access, skip this data for user's digest email" msgstr "" +#. module: point_of_sale +#. openerp-web +#: code:addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js:0 +#, python-format +msgid "Do you want to print using the web printer?" +msgstr "" + #. module: point_of_sale #: model_terms:ir.ui.view,arch_db:point_of_sale.res_config_settings_view_form msgid "Documentation" @@ -1907,6 +1914,7 @@ msgstr "" #. module: point_of_sale #. openerp-web #: code:addons/point_of_sale/static/src/js/custom_hooks.js:0 +#: code:addons/point_of_sale/static/src/js/custom_hooks.js:0 #, python-format msgid "Fiscal data module error" msgstr "" @@ -3335,6 +3343,7 @@ msgstr "" #: code:addons/point_of_sale/models/pos_session.py:0 #: model_terms:ir.ui.view,arch_db:point_of_sale.view_pos_pos_form #: model_terms:ir.ui.view,arch_db:point_of_sale.view_pos_session_form +#, python-format msgid "Pickings" msgstr "" @@ -4822,6 +4831,14 @@ msgstr "" msgid "The default pricelist must be included in the available pricelists." msgstr "" +#. module: point_of_sale +#: code:addons/point_of_sale/models/pos_config.py:0 +#, python-format +msgid "" +"The default pricelist must belong to no company or the company of the point " +"of sale." +msgstr "" + #. module: point_of_sale #. openerp-web #: code:addons/point_of_sale/static/src/js/custom_hooks.js:0 @@ -5145,6 +5162,15 @@ msgstr "" msgid "This order is empty" msgstr "" +#. module: point_of_sale +#. openerp-web +#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0 +#, python-format +msgid "" +"This order is not yet synced to server. Make sure it is synced then try " +"again." +msgstr "" + #. module: point_of_sale #: model:ir.model.fields,help:point_of_sale.field_pos_config__tip_product_id #: model_terms:ir.ui.view,arch_db:point_of_sale.pos_config_view_form @@ -5360,13 +5386,6 @@ msgstr "" msgid "Type of the exception activity on record." msgstr "" -#. module: point_of_sale -#. openerp-web -#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0 -#, python-format -msgid "This order is not yet synced to server. Make sure it is synced then try again." -msgstr "" - #. module: point_of_sale #: code:addons/point_of_sale/models/pos_session.py:0 #, python-format @@ -5485,6 +5504,13 @@ msgstr "" msgid "Unsupported File Format" msgstr "" +#. module: point_of_sale +#. openerp-web +#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0 +#, python-format +msgid "Unsynced order" +msgstr "" + #. module: point_of_sale #: model_terms:ir.ui.view,arch_db:point_of_sale.view_pos_pos_form msgid "UoM" @@ -5542,13 +5568,6 @@ msgstr "" msgid "Uuid" msgstr "" -#. module: point_of_sale -#. openerp-web -#: code:addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js:0 -#, python-format -msgid "Unsynced order" -msgstr "" - #. module: point_of_sale #. openerp-web #: code:addons/point_of_sale/static/src/xml/Screens/ProductScreen/Orderline.xml:0 @@ -5658,7 +5677,7 @@ msgstr "" #. module: point_of_sale #. openerp-web -#: code:addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductScreen.js:0 +#: code:addons/point_of_sale/static/src/js/Screens/ProductScreen/ProductScreen.js:0 #, python-format msgid "Yes" msgstr "" @@ -5703,6 +5722,15 @@ msgid "" "Point of Sale." msgstr "" +#. module: point_of_sale +#: code:addons/point_of_sale/models/pos_order.py:0 +#, python-format +msgid "" +"You can't: create a pos order from the backend interface, or unset the " +"pricelist, or create a pos.order in a python test with Form tool, or edit " +"the form view in studio if no PoS order exist" +msgstr "" + #. module: point_of_sale #: code:addons/point_of_sale/models/pos_session.py:0 #, python-format @@ -5945,4 +5973,4 @@ msgstr "" #: code:addons/point_of_sale/static/src/xml/Popups/OrderImportPopup.xml:0 #, python-format msgid "were duplicates of existing orders" -msgstr "" +msgstr "" \ No newline at end of file diff --git a/addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js b/addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js index 2ebdce20e3ff..9e3c316268ba 100644 --- a/addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js +++ b/addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js @@ -25,7 +25,7 @@ odoo.define('point_of_sale.AbstractReceiptScreen', function (require) { } else { const { confirmed } = await this.showPopup('ConfirmPopup', { title: printResult.message.title, - body: 'Do you want to print using the web printer?', + body: this.env._t('Do you want to print using the web printer?'), }); if (confirmed) { // We want to call the _printWeb when the popup is fully gone -- GitLab