mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Fix some English strings
This commit is contained in:
parent
76ca7ae7f0
commit
9b88fd6646
@ -1787,7 +1787,7 @@ check_privacy_route(From, StateData, FromRoute, To, Packet) ->
|
||||
case privacy_check_packet(StateData, From, To, Packet, out) of
|
||||
deny ->
|
||||
Lang = StateData#state.lang,
|
||||
ErrText = "Routing of this stanza was denied by your active privacy list",
|
||||
ErrText = "Your active privacy list has denied the routing of this stanza.",
|
||||
Err = jlib:make_error_reply(Packet, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)),
|
||||
ejabberd_router:route(To, From, Err),
|
||||
ok;
|
||||
|
@ -708,7 +708,7 @@ iq_get_register_info(Host, From, Lang) ->
|
||||
[{xmlelement, "instructions", [],
|
||||
[{xmlcdata,
|
||||
translate:translate(
|
||||
Lang, "You need an x:data capable client to register nickname")}]},
|
||||
Lang, "You need a client that supports x:data to register the nickname")}]},
|
||||
{xmlelement, "x",
|
||||
[{"xmlns", ?NS_XDATA}],
|
||||
[{xmlelement, "title", [],
|
||||
|
@ -188,7 +188,7 @@ process_iq(From, To,
|
||||
IQ#iq{type = error,
|
||||
sub_el = [SubEl, ?ERR_BAD_REQUEST]};
|
||||
_ ->
|
||||
ErrText = "Captcha test failed",
|
||||
ErrText = "The CAPTCHA verification has failed",
|
||||
IQ#iq{type = error,
|
||||
sub_el = [SubEl,
|
||||
?ERRT_NOT_ALLOWED(Lang, ErrText)]}
|
||||
@ -215,8 +215,8 @@ process_iq(From, To,
|
||||
TopInstrEl = {xmlelement, "instructions", [],
|
||||
[{xmlcdata,
|
||||
translate:translate(
|
||||
Lang, "You need an x:data capable client "
|
||||
"with CAPTCHA support to register")}]},
|
||||
Lang, "You need a client that supports x:data "
|
||||
"and CAPTCHA to register")}]},
|
||||
InstrEl = {xmlelement, "instructions", [],
|
||||
[{xmlcdata,
|
||||
translate:translate(
|
||||
@ -241,7 +241,7 @@ process_iq(From, To,
|
||||
[{"xmlns", "jabber:iq:register"}],
|
||||
[TopInstrEl | CaptchaEls]}]};
|
||||
error ->
|
||||
ErrText = "Unable to generate a captcha",
|
||||
ErrText = "Unable to generate a CAPTCHA",
|
||||
IQ#iq{type = error,
|
||||
sub_el = [SubEl, ?ERRT_INTERNAL_SERVER_ERROR(
|
||||
Lang, ErrText)]}
|
||||
|
@ -100,7 +100,7 @@ process(["new"], #request{method = 'POST', q = Q, ip = {Ip,_Port}, lang = Lang,
|
||||
{success, ok, {Username, Host, _Password}} ->
|
||||
Jid = jlib:make_jid(Username, Host, ""),
|
||||
send_registration_notifications(Jid, Ip),
|
||||
Text = ?T("Your Jabber account was succesfully created."),
|
||||
Text = ?T("Your Jabber account was successfully created."),
|
||||
{200, [], Text};
|
||||
Error ->
|
||||
ErrorText = ?T("There was an error creating the account: ") ++
|
||||
@ -111,7 +111,7 @@ process(["new"], #request{method = 'POST', q = Q, ip = {Ip,_Port}, lang = Lang,
|
||||
process(["delete"], #request{method = 'POST', q = Q, lang = Lang, host = Host}) ->
|
||||
case form_del_post(Q, Host) of
|
||||
{atomic, ok} ->
|
||||
Text = ?T("Your Jabber account was succesfully deleted."),
|
||||
Text = ?T("Your Jabber account was successfully deleted."),
|
||||
{200, [], Text};
|
||||
Error ->
|
||||
ErrorText = ?T("There was an error deleting the account: ") ++
|
||||
@ -124,7 +124,7 @@ process(["delete"], #request{method = 'POST', q = Q, lang = Lang, host = Host})
|
||||
process(["change_password"], #request{method = 'POST', q = Q, lang = Lang, host = Host}) ->
|
||||
case form_changepass_post(Q, Host) of
|
||||
{atomic, ok} ->
|
||||
Text = ?T("The password of your Jabber account was succesfully changed."),
|
||||
Text = ?T("The password of your Jabber account was successfully changed."),
|
||||
{200, [], Text};
|
||||
Error ->
|
||||
ErrorText = ?T("There was an error changing the password: ") ++
|
||||
|
Loading…
Reference in New Issue
Block a user