summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-01-13 16:01:43 +0100
committerBadlop <badlop@process-one.net>2021-01-13 16:12:00 +0100
commit59d5cf4d477fdee86ed0c203d1a5b3360bc83561 (patch)
tree0ca554da9c4fbeec3de1ca0f52f958b45071f84d /src
parentMerge pull request #3482 from comradekingu/patch-1 (diff)
Uniformize terms create->register, delete->unregister (#3482)
Diffstat (limited to 'src')
-rw-r--r--src/mod_register_web.erl14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mod_register_web.erl b/src/mod_register_web.erl
index 2bc0d8b9..41889d25 100644
--- a/src/mod_register_web.erl
+++ b/src/mod_register_web.erl
@@ -115,11 +115,11 @@ process([<<"new">>],
{success, ok, {Username, Host, _Password}} ->
Jid = jid:make(Username, Host),
mod_register:send_registration_notifications(?MODULE, Jid, Ip),
- Text = translate:translate(Lang, ?T("XMPP account created.")),
+ Text = translate:translate(Lang, ?T("XMPP account registered.")),
{200, [], Text};
Error ->
ErrorText =
- list_to_binary([translate:translate(Lang, ?T("Could not create the account: ")),
+ list_to_binary([translate:translate(Lang, ?T("Could not register the account: ")),
translate:translate(Lang, get_error_text(Error))]),
{404, [], ErrorText}
end;
@@ -128,11 +128,11 @@ process([<<"delete">>],
host = _HTTPHost}) ->
case form_del_post(Q) of
{atomic, ok} ->
- Text = translate:translate(Lang, ?T("XMPP account deleted.")),
+ Text = translate:translate(Lang, ?T("XMPP account unregistered.")),
{200, [], Text};
Error ->
ErrorText =
- list_to_binary([translate:translate(Lang, ?T("Could not delete the account: ")),
+ list_to_binary([translate:translate(Lang, ?T("Could not unregister the account: ")),
translate:translate(Lang, get_error_text(Error))]),
{404, [], ErrorText}
end;
@@ -249,7 +249,7 @@ form_new_get2(Host, Lang, CaptchaEls) ->
{<<"style">>, <<"text-align:center;">>}],
?T("Register an XMPP account")),
?XCT(<<"p">>,
- ?T("This page allows creating an XMPP "
+ ?T("This page allows registering an XMPP "
"account on this XMPP server. Your "
"JID (Jabber ID) will be of the "
"form: username@server. Please read the "
@@ -608,7 +608,7 @@ get_error_text({error, not_allowed}) ->
get_error_text({error, account_doesnt_exist}) ->
?T("Account doesn't exist");
get_error_text({error, account_exists}) ->
- ?T("The account was not deleted");
+ ?T("The account was not unregistered");
get_error_text({error, password_not_changed}) ->
?T("The password was not changed");
get_error_text({error, passwords_not_identical}) ->
@@ -624,7 +624,7 @@ mod_doc() ->
[?T("This module provides a web page where users can:"), "",
?T("- Register a new account on the server."), "",
?T("- Change the password from an existing account on the server."), "",
- ?T("- Delete an existing account on the server."), "",
+ ?T("- Unregister an existing account on the server."), "",
?T("This module supports CAPTCHA image to register a new account. "
"To enable this feature, configure the options 'captcha\_cmd' "
"and 'captcha\_url', documented in the section with "