/* This is part of a hack to get gettext to scan strings to be
* translated. Strings we cannot send to the function above because
* they require variable interpolation and we don't yet have the
* variables at scan time.
*
* See actionInfoMessages further below.
*/
returnstr;
}
/* https://xmpp.org/extensions/xep-0045.html
* ----------------------------------------
* 100 message Entering a groupchat Inform user that any occupant is allowed to see the user's full JID
* 101 message (out of band) Affiliation change Inform user that his or her affiliation changed while not in the groupchat
* 102 message Configuration change Inform occupants that groupchat now shows unavailable members
* 103 message Configuration change Inform occupants that groupchat now does not show unavailable members
* 104 message Configuration change Inform occupants that a non-privacy-related groupchat configuration change has occurred
* 110 presence Any groupchat presence Inform user that presence refers to one of its own groupchat occupants
* 170 message or initial presence Configuration change Inform occupants that groupchat logging is now enabled
* 171 message Configuration change Inform occupants that groupchat logging is now disabled
* 172 message Configuration change Inform occupants that the groupchat is now non-anonymous
* 173 message Configuration change Inform occupants that the groupchat is now semi-anonymous
* 174 message Configuration change Inform occupants that the groupchat is now fully-anonymous
* 201 presence Entering a groupchat Inform user that a new groupchat has been created
* 210 presence Entering a groupchat Inform user that the service has assigned or modified the occupant's roomnick
* 301 presence Removal from groupchat Inform user that he or she has been banned from the groupchat
* 303 presence Exiting a groupchat Inform all occupants of new groupchat nickname
* 307 presence Removal from groupchat Inform user that he or she has been kicked from the groupchat
* 321 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of an affiliation change
* 322 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because the groupchat has been changed to members-only and the user is not a member
* 332 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of a system shutdown
*/
_converse.muc={
info_messages:{
100:__('This groupchat is not anonymous'),
102:__('This groupchat now shows unavailable members'),
103:__('This groupchat does not show unavailable members'),
104:__('The groupchat configuration has changed'),
170:__('groupchat logging is now enabled'),
171:__('groupchat logging is now disabled'),
172:__('This groupchat is now no longer anonymous'),
173:__('This groupchat is now semi-anonymous'),
174:__('This groupchat is now fully-anonymous'),
201:__('A new groupchat has been created')
},
disconnect_messages:{
301:__('You have been banned from this groupchat'),
307:__('You have been kicked from this groupchat'),
321:__("You have been removed from this groupchat because of an affiliation change"),
322:__("You have been removed from this groupchat because the groupchat has changed to members-only and you're not a member"),
332:__("You have been removed from this groupchat because the service hosting it is being shut down")
},
action_info_messages:{
/* XXX: Note the triple underscore function and not double
* underscore.
*
* This is a hack. We can't pass the strings to __ because we
* don't yet know what the variable to interpolate is.
*
* Triple underscore will just return the string again, but we
* can then at least tell gettext to scan for it so that these
* strings are picked up by the translation machinery.
*/
301:___("%1$s has been banned"),
303:___("%1$s's nickname has changed"),
307:___("%1$s has been kicked out"),
321:___("%1$s has been removed because of an affiliation change"),
322:___("%1$s has been removed for not being a member")
},
new_nickname_messages:{
210:___('Your nickname has been automatically set to %1$s'),
303:___('Your nickname has been changed to %1$s')
}
};
/* Insert groupchat info (based on returned #disco IQ stanza)
* @function insertRoomInfo
* @param { HTMLElement } el - The HTML DOM element that contains the info.
/* This is part of a hack to get gettext to scan strings to be
* translated. Strings we cannot send to the function above because
* they require variable interpolation and we don't yet have the
* variables at scan time.
*/
returnstr;
}
/* https://xmpp.org/extensions/xep-0045.html
* ----------------------------------------
* 100 message Entering a groupchat Inform user that any occupant is allowed to see the user's full JID
* 101 message (out of band) Affiliation change Inform user that his or her affiliation changed while not in the groupchat
* 102 message Configuration change Inform occupants that groupchat now shows unavailable members
* 103 message Configuration change Inform occupants that groupchat now does not show unavailable members
* 104 message Configuration change Inform occupants that a non-privacy-related groupchat configuration change has occurred
* 110 presence Any groupchat presence Inform user that presence refers to one of its own groupchat occupants
* 170 message or initial presence Configuration change Inform occupants that groupchat logging is now enabled
* 171 message Configuration change Inform occupants that groupchat logging is now disabled
* 172 message Configuration change Inform occupants that the groupchat is now non-anonymous
* 173 message Configuration change Inform occupants that the groupchat is now semi-anonymous
* 174 message Configuration change Inform occupants that the groupchat is now fully-anonymous
* 201 presence Entering a groupchat Inform user that a new groupchat has been created
* 210 presence Entering a groupchat Inform user that the service has assigned or modified the occupant's roomnick
* 301 presence Removal from groupchat Inform user that he or she has been banned from the groupchat
* 303 presence Exiting a groupchat Inform all occupants of new groupchat nickname
* 307 presence Removal from groupchat Inform user that he or she has been kicked from the groupchat
* 321 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of an affiliation change
* 322 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because the groupchat has been changed to members-only and the user is not a member
* 332 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of a system shutdown
*/
_converse.muc={
info_messages:{
100:__('This groupchat is not anonymous'),
102:__('This groupchat now shows unavailable members'),
103:__('This groupchat does not show unavailable members'),
104:__('The groupchat configuration has changed'),
170:__('groupchat logging is now enabled'),
171:__('groupchat logging is now disabled'),
172:__('This groupchat is now no longer anonymous'),
173:__('This groupchat is now semi-anonymous'),
174:__('This groupchat is now fully-anonymous'),
201:__('A new groupchat has been created')
},
new_nickname_messages:{
// XXX: Note the triple underscore function and not double underscore.
210:___('Your nickname has been automatically set to %1$s'),
303:___('Your nickname has been changed to %1$s')
},
disconnect_messages:{
301:__('You have been banned from this groupchat'),
307:__('You have been kicked from this groupchat'),
321:__("You have been removed from this groupchat because of an affiliation change"),
322:__("You have been removed from this groupchat because the groupchat has changed to members-only and you're not a member"),
332:__("You have been removed from this groupchat because the service hosting it is being shut down")
},
action_info_messages:{
// XXX: Note the triple underscore function and not double underscore.
301:___("%1$s has been banned"),
303:___("%1$s's nickname has changed"),
307:___("%1$s has been kicked out"),
321:___("%1$s has been removed because of an affiliation change"),
322:___("%1$s has been removed for not being a member")