Skip to content

Commit

Permalink
fix: translations
Browse files Browse the repository at this point in the history
(cherry picked from commit 32919e6)
  • Loading branch information
krantheman authored and mergify[bot] committed Dec 14, 2023
1 parent cf2a1ef commit efd6f02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hrms/hr/doctype/leave_application/leave_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ def validate_max_days(self):
leave_applications = ", ".join(
[get_link_to_form("Leave Application", x) for x in leave_applications]
)
msg += _(" Reference: {0}".format(leave_applications))
msg = _("Leave of type {0} cannot be longer than {1}. Reference: {2}").format(
get_link_to_form("Leave Type", self.leave_type), max_days, leave_applications
)

frappe.throw(msg)

Expand Down

0 comments on commit efd6f02

Please sign in to comment.