From d162eb367c37b84424953c4d9a691140235374fb Mon Sep 17 00:00:00 2001 From: Robert Kirschner Date: Thu, 23 Mar 2017 12:18:24 +0100 Subject: [PATCH 1/2] [minor] fix translation strings in cart web view --- erpnext/templates/includes/cart/cart_address.html | 2 +- erpnext/templates/pages/cart.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/includes/cart/cart_address.html b/erpnext/templates/includes/cart/cart_address.html index d83f6092a11..7bd92562e22 100644 --- a/erpnext/templates/includes/cart/cart_address.html +++ b/erpnext/templates/includes/cart/cart_address.html @@ -15,7 +15,7 @@ {{ _("Manage Addresses") }}
-
Billing Address
+
{{ _("Billing Address") }}
{% for address in billing_addresses %} diff --git a/erpnext/templates/pages/cart.html b/erpnext/templates/pages/cart.html index 7f6bf01d2bc..6cff5b13e23 100644 --- a/erpnext/templates/pages/cart.html +++ b/erpnext/templates/pages/cart.html @@ -1,6 +1,6 @@ {% extends "templates/web.html" %} -{% block title %} {{ "Shopping Cart" }} {% endblock %} +{% block title %} {{ _("Shopping Cart") }} {% endblock %} {% block header %}

{{ _("My Cart") }}

{% endblock %} From b8f5148a44da50c20a4c80e21cdfc4b8e68e6303 Mon Sep 17 00:00:00 2001 From: Robert Kirschner Date: Thu, 23 Mar 2017 13:43:26 +0100 Subject: [PATCH 2/2] [minor] fix: translatable title, h1, button on product_search page. Address row in web view has translatable address type --- erpnext/templates/includes/address_row.html | 2 +- erpnext/templates/pages/product_search.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/erpnext/templates/includes/address_row.html b/erpnext/templates/includes/address_row.html index 2c5056a2ba1..bfc035a7e7f 100644 --- a/erpnext/templates/includes/address_row.html +++ b/erpnext/templates/includes/address_row.html @@ -4,7 +4,7 @@
{{ doc.address_title }}
-
{{ doc.address_type }}
+
{{ _(doc.address_type) }}
{{ doc.city }}
{{ frappe.get_doc(doc).get_display() }} diff --git a/erpnext/templates/pages/product_search.html b/erpnext/templates/pages/product_search.html index 6875ba529c4..c7134b0030d 100644 --- a/erpnext/templates/pages/product_search.html +++ b/erpnext/templates/pages/product_search.html @@ -1,8 +1,8 @@ {% extends "templates/web.html" %} -{% block title %} {{ "Product Search" }} {% endblock %} +{% block title %} {{ _("Product Search") }} {% endblock %} -{% block header %}

Product Search

{% endblock %} +{% block header %}

{{ _("Product Search") }}

{% endblock %} {% block page_content %} @@ -10,7 +10,7 @@
-

Search Results

+

{{ _("Search Results") }}