[FIX] website_sale: Some translation bugs

Issue: When using other languages, some expressions aren't translated.

Solution: Add the untranslated words in the .pot file of the module website_sale, which will
be translated later in transifex or directly in customer database.

opw-2938969

closes odoo/odoo#97454

X-original-commit: 56a3adf46b5b361c304075da7ceccb5d915befb0
Signed-off-by: Eteil Djoumatchoua (etdj) <etdj@odoo.com>
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
Eteil Djoumatchoua (etdj)
2022-08-05 03:38:11 +02:00
parent a819d6a597
commit 4dc5d76c8d
2 changed files with 35 additions and 5 deletions
+30
View File
@@ -1375,6 +1375,12 @@ msgstr ""
msgid "Extra Variant Media"
msgstr ""
#. module: website_sale
#: code:addons/website_sale/models/website.py:0
#, python-format
msgid "Featured"
msgstr ""
#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.res_config_settings_view_form
msgid "FedEx"
@@ -1727,6 +1733,12 @@ msgstr ""
msgid "Name"
msgstr ""
#. module: website_sale
#: code:addons/website_sale/models/website.py:0
#, python-format
msgid "Name (A-Z)"
msgstr ""
#. module: website_sale
#: model:ir.model.fields,field_description:website_sale.field_sale_order_line__name_short
msgid "Name Short"
@@ -1745,6 +1757,12 @@ msgstr ""
msgid "New!"
msgstr ""
#. module: website_sale
#: code:addons/website_sale/models/website.py:0
#, python-format
msgid "Newest Arrivals"
msgstr ""
#. module: website_sale
#: model:ir.filters,name:website_sale.dynamic_snippet_newest_products_filter
#: model:website.snippet.filter,name:website_sale.dynamic_filter_newest_products
@@ -2115,6 +2133,18 @@ msgstr ""
msgid "Price"
msgstr ""
#. module: website_sale
#: code:addons/website_sale/models/website.py:0
#, python-format
msgid "Price - High to Low"
msgstr ""
#. module: website_sale
#: code:addons/website_sale/models/website.py:0
#, python-format
msgid "Price - Low to High"
msgstr ""
#. module: website_sale
#: model:ir.model.fields,field_description:website_sale.field_product_product__base_unit_price
#: model:ir.model.fields,field_description:website_sale.field_product_template__base_unit_price
+5 -5
View File
@@ -54,11 +54,11 @@ class Website(models.Model):
@staticmethod
def _get_product_sort_mapping():
return [
('website_sequence asc', 'Featured'),
('create_date desc', 'Newest Arrivals'),
('name asc', 'Name (A-Z)'),
('list_price asc', 'Price - Low to High'),
('list_price desc', 'Price - High to Low'),
('website_sequence asc', _('Featured')),
('create_date desc', _('Newest Arrivals')),
('name asc', _('Name (A-Z)')),
('list_price asc', _('Price - Low to High')),
('list_price desc', _('Price - High to Low')),
]
shop_default_sort = fields.Selection(selection='_get_product_sort_mapping', default='website_sequence asc', required=True)