fix: Translation strings with trailing spaces (#21192)
This commit is contained in:
parent
28753268e6
commit
da6806e6bc
@ -439,7 +439,7 @@ class AccountsController(TransactionBase):
|
|||||||
|
|
||||||
if account_currency not in valid_currency:
|
if account_currency not in valid_currency:
|
||||||
frappe.throw(_("Account {0} is invalid. Account Currency must be {1}")
|
frappe.throw(_("Account {0} is invalid. Account Currency must be {1}")
|
||||||
.format(account, _(" or ").join(valid_currency)))
|
.format(account, (' ' + _("or") + ' ').join(valid_currency)))
|
||||||
|
|
||||||
def clear_unallocated_advances(self, childtype, parentfield):
|
def clear_unallocated_advances(self, childtype, parentfield):
|
||||||
self.set(parentfield, self.get(parentfield, {"allocated_amount": ["not in", [0, None, ""]]}))
|
self.set(parentfield, self.get(parentfield, {"allocated_amount": ["not in", [0, None, ""]]}))
|
||||||
|
@ -46,7 +46,7 @@ def execute(filters=None):
|
|||||||
|
|
||||||
def get_columns():
|
def get_columns():
|
||||||
columns = [
|
columns = [
|
||||||
_(" Group Roll No") + "::60",
|
_("Group Roll No") + "::60",
|
||||||
_("Student ID") + ":Link/Student:90",
|
_("Student ID") + ":Link/Student:90",
|
||||||
_("Student Name") + "::150",
|
_("Student Name") + "::150",
|
||||||
_("Student Mobile No.") + "::110",
|
_("Student Mobile No.") + "::110",
|
||||||
|
@ -687,8 +687,7 @@ def add_leaves(events, start, end, filter_conditions=None):
|
|||||||
"to_date": d.to_date,
|
"to_date": d.to_date,
|
||||||
"docstatus": d.docstatus,
|
"docstatus": d.docstatus,
|
||||||
"color": d.color,
|
"color": d.color,
|
||||||
"title": cstr(d.employee_name) + \
|
"title": cstr(d.employee_name) + (' ' + _('(Half Day)') if d.half_day else ''),
|
||||||
(d.half_day and _(" (Half Day)") or ""),
|
|
||||||
}
|
}
|
||||||
if e not in events:
|
if e not in events:
|
||||||
events.append(e)
|
events.append(e)
|
||||||
|
@ -53,7 +53,7 @@ def get_columns():
|
|||||||
def get_data(filters):
|
def get_data(filters):
|
||||||
data = []
|
data = []
|
||||||
if(filters.from_date > filters.to_date):
|
if(filters.from_date > filters.to_date):
|
||||||
frappe.msgprint(_(" From Date can not be greater than To Date"))
|
frappe.msgprint(_("From Date can not be greater than To Date"))
|
||||||
return data
|
return data
|
||||||
|
|
||||||
timesheets = get_timesheets(filters)
|
timesheets = get_timesheets(filters)
|
||||||
|
@ -108,8 +108,8 @@ erpnext.stock.ItemDashboard = Class.extend({
|
|||||||
if (context.data.length > 0) {
|
if (context.data.length > 0) {
|
||||||
$(frappe.render_template('item_dashboard_list', context)).appendTo(this.result);
|
$(frappe.render_template('item_dashboard_list', context)).appendTo(this.result);
|
||||||
} else {
|
} else {
|
||||||
var message = __(" Currently no stock available in any warehouse")
|
var message = __("Currently no stock available in any warehouse");
|
||||||
$("<span class='text-muted small'>"+message+"</span>").appendTo(this.result);
|
$(`<span class='text-muted small'> ${message} </span>`).appendTo(this.result);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
get_item_dashboard_data: function(data, max_count, show_item) {
|
get_item_dashboard_data: function(data, max_count, show_item) {
|
||||||
|
@ -308,7 +308,7 @@ class Item(WebsiteGenerator):
|
|||||||
if self.retain_sample and not frappe.db.get_single_value('Stock Settings', 'sample_retention_warehouse'):
|
if self.retain_sample and not frappe.db.get_single_value('Stock Settings', 'sample_retention_warehouse'):
|
||||||
frappe.throw(_("Please select Sample Retention Warehouse in Stock Settings first"))
|
frappe.throw(_("Please select Sample Retention Warehouse in Stock Settings first"))
|
||||||
if self.retain_sample and not self.has_batch_no:
|
if self.retain_sample and not self.has_batch_no:
|
||||||
frappe.throw(_(" {0} Retain Sample is based on batch, please check Has Batch No to retain sample of item").format(
|
frappe.throw(_("{0} Retain Sample is based on batch, please check Has Batch No to retain sample of item").format(
|
||||||
self.item_code))
|
self.item_code))
|
||||||
|
|
||||||
def get_context(self, context):
|
def get_context(self, context):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user