added translator into print format
diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html
index a9f7bcc..eaef4bc 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") -%}
<div class="primary">
{% if compact %}<strong>{% endif %}
- {{ doc.item_code }}
+ {{ _(doc.item_code) }}
{% if compact %}</strong>{% endif %}
</div>
{%- 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)) -%}
- <div class="primary">{{ doc.get_formatted("item_name") }}</div>
+ <div class="primary">{{ _(doc.get_formatted("item_name")) }}</div>
{%- 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)
))
-%}
- <p>{{ doc.get_formatted("description") }}</p>
+ <p>{{ _(doc.get_formatted("description")) }}</p>
{%- endif %}
{% if compact -%}
{%- for fieldname in doc.flags.show_in_description -%}
{% if doc.get(fieldname) -%}
<p>
- <strong>{{ doc.meta.get_label(fieldname) }}:</strong>
- {{ doc.get_formatted(fieldname) }}
+ <strong>{{ _(doc.meta.get_label(fieldname)) }}:</strong>
+ {{ _(doc.get_formatted(fieldname)) }}
</p>
{% 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 24fdb7b..812da43 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")) -%}
-<small class="pull-left">{{ doc.uom or doc.stock_uom }}</small>
+<small class="pull-left">{{ _(doc.uom) or _(doc.stock_uom) }}</small>
{%- 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 4f0ba1a..4aefe16 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 -%}
<div class="row">
<div class="col-xs-5 text-right">
- <label>{{ "Discount Amount" }}</label></div>
+ <label>{{ _("Discount Amount") }}</label></div>
<div class="col-xs-7 text-right">
- - {{ doc.get_formatted("discount_amount", doc) }}
+ - {{ _(doc.get_formatted("discount_amount", doc)) }}
</div>
</div>
{%- endif -%}