25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

* src/mod_muc/mod_muc.erl: English fixes (thanks to Glenn Sieb)

* src/mod_muc/mod_muc_log.erl: Likewise
* src/mod_muc/mod_muc_room.erl: Likewise
* src/mod_register.erl: Likewise
* src/web/ejabberd_web_admin.erl: Likewise

SVN Revision: 2009
This commit is contained in:
Badlop 2009-04-08 19:04:13 +00:00
parent d13be09524
commit 2195e433dc
6 changed files with 19 additions and 13 deletions

View File

@ -1,5 +1,11 @@
2009-04-08 Badlop <badlop@process-one.net> 2009-04-08 Badlop <badlop@process-one.net>
* src/mod_muc/mod_muc.erl: English fixes (thanks to Glenn Sieb)
* src/mod_muc/mod_muc_log.erl: Likewise
* src/mod_muc/mod_muc_room.erl: Likewise
* src/mod_register.erl: Likewise
* src/web/ejabberd_web_admin.erl: Likewise
* src/mod_pubsub/mod_pubsub.erl: Quickfix compilation errors. * src/mod_pubsub/mod_pubsub.erl: Quickfix compilation errors.
* src/mod_irc/mod_irc_connection.erl: Fix compilation warnings. * src/mod_irc/mod_irc_connection.erl: Fix compilation warnings.

View File

