fix: Translation strings with trailing spaces (#21192)

This commit is contained in:
Suraj Shetty
2020-04-08 09:32:41 +05:30
committed by GitHub
parent 28753268e6
commit da6806e6bc
6 changed files with 12 additions and 13 deletions

View File

@@ -687,8 +687,7 @@ def add_leaves(events, start, end, filter_conditions=None):
"to_date": d.to_date,
"docstatus": d.docstatus,
"color": d.color,
"title": cstr(d.employee_name) + \
(d.half_day and _(" (Half Day)") or ""),
"title": cstr(d.employee_name) + (' ' + _('(Half Day)') if d.half_day else ''),
}
if e not in events:
events.append(e)