[minor] fix: translatable title, h1, button on product_search page. Address row in web view has translatable address type
diff --git a/erpnext/templates/includes/address_row.html b/erpnext/templates/includes/address_row.html
index 2c5056a..bfc035a 100644
--- a/erpnext/templates/includes/address_row.html
+++ b/erpnext/templates/includes/address_row.html
@@ -4,7 +4,7 @@
<div class="col-xs-3">
<span class="indicator {{ "red" if doc.address_type=="Office" else "green" if doc.address_type=="Billing" else "blue" if doc.address_type=="Shipping" else "darkgrey" }}">{{ doc.address_title }}</span>
</div>
- <div class="col-xs-2"> {{ doc.address_type }} </div>
+ <div class="col-xs-2"> {{ _(doc.address_type) }} </div>
<div class="col-xs-2"> {{ doc.city }} </div>
<div class="col-xs-5 text-right small text-muted">
{{ frappe.get_doc(doc).get_display() }}
diff --git a/erpnext/templates/pages/product_search.html b/erpnext/templates/pages/product_search.html
index 6875ba5..c7134b0 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 %}<h2>Product Search</h2>{% endblock %}
+{% block header %}<h2>{{ _("Product Search") }}</h2>{% endblock %}
{% block page_content %}
<script>{% include "templates/includes/product_list.js" %}</script>
@@ -10,7 +10,7 @@
<script>
frappe.ready(function() {
var txt = get_url_arg("search");
- $(".search-results").html("Search results for: " + txt);
+ $(".search-results").html("{{ _('Search results for') }}: " + txt);
window.search = txt;
window.start = 0;
window.get_product_list();
@@ -18,14 +18,14 @@
</script>
<div class="product-search-content">
- <h3 class="search-results">Search Results</h3>
+ <h3 class="search-results">{{ _("Search Results") }}</h3>
<div id="search-list" class="row">
</div>
<div style="text-align: center;">
<div class="more-btn"
style="display: none; text-align: center;">
- <button class="btn btn-default">More...</button>
+ <button class="btn btn-default">{{ _("More...") }}</button>
</div>
</div>
</div>