From 7d3567919aa6f51eeb53d4609621550750335476 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 27 Jun 2024 10:30:39 +0200 Subject: views: fix English grammatical error in error message Replace "do not exists" with "does not exist" in error messages. --- ogcp/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ogcp/views.py b/ogcp/views.py index 9868e78..93514a3 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -2923,7 +2923,7 @@ def server_delete_post(): server = get_server_from_ip_port(ip_port_str) return delete_server(server) except Exception: - flash(_('Server {} do not exists').format(ip_port_str), + flash(_('Server {} does not exist').format(ip_port_str), category='error') return redirect(url_for('manage_servers')) @@ -3140,7 +3140,7 @@ def user_edit_get(): username = username_set.pop() user = get_user(username) if not user: - flash(_('User {} do not exists').format(username), category='error') + flash(_('User {} does not exist').format(username), category='error') return redirect(url_for('users')) form = EditUserForm() @@ -3193,7 +3193,7 @@ def user_edit_post(): username = form.username.data old_user_data = get_user(username) if not old_user_data: - flash(_('User {} do not exists').format(username), category='error') + flash(_('User {} does not exist').format(username), category='error') return redirect(url_for('users')) preserve_pwd = (not form.pwd.data and not form.pwd_confirm.data) @@ -3213,7 +3213,7 @@ def user_delete_get(): username = username_set.pop() user = get_user(username) if not user: - flash(_('User {} do not exists').format(username), category='error') + flash(_('User {} does not exist').format(username), category='error') return redirect(url_for('users')) form = DeleteUserForm() @@ -3266,7 +3266,7 @@ def user_delete_post(): username = form.username.data if not get_user(username): - flash(_('User {} do not exists').format(username), category='error') + flash(_('User {} does not exist').format(username), category='error') return redirect(url_for('users')) delete_user(username) -- cgit v1.2.3-18-g5258