@ -719,7 +719,7 @@ iq_set_register_info(Host, From, Nick, Lang) when is_binary(Host), is_binary(Nic
{atomic, ok} -> {atomic, ok} ->
ok; ok;
{atomic, false} -> {atomic, false} ->
ErrText = "Specified nickname is already registered", ErrText = "That nickname is registered by another person",
%%TODO: Always in the jabber:client namespace? %%TODO: Always in the jabber:client namespace?
{error,exmpp_stanza:error(?NS_JABBER_CLIENT, {error,exmpp_stanza:error(?NS_JABBER_CLIENT,
'conflict', 'conflict',

View File

@ -852,7 +852,7 @@ get_roomconfig_text(anonymous) -> "Make room semianonymous";
get_roomconfig_text(members_only) -> "Make room members-only"; get_roomconfig_text(members_only) -> "Make room members-only";
get_roomconfig_text(moderated) -> "Make room moderated"; get_roomconfig_text(moderated) -> "Make room moderated";
get_roomconfig_text(members_by_default) -> "Default users as participants"; get_roomconfig_text(members_by_default) -> "Default users as participants";
get_roomconfig_text(allow_change_subj) -> "Allow users to change subject"; get_roomconfig_text(allow_change_subj) -> "Allow users to change the subject";
get_roomconfig_text(allow_private_messages) -> "Allow users to send private messages"; get_roomconfig_text(allow_private_messages) -> "Allow users to send private messages";
get_roomconfig_text(allow_query_users) -> "Allow users to query other users"; get_roomconfig_text(allow_query_users) -> "Allow users to query other users";
get_roomconfig_text(allow_user_invites) -> "Allow users to send invites"; get_roomconfig_text(allow_user_invites) -> "Allow users to send invites";

View File

@ -793,13 +793,13 @@ process_groupchat_message(From, #xmlel{name = 'message'} = Packet,
exmpp_stanza:error(Packet#xmlel.ns, 'forbidden', exmpp_stanza:error(Packet#xmlel.ns, 'forbidden',
{Lang, translate:translate(Lang, {Lang, translate:translate(Lang,
"Only moderators and participants " "Only moderators and participants "
"are allowed to change subject in this room")})); "are allowed to change the subject in this room")}));
_ -> _ ->
exmpp_stanza:reply_with_error(Packet, exmpp_stanza:reply_with_error(Packet,
exmpp_stanza:error(Packet#xmlel.ns, 'forbidden', exmpp_stanza:error(Packet#xmlel.ns, 'forbidden',
{Lang, translate:translate(Lang, {Lang, translate:translate(Lang,
"Only moderators " "Only moderators "
"are allowed to change subject in this room")})) "are allowed to change the subject in this room")}))
end, end,
ejabberd_router:route( ejabberd_router:route(
StateData#state.jid, StateData#state.jid,
@ -909,7 +909,7 @@ process_presence(From, Nick, #xmlel{name = 'presence'} = Packet,
StateData; StateData;
{true, _, _} -> {true, _, _} ->
Lang = exmpp_stanza:get_lang(Packet), Lang = exmpp_stanza:get_lang(Packet),
ErrText = "Nickname is already in use by another occupant", ErrText = "That nickname is already in use by another occupant",
Err = exmpp_stanza:reply_with_error(Packet, Err = exmpp_stanza:reply_with_error(Packet,
exmpp_stanza:error(Packet#xmlel.ns, 'conflict', exmpp_stanza:error(Packet#xmlel.ns, 'conflict',
{Lang, translate:translate(Lang, ErrText)})), {Lang, translate:translate(Lang, ErrText)})),
@ -920,7 +920,7 @@ process_presence(From, Nick, #xmlel{name = 'presence'} = Packet,
From, Err), From, Err),
StateData; StateData;
{_, false, _} -> {_, false, _} ->
ErrText = "Nickname is registered by another person", ErrText = "That nickname is registered by another person",
Err = exmpp_stanza:reply_with_error(Packet, Err = exmpp_stanza:reply_with_error(Packet,
exmpp_stanza:error(Packet#xmlel.ns, 'conflict', exmpp_stanza:error(Packet#xmlel.ns, 'conflict',
{Lang, translate:translate(Lang, ErrText)})), {Lang, translate:translate(Lang, ErrText)})),
@ -1482,7 +1482,7 @@ add_new_user(From, Nick, Packet, StateData) ->
'forbidden', 'forbidden',
{Lang, translate:translate(Lang, ErrText)}); {Lang, translate:translate(Lang, ErrText)});
_ -> _ ->
ErrText = "Membership required to enter this room", ErrText = "Membership is required to enter this room",
exmpp_stanza:error(Packet#xmlel.ns, exmpp_stanza:error(Packet#xmlel.ns,
'registration-required', 'registration-required',
{Lang, translate:translate(Lang, ErrText)}) {Lang, translate:translate(Lang, ErrText)})
@ -1492,7 +1492,7 @@ add_new_user(From, Nick, Packet, StateData) ->
From, Err), From, Err),
StateData; StateData;
{_, true, _, _} -> {_, true, _, _} ->
ErrText = "Nickname is already in use by another occupant", ErrText = "That nickname is already in use by another occupant",
Err = exmpp_stanza:reply_with_error(Packet, Err = exmpp_stanza:reply_with_error(Packet,
exmpp_stanza:error(Packet#xmlel.ns, exmpp_stanza:error(Packet#xmlel.ns,
'conflict', 'conflict',
@ -1503,7 +1503,7 @@ add_new_user(From, Nick, Packet, StateData) ->
From, Err), From, Err),
StateData; StateData;
{_, _, false, _} -> {_, _, false, _} ->
ErrText = "Nickname is registered by another person", ErrText = "That nickname is registered by another person",
Err = exmpp_stanza:reply_with_error(Packet, Err = exmpp_stanza:reply_with_error(Packet,
?ERR(Packet, 'conflict', Lang, ErrText)), ?ERR(Packet, 'conflict', Lang, ErrText)),
ejabberd_router:route( ejabberd_router:route(
@ -1553,7 +1553,7 @@ add_new_user(From, Nick, Packet, StateData) ->
NewState NewState
end; end;
nopass -> nopass ->
ErrText = "Password required to enter this room", ErrText = "The password is required to enter this room",
Err = exmpp_stanza:reply_with_error( Err = exmpp_stanza:reply_with_error(
Packet, ?ERR(Packet, 'not-authorized', Lang, ErrText)), Packet, ?ERR(Packet, 'not-authorized', Lang, ErrText)),
ejabberd_router:route( % TODO: s/Nick/""/ ejabberd_router:route( % TODO: s/Nick/""/
@ -2817,7 +2817,7 @@ get_config(Lang, StateData, From) ->
?BOOLXFIELD("Default users as participants", ?BOOLXFIELD("Default users as participants",
"members_by_default", "members_by_default",
Config#config.members_by_default), Config#config.members_by_default),
?BOOLXFIELD("Allow users to change subject", ?BOOLXFIELD("Allow users to change the subject",
"muc#roomconfig_changesubject", "muc#roomconfig_changesubject",
Config#config.allow_change_subj), Config#config.allow_change_subj),
?BOOLXFIELD("Allow users to send private messages", ?BOOLXFIELD("Allow users to send private messages",

View File

@ -233,7 +233,7 @@ try_register(User, Server, Password, Source, Lang) ->
end; end;
false -> false ->
ErrText = "Users are not allowed to register " ErrText = "Users are not allowed to register "
"accounts so fast", "accounts so quickly",
{error, exmpp_stanza:error(?NS_JABBER_CLIENT, 'resource-constraint', {Lang, ErrText})} {error, exmpp_stanza:error(?NS_JABBER_CLIENT, 'resource-constraint', {Lang, ErrText})}
end end
end end

View File

@ -1804,7 +1804,7 @@ get_node(global, Node, ["backup"], Query, Lang) ->
end, end,
[?XC('h1', ?T("Backup of ") ++ atom_to_list(Node))] ++ [?XC('h1', ?T("Backup of ") ++ atom_to_list(Node))] ++
ResS ++ ResS ++
[?XCT('p', "Remark that these options will only backup the builtin Mnesia database. If you are using the ODBC module, you also need to backup your SQL database separately."), [?XCT('p', "Please note that these options will only backup the builtin Mnesia database. If you are using the ODBC module, you also need to backup your SQL database separately."),
?XAE('form', [?XMLATTR('action', <<>>), ?XMLATTR('method', <<"post">>)], ?XAE('form', [?XMLATTR('action', <<>>), ?XMLATTR('method', <<"post">>)],
[?XAE('table', [], [?XAE('table', [],
[?XE('tbody', [?XE('tbody',