* src/mod_muc/mod_muc_room.erl: Allow unmoderated rooms (EJAB-437)

* src/msgs/*: Recover old translations to several languages from
ejabberd 1.1.4

SVN Revision: 1191
This commit is contained in:
Badlop 2008-02-14 11:25:39 +00:00
parent 206d127af7
commit 28ca665ba4
14 changed files with 24 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2008-02-14 Badlop <badlop@process-one.net>
* src/mod_muc/mod_muc_room.erl: Allow unmoderated rooms (EJAB-437)
* src/msgs/*: Recover old translations to several languages from
ejabberd 1.1.4
2008-02-12 Badlop <badlop@process-one.net> 2008-02-12 Badlop <badlop@process-one.net>
* src/web/ejabberd_web_admin.erl: Fixed native support for all the * src/web/ejabberd_web_admin.erl: Fixed native support for all the

View File

@ -65,7 +65,7 @@
public = true, public = true,
public_list = true, public_list = true,
persistent = false, persistent = false,
moderated = true, % TODO moderated = true,
members_by_default = true, members_by_default = true,
members_only = false, members_only = false,
allow_user_invites = false, allow_user_invites = false,
@ -790,7 +790,8 @@ process_groupchat_message(From, {xmlelement, "message", Attrs, _Els} = Packet,
?DICT:find(jlib:jid_tolower(From), ?DICT:find(jlib:jid_tolower(From),
StateData#state.users), StateData#state.users),
if if
(Role == moderator) or (Role == participant) -> (Role == moderator) or (Role == participant)
or ((StateData#state.config)#config.moderated == false) ->
{NewStateData1, IsAllowed} = {NewStateData1, IsAllowed} =
case check_subject(Packet) of case check_subject(Packet) of
false -> false ->
@ -2646,9 +2647,9 @@ get_config(Lang, StateData, From) ->
?BOOLXFIELD("Make room members-only", ?BOOLXFIELD("Make room members-only",
"muc#roomconfig_membersonly", "muc#roomconfig_membersonly",
Config#config.members_only), Config#config.members_only),
%%?BOOLXFIELD("Make room moderated", ?BOOLXFIELD("Make room moderated",
%% "muc#roomconfig_moderatedroom", "muc#roomconfig_moderatedroom",
%% Config#config.moderated), Config#config.moderated),
?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),

View File

@ -106,6 +106,7 @@
{"Specified nickname is already registered", "Zadaná přezdívka je již zaregistrována"}. {"Specified nickname is already registered", "Zadaná přezdívka je již zaregistrována"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Nastavit místnost jako moderovanou"}.
{" has set the subject to: ", " změnil(a) téma na: "}. {" has set the subject to: ", " změnil(a) téma na: "}.
{"You need an x:data capable client to configure room", "Ke konfiguraci místnosti potřebujete klienta podporujícího x:data"}. {"You need an x:data capable client to configure room", "Ke konfiguraci místnosti potřebujete klienta podporujícího x:data"}.
{"Configuration for ", "Konfigurace pro "}. {"Configuration for ", "Konfigurace pro "}.

View File

@ -326,6 +326,7 @@
{"ejabberd MUC module", "ejabberd MUC Modul"}. {"ejabberd MUC module", "ejabberd MUC Modul"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Raum modieriert machen"}.
{"Traffic rate limit is exceeded", "Datenrate ist zu hoch"}. {"Traffic rate limit is exceeded", "Datenrate ist zu hoch"}.
{"It is not allowed to send private messages to the conference", "Es ist nicht erlaubt private Nachrichten an den Raum zu schicken"}. {"It is not allowed to send private messages to the conference", "Es ist nicht erlaubt private Nachrichten an den Raum zu schicken"}.
{"Improper message type", "Unzulässiger Nachrichtentyp"}. {"Improper message type", "Unzulässiger Nachrichtentyp"}.

View File

@ -142,6 +142,7 @@
{"Chatrooms", "Salas de charla"}. {"Chatrooms", "Salas de charla"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Sala moderada"}.
{" has set the subject to: ", " ha puesto el asunto: "}. {" has set the subject to: ", " ha puesto el asunto: "}.
{"You need an x:data capable client to configure room", "Necesitas un cliente con soporte de x:data para configurar la sala"}. {"You need an x:data capable client to configure room", "Necesitas un cliente con soporte de x:data para configurar la sala"}.
{"Configuration for ", "Configuración para "}. {"Configuration for ", "Configuración para "}.

View File

@ -205,6 +205,7 @@
{"Chatrooms", "Salons de discussion"}. {"Chatrooms", "Salons de discussion"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Rendre le salon modéré"}.
{" has set the subject to: ", " a changé le sujet pour: "}. {" has set the subject to: ", " a changé le sujet pour: "}.
{"You need an x:data capable client to configure room", "Vous avez besoin d'un client supportant x:data pour configurer le salon"}. {"You need an x:data capable client to configure room", "Vous avez besoin d'un client supportant x:data pour configurer le salon"}.
{"Configuration for ", "Configuration pour "}. {"Configuration for ", "Configuration pour "}.

View File

@ -153,6 +153,7 @@
{"Chatrooms", "Groepsgesprekken"}. {"Chatrooms", "Groepsgesprekken"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Chatruimte gemodereerd maken"}.
{"Only moderators and participants are allowed to change subject in this room", "Alleen moderators en deelnemers mogen het onderwerp van deze chatruimte veranderen"}. {"Only moderators and participants are allowed to change subject in this room", "Alleen moderators en deelnemers mogen het onderwerp van deze chatruimte veranderen"}.
{"Only moderators are allowed to change subject in this room", "Alleen moderators mogen het onderwerp van deze chatruimte veranderen"}. {"Only moderators are allowed to change subject in this room", "Alleen moderators mogen het onderwerp van deze chatruimte veranderen"}.
{"Visitors are not allowed to send messages to all occupants", "Bezoekers mogen geen berichten verzenden naar alle aanwezigen"}. {"Visitors are not allowed to send messages to all occupants", "Bezoekers mogen geen berichten verzenden naar alle aanwezigen"}.

View File

@ -115,6 +115,7 @@
{"Specified nickname is already registered", "Podany nick jest już zarejestrowany"}. {"Specified nickname is already registered", "Podany nick jest już zarejestrowany"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Moderuj pokój"}.
{"Traffic rate limit is exceeded", "Limit transferu przekroczony"}. {"Traffic rate limit is exceeded", "Limit transferu przekroczony"}.
{"Maximum Number of Occupants", "Maksymalna liczba uczestników"}. {"Maximum Number of Occupants", "Maksymalna liczba uczestników"}.
{"No limit", "Bez limitu"}. {"No limit", "Bez limitu"}.

View File

@ -116,6 +116,7 @@
{"You need an x:data capable client to register nickname", "Necessitas um cliente com suporte de x:data para poder registrar o nick"}. {"You need an x:data capable client to register nickname", "Necessitas um cliente com suporte de x:data para poder registrar o nick"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Tornar a sala moderada"}.
{"Administrator privileges required", "Se necessita privilégios de administrador"}. {"Administrator privileges required", "Se necessita privilégios de administrador"}.
{"Configuration for ", "Configuração para "}. {"Configuration for ", "Configuração para "}.
{" has set the subject to: ", " a posto o assunto: "}. {" has set the subject to: ", " a posto o assunto: "}.

View File

@ -105,6 +105,7 @@
{"Specified nickname is already registered", "A alcunha especificada já está registada"}. {"Specified nickname is already registered", "A alcunha especificada já está registada"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Tornar a sala moderada"}.
{" has set the subject to: ", " colocou o tópico: "}. {" has set the subject to: ", " colocou o tópico: "}.
{"You need an x:data capable client to configure room", "É necessário um cliente com suporte de x:data para configurar a sala"}. {"You need an x:data capable client to configure room", "É necessário um cliente com suporte de x:data para configurar a sala"}.
{"Configuration for ", "Configuração para "}. {"Configuration for ", "Configuração para "}.

View File

@ -206,6 +206,7 @@
{"Room Configuration", "Конфигурация комнаты"}. {"Room Configuration", "Конфигурация комнаты"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Сделать комнату модерируемой"}.
{"This room is not anonymous", "Эта комната не анонимная"}. {"This room is not anonymous", "Эта комната не анонимная"}.
{" has set the subject to: ", " установил(а) тему: "}. {" has set the subject to: ", " установил(а) тему: "}.
{"You need an x:data capable client to configure room", "Чтобы сконфигурировать комнату, требуется x:data-совместимый клиент"}. {"You need an x:data capable client to configure room", "Чтобы сконфигурировать комнату, требуется x:data-совместимый клиент"}.

View File

@ -106,6 +106,7 @@
{"ejabberd MUC module", "Ejabberd MUC modul"}. {"ejabberd MUC module", "Ejabberd MUC modul"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Nastaviť miestnosť ako moderovanú"}.
{"This room is not anonymous", "Táto miestnosť nie je anonymná"}. {"This room is not anonymous", "Táto miestnosť nie je anonymná"}.
{"Make room persistent", "Nastaviť miestnosť ako trvalú"}. {"Make room persistent", "Nastaviť miestnosť ako trvalú"}.
{"Make room public searchable", "Nastaviť miestnosť ako verejne prehľadávateľnú"}. {"Make room public searchable", "Nastaviť miestnosť ako verejne prehľadávateľnú"}.

View File

@ -132,6 +132,7 @@
{"Specified nickname is already registered", "Detta smeknamnet är redan registrerat"}. {"Specified nickname is already registered", "Detta smeknamnet är redan registrerat"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Gör rummet modererat"}.
{" has set the subject to: ", " har satt ämnet till: "}. {" has set the subject to: ", " har satt ämnet till: "}.
{"You need an x:data capable client to configure room", "Du behöver en klient som stödjer x:data för att konfiguera detta rum"}. {"You need an x:data capable client to configure room", "Du behöver en klient som stödjer x:data för att konfiguera detta rum"}.
{"Configuration for ", "Konfiguration för "}. {"Configuration for ", "Konfiguration för "}.

View File

@ -206,6 +206,7 @@
{"Room Configuration", "Конфігурація кімнати"}. {"Room Configuration", "Конфігурація кімнати"}.
% mod_muc/mod_muc_room.erl % mod_muc/mod_muc_room.erl
{"Make room moderated", "Зробити кімнату модерованою"}.
{"Traffic rate limit is exceeded", "Швидкість передачі інформації було перевищено"}. {"Traffic rate limit is exceeded", "Швидкість передачі інформації було перевищено"}.
{"Maximum Number of Occupants", "Максимальна кількість учасників"}. {"Maximum Number of Occupants", "Максимальна кількість учасників"}.
{"No limit", "Без обмежень"}. {"No limit", "Без обмежень"}.
@ -383,4 +384,3 @@
% mode: erlang % mode: erlang
% End: % End:
% vim: set filetype=erlang tabstop=8: % vim: set filetype=erlang tabstop=8: