mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-23 07:56:44 -06:00
Fix string translation
This commit is contained in:
parent
e39815b0fa
commit
cdb9a0dcac
@ -17,12 +17,10 @@ def handle_protectederror(obj_list, request, e):
|
||||
raise e
|
||||
|
||||
# Formulate the error message
|
||||
err_message = _(
|
||||
"Unable to delete <strong>{objects}</strong>. {count} dependent objects were found: ".format(
|
||||
err_message = _("Unable to delete <strong>{objects}</strong>. {count} dependent objects were found: ").format(
|
||||
objects=', '.join(str(obj) for obj in obj_list),
|
||||
count=len(protected_objects) if len(protected_objects) <= 50 else _('More than 50')
|
||||
)
|
||||
)
|
||||
|
||||
# Append dependent objects to error message
|
||||
dependent_objects = []
|
||||
|
Loading…
Reference in New Issue
Block a user