[minor] translation related: Address document autoname and Search box placeholder (#2918)
* strings in templates translatable * [minor] placeholder in search box is translatable now * Address autoname creates new name from translated address_type
This commit is contained in:
parent
344e87db83
commit
9e8896d3c1
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ class Address(Document):
|
|||
self.address_title = self.links[0].link_name
|
||||
|
||||
if self.address_title:
|
||||
self.name = (cstr(self.address_title).strip() + "-" + cstr(self.address_type).strip())
|
||||
self.name = (cstr(self.address_title).strip() + "-" + cstr(_(self.address_type)).strip())
|
||||
if frappe.db.exists("Address", self.name):
|
||||
self.name = make_autoname(cstr(self.address_title).strip() + "-" +
|
||||
cstr(self.address_type).strip() + "-.#")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<div class="item-search text-muted pull-right">
|
||||
<div class='input-wrapper'>
|
||||
<input type="text" class="item-search-input"
|
||||
placeholder="Search" autocomplete="off">
|
||||
placeholder="{{ _("Search") }}" autocomplete="off">
|
||||
<i class="octicon octicon-search pull-right" style='cursor: pointer;'></i>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue