From e93ed5dfae1b6416bc1a46207f23f143237f9ebc Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 25 Jan 2016 11:25:30 +0100 Subject: [PATCH] [FIX] many: missing translations for types of barcode rule --- addons/barcodes/barcodes.py | 2 +- addons/barcodes/i18n/barcodes.pot | 8 +++++++ addons/point_of_sale/i18n/point_of_sale.pot | 24 +++++++++++++++++++++ addons/point_of_sale/point_of_sale.py | 10 ++++----- addons/pos_mercury/i18n/pos_mercury.pot | 6 ++++++ addons/pos_mercury/models/pos_mercury.py | 4 ++-- addons/stock/i18n/stock.pot | 12 +++++++++++ addons/stock/stock.py | 8 +++---- 8 files changed, 62 insertions(+), 12 deletions(-) diff --git a/addons/barcodes/barcodes.py b/addons/barcodes/barcodes.py index 8f9c6769bcc..91fd2a31385 100644 --- a/addons/barcodes/barcodes.py +++ b/addons/barcodes/barcodes.py @@ -188,7 +188,7 @@ class barcode_rule(models.Model): @api.model def _get_type_selection(self): - return [('alias','Alias'),('product','Unit Product')] + return [('alias', _('Alias')), ('product', _('Unit Product'))] _columns = { 'name': fields.char('Rule Name', size=32, required=True, help='An internal identification for this barcode nomenclature rule'), diff --git a/addons/barcodes/i18n/barcodes.pot b/addons/barcodes/i18n/barcodes.pot index 5018c7b5270..248fdaac767 100644 --- a/addons/barcodes/i18n/barcodes.pot +++ b/addons/barcodes/i18n/barcodes.pot @@ -53,7 +53,9 @@ msgid "A barcode nomenclature defines how the point of sale identify and interpr msgstr "" #. module: barcodes +#: code:addons/barcodes/barcodes.py:191 #: model:ir.model.fields,field_description:barcodes.field_barcode_rule_alias +#, python-format msgid "Alias" msgstr "" @@ -267,6 +269,12 @@ msgstr "" msgid "UPC/EAN Conversion" msgstr "" +#. module: barcodes +#: code:addons/barcodes/barcodes.py:191 +#, python-format +msgid "Unit Product" +msgstr "" + #. module: barcodes #: model:ir.model.fields,help:barcodes.field_barcode_rule_sequence msgid "Used to order rules such that rules with a smaller sequence match first" diff --git a/addons/point_of_sale/i18n/point_of_sale.pot b/addons/point_of_sale/i18n/point_of_sale.pot index 0d58856e2d5..10804208f64 100644 --- a/addons/point_of_sale/i18n/point_of_sale.pot +++ b/addons/point_of_sale/i18n/point_of_sale.pot @@ -856,6 +856,12 @@ msgstr "" msgid "Cashdrawer" msgstr "" +#. module: point_of_sale +#: code:addons/point_of_sale/point_of_sale.py:1604 +#, python-format +msgid "Cashier" +msgstr "" + #. module: point_of_sale #: model:ir.actions.act_window,help:point_of_sale.product_pos_category_action msgid "Categories are used to browse your products through the\n" @@ -1371,6 +1377,12 @@ msgstr "" msgid "Discount:" msgstr "" +#. module: point_of_sale +#: code:addons/point_of_sale/point_of_sale.py:1602 +#, python-format +msgid "Discounted Product" +msgstr "" + #. module: point_of_sale #. openerp-web #: code:addons/point_of_sale/static/src/xml/pos.xml:791 @@ -2830,6 +2842,12 @@ msgstr "" msgid "Price" msgstr "" +#. module: point_of_sale +#: code:addons/point_of_sale/point_of_sale.py:1601 +#, python-format +msgid "Priced Product" +msgstr "" + #. module: point_of_sale #: model:ir.model.fields,field_description:point_of_sale.field_pos_config_pricelist_id #: model:ir.model.fields,field_description:point_of_sale.field_pos_order_pricelist_id @@ -4129,6 +4147,12 @@ msgstr "" msgid "Warehouse" msgstr "" +#. module: point_of_sale +#: code:addons/point_of_sale/point_of_sale.py:1600 +#, python-format +msgid "Weighted Product" +msgstr "" + #. module: point_of_sale #. openerp-web #: code:addons/point_of_sale/static/src/xml/pos.xml:1180 diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index d85036b34b2..241fe5f6fee 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1597,10 +1597,10 @@ class barcode_rule(models.Model): def _get_type_selection(self): types = sets.Set(super(barcode_rule,self)._get_type_selection()) types.update([ - ('weight','Weighted Product'), - ('price','Priced Product'), - ('discount','Discounted Product'), - ('client','Client'), - ('cashier','Cashier') + ('weight', _('Weighted Product')), + ('price', _('Priced Product')), + ('discount', _('Discounted Product')), + ('client', _('Client')), + ('cashier', _('Cashier')) ]) return list(types) diff --git a/addons/pos_mercury/i18n/pos_mercury.pot b/addons/pos_mercury/i18n/pos_mercury.pot index d5abf2200f6..cd84e327443 100644 --- a/addons/pos_mercury/i18n/pos_mercury.pot +++ b/addons/pos_mercury/i18n/pos_mercury.pot @@ -151,6 +151,12 @@ msgstr "" msgid "Created on" msgstr "" +#. module: pos_mercury +#: code:addons/pos_mercury/models/pos_mercury.py:17 +#, python-format +msgid "Credit Card" +msgstr "" + #. module: pos_mercury #. openerp-web #: code:addons/pos_mercury/static/src/js/pos_mercury.js:177 diff --git a/addons/pos_mercury/models/pos_mercury.py b/addons/pos_mercury/models/pos_mercury.py index 63f531ea230..0abf956d726 100644 --- a/addons/pos_mercury/models/pos_mercury.py +++ b/addons/pos_mercury/models/pos_mercury.py @@ -4,7 +4,7 @@ import logging import sets -from openerp import models, fields, api +from openerp import models, fields, api, _ _logger = logging.getLogger(__name__) @@ -14,7 +14,7 @@ class barcode_rule(models.Model): def _get_type_selection(self): types = sets.Set(super(barcode_rule, self)._get_type_selection()) types.update([ - ('credit', 'Credit Card') + ('credit', _('Credit Card')) ]) return list(types) diff --git a/addons/stock/i18n/stock.pot b/addons/stock/i18n/stock.pot index 4cfb78af2f2..5fe7bccf6d6 100644 --- a/addons/stock/i18n/stock.pot +++ b/addons/stock/i18n/stock.pot @@ -2926,6 +2926,7 @@ msgid "Localization" msgstr "" #. module: stock +#: code:addons/stock/stock.py:4912 #: model:ir.model.fields,field_description:stock.field_product_product_location_id #: model:ir.model.fields,field_description:stock.field_product_template_location_id #: model:ir.model.fields,field_description:stock.field_stock_change_product_qty_location_id @@ -2939,6 +2940,7 @@ msgstr "" #: model:ir.ui.view,arch_db:stock.quant_search_view #: model:ir.ui.view,arch_db:stock.view_move_search #: model:ir.ui.view,arch_db:stock.warehouse_orderpoint_search +#, python-format msgid "Location" msgstr "" @@ -2997,6 +2999,7 @@ msgid "Logistics" msgstr "" #. module: stock +#: code:addons/stock/stock.py:4913 #: model:ir.model.fields,field_description:stock.field_stock_move_restrict_lot_id #: model:ir.model.fields,field_description:stock.field_stock_move_scrap_restrict_lot_id #: model:ir.model.fields,field_description:stock.field_stock_quant_lot_id @@ -3005,6 +3008,7 @@ msgstr "" #: model:ir.ui.view,arch_db:stock.report_lot_barcode #: model:ir.ui.view,arch_db:stock.report_package_barcode #: model:ir.ui.view,arch_db:stock.report_picking +#, python-format msgid "Lot" msgstr "" @@ -3748,11 +3752,13 @@ msgid "Pack Type" msgstr "" #. module: stock +#: code:addons/stock/stock.py:4914 #: model:ir.model.fields,field_description:stock.field_stock_quant_package_id #: model:ir.ui.view,arch_db:stock.quant_package_search_view #: model:ir.ui.view,arch_db:stock.quant_search_view #: model:ir.ui.view,arch_db:stock.view_quant_package_form #: model:ir.ui.view,arch_db:stock.view_quant_package_tree +#, python-format msgid "Package" msgstr "" @@ -5800,6 +5806,12 @@ msgstr "" msgid "USPS integration" msgstr "" +#. module: stock +#: code:addons/stock/stock.py:730 +#, python-format +msgid "Under no circumstances should you delete or change quants yourselves!" +msgstr "" + #. module: stock #: model:ir.model.fields,help:stock.field_stock_production_lot_name msgid "Unique Serial Number" diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 8b6c5da3783..e36b0a1cf08 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -4908,10 +4908,10 @@ class barcode_rule(models.Model): def _get_type_selection(self): types = sets.Set(super(barcode_rule,self)._get_type_selection()) types.update([ - ('weight','Weighted Product'), - ('location','Location'), - ('lot','Lot'), - ('package','Package') + ('weight', _('Weighted Product')), + ('location', _('Location')), + ('lot', _('Lot')), + ('package', _('Package')) ]) return list(types)