summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-27 10:30:39 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-28 08:42:53 +0200
commit7d3567919aa6f51eeb53d4609621550750335476 (patch)
tree0f80009d4fe5d5d7b4c91190ccc28a04e21607fb /ogcp
parent20bdd4175ebb1bf9823b1dd7a427eee212997028 (diff)
views: fix English grammatical error in error message
Replace "do not exists" with "does not exist" in error messages.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py10
1 files 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)