From 60def666444833fe5f59eae350bd8d4f0c4331b6 Mon Sep 17 00:00:00 2001 From: saurabh Date: Wed, 17 Feb 2016 19:15:45 +0530 Subject: [PATCH] added translator into print format --- .../print_formats/includes/item_table_description.html | 10 +++++----- .../print_formats/includes/item_table_qty.html | 2 +- erpnext/templates/print_formats/includes/taxes.html | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html index a9f7bcce4a..eaef4bcc19 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -11,7 +11,7 @@ {% if doc.in_format_data("item_code") and not doc.is_print_hide("item_code") -%}
{% if compact %}{% endif %} - {{ doc.item_code }} + {{ _(doc.item_code) }} {% if compact %}{% endif %}
{%- endif %} @@ -19,7 +19,7 @@ {% if (doc.in_format_data("item_name") and not doc.is_print_hide("item_name") and (not doc.in_format_data("item_code") or doc.is_print_hide("item_code") or doc.item_code != doc.item_name)) -%} -
{{ doc.get_formatted("item_name") }}
+
{{ _(doc.get_formatted("item_name")) }}
{%- endif %} {% if (doc.in_format_data("description") and doc.description and @@ -30,15 +30,15 @@ ) or not (doc.item_code == doc.item_name == doc.description) )) -%} -

{{ doc.get_formatted("description") }}

+

{{ _(doc.get_formatted("description")) }}

{%- endif %} {% if compact -%} {%- for fieldname in doc.flags.show_in_description -%} {% if doc.get(fieldname) -%}

- {{ doc.meta.get_label(fieldname) }}: - {{ doc.get_formatted(fieldname) }} + {{ _(doc.meta.get_label(fieldname)) }}: + {{ _(doc.get_formatted(fieldname)) }}

{% endif %} {%- endfor -%} diff --git a/erpnext/templates/print_formats/includes/item_table_qty.html b/erpnext/templates/print_formats/includes/item_table_qty.html index 24fdb7b344..812da43bac 100644 --- a/erpnext/templates/print_formats/includes/item_table_qty.html +++ b/erpnext/templates/print_formats/includes/item_table_qty.html @@ -1,4 +1,4 @@ {% if (doc.stock_uom and not doc.is_print_hide("stock_uom")) or (doc.uom and not doc.is_print_hide("uom")) -%} -{{ doc.uom or doc.stock_uom }} +{{ _(doc.uom) or _(doc.stock_uom) }} {%- endif %} {{ doc.get_formatted("qty", doc) }} diff --git a/erpnext/templates/print_formats/includes/taxes.html b/erpnext/templates/print_formats/includes/taxes.html index 4f0ba1af4a..4aefe162d4 100644 --- a/erpnext/templates/print_formats/includes/taxes.html +++ b/erpnext/templates/print_formats/includes/taxes.html @@ -2,9 +2,9 @@ {%- if doc.discount_amount -%}
-
+
- - {{ doc.get_formatted("discount_amount", doc) }} + - {{ _(doc.get_formatted("discount_amount", doc)) }}
{%- endif -%}