From 3175bddc4687ec1bcf4e7732584b2b6029c903dc Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 1 Jan 2015 05:52:10 +0100 Subject: [PATCH 01/81] Initial work on adding support for sending and chat states. --- converse.js | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/converse.js b/converse.js index f71d58a53..5f4a26f72 100644 --- a/converse.js +++ b/converse.js @@ -1191,9 +1191,29 @@ }, keyPressed: function (ev) { + var sendChatState = function () { + if (this.model.get('chat_state', 'composing')) { + this.model.set('chat_state', 'paused'); + converse.connection.send( + $msg({'to':this.model.get('jid'), 'type': 'chat'}) + .c('paused', {'xmlns':'http://jabber.org/protocol/chatstates'}) + ); + // TODO: Set a new timeout here to send a chat_state of + } + }; var $textarea = $(ev.target), - message, notify, composing; - if(ev.keyCode == KEY.ENTER) { + args = arguments, + context = this, + message; + var later = function() { + delete this.chat_state_timeout; + sendChatState.apply(context, args); + }; + if (typeof this.chat_state_timeout !== 'undefined') { + clearTimeout(this.chat_state_timeout); + delete this.chat_state_timeout; // XXX: Necessary? + } + if (ev.keyCode == KEY.ENTER) { ev.preventDefault(); message = $textarea.val(); $textarea.val('').focus(); @@ -1205,19 +1225,21 @@ } converse.emit('messageSend', message); } - this.$el.data('composing', false); + this.model.set('chat_state', null); + // TODO: need to put timeout for state here? } else if (!this.model.get('chatroom')) { - // composing data is only for single user chat - composing = this.$el.data('composing'); - if (!composing) { + // chat state data is only for single user chat + this.chat_state_timeout = setTimeout(later, 10000); + if (this.model.get('chat_state') != "composing") { if (ev.keyCode != 47) { // We don't send composing messages if the message // starts with forward-slash. - notify = $msg({'to':this.model.get('jid'), 'type': 'chat'}) - .c('composing', {'xmlns':'http://jabber.org/protocol/chatstates'}); - converse.connection.send(notify); + converse.connection.send( + $msg({'to':this.model.get('jid'), 'type': 'chat'}) + .c('composing', {'xmlns':'http://jabber.org/protocol/chatstates'}) + ); } - this.$el.data('composing', true); + this.model.set('chat_state', 'composing'); } } }, From bb468ae0a3748a790120f6edb29f28838d1952e4 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 1 Jan 2015 21:25:12 +0100 Subject: [PATCH 02/81] Add better support for XEP-0085. closes #292 Converse.js will now send chat state notifications of , and when the user has stopped typing for 30 seconds, 2 minutes and 10 minutes respectively. --- converse.js | 213 ++++++++++++++++++++++++----------------------- docs/CHANGES.rst | 1 + spec/chatbox.js | 169 ++++++++++++++++++++++++++++++++++++- 3 files changed, 277 insertions(+), 106 deletions(-) diff --git a/converse.js b/converse.js index 5f4a26f72..0f92c2cc3 100644 --- a/converse.js +++ b/converse.js @@ -167,6 +167,7 @@ Strophe.error = function (msg) { console.log('ERROR: '+msg); }; // Add Strophe Namespaces + Strophe.addNamespace('CHATSTATES', 'http://jabber.org/protocol/chatstates'); Strophe.addNamespace('REGISTER', 'jabber:iq:register'); Strophe.addNamespace('XFORM', 'jabber:x:data'); @@ -187,7 +188,8 @@ var VERIFIED= 2; var FINISHED = 3; var KEY = { - ENTER: 13 + ENTER: 13, + FORWARD_SLASH: 47 }; var STATUS_WEIGHTS = { 'offline': 6, @@ -197,11 +199,20 @@ 'dnd': 2, 'online': 1 }; + + // XEP-0085 Chat states + // http://xmpp.org/extensions/xep-0085.html var INACTIVE = 'inactive'; var ACTIVE = 'active'; var COMPOSING = 'composing'; var PAUSED = 'paused'; var GONE = 'gone'; + this.TIMEOUTS = { // Set as module attr so that we can override in tests. + 'PAUSED': 30000, + 'INACTIVE': 90000, + 'GONE': 510000 + }; + var HAS_CSPRNG = ((typeof crypto !== 'undefined') && ((typeof crypto.randomBytes === 'function') || (typeof crypto.getRandomValues === 'function') @@ -711,15 +722,16 @@ this.messages.browserStorage = new Backbone.BrowserStorage[converse.storage]( b64_sha1('converse.messages'+this.get('jid')+converse.bare_jid)); this.save({ + 'chat_state': ACTIVE, 'box_id' : b64_sha1(this.get('jid')), 'height': height, 'minimized': this.get('minimized') || false, + 'num_unread': this.get('num_unread') || 0, 'otr_status': this.get('otr_status') || UNENCRYPTED, 'time_minimized': this.get('time_minimized') || moment(), 'time_opened': this.get('time_opened') || moment().valueOf(), - 'user_id' : Strophe.getNodeFromJid(this.get('jid')), - 'num_unread': this.get('num_unread') || 0, - 'url': '' + 'url': '', + 'user_id' : Strophe.getNodeFromJid(this.get('jid')) }); } else { this.set({ @@ -872,8 +884,8 @@ createMessage: function ($message) { var body = $message.children('body').text(), - composing = $message.find('composing'), - paused = $message.find('paused'), + composing = $message.find(COMPOSING), + paused = $message.find(PAUSED), delayed = $message.find('delay').length > 0, fullname = this.get('fullname'), is_groupchat = $message.attr('type') === 'groupchat', @@ -976,10 +988,14 @@ this.model.messages.on('add', this.onMessageAdded, this); this.model.on('show', this.show, this); this.model.on('destroy', this.hide, this); - this.model.on('change', this.onChange, this); + // TODO check for changed fullname as well + this.model.on('change:chat_state', this.sendChatState, this); + this.model.on('change:chat_status', this.onChatStatusChanged, this); + this.model.on('change:image', this.renderAvatar, this); + this.model.on('change:otr_status', this.onOTRStatusChanged, this); + this.model.on('change:minimized', this.onMinimizedChanged, this); + this.model.on('change:status', this.onStatusChanged, this); this.model.on('showOTRError', this.showOTRError, this); - // XXX: doesn't look like this event is being used? - this.model.on('buddyStartsOTR', this.buddyStartsOTR, this); this.model.on('showHelpMessages', this.showHelpMessages, this); this.model.on('sendMessageStanza', this.sendMessageStanza, this); this.model.on('showSentOTRMessage', function (text) { @@ -1140,7 +1156,7 @@ var bare_jid = this.model.get('jid'); var message = $msg({from: converse.connection.jid, to: bare_jid, type: 'chat', id: timestamp}) .c('body').t(text).up() - .c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'}); + .c(ACTIVE, {'xmlns': Strophe.NS.CHATSTATES}); converse.connection.send(message); if (converse.forward_messages) { // Forward the message, so that other connected resources are also aware of it. @@ -1190,25 +1206,40 @@ } }, + sendChatState: function () { + /* XEP-0085 Chat State Notifications. + * Sends a message with the status of the user in this chat session + * as taken from the 'chat_state' attribute of the chat box. + */ + converse.connection.send( + $msg({'to':this.model.get('jid'), 'type': 'chat'}) + .c(this.model.get('chat_state'), {'xmlns': Strophe.NS.CHATSTATES}) + ); + }, + + escalateChatState: function () { + /* XEP-0085 Chat State Notifications. + * This method gets called asynchronously via setTimeout. It escalates the + * chat state and depending on the current state can set a new timeout. + */ + delete this.chat_state_timeout; + if (this.model.get('chat_state') == COMPOSING) { + this.model.set('chat_state', PAUSED); + // From now on, if no activity in 2 mins, we'll set the + // state to + this.chat_state_timeout = setTimeout($.proxy(this.escalateChatState, this), converse.TIMEOUTS.INACTIVE); + } else if (this.model.get('chat_state') == PAUSED) { + this.model.set('chat_state', INACTIVE); + // From now on, if no activity in 10 mins, we'll set the + // state to + this.chat_state_timeout = setTimeout($.proxy(this.escalateChatState, this), converse.TIMEOUTS.GONE); + } else if (this.model.get('chat_state') == INACTIVE) { + this.model.set('chat_state', GONE); + } + }, + keyPressed: function (ev) { - var sendChatState = function () { - if (this.model.get('chat_state', 'composing')) { - this.model.set('chat_state', 'paused'); - converse.connection.send( - $msg({'to':this.model.get('jid'), 'type': 'chat'}) - .c('paused', {'xmlns':'http://jabber.org/protocol/chatstates'}) - ); - // TODO: Set a new timeout here to send a chat_state of - } - }; - var $textarea = $(ev.target), - args = arguments, - context = this, - message; - var later = function() { - delete this.chat_state_timeout; - sendChatState.apply(context, args); - }; + var $textarea = $(ev.target), message; if (typeof this.chat_state_timeout !== 'undefined') { clearTimeout(this.chat_state_timeout); delete this.chat_state_timeout; // XXX: Necessary? @@ -1225,21 +1256,15 @@ } converse.emit('messageSend', message); } - this.model.set('chat_state', null); - // TODO: need to put timeout for state here? + this.model.set('chat_state', ACTIVE); } else if (!this.model.get('chatroom')) { - // chat state data is only for single user chat - this.chat_state_timeout = setTimeout(later, 10000); - if (this.model.get('chat_state') != "composing") { - if (ev.keyCode != 47) { - // We don't send composing messages if the message - // starts with forward-slash. - converse.connection.send( - $msg({'to':this.model.get('jid'), 'type': 'chat'}) - .c('composing', {'xmlns':'http://jabber.org/protocol/chatstates'}) - ); - } - this.model.set('chat_state', 'composing'); + // chat state data is currently only for single user chat + // Concerning group chat: http://xmpp.org/extensions/xep-0085.html#bizrules-groupchat + this.chat_state_timeout = setTimeout($.proxy(this.escalateChatState, this), converse.TIMEOUTS.PAUSED); + if (this.model.get('chat_state') != COMPOSING && ev.keyCode != KEY.FORWARD_SLASH) { + // Set chat state to composing if keyCode is not a forward-slash + // (which would imply an internal command and not a message). + this.model.set('chat_state', COMPOSING); } } }, @@ -1317,11 +1342,6 @@ console.log("OTR ERROR:"+msg); }, - buddyStartsOTR: function (ev) { - this.showHelpMessages([__('This user has requested an encrypted session.')]); - this.model.initiateOTR(); - }, - startOTRFromToolbar: function (ev) { $(ev.target).parent().parent().slideUp(); ev.stopPropagation(); @@ -1372,46 +1392,43 @@ }); }, - onChange: function (item, changed) { - if (_.has(item.changed, 'chat_status')) { - var chat_status = item.get('chat_status'), - fullname = item.get('fullname'); - fullname = _.isEmpty(fullname)? item.get('jid'): fullname; - if (this.$el.is(':visible')) { - if (chat_status === 'offline') { - this.showStatusNotification(fullname+' '+'has gone offline'); - } else if (chat_status === 'away') { - this.showStatusNotification(fullname+' '+'has gone away'); - } else if ((chat_status === 'dnd')) { - this.showStatusNotification(fullname+' '+'is busy'); - } else if (chat_status === 'online') { - this.$el.find('div.chat-event').remove(); - } - } - converse.emit('contactStatusChanged', item.attributes, item.get('chat_status')); - // TODO: DEPRECATED AND SHOULD BE REMOVED IN 0.9.0 - converse.emit('buddyStatusChanged', item.attributes, item.get('chat_status')); - } - if (_.has(item.changed, 'status')) { - this.showStatusMessage(); - converse.emit('contactStatusMessageChanged', item.attributes, item.get('status')); - // TODO: DEPRECATED AND SHOULD BE REMOVED IN 0.9.0 - converse.emit('buddyStatusMessageChanged', item.attributes, item.get('status')); - } - if (_.has(item.changed, 'image')) { - this.renderAvatar(); - } - if (_.has(item.changed, 'otr_status')) { - this.renderToolbar().informOTRChange(); - } - if (_.has(item.changed, 'minimized')) { - if (item.get('minimized')) { - this.hide(); - } else { - this.maximize(); + onChatStatusChanged: function (item) { + var chat_status = item.get('chat_status'), + fullname = item.get('fullname'); + fullname = _.isEmpty(fullname)? item.get('jid'): fullname; + if (this.$el.is(':visible')) { + if (chat_status === 'offline') { + this.showStatusNotification(fullname+' '+'has gone offline'); + } else if (chat_status === 'away') { + this.showStatusNotification(fullname+' '+'has gone away'); + } else if ((chat_status === 'dnd')) { + this.showStatusNotification(fullname+' '+'is busy'); + } else if (chat_status === 'online') { + this.$el.find('div.chat-event').remove(); } } - // TODO check for changed fullname as well + converse.emit('contactStatusChanged', item.attributes, item.get('chat_status')); + // TODO: DEPRECATED AND SHOULD BE REMOVED IN 0.9.0 + converse.emit('buddyStatusChanged', item.attributes, item.get('chat_status')); + }, + + onStatusChanged: function (item) { + this.showStatusMessage(); + converse.emit('contactStatusMessageChanged', item.attributes, item.get('status')); + // TODO: DEPRECATED AND SHOULD BE REMOVED IN 0.9.0 + converse.emit('buddyStatusMessageChanged', item.attributes, item.get('status')); + }, + + onOTRStatusChanged: function (item) { + this.renderToolbar().informOTRChange(); + }, + + onMinimizedChanged: function (item) { + if (item.get('minimized')) { + this.hide(); + } else { + this.maximize(); + } }, showStatusMessage: function (msg) { @@ -3032,9 +3049,9 @@ }, showChat: function (attrs) { - /* Find the chat box and show it. - * If it doesn't exist, create it. + /* Find the chat box and show it. If it doesn't exist, create it. */ + // TODO: Send the chat state ACTIVE to the contact once the chat box is opened. var chatbox = this.model.get(attrs.jid); if (!chatbox) { chatbox = this.model.create(attrs, { @@ -3055,7 +3072,6 @@ this.MinimizedChatBoxView = Backbone.View.extend({ tagName: 'div', className: 'chat-head', - events: { 'click .close-chatbox-button': 'close', 'click .restore-chat': 'restore' @@ -3063,7 +3079,7 @@ initialize: function () { this.model.messages.on('add', function (m) { - if (!(m.get('composing') || m.get('paused'))) { + if (!(m.get(COMPOSING) || m.get(PAUSED))) { this.updateUnreadMessagesCounter(); } }, this); @@ -3106,9 +3122,7 @@ }, restore: _.debounce(function (ev) { - if (ev && ev.preventDefault) { - ev.preventDefault(); - } + if (ev && ev.preventDefault) { ev.preventDefault(); } this.model.messages.off('add',null,this); this.remove(); this.model.maximize(); @@ -3117,7 +3131,6 @@ this.MinimizedChats = Backbone.Overview.extend({ el: "#minimized-chats", - events: { "click #toggle-minimized-chats": "toggle" }, @@ -3348,17 +3361,7 @@ openChat: function (ev) { if (ev && ev.preventDefault) { ev.preventDefault(); } - // XXX: Can this.model.attributes be used here, instead of - // manually specifying all attributes? - return converse.chatboxviews.showChat({ - 'id': this.model.get('jid'), - 'jid': this.model.get('jid'), - 'fullname': this.model.get('fullname'), - 'image_type': this.model.get('image_type'), - 'image': this.model.get('image'), - 'url': this.model.get('url'), - 'status': this.model.get('status') - }); + return converse.chatboxviews.showChat(this.model.attributes); }, removeContact: function (ev) { @@ -4457,7 +4460,7 @@ * TODO: these features need to be added in the relevant * feature-providing Models, not here */ - converse.connection.disco.addFeature('http://jabber.org/protocol/chatstates'); // Limited support + converse.connection.disco.addFeature(Strophe.NS.CHATSTATES); converse.connection.disco.addFeature('http://jabber.org/protocol/rosterx'); // Limited support converse.connection.disco.addFeature('jabber:x:conference'); converse.connection.disco.addFeature('urn:xmpp:carbons:2'); diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 8ecc28bec..d310b1ba9 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -7,6 +7,7 @@ Changelog * Norwegian Bokmål translations. [Andreas Lorentsen] * Updated Afrikaans translations. [jcbrand] * Add responsiveness to CSS. We now use Sass preprocessor for generating CSS. [jcbrand] +* #292 Better support for XEP-0085 Chat State Notifications. [jcbrand] 0.8.6 (2014-12-07) ------------------ diff --git a/spec/chatbox.js b/spec/chatbox.js index 4e0eb6dbc..5b1f6a146 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -408,11 +408,48 @@ runs(function () {}); }); + it("can indicate a chat state notification", $.proxy(function () { + // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions + spyOn(converse, 'emit'); + var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; + + // state + var msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('composing', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + var chatboxview = this.chatboxviews.get(sender_jid); + expect(chatboxview).toBeDefined(); + // Check that the notification appears inside the chatbox in the DOM + var $events = chatboxview.$el.find('.chat-event'); + expect($events.length).toBe(1); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' is typing'); + + // state + msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('paused', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + $events = chatboxview.$el.find('.chat-event'); + expect($events.length).toBe(1); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); + }, converse)); + it("can be received which will open a chatbox and be displayed inside it", $.proxy(function () { spyOn(converse, 'emit'); var message = 'This is a received message'; var sender_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; - msg = $msg({ + var msg = $msg({ from: sender_jid, to: this.connection.jid, type: 'chat', @@ -691,6 +728,136 @@ }, converse)); }, converse)); + + describe("A Chat Status Notification", $.proxy(function () { + + describe("A composing notifciation", $.proxy(function () { + it("is sent as soon as the user starts typing a message which is not a command", $.proxy(function () { + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + expect(view.model.get('chat_state')).toBe('active'); + spyOn(this.connection, 'send'); + view.keyPressed({ + target: view.$el.find('textarea.chat-textarea'), + keyCode: 1 + }); + expect(view.model.get('chat_state')).toBe('composing'); + expect(this.connection.send).toHaveBeenCalled(); + var $stanza = $(this.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('composing'); + + // The notification is not sent again + view.keyPressed({ + target: view.$el.find('textarea.chat-textarea'), + keyCode: 1 + }); + expect(view.model.get('chat_state')).toBe('composing'); + expect(converse.emit.callCount, 1); + }, converse)); + }, converse)); + + describe("A paused notification", $.proxy(function () { + it("is sent if the user has stopped typing since 30 seconds", $.proxy(function () { + this.TIMEOUTS.PAUSED = 200; // Make the timeout shorter so that we can test + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + runs(function () { + expect(view.model.get('chat_state')).toBe('active'); + view.keyPressed({ + target: view.$el.find('textarea.chat-textarea'), + keyCode: 1 + }); + expect(view.model.get('chat_state')).toBe('composing'); + spyOn(converse.connection, 'send'); + }); + waits(250); + runs(function () { + expect(view.model.get('chat_state')).toBe('paused'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('paused'); + }); + }, converse)); + }, converse)); + + describe("An inactive notifciation", $.proxy(function () { + it("is sent if the user has stopped typing since 2 minutes", $.proxy(function () { + // Make the timeouts shorter so that we can test + this.TIMEOUTS.PAUSED = 200; + this.TIMEOUTS.INACTIVE = 200; + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + runs(function () { + expect(view.model.get('chat_state')).toBe('active'); + view.keyPressed({ + target: view.$el.find('textarea.chat-textarea'), + keyCode: 1 + }); + expect(view.model.get('chat_state')).toBe('composing'); + }); + waits(250); + runs(function () { + expect(view.model.get('chat_state')).toBe('paused'); + spyOn(converse.connection, 'send'); + }); + waits(250); + runs(function () { + expect(view.model.get('chat_state')).toBe('inactive'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('inactive'); + }); + }, converse)); + }, converse)); + + describe("An gone notifciation", $.proxy(function () { + it("is sent if the user has stopped typing since 10 minutes", $.proxy(function () { + // Make the timeouts shorter so that we can test + this.TIMEOUTS.PAUSED = 200; + this.TIMEOUTS.INACTIVE = 200; + this.TIMEOUTS.GONE = 200; + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + runs(function () { + expect(view.model.get('chat_state')).toBe('active'); + view.keyPressed({ + target: view.$el.find('textarea.chat-textarea'), + keyCode: 1 + }); + expect(view.model.get('chat_state')).toBe('composing'); + }); + waits(250); + runs(function () { + expect(view.model.get('chat_state')).toBe('paused'); + }); + waits(250); + runs(function () { + expect(view.model.get('chat_state')).toBe('inactive'); + spyOn(converse.connection, 'send'); + }); + waits(250); + runs(function () { + expect(view.model.get('chat_state')).toBe('gone'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('gone'); + }); + }, converse)); + }, converse)); + + }, converse)); }, converse)); describe("Special Messages", $.proxy(function () { From 2b2b176189cc8c4b2de4f5a3675c6ea552a3a3e0 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 1 Jan 2015 23:08:54 +0100 Subject: [PATCH 03/81] The approve/reject links for a requesting contact where obscured. --- css/converse.css | 10 +++++----- sass/converse.scss | 8 +++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/css/converse.css b/css/converse.css index 437fecd6b..9e320872c 100644 --- a/css/converse.css +++ b/css/converse.css @@ -724,8 +724,7 @@ text-overflow: ellipsis; margin-left: 3px; } #conversejs #converse-roster dd span { - padding: 0 5px 0 0; - margin-left: 3px; } + padding: 0 5px 0 0; } #conversejs #converse-roster dd a.decline-xmpp-request { margin-left: 5px; } #conversejs #converse-roster dd a.remove-xmpp-contact { @@ -745,8 +744,11 @@ color: #436F64; } #conversejs #converse-roster dd a.open-chat { width: 80%; } - #conversejs #converse-roster span.pending-contact-name, #conversejs #converse-roster span.req-contact-name { + #conversejs #converse-roster span.pending-contact-name { width: 80%; } + #conversejs #converse-roster span.req-contact-name { + width: 73%; + padding: 0; } #conversejs dd.available-chatroom { display: inline-block; overflow-x: hidden; @@ -1235,5 +1237,3 @@ margin-left: 0; cursor: n-resize; z-index: 20; } - -/*# sourceMappingURL=converse.css.map */ diff --git a/sass/converse.scss b/sass/converse.scss index aaa939eeb..556c507a0 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -773,7 +773,6 @@ } span { padding: 0 5px 0 0; - margin-left: 3px; } a { &.decline-xmpp-request { @@ -806,10 +805,13 @@ } } span { - &.pending-contact-name, - &.req-contact-name { + &.pending-contact-name { width: 80%; } + &.req-contact-name { + width: 69%; + padding: 0; + } } } From 4843f7efc2cd64241f21e2c51f012e345378c9c4 Mon Sep 17 00:00:00 2001 From: Guillermo Bonvehi Date: Mon, 5 Jan 2015 03:32:58 -0300 Subject: [PATCH 04/81] Add fullname and jid to contact's tooltip in roster It seems title attributes are limited to 512 chars, we will have to live with that unless a custom tooltip is used. --- mockup/index.html | 10 +++++++--- spec/controlbox.js | 28 +++++++++++++++++++++++---- src/templates/pending_contact.html | 3 ++- src/templates/requesting_contact.html | 3 ++- src/templates/roster_item.html | 4 +++- 5 files changed, 38 insertions(+), 10 deletions(-) diff --git a/mockup/index.html b/mockup/index.html index cf08008f4..d523ba11d 100644 --- a/mockup/index.html +++ b/mockup/index.html @@ -143,7 +143,9 @@ Colleagues
- + Victor Matfield @@ -215,7 +217,8 @@ Contact Requests
- Bob Skinstad + Bob Skinstad @@ -232,7 +235,8 @@
Pending Contacts
-
Rassie Erasmus +
Rassie Erasmus
Victor Matfield diff --git a/spec/controlbox.js b/spec/controlbox.js index d87fb7bbf..e7f90283d 100644 --- a/spec/controlbox.js +++ b/spec/controlbox.js @@ -971,10 +971,15 @@ describe("All Contacts", $.proxy(function () { beforeEach($.proxy(function () { - utils.clearBrowserStorage(); - converse.rosterview.model.reset(); - utils.createContacts('all').openControlBox(); - utils.openContactsPanel(); + runs(function () { + utils.clearBrowserStorage(); + converse.rosterview.model.reset(); + utils.createContacts('all').openControlBox(); + }); + waits(50); + runs(function () { + utils.openContactsPanel(); + }); }, converse)); it("are saved to, and can be retrieved from, browserStorage", $.proxy(function () { @@ -998,6 +1003,21 @@ expect(_.isEqual(new_attrs.sort(), old_attrs.sort())).toEqual(true); } }, converse)); + + it("will show fullname and jid properties on tooltip", $.proxy(function () { + var jid, name, i, t; + for (i=0; i{{fullname}} +{{fullname}} diff --git a/src/templates/requesting_contact.html b/src/templates/requesting_contact.html index a86b6f6e5..b7cba29be 100644 --- a/src/templates/requesting_contact.html +++ b/src/templates/requesting_contact.html @@ -1,4 +1,5 @@ -{{fullname}} +{{fullname}} diff --git a/src/templates/roster_item.html b/src/templates/roster_item.html index 279349b7d..85c40fe57 100644 --- a/src/templates/roster_item.html +++ b/src/templates/roster_item.html @@ -1,2 +1,4 @@ -{{fullname}} +{{fullname}} From f7566d029991e53c31e3dcd431d1e61a40a97d45 Mon Sep 17 00:00:00 2001 From: Guillermo Bonvehi Date: Mon, 5 Jan 2015 12:40:01 -0300 Subject: [PATCH 05/81] Add related issues solved #252 and #253 to CHANGES.rst --- docs/CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 8ecc28bec..20c00e96c 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -7,6 +7,7 @@ Changelog * Norwegian Bokmål translations. [Andreas Lorentsen] * Updated Afrikaans translations. [jcbrand] * Add responsiveness to CSS. We now use Sass preprocessor for generating CSS. [jcbrand] +* Add fullname and jid to contact's tooltip in roster, solves #252 and #253. [gbonvehi] 0.8.6 (2014-12-07) ------------------ From 3bbdafcb9d97515c0d3d5defafd4d58ce2e6ed45 Mon Sep 17 00:00:00 2001 From: Guillermo Bonvehi Date: Mon, 5 Jan 2015 14:08:40 -0300 Subject: [PATCH 06/81] Closes #295: allow_registration is now mentioned in configuration doc --- docs/source/configuration.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index 67bf96116..992124aa8 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -53,6 +53,15 @@ Default: ``true`` Allow Off-the-record encryption of single-user chat messages. +allow_registration +--------- + +Default: ``true`` + +Support for `XEP-0077: In band registration `_ + +Allow XMPP account registration showing the corresponding UI register form interface. + animate ------- From a666ba467dff0217fac0a5a0d4bf6ec1fbc8ba0b Mon Sep 17 00:00:00 2001 From: Guillermo Bonvehi Date: Tue, 6 Jan 2015 00:29:00 -0300 Subject: [PATCH 07/81] added #295 document allow_registration to changes.rst --- docs/CHANGES.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 8ecc28bec..2f870f008 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -7,6 +7,7 @@ Changelog * Norwegian Bokmål translations. [Andreas Lorentsen] * Updated Afrikaans translations. [jcbrand] * Add responsiveness to CSS. We now use Sass preprocessor for generating CSS. [jcbrand] +* #295 Document "allow_registration". [gbonvehi] 0.8.6 (2014-12-07) ------------------ From b4d53aaa94ba170cad4e2d723bbb77ec13c44b48 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 9 Jan 2015 09:02:35 +0100 Subject: [PATCH 08/81] Some refactoring of chat states work. updates #292 - Don't add a timeout for the GONE state. - Change state to GONE when the user closes the chat box. - Change the state to inactive when the user minimizes the chat box. - Change the state to active when the users maximizes the chat box. - Add more tests for chat states. --- converse.js | 95 ++++++++++++--------- spec/chatbox.js | 217 +++++++++++++++++++++++++++++++----------------- tests/utils.js | 4 +- 3 files changed, 201 insertions(+), 115 deletions(-) diff --git a/converse.js b/converse.js index 0f92c2cc3..4c43c7a55 100644 --- a/converse.js +++ b/converse.js @@ -208,7 +208,7 @@ var PAUSED = 'paused'; var GONE = 'gone'; this.TIMEOUTS = { // Set as module attr so that we can override in tests. - 'PAUSED': 30000, + 'PAUSED': 20000, 'INACTIVE': 90000, 'GONE': 510000 }; @@ -722,7 +722,9 @@ this.messages.browserStorage = new Backbone.BrowserStorage[converse.storage]( b64_sha1('converse.messages'+this.get('jid')+converse.bare_jid)); this.save({ - 'chat_state': ACTIVE, + // The chat_state will be set to ACTIVE once the chat box is opened + // and we listen for change:chat_state, so shouldn't set it to ACTIVE here. + 'chat_state': undefined, 'box_id' : b64_sha1(this.get('jid')), 'height': height, 'minimized': this.get('minimized') || false, @@ -973,6 +975,8 @@ 'click .close-chatbox-button': 'close', 'click .toggle-chatbox-button': 'minimize', 'keypress textarea.chat-textarea': 'keyPressed', + 'focus textarea.chat-textarea': 'chatBoxFocused', + 'blur textarea.chat-textarea': 'chatBoxBlurred', 'click .toggle-smiley': 'toggleEmoticonMenu', 'click .toggle-smiley ul li': 'insertEmoticon', 'click .toggle-clear': 'clearMessages', @@ -1146,8 +1150,7 @@ }, sendMessageStanza: function (text) { - /* - * Sends the actual XML stanza to the XMPP server. + /* Sends the actual XML stanza to the XMPP server. */ // TODO: Look in ChatPartners to see what resources we have for the recipient. // if we have one resource, we sent to only that resources, if we have multiple @@ -1207,9 +1210,9 @@ }, sendChatState: function () { - /* XEP-0085 Chat State Notifications. - * Sends a message with the status of the user in this chat session + /* Sends a message with the status of the user in this chat session * as taken from the 'chat_state' attribute of the chat box. + * See XEP-0085 Chat State Notifications. */ converse.connection.send( $msg({'to':this.model.get('jid'), 'type': 'chat'}) @@ -1217,33 +1220,40 @@ ); }, - escalateChatState: function () { - /* XEP-0085 Chat State Notifications. - * This method gets called asynchronously via setTimeout. It escalates the - * chat state and depending on the current state can set a new timeout. + setChatState: function (state, no_save) { + /* Mutator for setting the chat state of this chat session. + * Handles clearing of any chat state notification timeouts and + * setting new ones if necessary. + * Timeouts are set when the state being set is COMPOSING or PAUSED. + * After the timeout, COMPOSING will become PAUSED and PAUSED will become INACTIVE. + * See XEP-0085 Chat State Notifications. + * + * Parameters: + * (string) state - The chat state (consts ACTIVE, COMPOSING, PAUSED, INACTIVE, GONE) + * (no_save) no_save - Just do the cleanup or setup but don't actually save the state. */ - delete this.chat_state_timeout; - if (this.model.get('chat_state') == COMPOSING) { - this.model.set('chat_state', PAUSED); - // From now on, if no activity in 2 mins, we'll set the - // state to - this.chat_state_timeout = setTimeout($.proxy(this.escalateChatState, this), converse.TIMEOUTS.INACTIVE); - } else if (this.model.get('chat_state') == PAUSED) { - this.model.set('chat_state', INACTIVE); - // From now on, if no activity in 10 mins, we'll set the - // state to - this.chat_state_timeout = setTimeout($.proxy(this.escalateChatState, this), converse.TIMEOUTS.GONE); - } else if (this.model.get('chat_state') == INACTIVE) { - this.model.set('chat_state', GONE); + if (_.contains([ACTIVE, INACTIVE, GONE], state)) { + if (typeof this.chat_state_timeout !== 'undefined') { + clearTimeout(this.chat_state_timeout); + delete this.chat_state_timeout; + } + } else if (state === COMPOSING) { + this.chat_state_timeout = setTimeout( + $.proxy(this.setChatState, this), converse.TIMEOUTS.PAUSED, PAUSED); + } else if (state === PAUSED) { + this.chat_state_timeout = setTimeout( + $.proxy(this.setChatState, this), converse.TIMEOUTS.INACTIVE, INACTIVE); } + if (!no_save && this.model.get('chat_state') != state) { + this.model.set('chat_state', state); + } + return this; }, keyPressed: function (ev) { + /* Event handler for when a key is pressed in a chat box textarea. + */ var $textarea = $(ev.target), message; - if (typeof this.chat_state_timeout !== 'undefined') { - clearTimeout(this.chat_state_timeout); - delete this.chat_state_timeout; // XXX: Necessary? - } if (ev.keyCode == KEY.ENTER) { ev.preventDefault(); message = $textarea.val(); @@ -1256,19 +1266,24 @@ } converse.emit('messageSend', message); } - this.model.set('chat_state', ACTIVE); - } else if (!this.model.get('chatroom')) { - // chat state data is currently only for single user chat - // Concerning group chat: http://xmpp.org/extensions/xep-0085.html#bizrules-groupchat - this.chat_state_timeout = setTimeout($.proxy(this.escalateChatState, this), converse.TIMEOUTS.PAUSED); - if (this.model.get('chat_state') != COMPOSING && ev.keyCode != KEY.FORWARD_SLASH) { - // Set chat state to composing if keyCode is not a forward-slash - // (which would imply an internal command and not a message). - this.model.set('chat_state', COMPOSING); - } + this.setChatState(ACTIVE); + } else if (!this.model.get('chatroom')) { // chat state data is currently only for single user chat + // Set chat state to composing if keyCode is not a forward-slash + // (which would imply an internal command and not a message). + this.setChatState(COMPOSING, ev.keyCode==KEY.FORWARD_SLASH); } }, + chatBoxFocused: function (ev) { + ev.preventDefault(); + this.setChatState(ACTIVE); + }, + + chatBoxBlurred: function (ev) { + ev.preventDefault(); + this.setChatState(INACTIVE); + }, + onDragResizeStart: function (ev) { if (!converse.allow_dragresize) { return true; } // Record element attributes for mouseMove(). @@ -1446,6 +1461,7 @@ } else { this.model.trigger('hide'); } + this.setChatState(GONE); converse.emit('chatBoxClosed', this); return this; }, @@ -1454,7 +1470,7 @@ // Restores a minimized chat box this.$el.insertAfter(converse.chatboxviews.get("controlbox").$el).show('fast', $.proxy(function () { converse.refreshWebkit(); - this.focus(); + this.setChatState(ACTIVE).focus(); converse.emit('chatBoxMaximized', this); }, this)); }, @@ -1462,7 +1478,7 @@ minimize: function (ev) { if (ev && ev.preventDefault) { ev.preventDefault(); } // Minimizes a chat box - this.model.minimize(); + this.setChatState(INACTIVE).model.minimize(); this.$el.hide('fast', converse.refreshwebkit); converse.emit('chatBoxMinimized', this); }, @@ -1591,6 +1607,7 @@ this.model.save(); this.initDragResize(); } + this.setChatState(ACTIVE); return this; }, diff --git a/spec/chatbox.js b/spec/chatbox.js index 5b1f6a146..5742acd88 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -408,43 +408,6 @@ runs(function () {}); }); - it("can indicate a chat state notification", $.proxy(function () { - // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions - spyOn(converse, 'emit'); - var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; - - // state - var msg = $msg({ - from: sender_jid, - to: this.connection.jid, - type: 'chat', - id: (new Date()).getTime() - }).c('body').c('composing', {'xmlns': Strophe.NS.CHATSTATES}).tree(); - - this.chatboxes.onMessage(msg); - expect(converse.emit).toHaveBeenCalledWith('message', msg); - var chatboxview = this.chatboxviews.get(sender_jid); - expect(chatboxview).toBeDefined(); - // Check that the notification appears inside the chatbox in the DOM - var $events = chatboxview.$el.find('.chat-event'); - expect($events.length).toBe(1); - expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' is typing'); - - // state - msg = $msg({ - from: sender_jid, - to: this.connection.jid, - type: 'chat', - id: (new Date()).getTime() - }).c('body').c('paused', {'xmlns': Strophe.NS.CHATSTATES}).tree(); - - this.chatboxes.onMessage(msg); - expect(converse.emit).toHaveBeenCalledWith('message', msg); - $events = chatboxview.$el.find('.chat-event'); - expect($events.length).toBe(1); - expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); - }, converse)); - it("can be received which will open a chatbox and be displayed inside it", $.proxy(function () { spyOn(converse, 'emit'); var message = 'This is a received message'; @@ -552,7 +515,7 @@ expect(trimmed_chatboxes.keys().length).toBe(0); }, converse)); }, converse)); - + it("will indicate when it has a time difference of more than a day between it and its predecessor", $.proxy(function () { spyOn(converse, 'emit'); var contact_name = mock.cur_names[1]; @@ -731,7 +694,38 @@ describe("A Chat Status Notification", $.proxy(function () { - describe("A composing notifciation", $.proxy(function () { + describe("An active notification", $.proxy(function () { + it("is sent when the user opens a chat box", $.proxy(function () { + spyOn(converse.connection, 'send'); + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + expect(view.model.get('chat_state')).toBe('active'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('active'); + }, converse)); + + it("is sent when the user maximizes a minimized a chat box", $.proxy(function () { + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + view.minimize(); + expect(view.model.get('chat_state')).toBe('inactive'); + spyOn(converse.connection, 'send'); + view.maximize(); + expect(view.model.get('chat_state')).toBe('active'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('active'); + }, converse)); + }, converse)); + + describe("A composing notification", $.proxy(function () { it("is sent as soon as the user starts typing a message which is not a command", $.proxy(function () { var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; test_utils.openChatBoxFor(contact_jid); @@ -748,7 +742,7 @@ expect($stanza.attr('to')).toBe(contact_jid); expect($stanza.children().length).toBe(1); expect($stanza.children().prop('tagName')).toBe('composing'); - + // The notification is not sent again view.keyPressed({ target: view.$el.find('textarea.chat-textarea'), @@ -757,6 +751,28 @@ expect(view.model.get('chat_state')).toBe('composing'); expect(converse.emit.callCount, 1); }, converse)); + + it("will be shown if received", $.proxy(function () { + // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions + spyOn(converse, 'emit'); + var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; + + // state + var msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('composing', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + var chatboxview = this.chatboxviews.get(sender_jid); + expect(chatboxview).toBeDefined(); + // Check that the notification appears inside the chatbox in the DOM + var $events = chatboxview.$el.find('.chat-event'); + expect($events.length).toBe(1); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' is typing'); + }, converse)); }, converse)); describe("A paused notification", $.proxy(function () { @@ -784,12 +800,32 @@ expect($stanza.children().prop('tagName')).toBe('paused'); }); }, converse)); + + it("will be shown if received", $.proxy(function () { + // TODO: only show paused state if the previous state was composing + // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions + spyOn(converse, 'emit'); + var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; + // state + msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('paused', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + var chatboxview = this.chatboxviews.get(sender_jid); + $events = chatboxview.$el.find('.chat-event'); + expect($events.length).toBe(1); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); + }, converse)); }, converse)); describe("An inactive notifciation", $.proxy(function () { it("is sent if the user has stopped typing since 2 minutes", $.proxy(function () { // Make the timeouts shorter so that we can test - this.TIMEOUTS.PAUSED = 200; + this.TIMEOUTS.PAUSED = 200; this.TIMEOUTS.INACTIVE = 200; var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; test_utils.openChatBoxFor(contact_jid); @@ -817,46 +853,79 @@ expect($stanza.children().prop('tagName')).toBe('inactive'); }); }, converse)); - }, converse)); - describe("An gone notifciation", $.proxy(function () { - it("is sent if the user has stopped typing since 10 minutes", $.proxy(function () { - // Make the timeouts shorter so that we can test - this.TIMEOUTS.PAUSED = 200; - this.TIMEOUTS.INACTIVE = 200; - this.TIMEOUTS.GONE = 200; + it("is sent when the user a minimizes a chat box", $.proxy(function () { var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; test_utils.openChatBoxFor(contact_jid); var view = this.chatboxviews.get(contact_jid); - runs(function () { - expect(view.model.get('chat_state')).toBe('active'); - view.keyPressed({ - target: view.$el.find('textarea.chat-textarea'), - keyCode: 1 - }); - expect(view.model.get('chat_state')).toBe('composing'); - }); - waits(250); - runs(function () { - expect(view.model.get('chat_state')).toBe('paused'); - }); - waits(250); - runs(function () { - expect(view.model.get('chat_state')).toBe('inactive'); - spyOn(converse.connection, 'send'); - }); - waits(250); - runs(function () { - expect(view.model.get('chat_state')).toBe('gone'); - expect(converse.connection.send).toHaveBeenCalled(); - var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); - expect($stanza.attr('to')).toBe(contact_jid); - expect($stanza.children().length).toBe(1); - expect($stanza.children().prop('tagName')).toBe('gone'); - }); + spyOn(converse.connection, 'send'); + view.minimize(); + expect(view.model.get('chat_state')).toBe('inactive'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('inactive'); }, converse)); + + it("will be shown if received", $.proxy(function () { + // TODO: only show paused state if the previous state was composing + // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions + spyOn(converse, 'emit'); + var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; + // state + msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('paused', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + var chatboxview = this.chatboxviews.get(sender_jid); + $events = chatboxview.$el.find('.chat-event'); + expect($events.length).toBe(1); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); + }, converse)); + }, converse)); + describe("An gone notifciation", $.proxy(function () { + it("is sent if the user closes a chat box", $.proxy(function () { + var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(contact_jid); + var view = this.chatboxviews.get(contact_jid); + expect(view.model.get('chat_state')).toBe('active'); + spyOn(converse.connection, 'send'); + view.close(); + expect(view.model.get('chat_state')).toBe('gone'); + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.attr('to')).toBe(contact_jid); + expect($stanza.children().length).toBe(1); + expect($stanza.children().prop('tagName')).toBe('gone'); + }, converse)); + + xit("will be shown if received", $.proxy(function () { + // TODO: only show paused state if the previous state was composing + // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions + spyOn(converse, 'emit'); + var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; + // state + msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('gone', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + var chatboxview = this.chatboxviews.get(sender_jid); + $events = chatboxview.$el.find('.chat-event'); + expect($events.length).toBe(1); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); + }, converse)); + }, converse)); }, converse)); }, converse)); diff --git a/tests/utils.js b/tests/utils.js index cf9736637..98576072c 100644 --- a/tests/utils.js +++ b/tests/utils.js @@ -12,14 +12,14 @@ utils.createRequest = function (iq) { iq = typeof iq.tree == "function" ? iq.tree() : iq; var req = new Strophe.Request(iq, function() {}); - req.getResponse = function() { + req.getResponse = function() { var env = new Strophe.Builder('env', {type: 'mock'}).tree(); env.appendChild(iq); return env; }; return req; }; - + utils.closeAllChatBoxes = function () { var i, chatbox; for (i=converse.chatboxes.models.length-1; i>-1; i--) { From 607c2a81c9bb26e8d5c359a13fe7e6f6368c32b7 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 9 Jan 2015 10:48:36 +0100 Subject: [PATCH 09/81] Instead of GONE, set chat_state to INACTIVE when a box is closed. Also, fixed all broken tests. --- converse.js | 102 ++++++++++++++++++++++++------------------------ spec/chatbox.js | 54 ++++++++++++------------- 2 files changed, 76 insertions(+), 80 deletions(-) diff --git a/converse.js b/converse.js index 4c43c7a55..64e025986 100644 --- a/converse.js +++ b/converse.js @@ -209,10 +209,8 @@ var GONE = 'gone'; this.TIMEOUTS = { // Set as module attr so that we can override in tests. 'PAUSED': 20000, - 'INACTIVE': 90000, - 'GONE': 510000 + 'INACTIVE': 90000 }; - var HAS_CSPRNG = ((typeof crypto !== 'undefined') && ((typeof crypto.randomBytes === 'function') || (typeof crypto.getRandomValues === 'function') @@ -886,56 +884,48 @@ createMessage: function ($message) { var body = $message.children('body').text(), - composing = $message.find(COMPOSING), - paused = $message.find(PAUSED), delayed = $message.find('delay').length > 0, fullname = this.get('fullname'), is_groupchat = $message.attr('type') === 'groupchat', msgid = $message.attr('id'), - stamp, time, sender, from; + chat_state = $message.find(COMPOSING).length && COMPOSING || + $message.find(PAUSED).length && PAUSED || + $message.find(INACTIVE).length && INACTIVE || + $message.find(ACTIVE).length && ACTIVE || + $message.find(GONE).length && GONE, + stamp, time, sender, from, createMessage; if (is_groupchat) { from = Strophe.unescapeNode(Strophe.getResourceFromJid($message.attr('from'))); } else { from = Strophe.getBareJidFromJid($message.attr('from')); } - fullname = (_.isEmpty(fullname)? from: fullname).split(' ')[0]; - - if (!body) { - if (composing.length || paused.length) { - // FIXME: use one attribute for chat states (e.g. - // chatstate) instead of saving 'paused' and - // 'composing' separately. - this.messages.add({ - fullname: fullname, - sender: 'them', - delayed: delayed, - time: moment().format(), - composing: composing.length, - paused: paused.length - }); - } + fullname = (_.isEmpty(fullname) ? from: fullname).split(' ')[0]; + if (delayed) { + stamp = $message.find('delay').attr('stamp'); + time = stamp; } else { - if (delayed) { - stamp = $message.find('delay').attr('stamp'); - time = stamp; - } else { - time = moment().format(); - } - if ((is_groupchat && from === this.get('nick')) || (!is_groupchat && from == converse.bare_jid)) { - sender = 'me'; - } else { - sender = 'them'; - } - this.messages.create({ - fullname: fullname, - sender: sender, - delayed: delayed, - time: time, - message: body, - msgid: msgid - }); + time = moment().format(); } + if ((is_groupchat && from === this.get('nick')) || (!is_groupchat && from == converse.bare_jid)) { + sender = 'me'; + } else { + sender = 'them'; + } + if (!body) { + createMessage = this.messages.add; + } else { + createMessage = this.messages.create; + } + this.messages.create({ + chat_state: chat_state, + delayed: delayed, + fullname: fullname, + message: body || undefined, + msgid: msgid, + sender: sender, + time: time + }); }, receiveMessage: function ($message) { @@ -1134,12 +1124,20 @@ })); } } - if (message.get(COMPOSING)) { - this.showStatusNotification(message.get('fullname')+' '+__('is typing')); - return; - } else if (message.get(PAUSED)) { - this.showStatusNotification(message.get('fullname')+' '+__('has stopped typing')); - return; + if (!message.get('message')) { + if (message.get('chat_state') === COMPOSING) { + this.showStatusNotification(message.get('fullname')+' '+__('is typing')); + return; + } else if (message.get('chat_state') === PAUSED) { + this.showStatusNotification(message.get('fullname')+' '+__('has stopped typing')); + return; + } else if (_.contains([INACTIVE, ACTIVE], message.get('chat_state'))) { + this.$el.find('.chat-content div.chat-event').remove(); + return; + } else if (message.get('chat_state') === GONE) { + this.showStatusNotification(message.get('fullname')+' '+__('has gone away')); + return; + } } else { this.showMessage(_.clone(message.attributes)); } @@ -1413,11 +1411,11 @@ fullname = _.isEmpty(fullname)? item.get('jid'): fullname; if (this.$el.is(':visible')) { if (chat_status === 'offline') { - this.showStatusNotification(fullname+' '+'has gone offline'); + this.showStatusNotification(fullname+' '+__('has gone offline')); } else if (chat_status === 'away') { - this.showStatusNotification(fullname+' '+'has gone away'); + this.showStatusNotification(fullname+' '+__('has gone away')); } else if ((chat_status === 'dnd')) { - this.showStatusNotification(fullname+' '+'is busy'); + this.showStatusNotification(fullname+' '+__('is busy')); } else if (chat_status === 'online') { this.$el.find('div.chat-event').remove(); } @@ -1461,7 +1459,7 @@ } else { this.model.trigger('hide'); } - this.setChatState(GONE); + this.setChatState(INACTIVE); converse.emit('chatBoxClosed', this); return this; }, @@ -3096,7 +3094,7 @@ initialize: function () { this.model.messages.on('add', function (m) { - if (!(m.get(COMPOSING) || m.get(PAUSED))) { + if (m.get('message')) { this.updateUnreadMessagesCounter(); } }, this); diff --git a/spec/chatbox.js b/spec/chatbox.js index 5742acd88..ae9ed7329 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -868,29 +868,6 @@ expect($stanza.children().prop('tagName')).toBe('inactive'); }, converse)); - it("will be shown if received", $.proxy(function () { - // TODO: only show paused state if the previous state was composing - // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions - spyOn(converse, 'emit'); - var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; - // state - msg = $msg({ - from: sender_jid, - to: this.connection.jid, - type: 'chat', - id: (new Date()).getTime() - }).c('body').c('paused', {'xmlns': Strophe.NS.CHATSTATES}).tree(); - this.chatboxes.onMessage(msg); - expect(converse.emit).toHaveBeenCalledWith('message', msg); - var chatboxview = this.chatboxviews.get(sender_jid); - $events = chatboxview.$el.find('.chat-event'); - expect($events.length).toBe(1); - expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); - }, converse)); - - }, converse)); - - describe("An gone notifciation", $.proxy(function () { it("is sent if the user closes a chat box", $.proxy(function () { var contact_jid = mock.cur_names[0].replace(/ /g,'.').toLowerCase() + '@localhost'; test_utils.openChatBoxFor(contact_jid); @@ -898,17 +875,38 @@ expect(view.model.get('chat_state')).toBe('active'); spyOn(converse.connection, 'send'); view.close(); - expect(view.model.get('chat_state')).toBe('gone'); + expect(view.model.get('chat_state')).toBe('inactive'); expect(converse.connection.send).toHaveBeenCalled(); var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); expect($stanza.attr('to')).toBe(contact_jid); expect($stanza.children().length).toBe(1); - expect($stanza.children().prop('tagName')).toBe('gone'); + expect($stanza.children().prop('tagName')).toBe('inactive'); }, converse)); - xit("will be shown if received", $.proxy(function () { - // TODO: only show paused state if the previous state was composing + it("will clear any other chat status notifications if its received", $.proxy(function () { // See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions + spyOn(converse, 'emit'); + var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; + test_utils.openChatBoxFor(sender_jid); + var view = this.chatboxviews.get(sender_jid); + expect(view.$el.find('.chat-event').length).toBe(0); + view.showStatusNotification(sender_jid+' '+'is typing'); + expect(view.$el.find('.chat-event').length).toBe(1); + msg = $msg({ + from: sender_jid, + to: this.connection.jid, + type: 'chat', + id: (new Date()).getTime() + }).c('body').c('inactive', {'xmlns': Strophe.NS.CHATSTATES}).tree(); + this.chatboxes.onMessage(msg); + expect(converse.emit).toHaveBeenCalledWith('message', msg); + expect(view.$el.find('.chat-event').length).toBe(0); + }, converse)); + + }, converse)); + + describe("A gone notifciation", $.proxy(function () { + it("will be shown if received", $.proxy(function () { spyOn(converse, 'emit'); var sender_jid = mock.cur_names[1].replace(/ /g,'.').toLowerCase() + '@localhost'; // state @@ -923,7 +921,7 @@ var chatboxview = this.chatboxviews.get(sender_jid); $events = chatboxview.$el.find('.chat-event'); expect($events.length).toBe(1); - expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has stopped typing'); + expect($events.text()).toEqual(mock.cur_names[1].split(' ')[0] + ' has gone away'); }, converse)); }, converse)); }, converse)); From 09594a7b87668d845f72e28e7b08a07e7976fcbf Mon Sep 17 00:00:00 2001 From: Serge Victor Date: Mon, 12 Jan 2015 18:52:22 +0700 Subject: [PATCH 10/81] Polish translation of version 0.8.6. --- locale/pl/LC_MESSAGES/converse.po | 402 ++++++++++++++++-------------- 1 file changed, 219 insertions(+), 183 deletions(-) diff --git a/locale/pl/LC_MESSAGES/converse.po b/locale/pl/LC_MESSAGES/converse.po index 186bb0277..7912ddc72 100644 --- a/locale/pl/LC_MESSAGES/converse.po +++ b/locale/pl/LC_MESSAGES/converse.po @@ -2,15 +2,15 @@ # Copyright (C) 2014 Jan-Carel Brand # This file is distributed under the same license as the Converse.js package. # Translators: -# Dev Account , 2014. +# Serge Victor , 2014. # msgid "" msgstr "" "Project-Id-Version: Converse.js 0.8.3\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: Serge Victor \n" "POT-Creation-Date: 2014-12-07 13:45+0100\n" -"PO-Revision-Date: 2014-10-21 13:13+0200\n" -"Last-Translator: Dev Account \n" +"PO-Revision-Date: 2015-01-12 18:52+0700\n" +"Last-Translator: Serge Victor \n" "Language-Team: Polish\n" "Language: pl\n" "MIME-Version: 1.0\n" @@ -21,107 +21,107 @@ msgstr "" #: converse.js:302 msgid "unencrypted" -msgstr "" +msgstr "nieszyfrowane" #: converse.js:303 msgid "unverified" -msgstr "" +msgstr "niezweryfikowane" #: converse.js:304 msgid "verified" -msgstr "" +msgstr "zweryfikowane" #: converse.js:305 msgid "finished" -msgstr "" +msgstr "zakończone" #: converse.js:308 msgid "This contact is busy" -msgstr "" +msgstr "Kontakt jest zajęty" #: converse.js:309 msgid "This contact is online" -msgstr "" +msgstr "Kontakt jest połączony" #: converse.js:310 msgid "This contact is offline" -msgstr "" +msgstr "Kontakt jest niepołączony" #: converse.js:311 msgid "This contact is unavailable" -msgstr "" +msgstr "Kontakt jest niedostępny" #: converse.js:312 msgid "This contact is away for an extended period" -msgstr "" +msgstr "Kontakt jest nieobecny przez dłuższą chwilę" #: converse.js:313 msgid "This contact is away" -msgstr "" +msgstr "Kontakt jest nieobecny" #: converse.js:315 msgid "Click to hide these contacts" -msgstr "" +msgstr "Kliknij aby schować te kontakty" #: converse.js:317 msgid "My contacts" -msgstr "" +msgstr "Moje kontakty" #: converse.js:318 msgid "Pending contacts" -msgstr "" +msgstr "Kontakty oczekujące" #: converse.js:319 msgid "Contact requests" -msgstr "" +msgstr "Zaproszenia do kontaktu" #: converse.js:320 msgid "Ungrouped" -msgstr "" +msgstr "Niezgrupowane" #: converse.js:322 msgid "Contacts" -msgstr "" +msgstr "Kontakty" #: converse.js:323 msgid "Groups" -msgstr "" +msgstr "Grupy" #: converse.js:410 msgid "Reconnecting" -msgstr "" +msgstr "Przywracam połączenie" #: converse.js:450 msgid "Error" -msgstr "" +msgstr "Błąd" #: converse.js:452 msgid "Connecting" -msgstr "" +msgstr "Łączę się" #: converse.js:454 msgid "Authenticating" -msgstr "" +msgstr "Autoryzacja" #: converse.js:456 converse.js:457 msgid "Authentication Failed" -msgstr "" +msgstr "Autoryzacja nie powiodła się" #: converse.js:602 converse.js:644 msgid "Online Contacts" -msgstr "" +msgstr "Dostępne kontakty" #: converse.js:762 msgid "Re-establishing encrypted session" -msgstr "" +msgstr "Przywrócenie sesji szyfrowanej" #: converse.js:774 msgid "Generating private key." -msgstr "" +msgstr "Generuję klucz prywatny." #: converse.js:775 msgid "Your browser might become unresponsive." -msgstr "" +msgstr "Twoja przeglądarka może nieco zwolnić." #: converse.js:810 msgid "" @@ -132,66 +132,72 @@ msgid "" "\n" "%2$s" msgstr "" +"Prośba o autoryzację od %1$s\n" +"\n" +"Kontakt próbuje zweryfikować twoją tożsamość, zadając ci " +"pytanie poniżej.\n" +"\n" +"%2$s" #: converse.js:819 msgid "Could not verify this user's identify." -msgstr "" +msgstr "Nie jestem w stanie zweryfikować tożsamości kontaktu." #: converse.js:858 msgid "Exchanging private key with contact." -msgstr "" +msgstr "Wymieniam klucze szyfrujące z kontaktem." #: converse.js:1011 msgid "Personal message" -msgstr "" +msgstr "Wiadomość osobista" #: converse.js:1043 msgid "Are you sure you want to clear the messages from this room?" -msgstr "" +msgstr "Potwierdź czy rzeczywiście chcesz wyczyścić wiadomości z tego pokoju?" #: converse.js:1065 msgid "me" -msgstr "" +msgstr "ja" #: converse.js:1119 msgid "is typing" -msgstr "" +msgstr "pisze" #: converse.js:1122 msgid "has stopped typing" -msgstr "" +msgstr "przestał pisać" #: converse.js:1164 converse.js:2351 msgid "Show this menu" -msgstr "" +msgstr "Pokaż menu" #: converse.js:1165 msgid "Write in the third person" -msgstr "" +msgstr "Pisz w trzeciej osobie" #: converse.js:1166 converse.js:2350 msgid "Remove messages" -msgstr "" +msgstr "Usuń wiadomość" #: converse.js:1250 msgid "Are you sure you want to clear the messages from this chat box?" -msgstr "" +msgstr "Potwierdź czy rzeczywiście chcesz wyczyścić wiadomości z okienka rozmowy?" #: converse.js:1285 msgid "Your message could not be sent" -msgstr "" +msgstr "Twoja wiadomość nie została wysłana" #: converse.js:1288 msgid "We received an unencrypted message" -msgstr "" +msgstr "Otrzymaliśmy niezaszyfrowaną wiadomość" #: converse.js:1291 msgid "We received an unreadable encrypted message" -msgstr "" +msgstr "Otrzymaliśmy nieczytelną zaszyfrowaną wiadomość" #: converse.js:1300 msgid "This user has requested an encrypted session." -msgstr "" +msgstr "Kontakt prosi o sesję szyfrowaną." #: converse.js:1322 msgid "" @@ -205,6 +211,15 @@ msgid "" "If you have confirmed that the fingerprints match, click OK, otherwise click " "Cancel." msgstr "" +"Oto odciski palców, potwiedź je proszę z %1$s używając innego sposobu" +"wymiany informacji niż ta rozmowa.\n" +"\n" +"Odcisk palca dla ciebie, %2$s: %3$s\n" +"\n" +"Odcisk palca dla %1$s: %4$s\n" +"\n" +"Jeśli odciski palców zostały potwierdzone, kliknij OK, w inny wypadku kliknij " +"Anuluj." #: converse.js:1335 msgid "" @@ -214,608 +229,629 @@ msgid "" "Your contact will then be prompted the same question and if they type the " "exact same answer (case sensitive), their identity will be verified." msgstr "" +"Poprosimy cię o podanie pytania sprawdzającego i odpowiedzi " +"na nie.\n" +"\n" +"Twój kontakt zostanie poproszony później o odpowiedź na to samo pytanie i jeśli " +"udzieli tej samej odpowiedzi (ważna jest wielkość liter), tożsamość zostanie zwerfikowana." #: converse.js:1336 msgid "What is your security question?" -msgstr "" +msgstr "Jakie jest pytanie bezpieczeństwa?" #: converse.js:1338 msgid "What is the answer to the security question?" -msgstr "" +msgstr "Jaka jest odpowiedź na pytanie bezpieczeństwa?" #: converse.js:1342 msgid "Invalid authentication scheme provided" -msgstr "" +msgstr "Niewłaściwy schemat autoryzacji" #: converse.js:1457 msgid "Your messages are not encrypted anymore" -msgstr "" +msgstr "Twoje wiadomości nie są już szyfrowane" #: converse.js:1459 msgid "" "Your messages are now encrypted but your contact's identity has not been " "verified." msgstr "" +"Wiadomości są teraz szyfrowane, ale tożsamość kontaktu nie została " +"zweryfikowana." #: converse.js:1461 msgid "Your contact's identify has been verified." -msgstr "" +msgstr "Tożsamość kontaktu została zweryfikowana" #: converse.js:1463 msgid "Your contact has ended encryption on their end, you should do the same." -msgstr "" +msgstr "Kontakt zakończył sesję szyfrowaną, powinieneś zrobić to samo." #: converse.js:1472 msgid "Your messages are not encrypted. Click here to enable OTR encryption." -msgstr "" +msgstr "Twoje wiadomości nie są szyfrowane. Kliknij, aby uruchomić szyfrowanie OTR" #: converse.js:1474 msgid "Your messages are encrypted, but your contact has not been verified." -msgstr "" +msgstr "Wiadomości są szyfrowane, ale tożsamość kontaktu nie została zweryfikowana." #: converse.js:1476 msgid "Your messages are encrypted and your contact verified." -msgstr "" +msgstr "Wiadomości są szyfrowane i tożsamość kontaktu została zweryfikowana." #: converse.js:1478 msgid "" "Your contact has closed their end of the private session, you should do the " "same" msgstr "" +"Kontakt zakończył prywatną rozmowę i ty zrób to " +"samo" #: converse.js:1488 msgid "Clear all messages" -msgstr "" +msgstr "Wyczyść wszystkie wiadomości" #: converse.js:1489 msgid "End encrypted conversation" -msgstr "" +msgstr "Zakończ szyfrowaną rozmowę" #: converse.js:1490 msgid "Hide the list of participants" -msgstr "" +msgstr "Ukryj listę rozmówców" #: converse.js:1491 msgid "Refresh encrypted conversation" -msgstr "" +msgstr "Odśwież szyfrowaną rozmowę" #: converse.js:1492 msgid "Start a call" -msgstr "" +msgstr "Zadzwoń" #: converse.js:1493 msgid "Start encrypted conversation" -msgstr "" +msgstr "Rozpocznij szyfrowaną rozmowę" #: converse.js:1494 msgid "Verify with fingerprints" -msgstr "" +msgstr "Zweryfikuj za pomocą odcisków palców" #: converse.js:1495 msgid "Verify with SMP" -msgstr "" +msgstr "Zweryfikuj za pomocą SMP" #: converse.js:1496 msgid "What's this?" -msgstr "" +msgstr "Co to jest?" #: converse.js:1587 msgid "Online" -msgstr "" +msgstr "Dostępny" #: converse.js:1588 msgid "Busy" -msgstr "" +msgstr "Zajęty" #: converse.js:1589 msgid "Away" -msgstr "" +msgstr "Nieobecny" #: converse.js:1590 msgid "Offline" -msgstr "" +msgstr "Rozłączony" #: converse.js:1591 msgid "Log out" -msgstr "" +msgstr "Wyloguj" #: converse.js:1597 msgid "Contact name" -msgstr "" +msgstr "Nazwa kontaktu" #: converse.js:1598 msgid "Search" -msgstr "" +msgstr "Szukaj" #: converse.js:1602 msgid "Contact username" -msgstr "" +msgstr "Ksywka kontaktu" #: converse.js:1603 msgid "Add" -msgstr "" +msgstr "Dodaj" #: converse.js:1608 msgid "Click to add new chat contacts" -msgstr "" +msgstr "Kliknij aby dodać nowe kontakty" #: converse.js:1609 msgid "Add a contact" -msgstr "" +msgstr "Dodaj kontakt" #: converse.js:1633 msgid "No users found" -msgstr "" +msgstr "Nie znaleziono użytkowników" #: converse.js:1639 msgid "Click to add as a chat contact" -msgstr "" +msgstr "Kliknij aby dodać jako kontakt" #: converse.js:1703 msgid "Room name" -msgstr "" +msgstr "Nazwa pokoju" #: converse.js:1704 msgid "Nickname" -msgstr "" +msgstr "Ksywka" #: converse.js:1705 msgid "Server" -msgstr "" +msgstr "Serwer" #: converse.js:1706 msgid "Join" -msgstr "" +msgstr "Dołącz" #: converse.js:1707 msgid "Show rooms" -msgstr "" +msgstr "Pokaż pokoje" #: converse.js:1711 msgid "Rooms" -msgstr "" +msgstr "Pokoje" #. For translators: %1$s is a variable and will be replaced with the XMPP server name #: converse.js:1731 msgid "No rooms on %1$s" -msgstr "" +msgstr "Brak jest pokojów na %1$s" #. For translators: %1$s is a variable and will be #. replaced with the XMPP server name #: converse.js:1746 msgid "Rooms on %1$s" -msgstr "" +msgstr "Pokoje na %1$s" #: converse.js:1755 msgid "Click to open this room" -msgstr "" +msgstr "Kliknij aby wejść do pokoju" #: converse.js:1756 msgid "Show more information on this room" -msgstr "" +msgstr "Pokaż więcej informacji o pokoju" #: converse.js:1818 msgid "Description:" -msgstr "" +msgstr "Opis:" #: converse.js:1819 msgid "Occupants:" -msgstr "" +msgstr "Uczestnicy:" #: converse.js:1820 msgid "Features:" -msgstr "" +msgstr "Możliwości:" #: converse.js:1821 msgid "Requires authentication" -msgstr "" +msgstr "Wymaga autoryzacji" #: converse.js:1822 msgid "Hidden" -msgstr "" +msgstr "Ukryty" #: converse.js:1823 msgid "Requires an invitation" -msgstr "" +msgstr "Wymaga zaproszenia" #: converse.js:1824 msgid "Moderated" -msgstr "" +msgstr "Moderowany" #: converse.js:1825 msgid "Non-anonymous" -msgstr "" +msgstr "Nieanonimowy" #: converse.js:1826 msgid "Open room" -msgstr "" +msgstr "Otwarty pokój" #: converse.js:1827 msgid "Permanent room" -msgstr "" +msgstr "Stały pokój" #: converse.js:1828 msgid "Public" -msgstr "" +msgstr "Publiczny" #: converse.js:1829 msgid "Semi-anonymous" -msgstr "" +msgstr "Półanonimowy" #: converse.js:1830 msgid "Temporary room" -msgstr "" +msgstr "Pokój tymczasowy" #: converse.js:1831 msgid "Unmoderated" -msgstr "" +msgstr "Niemoderowany" #: converse.js:2099 msgid "This user is a moderator" -msgstr "" +msgstr "Ten człowiek jest moderatorem" #: converse.js:2100 msgid "This user can send messages in this room" -msgstr "" +msgstr "Ten człowiek może rozmawiać w niejszym pokoju" #: converse.js:2101 msgid "This user can NOT send messages in this room" -msgstr "" +msgstr "Ten człowiek nie może rozmawiać w niniejszym pokoju" #: converse.js:2133 msgid "Invite..." -msgstr "" +msgstr "Zaproś..." #: converse.js:2134 msgid "Occupants" -msgstr "" +msgstr "Uczestników" #: converse.js:2199 msgid "You are about to invite %1$s to the chat room \"%2$s\". " -msgstr "" +msgstr "Zamierzasz zaprosić %1$s do pokoju rozmów \"%2$s\". " #: converse.js:2200 msgid "" "You may optionally include a message, explaining the reason for the " "invitation." msgstr "" +"Masz opcjonalną możliwość dołączenia wiadomości, która wyjaśni przyczynę " +"zaproszenia." #: converse.js:2283 msgid "Message" -msgstr "" +msgstr "Wiadomość:" #: converse.js:2319 msgid "Error: could not execute the command" -msgstr "" +msgstr "Błąd: nie potrafię uruchomić polecenia" #: converse.js:2349 msgid "Ban user from room" -msgstr "" +msgstr "Zablokuj dostępu do pokoju" #: converse.js:2352 msgid "Kick user from room" -msgstr "" +msgstr "Wykop z pokoju" #: converse.js:2353 msgid "Write in 3rd person" -msgstr "" +msgstr "Pisz w trzeciej osobie" #: converse.js:2354 msgid "Remove user's ability to post messages" -msgstr "" +msgstr "Zablokuj człowiekowi możliwość rozmowy" #: converse.js:2355 msgid "Change your nickname" -msgstr "" +msgstr "Zmień ksywkę" #: converse.js:2356 msgid "Set room topic" -msgstr "" +msgstr "Ustaw temat pokoju" #: converse.js:2357 msgid "Allow muted user to post messages" -msgstr "" +msgstr "Pozwól uciszonemu człowiekowi na rozmowę" #: converse.js:2423 converse.js:4334 msgid "Save" -msgstr "" +msgstr "Zachowaj" #: converse.js:2424 converse.js:4603 converse.js:4707 msgid "Cancel" -msgstr "" +msgstr "Anuluj" #: converse.js:2459 msgid "An error occurred while trying to save the form." -msgstr "" +msgstr "Wystąpił błąd w czasie próby zachowania formularza." #: converse.js:2503 msgid "This chatroom requires a password" -msgstr "" +msgstr "Pokój rozmów wymaga podania hasła" #: converse.js:2504 msgid "Password: " -msgstr "" +msgstr "Hasło:" #: converse.js:2505 msgid "Submit" -msgstr "" +msgstr "Wyślij" #: converse.js:2540 msgid "This room is not anonymous" -msgstr "" +msgstr "Pokój nie jest anonimowy" #: converse.js:2541 msgid "This room now shows unavailable members" -msgstr "" +msgstr "Pokój pokazuje niedostępnych rozmówców" #: converse.js:2542 msgid "This room does not show unavailable members" -msgstr "" +msgstr "Ten pokój nie wyświetla niedostępnych członków" #: converse.js:2543 msgid "Non-privacy-related room configuration has changed" -msgstr "" +msgstr "Ustawienia pokoju nie związane z prywatnością zostały zmienione" #: converse.js:2544 msgid "Room logging is now enabled" -msgstr "" +msgstr "Zostało włączone zapisywanie rozmów w pokoju" #: converse.js:2545 msgid "Room logging is now disabled" -msgstr "" +msgstr "Zostało wyłączone zapisywanie rozmów w pokoju" #: converse.js:2546 msgid "This room is now non-anonymous" -msgstr "" +msgstr "Pokój stał się nieanonimowy" #: converse.js:2547 msgid "This room is now semi-anonymous" -msgstr "" +msgstr "Pokój stał się półanonimowy" #: converse.js:2548 msgid "This room is now fully-anonymous" -msgstr "" +msgstr "Pokój jest teraz w pełni anonimowy" #: converse.js:2549 msgid "A new room has been created" -msgstr "" +msgstr "Został utworzony nowy pokój" #: converse.js:2553 converse.js:2653 msgid "You have been banned from this room" -msgstr "" +msgstr "Jesteś niemile widziany w tym pokoju" #: converse.js:2554 msgid "You have been kicked from this room" -msgstr "" +msgstr "Zostałeś wykopany z pokoju" #: converse.js:2555 msgid "You have been removed from this room because of an affiliation change" -msgstr "" +msgstr "Zostałeś usunięty z pokoju ze względu na zmianę przynależności" #: converse.js:2556 msgid "" "You have been removed from this room because the room has changed to members-" "only and you're not a member" msgstr "" +"Zostałeś usunięty z pokoju ze względu na to, że pokój zmienił się na wymagający " +"członkowstwa, a ty nie jesteś członkiem" #: converse.js:2557 msgid "" "You have been removed from this room because the MUC (Multi-user chat) " "service is being shut down." msgstr "" +"Zostałeś usunięty z pokoju ze względu na to, że serwis MUC" +"(Multi-user chat) został wyłączony." #: converse.js:2571 msgid "%1$s has been banned" -msgstr "" +msgstr "%1$s został zbanowany" #: converse.js:2572 msgid "%1$s's nickname has changed" -msgstr "" +msgstr "%1$s zmienił ksywkę" #: converse.js:2573 msgid "%1$s has been kicked out" -msgstr "" +msgstr "%1$s został wykopany" #: converse.js:2574 msgid "%1$s has been removed because of an affiliation change" -msgstr "" +msgstr "%1$s został usunięty z powodu zmiany przynależności" #: converse.js:2575 msgid "%1$s has been removed for not being a member" -msgstr "" +msgstr "%1$s został usunięty ze względu na to, że nie jest członkiem" #: converse.js:2579 msgid "Your nickname has been automatically changed to: %1$s" -msgstr "" +msgstr "Twoja ksywka została automatycznie zmieniona na: %1$s" #: converse.js:2580 msgid "Your nickname has been changed to: %1$s" -msgstr "" +msgstr "Twoja ksywka została zmieniona na: %1$s" #: converse.js:2628 converse.js:2638 msgid "The reason given is: \"" -msgstr "" +msgstr "Podana przyczyna to: \"" #: converse.js:2651 msgid "You are not on the member list of this room" -msgstr "" +msgstr "Nie jesteś członkiem tego pokoju rozmów" #: converse.js:2657 msgid "No nickname was specified" -msgstr "" +msgstr "Nie podałeś ksywki" #: converse.js:2661 msgid "You are not allowed to create new rooms" -msgstr "" +msgstr "Nie masz uprawnień do tworzenia nowych pokojów rozmów" #: converse.js:2663 msgid "Your nickname doesn't conform to this room's policies" -msgstr "" +msgstr "Twoja ksywka nie jest zgodna z regulaminem pokoju" #: converse.js:2667 msgid "Your nickname is already taken" -msgstr "" +msgstr "Twoja ksywka jest już w użyciu" #: converse.js:2669 msgid "This room does not (yet) exist" -msgstr "" +msgstr "Ten pokój (jeszcze) nie istnieje" #: converse.js:2671 msgid "This room has reached it's maximum number of occupants" -msgstr "" +msgstr "Pokój przekroczył dozwoloną ilość rozmówców" #: converse.js:2713 msgid "Topic set by %1$s to: %2$s" -msgstr "" +msgstr "Temat ustawiony przez %1$s na: %2$s" #: converse.js:2795 msgid "%1$s has invited you to join a chat room: %2$s" -msgstr "" +msgstr "%1$s zaprosił(a) cię do wejścia do pokoju rozmów %2$s" #: converse.js:2799 msgid "" "%1$s has invited you to join a chat room: %2$s, and left the following " "reason: \"%3$s\"" msgstr "" +"%1$s zaprosił cię do pokoju: %2$s, podając następujący " +"powód: \"%3$s\"" #: converse.js:3057 msgid "Click to restore this chat" -msgstr "" +msgstr "Kliknij aby powrócić do rozmowy" #: converse.js:3202 msgid "Minimized" -msgstr "" +msgstr "Zminimalizowany" #: converse.js:3298 converse.js:3316 msgid "Click to remove this contact" -msgstr "" +msgstr "Kliknij aby usunąć kontakt" #: converse.js:3305 msgid "Click to accept this contact request" -msgstr "" +msgstr "Klknij aby zaakceptować życzenie nawiązania kontaktu" #: converse.js:3306 msgid "Click to decline this contact request" -msgstr "" +msgstr "Kliknij aby odrzucić życzenie nawiązania kontaktu" #: converse.js:3315 msgid "Click to chat with this contact" -msgstr "" +msgstr "Kliknij aby porozmawiać z kontaktem" #: converse.js:3340 msgid "Are you sure you want to remove this contact?" -msgstr "" +msgstr "Czy potwierdzasz zamiar usnunięcia tego kontaktu?" #: converse.js:3363 msgid "Are you sure you want to decline this contact request?" -msgstr "" +msgstr "Czy potwierdzasz odrzucenie chęci nawiązania kontaktu?" #: converse.js:3889 msgid "Type to filter" -msgstr "" +msgstr "Zacznij pisać, aby odfiltrować" #. For translators: the %1$s part gets replaced with the status #. Example, I am online #: converse.js:4305 converse.js:4382 msgid "I am %1$s" -msgstr "" +msgstr "Jestem %1$s" #: converse.js:4307 converse.js:4387 msgid "Click here to write a custom status message" -msgstr "" +msgstr "Kliknij aby wpisać nowy status" #: converse.js:4308 converse.js:4388 msgid "Click to change your chat status" -msgstr "" +msgstr "Kliknij aby zmienić status rozmowy" #: converse.js:4333 msgid "Custom status" -msgstr "" +msgstr "Własny status" #: converse.js:4362 converse.js:4370 msgid "online" -msgstr "" +msgstr "dostępny" #: converse.js:4364 msgid "busy" -msgstr "" +msgstr "zajęty" #: converse.js:4366 msgid "away for long" -msgstr "" +msgstr "dłużej nieobecny" #: converse.js:4368 msgid "away" -msgstr "" +msgstr "nieobecny" #: converse.js:4488 msgid "Your XMPP provider's domain name:" -msgstr "" +msgstr "Domena twojego dostawcy XMPP:" #: converse.js:4489 msgid "Fetch registration form" -msgstr "" +msgstr "Pobierz formularz rejestracyjny" #: converse.js:4490 msgid "Tip: A list of public XMPP providers is available" -msgstr "" +msgstr "Wskazówka: dostępna jest lista publicznych dostawców XMPP" #: converse.js:4491 msgid "here" -msgstr "" +msgstr "tutaj" #: converse.js:4496 converse.js:4705 msgid "Register" -msgstr "" +msgstr "Zarejestruj" #: converse.js:4543 msgid "" "Sorry, the given provider does not support in band account registration. " "Please try with a different provider." msgstr "" +"Przepraszamy, ale podany dostawca nie obsługuje rejestracji. " +"Spróbuj wskazać innego dostawcę." #: converse.js:4604 msgid "Requesting a registration form from the XMPP server" -msgstr "" +msgstr "Pobieranie formularza rejestracyjnego z serwera XMPP" #: converse.js:4639 msgid "" "Something went wrong while establishing a connection with \"%1$s\". Are you " "sure it exists?" msgstr "" +"Coś nie zadziałało przy próbie połączenia z \"%1$s\". Jesteś pewien " +"że istnieje?" #: converse.js:4658 msgid "Now logging you in" -msgstr "" +msgstr "Teraz jesteś logowany" #: converse.js:4662 msgid "Registered successfully" -msgstr "" +msgstr "Szczęśliwie zarejestrowany" #: converse.js:4710 msgid "Return" -msgstr "" +msgstr "Powrót" #: converse.js:4742 msgid "The provider rejected your registration attempt. " -msgstr "" +msgstr "Dostawca odrzucił twoją próbę rejestracji. " #: converse.js:4887 msgid "XMPP Username:" -msgstr "" +msgstr "Nazwa użytkownika XMPP:" #: converse.js:4888 msgid "Password:" -msgstr "" +msgstr "Hasło:" #: converse.js:4889 msgid "Log In" -msgstr "" +msgstr "Zaloguj się" #: converse.js:4896 msgid "Sign in" -msgstr "" +msgstr "Zarejestruj się" #: converse.js:4970 msgid "Toggle chat" -msgstr "" +msgstr "Przełącz rozmowę" From 7ac5785baee1aa82d5e5d4a3e75c874027961752 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 16 Jan 2015 20:47:10 +0100 Subject: [PATCH 11/81] Tweak shadow on the unselected tab. --- css/converse.css | 4 ++-- sass/converse.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/converse.css b/css/converse.css index 9e320872c..2197ecc29 100644 --- a/css/converse.css +++ b/css/converse.css @@ -747,7 +747,7 @@ #conversejs #converse-roster span.pending-contact-name { width: 80%; } #conversejs #converse-roster span.req-contact-name { - width: 73%; + width: 69%; padding: 0; } #conversejs dd.available-chatroom { display: inline-block; @@ -1042,7 +1042,7 @@ border-bottom: 1px solid #CCC; border-top-left-radius: 4px; border-top-right-radius: 4px; - box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3); + box-shadow: inset 2px -2px 20px rgba(0, 0, 0, 0.5); color: #888; display: block; font-size: 12px; diff --git a/sass/converse.scss b/sass/converse.scss index 556c507a0..e18394e2e 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -1213,7 +1213,7 @@ border-bottom: 1px solid $border-color; border-top-left-radius: 4px; border-top-right-radius: 4px; - box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.3); + box-shadow: inset 2px -2px 20px rgba(0, 0, 0, 0.5); color: #888; display: block; font-size: 12px; From ba09fa1fbb7dc2f258c0a457f8db02bc46d10340 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 16 Jan 2015 20:48:40 +0100 Subject: [PATCH 12/81] Generate JSON file from Polish po file. --- locale/pl/LC_MESSAGES/converse.json | 772 ++++++++++++++++++++++++++++ locale/pl/LC_MESSAGES/converse.po | 4 +- 2 files changed, 774 insertions(+), 2 deletions(-) create mode 100644 locale/pl/LC_MESSAGES/converse.json diff --git a/locale/pl/LC_MESSAGES/converse.json b/locale/pl/LC_MESSAGES/converse.json new file mode 100644 index 000000000..10d209126 --- /dev/null +++ b/locale/pl/LC_MESSAGES/converse.json @@ -0,0 +1,772 @@ +{ + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);", + "lang": "pl" + }, + "unencrypted": [ + null, + "nieszyfrowane" + ], + "unverified": [ + null, + "niezweryfikowane" + ], + "verified": [ + null, + "zweryfikowane" + ], + "finished": [ + null, + "zakończone" + ], + "This contact is busy": [ + null, + "Kontakt jest zajęty" + ], + "This contact is online": [ + null, + "Kontakt jest połączony" + ], + "This contact is offline": [ + null, + "Kontakt jest niepołączony" + ], + "This contact is unavailable": [ + null, + "Kontakt jest niedostępny" + ], + "This contact is away for an extended period": [ + null, + "Kontakt jest nieobecny przez dłuższą chwilę" + ], + "This contact is away": [ + null, + "Kontakt jest nieobecny" + ], + "Click to hide these contacts": [ + null, + "Kliknij aby schować te kontakty" + ], + "My contacts": [ + null, + "Moje kontakty" + ], + "Pending contacts": [ + null, + "Kontakty oczekujące" + ], + "Contact requests": [ + null, + "Zaproszenia do kontaktu" + ], + "Ungrouped": [ + null, + "Niezgrupowane" + ], + "Contacts": [ + null, + "Kontakty" + ], + "Groups": [ + null, + "Grupy" + ], + "Reconnecting": [ + null, + "Przywracam połączenie" + ], + "Error": [ + null, + "Błąd" + ], + "Connecting": [ + null, + "Łączę się" + ], + "Authenticating": [ + null, + "Autoryzacja" + ], + "Authentication Failed": [ + null, + "Autoryzacja nie powiodła się" + ], + "Online Contacts": [ + null, + "Dostępne kontakty" + ], + "Re-establishing encrypted session": [ + null, + "Przywrócenie sesji szyfrowanej" + ], + "Generating private key.": [ + null, + "Generuję klucz prywatny." + ], + "Your browser might become unresponsive.": [ + null, + "Twoja przeglądarka może nieco zwolnić." + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "Prośba o autoryzację od %1$s\n\nKontakt próbuje zweryfikować twoją tożsamość, zadając ci pytanie poniżej.\n\n%2$s" + ], + "Could not verify this user's identify.": [ + null, + "Nie jestem w stanie zweryfikować tożsamości kontaktu." + ], + "Exchanging private key with contact.": [ + null, + "Wymieniam klucze szyfrujące z kontaktem." + ], + "Personal message": [ + null, + "Wiadomość osobista" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "Potwierdź czy rzeczywiście chcesz wyczyścić wiadomości z tego pokoju?" + ], + "me": [ + null, + "ja" + ], + "is typing": [ + null, + "pisze" + ], + "has stopped typing": [ + null, + "przestał pisać" + ], + "Show this menu": [ + null, + "Pokaż menu" + ], + "Write in the third person": [ + null, + "Pisz w trzeciej osobie" + ], + "Remove messages": [ + null, + "Usuń wiadomość" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "Potwierdź czy rzeczywiście chcesz wyczyścić wiadomości z okienka rozmowy?" + ], + "Your message could not be sent": [ + null, + "Twoja wiadomość nie została wysłana" + ], + "We received an unencrypted message": [ + null, + "Otrzymaliśmy niezaszyfrowaną wiadomość" + ], + "We received an unreadable encrypted message": [ + null, + "Otrzymaliśmy nieczytelną zaszyfrowaną wiadomość" + ], + "This user has requested an encrypted session.": [ + null, + "Kontakt prosi o sesję szyfrowaną." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Oto odciski palców, potwiedź je proszę z %1$s używając innego sposobuwymiany informacji niż ta rozmowa.\n\nOdcisk palca dla ciebie, %2$s: %3$s\n\nOdcisk palca dla %1$s: %4$s\n\nJeśli odciski palców zostały potwierdzone, kliknij OK, w inny wypadku kliknij Anuluj." + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "Poprosimy cię o podanie pytania sprawdzającego i odpowiedzi na nie.\n\nTwój kontakt zostanie poproszony później o odpowiedź na to samo pytanie i jeśli udzieli tej samej odpowiedzi (ważna jest wielkość liter), tożsamość zostanie zwerfikowana." + ], + "What is your security question?": [ + null, + "Jakie jest pytanie bezpieczeństwa?" + ], + "What is the answer to the security question?": [ + null, + "Jaka jest odpowiedź na pytanie bezpieczeństwa?" + ], + "Invalid authentication scheme provided": [ + null, + "Niewłaściwy schemat autoryzacji" + ], + "Your messages are not encrypted anymore": [ + null, + "Twoje wiadomości nie są już szyfrowane" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "Wiadomości są teraz szyfrowane, ale tożsamość kontaktu nie została zweryfikowana." + ], + "Your contact's identify has been verified.": [ + null, + "Tożsamość kontaktu została zweryfikowana" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "Kontakt zakończył sesję szyfrowaną, powinieneś zrobić to samo." + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Twoje wiadomości nie są szyfrowane. Kliknij, aby uruchomić szyfrowanie OTR" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "Wiadomości są szyfrowane, ale tożsamość kontaktu nie została zweryfikowana." + ], + "Your messages are encrypted and your contact verified.": [ + null, + "Wiadomości są szyfrowane i tożsamość kontaktu została zweryfikowana." + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "Kontakt zakończył prywatną rozmowę i ty zrób to samo" + ], + "Clear all messages": [ + null, + "Wyczyść wszystkie wiadomości" + ], + "End encrypted conversation": [ + null, + "Zakończ szyfrowaną rozmowę" + ], + "Hide the list of participants": [ + null, + "Ukryj listę rozmówców" + ], + "Refresh encrypted conversation": [ + null, + "Odśwież szyfrowaną rozmowę" + ], + "Start a call": [ + null, + "Zadzwoń" + ], + "Start encrypted conversation": [ + null, + "Rozpocznij szyfrowaną rozmowę" + ], + "Verify with fingerprints": [ + null, + "Zweryfikuj za pomocą odcisków palców" + ], + "Verify with SMP": [ + null, + "Zweryfikuj za pomocą SMP" + ], + "What's this?": [ + null, + "Co to jest?" + ], + "Online": [ + null, + "Dostępny" + ], + "Busy": [ + null, + "Zajęty" + ], + "Away": [ + null, + "Nieobecny" + ], + "Offline": [ + null, + "Rozłączony" + ], + "Log out": [ + null, + "Wyloguj" + ], + "Contact name": [ + null, + "Nazwa kontaktu" + ], + "Search": [ + null, + "Szukaj" + ], + "Contact username": [ + null, + "Ksywka kontaktu" + ], + "Add": [ + null, + "Dodaj" + ], + "Click to add new chat contacts": [ + null, + "Kliknij aby dodać nowe kontakty" + ], + "Add a contact": [ + null, + "Dodaj kontakt" + ], + "No users found": [ + null, + "Nie znaleziono użytkowników" + ], + "Click to add as a chat contact": [ + null, + "Kliknij aby dodać jako kontakt" + ], + "Room name": [ + null, + "Nazwa pokoju" + ], + "Nickname": [ + null, + "Ksywka" + ], + "Server": [ + null, + "Serwer" + ], + "Join": [ + null, + "Dołącz" + ], + "Show rooms": [ + null, + "Pokaż pokoje" + ], + "Rooms": [ + null, + "Pokoje" + ], + "No rooms on %1$s": [ + null, + "Brak jest pokojów na %1$s" + ], + "Rooms on %1$s": [ + null, + "Pokoje na %1$s" + ], + "Click to open this room": [ + null, + "Kliknij aby wejść do pokoju" + ], + "Show more information on this room": [ + null, + "Pokaż więcej informacji o pokoju" + ], + "Description:": [ + null, + "Opis:" + ], + "Occupants:": [ + null, + "Uczestnicy:" + ], + "Features:": [ + null, + "Możliwości:" + ], + "Requires authentication": [ + null, + "Wymaga autoryzacji" + ], + "Hidden": [ + null, + "Ukryty" + ], + "Requires an invitation": [ + null, + "Wymaga zaproszenia" + ], + "Moderated": [ + null, + "Moderowany" + ], + "Non-anonymous": [ + null, + "Nieanonimowy" + ], + "Open room": [ + null, + "Otwarty pokój" + ], + "Permanent room": [ + null, + "Stały pokój" + ], + "Public": [ + null, + "Publiczny" + ], + "Semi-anonymous": [ + null, + "Półanonimowy" + ], + "Temporary room": [ + null, + "Pokój tymczasowy" + ], + "Unmoderated": [ + null, + "Niemoderowany" + ], + "This user is a moderator": [ + null, + "Ten człowiek jest moderatorem" + ], + "This user can send messages in this room": [ + null, + "Ten człowiek może rozmawiać w niejszym pokoju" + ], + "This user can NOT send messages in this room": [ + null, + "Ten człowiek nie może rozmawiać w niniejszym pokoju" + ], + "Invite...": [ + null, + "Zaproś..." + ], + "Occupants": [ + null, + "Uczestników" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "Zamierzasz zaprosić %1$s do pokoju rozmów \"%2$s\". " + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "Masz opcjonalną możliwość dołączenia wiadomości, która wyjaśni przyczynę zaproszenia." + ], + "Message": [ + null, + "Wiadomość:" + ], + "Error: could not execute the command": [ + null, + "Błąd: nie potrafię uruchomić polecenia" + ], + "Ban user from room": [ + null, + "Zablokuj dostępu do pokoju" + ], + "Kick user from room": [ + null, + "Wykop z pokoju" + ], + "Write in 3rd person": [ + null, + "Pisz w trzeciej osobie" + ], + "Remove user's ability to post messages": [ + null, + "Zablokuj człowiekowi możliwość rozmowy" + ], + "Change your nickname": [ + null, + "Zmień ksywkę" + ], + "Set room topic": [ + null, + "Ustaw temat pokoju" + ], + "Allow muted user to post messages": [ + null, + "Pozwól uciszonemu człowiekowi na rozmowę" + ], + "Save": [ + null, + "Zachowaj" + ], + "Cancel": [ + null, + "Anuluj" + ], + "An error occurred while trying to save the form.": [ + null, + "Wystąpił błąd w czasie próby zachowania formularza." + ], + "This chatroom requires a password": [ + null, + "Pokój rozmów wymaga podania hasła" + ], + "Password: ": [ + null, + "Hasło:" + ], + "Submit": [ + null, + "Wyślij" + ], + "This room is not anonymous": [ + null, + "Pokój nie jest anonimowy" + ], + "This room now shows unavailable members": [ + null, + "Pokój pokazuje niedostępnych rozmówców" + ], + "This room does not show unavailable members": [ + null, + "Ten pokój nie wyświetla niedostępnych członków" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Ustawienia pokoju nie związane z prywatnością zostały zmienione" + ], + "Room logging is now enabled": [ + null, + "Zostało włączone zapisywanie rozmów w pokoju" + ], + "Room logging is now disabled": [ + null, + "Zostało wyłączone zapisywanie rozmów w pokoju" + ], + "This room is now non-anonymous": [ + null, + "Pokój stał się nieanonimowy" + ], + "This room is now semi-anonymous": [ + null, + "Pokój stał się półanonimowy" + ], + "This room is now fully-anonymous": [ + null, + "Pokój jest teraz w pełni anonimowy" + ], + "A new room has been created": [ + null, + "Został utworzony nowy pokój" + ], + "You have been banned from this room": [ + null, + "Jesteś niemile widziany w tym pokoju" + ], + "You have been kicked from this room": [ + null, + "Zostałeś wykopany z pokoju" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Zostałeś usunięty z pokoju ze względu na zmianę przynależności" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Zostałeś usunięty z pokoju ze względu na to, że pokój zmienił się na wymagający członkowstwa, a ty nie jesteś członkiem" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Zostałeś usunięty z pokoju ze względu na to, że serwis MUC(Multi-user chat) został wyłączony." + ], + "%1$s has been banned": [ + null, + "%1$s został zbanowany" + ], + "%1$s's nickname has changed": [ + null, + "%1$s zmienił ksywkę" + ], + "%1$s has been kicked out": [ + null, + "%1$s został wykopany" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s został usunięty z powodu zmiany przynależności" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s został usunięty ze względu na to, że nie jest członkiem" + ], + "Your nickname has been automatically changed to: %1$s": [ + null, + "Twoja ksywka została automatycznie zmieniona na: %1$s" + ], + "Your nickname has been changed to: %1$s": [ + null, + "Twoja ksywka została zmieniona na: %1$s" + ], + "The reason given is: \"": [ + null, + "Podana przyczyna to: \"" + ], + "You are not on the member list of this room": [ + null, + "Nie jesteś członkiem tego pokoju rozmów" + ], + "No nickname was specified": [ + null, + "Nie podałeś ksywki" + ], + "You are not allowed to create new rooms": [ + null, + "Nie masz uprawnień do tworzenia nowych pokojów rozmów" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Twoja ksywka nie jest zgodna z regulaminem pokoju" + ], + "Your nickname is already taken": [ + null, + "Twoja ksywka jest już w użyciu" + ], + "This room does not (yet) exist": [ + null, + "Ten pokój (jeszcze) nie istnieje" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Pokój przekroczył dozwoloną ilość rozmówców" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Temat ustawiony przez %1$s na: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "%1$s zaprosił(a) cię do wejścia do pokoju rozmów %2$s" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "%1$s zaprosił cię do pokoju: %2$s, podając następujący powód: \"%3$s\"" + ], + "Click to restore this chat": [ + null, + "Kliknij aby powrócić do rozmowy" + ], + "Minimized": [ + null, + "Zminimalizowany" + ], + "Click to remove this contact": [ + null, + "Kliknij aby usunąć kontakt" + ], + "Click to accept this contact request": [ + null, + "Klknij aby zaakceptować życzenie nawiązania kontaktu" + ], + "Click to decline this contact request": [ + null, + "Kliknij aby odrzucić życzenie nawiązania kontaktu" + ], + "Click to chat with this contact": [ + null, + "Kliknij aby porozmawiać z kontaktem" + ], + "Are you sure you want to remove this contact?": [ + null, + "Czy potwierdzasz zamiar usnunięcia tego kontaktu?" + ], + "Are you sure you want to decline this contact request?": [ + null, + "Czy potwierdzasz odrzucenie chęci nawiązania kontaktu?" + ], + "Type to filter": [ + null, + "Zacznij pisać, aby odfiltrować" + ], + "I am %1$s": [ + null, + "Jestem %1$s" + ], + "Click here to write a custom status message": [ + null, + "Kliknij aby wpisać nowy status" + ], + "Click to change your chat status": [ + null, + "Kliknij aby zmienić status rozmowy" + ], + "Custom status": [ + null, + "Własny status" + ], + "online": [ + null, + "dostępny" + ], + "busy": [ + null, + "zajęty" + ], + "away for long": [ + null, + "dłużej nieobecny" + ], + "away": [ + null, + "nieobecny" + ], + "Your XMPP provider's domain name:": [ + null, + "Domena twojego dostawcy XMPP:" + ], + "Fetch registration form": [ + null, + "Pobierz formularz rejestracyjny" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "Wskazówka: dostępna jest lista publicznych dostawców XMPP" + ], + "here": [ + null, + "tutaj" + ], + "Register": [ + null, + "Zarejestruj" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "Przepraszamy, ale podany dostawca nie obsługuje rejestracji. Spróbuj wskazać innego dostawcę." + ], + "Requesting a registration form from the XMPP server": [ + null, + "Pobieranie formularza rejestracyjnego z serwera XMPP" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "Coś nie zadziałało przy próbie połączenia z \"%1$s\". Jesteś pewien że istnieje?" + ], + "Now logging you in": [ + null, + "Teraz jesteś logowany" + ], + "Registered successfully": [ + null, + "Szczęśliwie zarejestrowany" + ], + "Return": [ + null, + "Powrót" + ], + "The provider rejected your registration attempt. ": [ + null, + "Dostawca odrzucił twoją próbę rejestracji. " + ], + "XMPP Username:": [ + null, + "Nazwa użytkownika XMPP:" + ], + "Password:": [ + null, + "Hasło:" + ], + "Log In": [ + null, + "Zaloguj się" + ], + "Sign in": [ + null, + "Zarejestruj się" + ], + "Toggle chat": [ + null, + "Przełącz rozmowę" + ] + } + } +} \ No newline at end of file diff --git a/locale/pl/LC_MESSAGES/converse.po b/locale/pl/LC_MESSAGES/converse.po index 7912ddc72..fc6adb7ed 100644 --- a/locale/pl/LC_MESSAGES/converse.po +++ b/locale/pl/LC_MESSAGES/converse.po @@ -9,12 +9,12 @@ msgstr "" "Project-Id-Version: Converse.js 0.8.3\n" "Report-Msgid-Bugs-To: Serge Victor \n" "POT-Creation-Date: 2014-12-07 13:45+0100\n" -"PO-Revision-Date: 2015-01-12 18:52+0700\n" +"PO-Revision-Date: 2015-01-16 20:29+0100\n" "Last-Translator: Serge Victor \n" "Language-Team: Polish\n" "Language: pl\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ASCII\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" From d22ab21bbf09d744500e079702066f55099bf629 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 16 Jan 2015 21:04:38 +0100 Subject: [PATCH 13/81] Proof of work. Load JSON file directly instead of having to create a .js file with translations. --- locale/locales.js | 7 ++++--- main.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/locale/locales.js b/locale/locales.js index e21bda364..88da20cbc 100644 --- a/locale/locales.js +++ b/locale/locales.js @@ -6,8 +6,7 @@ */ (function (root, factory) { - define("locales", [ - 'jed', + define("locales", ['jquery', 'jed', 'af', 'de', 'en', @@ -20,10 +19,11 @@ 'ja', 'nb', 'nl', + 'text!pl', 'pt_BR', 'ru', 'zh' - ], function (jed, af, de, en, es, fr, he, hu, id, it, ja, nb, nl, pt_BR, ru, zh) { + ], function ($, Jed, af, de, en, es, fr, he, hu, id, it, ja, nb, nl, pl, pt_BR, ru, zh) { root.locales = { 'af': af, 'de': de, @@ -37,6 +37,7 @@ 'ja': ja, 'nb': nb, 'nl': nl, + 'pl': new Jed($.parseJSON(pl)), 'pt-br': pt_BR, 'ru': ru, 'zh':zh diff --git a/main.js b/main.js index b48135fe9..092425956 100644 --- a/main.js +++ b/main.js @@ -70,6 +70,7 @@ require.config({ "ja": "locale/ja/LC_MESSAGES/ja", "nb": "locale/nb/LC_MESSAGES/nb", "nl": "locale/nl/LC_MESSAGES/nl", + "pl": "locale/pl/LC_MESSAGES/converse.json", "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", "ru": "locale/ru/LC_MESSAGES/ru", "zh": "locale/zh/LC_MESSAGES/zh", From 0a1a98d2781033ee2c8cc34f5949ab371dacd9ad Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 16 Jan 2015 21:13:09 +0100 Subject: [PATCH 14/81] Load the JSON files directly for other langs as well. --- locale/af/LC_MESSAGES/af.js | 765 -------------- locale/de/LC_MESSAGES/converse.json | 1342 +++++++++++------------ locale/de/LC_MESSAGES/de.js | 637 ----------- locale/en/LC_MESSAGES/converse.json | 1343 +++++++++++------------ locale/en/LC_MESSAGES/en.js | 26 - locale/es/LC_MESSAGES/converse.json | 1333 +++++++++++------------ locale/es/LC_MESSAGES/es.js | 638 ----------- locale/fr/LC_MESSAGES/converse.json | 1344 ++++++++++++------------ locale/fr/LC_MESSAGES/fr.js | 635 ----------- locale/he/LC_MESSAGES/converse.json | 1196 ++++++++++++--------- locale/he/LC_MESSAGES/he.js | 524 --------- locale/hu/LC_MESSAGES/converse.json | 1336 +++++++++++------------ locale/hu/LC_MESSAGES/hu.js | 202 ---- locale/id/LC_MESSAGES/converse.json | 1309 +++++++++++------------ locale/id/LC_MESSAGES/id.js | 180 ---- locale/it/LC_MESSAGES/converse.json | 1342 +++++++++++------------ locale/it/LC_MESSAGES/it.js | 633 ----------- locale/ja/LC_MESSAGES/converse.json | 1311 +++++++++++------------ locale/ja/LC_MESSAGES/ja.js | 622 ----------- locale/locales.js | 62 +- locale/nb/LC_MESSAGES/nb.js | 786 -------------- locale/nl/LC_MESSAGES/converse.json | 1318 +++++++++++------------ locale/nl/LC_MESSAGES/nl.js | 637 ----------- locale/pt_BR/LC_MESSAGES/converse.json | 1308 ++++++++++++----------- locale/ru/LC_MESSAGES/converse.json | 1322 ++++++++++++----------- locale/ru/LC_MESSAGES/ru.js | 532 ---------- locale/zh/LC_MESSAGES/converse.json | 825 ++++++++++++--- locale/zh/LC_MESSAGES/zh.js | 184 ---- main.js | 30 +- 29 files changed, 8825 insertions(+), 14897 deletions(-) delete mode 100644 locale/af/LC_MESSAGES/af.js delete mode 100644 locale/de/LC_MESSAGES/de.js delete mode 100644 locale/en/LC_MESSAGES/en.js delete mode 100644 locale/es/LC_MESSAGES/es.js delete mode 100644 locale/fr/LC_MESSAGES/fr.js delete mode 100644 locale/he/LC_MESSAGES/he.js delete mode 100644 locale/hu/LC_MESSAGES/hu.js delete mode 100644 locale/id/LC_MESSAGES/id.js delete mode 100644 locale/it/LC_MESSAGES/it.js delete mode 100644 locale/ja/LC_MESSAGES/ja.js delete mode 100644 locale/nb/LC_MESSAGES/nb.js delete mode 100644 locale/nl/LC_MESSAGES/nl.js delete mode 100644 locale/ru/LC_MESSAGES/ru.js delete mode 100644 locale/zh/LC_MESSAGES/zh.js diff --git a/locale/af/LC_MESSAGES/af.js b/locale/af/LC_MESSAGES/af.js deleted file mode 100644 index a7d50629d..000000000 --- a/locale/af/LC_MESSAGES/af.js +++ /dev/null @@ -1,765 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "domain": "converse", - "lang": "af" - }, - "unencrypted": [ - null, - "nie-privaat" - ], - "unverified": [ - null, - "ongeverifieer" - ], - "verified": [ - null, - "privaat" - ], - "finished": [ - null, - "afgesluit" - ], - "This contact is busy": [ - null, - "Hierdie persoon is besig" - ], - "This contact is online": [ - null, - "Hierdie persoon is aanlyn" - ], - "This contact is offline": [ - null, - "Hierdie persoon is aflyn" - ], - "This contact is unavailable": [ - null, - "Hierdie persoon is onbeskikbaar" - ], - "This contact is away for an extended period": [ - null, - "Hierdie persoon is vir lank afwesig" - ], - "This contact is away": [ - null, - "Hierdie persoon is afwesig" - ], - "My contacts": [ - null, - "My kontakte" - ], - "Pending contacts": [ - null, - "Hangende kontakte" - ], - "Contact requests": [ - null, - "Kontak versoeke" - ], - "Ungrouped": [ - null, - "Ongegroepeer" - ], - "Contacts": [ - null, - "Kontakte" - ], - "Groups": [ - null, - "Groepe" - ], - "Reconnecting": [ - null, - "Herkonnekteer" - ], - "Error": [ - null, - "Fout" - ], - "Connecting": [ - null, - "Verbind tans" - ], - "Authenticating": [ - null, - "Besig om te bekragtig" - ], - "Authentication Failed": [ - null, - "Bekragtiging het gefaal" - ], - "Online Contacts": [ - null, - "Kontakte aangemeld" - ], - "Re-establishing encrypted session": [ - null, - "Herstel versleutelde sessie" - ], - "Generating private key.": [ - null, - "Genereer private sleutel." - ], - "Your browser might become unresponsive.": [ - null, - "U webblaaier mag tydelik onreageerbaar word." - ], - "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "Verifieeringsversoek van %1$s\n\nU gespreksmaat probeer om u identiteit te verifieer, deur die volgende vraag te vra \n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "Kon nie hierdie gebruiker se identitied verifieer nie." - ], - "Exchanging private key with contact.": [ - null, - "Sleutels word met gespreksmaat uitgeruil." - ], - "Personal message": [ - null, - "Persoonlike boodskap" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Is u seker dat u die boodskappe in hierdie kamer wil verwyder?" - ], - "me": [ - null, - "ek" - ], - "is typing": [ - null, - "tik tans" - ], - "has stopped typing": [ - null, - "het opgehou tik" - ], - "Show this menu": [ - null, - "Vertoon hierdie keuselys" - ], - "Write in the third person": [ - null, - "Skryf in die derde persoon" - ], - "Remove messages": [ - null, - "Verwyder boodskappe" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "Is u seker u wil die boodskappe van hierdie klets uitvee?" - ], - "Your message could not be sent": [ - null, - "U boodskap kon nie gestuur word nie" - ], - "We received an unencrypted message": [ - null, - "Ons het 'n onversleutelde boodskap ontvang" - ], - "We received an unreadable encrypted message": [ - null, - "Ons het 'n onleesbare versleutelde boodskap ontvang" - ], - "This user has requested an encrypted session.": [ - null, - "Hierdie gebruiker versoek 'n versleutelde sessie" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "Hier is die vingerafdrukke, bevestig hulle met %1$s, buite hierdie kletskanaal \n\nU vingerafdruk, %2$s: %3$s\n\nVingerafdruk vir %1$s: %4$s\n\nIndien u die vingerafdrukke bevestig het, klik OK, andersinds klik Kanselleer" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "Daar sal van u verwag word om 'n sekuriteitsvraag te stel, en dan ook die antwoord tot daardie vraag te verskaf.\n\nU gespreksmaat sal dan daardie vraag gestel word, en indien hulle presies dieselfde antwoord (lw. hoofletters tel) verskaf, sal hul identiteit geverifieer wees." - ], - "What is your security question?": [ - null, - "Wat is u sekuriteitsvraag?" - ], - "What is the answer to the security question?": [ - null, - "Wat is die antwoord tot die sekuriteitsvraag?" - ], - "Invalid authentication scheme provided": [ - null, - "Ongeldige verifikasiemetode verskaf" - ], - "Your messages are not encrypted anymore": [ - null, - "U boodskappe is nie meer versleutel nie" - ], - "Your messages are now encrypted but your contact's identity has not been verified.": [ - null, - "U boodskappe is now versleutel maar u gespreksmaat se identiteit is nog onseker." - ], - "Your contact's identify has been verified.": [ - null, - "U gespreksmaat se identiteit is geverifieer." - ], - "Your contact has ended encryption on their end, you should do the same.": [ - null, - "U gespreksmaat het versleuteling gestaak, u behoort nou dieselfde te doen." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "U boodskappe is nie versleutel nie. Klik hier om OTR versleuteling te aktiveer." - ], - "Your messages are encrypted, but your contact has not been verified.": [ - null, - "U boodskappe is versleutel, maar u gespreksmaat se identiteit is not onseker." - ], - "Your messages are encrypted and your contact verified.": [ - null, - "U boodskappe is versleutel en u gespreksmaat se identiteit geverifieer." - ], - "Your contact has closed their end of the private session, you should do the same": [ - null, - "U gespreksmaat het die private sessie gestaak. U behoort dieselfde te doen" - ], - "Clear all messages": [ - null, - "Vee alle boodskappe uit" - ], - "End encrypted conversation": [ - null, - "Beëindig versleutelde gesprek" - ], - "Hide the list of participants": [ - null, - "Verskuil die lys van deelnemers" - ], - "Refresh encrypted conversation": [ - null, - "Verfris versleutelde gesprek" - ], - "Start a call": [ - null, - "Begin 'n oproep" - ], - "Start encrypted conversation": [ - null, - "Begin versleutelde gesprek" - ], - "Verify with fingerprints": [ - null, - "Verifieer met vingerafdrukke" - ], - "Verify with SMP": [ - null, - "Verifieer met SMP" - ], - "What's this?": [ - null, - "Wat is hierdie?" - ], - "Online": [ - null, - "Aangemeld" - ], - "Busy": [ - null, - "Besig" - ], - "Away": [ - null, - "Afwesig" - ], - "Offline": [ - null, - "Afgemeld" - ], - "Contact name": [ - null, - "Kontaknaam" - ], - "Search": [ - null, - "Soek" - ], - "Contact username": [ - null, - "Konak gebruikersnaam" - ], - "Add": [ - null, - "Voeg by" - ], - "Click to add new chat contacts": [ - null, - "Kliek om nuwe kletskontakte by te voeg" - ], - "Add a contact": [ - null, - "Voeg 'n kontak by" - ], - "No users found": [ - null, - "Geen gebruikers gevind" - ], - "Click to add as a chat contact": [ - null, - "Kliek om as kletskontak by te voeg" - ], - "Room name": [ - null, - "Kamer naam" - ], - "Nickname": [ - null, - "Bynaam" - ], - "Server": [ - null, - "Bediener" - ], - "Join": [ - null, - "Sluit aan" - ], - "Show rooms": [ - null, - "Wys kamers" - ], - "Rooms": [ - null, - "Kamers" - ], - "No rooms on %1$s": [ - null, - "Geen kamers op %1$s" - ], - "Rooms on %1$s": [ - null, - "Kamers op %1$s" - ], - "Click to open this room": [ - null, - "Kliek om hierdie kletskamer te open" - ], - "Show more information on this room": [ - null, - "Wys meer inligting aangaande hierdie kletskamer" - ], - "Description:": [ - null, - "Beskrywing:" - ], - "Occupants:": [ - null, - "Deelnemers:" - ], - "Features:": [ - null, - "Eienskappe:" - ], - "Requires authentication": [ - null, - "Benodig magtiging" - ], - "Hidden": [ - null, - "Verskuil" - ], - "Requires an invitation": [ - null, - "Benodig 'n uitnodiging" - ], - "Moderated": [ - null, - "Gemodereer" - ], - "Non-anonymous": [ - null, - "Nie-anoniem" - ], - "Open room": [ - null, - "Oop kletskamer" - ], - "Permanent room": [ - null, - "Permanente kamer" - ], - "Public": [ - null, - "Publiek" - ], - "Semi-anonymous": [ - null, - "Deels anoniem" - ], - "Temporary room": [ - null, - "Tydelike kamer" - ], - "Unmoderated": [ - null, - "Ongemodereer" - ], - "This user is a moderator": [ - null, - "Hierdie gebruiker is 'n moderator" - ], - "This user can send messages in this room": [ - null, - "Hierdie gebruiker kan boodskappe na die kamer stuur" - ], - "This user can NOT send messages in this room": [ - null, - "Hierdie gebruiker kan NIE boodskappe na die kamer stuur nie" - ], - "Invite...": [ - null, - "Nooi uit..." - ], - "Occupants": [ - null, - "Deelnemers" - ], - "You are about to invite %1$s to the chat room \"%2$s\". ": [ - null, - "U is op die punt om %1$s na die kletskamer \"%2$s\" uit te nooi." - ], - "You may optionally include a message, explaining the reason for the invitation.": [ - null, - "U mag na keuse 'n boodskap insluit, om bv. die rede vir die uitnodiging te staaf." - ], - "Message": [ - null, - "Boodskap" - ], - "Error: could not execute the command": [ - null, - "Fout: kon nie die opdrag uitvoer nie" - ], - "Ban user from room": [ - null, - "Verban gebruiker uit hierdie kletskamer" - ], - "Kick user from room": [ - null, - "Skop gebruiker uit hierdie kletskamer" - ], - "Write in 3rd person": [ - null, - "Skryf in die derde persoon" - ], - "Remove user's ability to post messages": [ - null, - "Verwyder gebruiker se vermoë om boodskappe te plaas" - ], - "Change your nickname": [ - null, - "Verander u bynaam" - ], - "Set room topic": [ - null, - "Stel onderwerp vir kletskamer" - ], - "Allow muted user to post messages": [ - null, - "Laat stilgemaakte gebruiker toe om weer boodskappe te plaas" - ], - "Save": [ - null, - "Stoor" - ], - "Cancel": [ - null, - "Kanseleer" - ], - "An error occurred while trying to save the form.": [ - null, - "A fout het voorgekom terwyl probeer is om die vorm te stoor." - ], - "This chatroom requires a password": [ - null, - "Hiedie kletskamer benodig 'n wagwoord" - ], - "Password: ": [ - null, - "Wagwoord:" - ], - "Submit": [ - null, - "Dien in" - ], - "This room is not anonymous": [ - null, - "Hierdie vertrek is nie anoniem nie" - ], - "This room now shows unavailable members": [ - null, - "Hierdie vertrek wys nou onbeskikbare lede" - ], - "This room does not show unavailable members": [ - null, - "Hierdie vertrek wys nie onbeskikbare lede nie" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Nie-privaatheidverwante kamer instellings het verander" - ], - "Room logging is now enabled": [ - null, - "Kamer log is nou aangeskakel" - ], - "Room logging is now disabled": [ - null, - "Kamer log is nou afgeskakel" - ], - "This room is now non-anonymous": [ - null, - "Hiedie kamer is nou nie anoniem nie" - ], - "This room is now semi-anonymous": [ - null, - "Hierdie kamer is nou gedeeltelik anoniem" - ], - "This room is now fully-anonymous": [ - null, - "Hierdie kamer is nou ten volle anoniem" - ], - "A new room has been created": [ - null, - "'n Nuwe kamer is geskep" - ], - "You have been banned from this room": [ - null, - "Jy is uit die kamer verban" - ], - "You have been kicked from this room": [ - null, - "Jy is uit die kamer geskop" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Jy is vanuit die kamer verwyder a.g.v 'n verandering van affiliasie" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Jy is vanuit die kamer verwyder omdat die kamer nou slegs tot lede beperk word en jy nie 'n lid is nie." - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Jy is van hierdie kamer verwyder aangesien die MUC (Multi-user chat) diens nou afgeskakel word." - ], - "%1$s has been banned": [ - null, - "%1$s is verban" - ], - "%1$s has been kicked out": [ - null, - "%1$s is uitgeskop" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s is verwyder a.g.v 'n verandering van affiliasie" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s is nie 'n lid nie, en dus verwyder" - ], - "Your nickname has been automatically changed to: %1$s": [ - null, - "U bynaam is outomaties verander na: %1$s" - ], - "Your nickname has been changed to: %1$s": [ - null, - "U bynaam is verander na: %1$s" - ], - "The reason given is: \"": [ - null, - "Die gegewe rede is: \"" - ], - "You are not on the member list of this room": [ - null, - "Jy is nie op die ledelys van hierdie kamer nie" - ], - "No nickname was specified": [ - null, - "Geen bynaam verskaf nie" - ], - "You are not allowed to create new rooms": [ - null, - "Jy word nie toegelaat om nog kamers te skep nie" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Jou bynaam voldoen nie aan die kamer se beleid nie" - ], - "Your nickname is already taken": [ - null, - "Jou bynaam is reeds geneem" - ], - "This room does not (yet) exist": [ - null, - "Hierdie kamer bestaan tans (nog) nie" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Hierdie kamer het sy maksimum aantal deelnemers bereik" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Onderwerp deur %1$s bygewerk na: %2$s" - ], - "%1$s has invited you to join a chat room: %2$s": [ - null, - "%1$s het u uitgenooi om die kletskamer %2$s te besoek" - ], - "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ - null, - "%1$s het u uitgenooi om die kletskamer %2$s te besoek, en het die volgende rede verskaf: \"%3$s\"" - ], - "Click to restore this chat": [ - null, - "Kliek om hierdie klets te herstel" - ], - "Minimized": [ - null, - "Geminimaliseer" - ], - "Click to remove this contact": [ - null, - "Kliek om hierdie kontak te verwyder" - ], - "Click to chat with this contact": [ - null, - "Kliek om met hierdie kontak te klets" - ], - "Are you sure you want to remove this contact?": [ - null, - "Is u seker u wil hierdie gespreksmaat verwyder?" - ], - "Are you sure you want to decline this contact request?": [ - null, - "Is u seker dat u hierdie persoon se versoek wil afkeur?" - ], - "Type to filter": [ - null, - "Tik om te filtreer" - ], - "I am %1$s": [ - null, - "Ek is %1$s" - ], - "Click here to write a custom status message": [ - null, - "Kliek hier om jou eie statusboodskap te skryf" - ], - "Click to change your chat status": [ - null, - "Kliek om jou klets-status te verander" - ], - "Custom status": [ - null, - "Doelgemaakte status" - ], - "online": [ - null, - "aangemeld" - ], - "busy": [ - null, - "besig" - ], - "away for long": [ - null, - "vir lank afwesig" - ], - "away": [ - null, - "afwesig" - ], - "Your XMPP provider's domain name:": [ - null, - "U XMPP-verskaffer se domein naam:" - ], - "Fetch registration form": [ - null, - "Haal die registrasie form" - ], - "Tip: A list of public XMPP providers is available": [ - null, - "Wenk: A lys van publieke XMPP-verskaffers is beskikbaar" - ], - "here": [ - null, - "hier" - ], - "Register": [ - null, - "Registreer" - ], - "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ - null, - "Jammer, die gekose verskaffer ondersteun nie in-band registrasie nie.Probeer weer met 'n ander verskaffer." - ], - "Requesting a registration form from the XMPP server": [ - null, - "Vra tans die XMPP-bediener vir 'n registrasie vorm" - ], - "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ - null, - "Iets het fout geloop tydens koppeling met \"%1$s\". Is u seker dat dit bestaan?" - ], - "Now logging you in": [ - null, - "U word nou aangemeld" - ], - "Registered successfully": [ - null, - "Suksesvol geregistreer" - ], - "Return": [ - null, - "Terug" - ], - "The provider rejected your registration attempt. ": [ - null, - "Die verskaffer het u registrasieversoek verwerp." - ], - "XMPP Username:": [ - null, - "XMPP Gebruikersnaam:" - ], - "Password:": [ - null, - "Wagwoord" - ], - "Log In": [ - null, - "Meld aan" - ], - "Sign in": [ - null, - "Teken in" - ], - "Toggle chat": [ - null, - "Klets" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("af", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.af = factory(new Jed(translations)); - } -}(this, function (af) { - return af; -})); diff --git a/locale/de/LC_MESSAGES/converse.json b/locale/de/LC_MESSAGES/converse.json index 8f37a2a8a..7bc551354 100644 --- a/locale/de/LC_MESSAGES/converse.json +++ b/locale/de/LC_MESSAGES/converse.json @@ -1,660 +1,688 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-15 22:03+0200", - "Last-Translator": "JC Brand ", - "Language-Team": "German", - "Language": "de", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "domain": "converse", - "lang": "de", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "This contact is busy": [ - null, - "Dieser Kontakt ist beschäfticht" - ], - "This contact is online": [ - null, - "Dieser Kontakt ist online" - ], - "This contact is offline": [ - null, - "Dieser Kontakt ist offline" - ], - "This contact is unavailable": [ - null, - "Dieser Kontakt ist nicht verfügbar" - ], - "This contact is away for an extended period": [ - null, - "Dieser Kontakt is für längere Zeit abwesend" - ], - "This contact is away": [ - null, - "Dieser Kontakt ist abwesend" - ], - "Reconnecting": [ - null, - "Verbindungsaufbau …" - ], - "Disconnected": [ - null, - "Verbindung unterbrochen." - ], - "Error": [ - null, - "Fehler" - ], - "Connecting": [ - null, - "Verbindungsaufbau …" - ], - "Connection Failed": [ - null, - "Entfernte Verbindung fehlgeschlagen" - ], - "Authenticating": [ - null, - "Authentifizierung" - ], - "Authentication Failed": [ - null, - "Authentifizierung gescheitert" - ], - "Disconnecting": [ - null, - "Trenne Verbindung" - ], - "Online Contacts": [ - null, - "Online-Kontakte" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Persönliche Nachricht" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Sie sind nicht auf der Mitgliederliste dieses Raums" - ], - "me": [ - null, - "Ich" - ], - "Show this menu": [ - null, - "Dieses Menü anzeigen" - ], - "Write in the third person": [ - null, - "In der dritten Person schreiben" - ], - "Remove messages": [ - null, - "Nachrichten entfernen" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "Online": [ - null, - "Online" - ], - "Busy": [ - null, - "Beschäfticht" - ], - "Away": [ - null, - "Abwesend" - ], - "Offline": [ - null, - "Abgemeldet" - ], - "Contacts": [ - null, - "Kontakte" - ], - "Contact name": [ - null, - "Name des Kontakts" - ], - "Search": [ - null, - "Suche" - ], - "Contact username": [ - null, - "Benutzername" - ], - "Add": [ - null, - "Hinzufügen" - ], - "Click to add new chat contacts": [ - null, - "Klicken Sie, um einen neuen Kontakt hinzuzufügen" - ], - "Add a contact": [ - null, - "Kontakte hinzufügen" - ], - "No users found": [ - null, - "Keine Benutzer gefunden" - ], - "Click to add as a chat contact": [ - null, - "Hier klicken um als Kontakt hinzuzufügen" - ], - "Room name": [ - null, - "Raumname" - ], - "Nickname": [ - null, - "Spitzname" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Beitreten" - ], - "Show rooms": [ - null, - "Räume anzeigen" - ], - "Rooms": [ - null, - "Räume" - ], - "No rooms on %1$s": [ - null, - "Keine Räume auf %1$s" - ], - "Rooms on %1$s": [ - null, - "Räume auf %1$s" - ], - "Click to open this room": [ - null, - "Hier klicken um diesen Raum zu öffnen" - ], - "Show more information on this room": [ - null, - "Mehr Information über diesen Raum zeigen" - ], - "Description:": [ - null, - "Beschreibung" - ], - "Occupants:": [ - null, - "Teilnehmer" - ], - "Features:": [ - null, - "Funktionen:" - ], - "Requires authentication": [ - null, - "Authentifizierung erforderlich" - ], - "Hidden": [ - null, - "Versteckt" - ], - "Requires an invitation": [ - null, - "Einladung erforderlich" - ], - "Moderated": [ - null, - "Moderiert" - ], - "Non-anonymous": [ - null, - "Nicht anonym" - ], - "Open room": [ - null, - "Offener Raum" - ], - "Permanent room": [ - null, - "Dauerhafter Raum" - ], - "Public": [ - null, - "Öffentlich" - ], - "Semi-anonymous": [ - null, - "Teils anonym" - ], - "Temporary room": [ - null, - "Vorübergehender Raum" - ], - "Unmoderated": [ - null, - "Unmoderiert" - ], - "Set chatroom topic": [ - null, - "Chatraum Thema festlegen" - ], - "Kick user from chatroom": [ - null, - "Werfe einen Benutzer aus dem Raum." - ], - "Ban user from chatroom": [ - null, - "Verbanne einen Benutzer aus dem Raum." - ], - "Message": [ - null, - "Nachricht" - ], - "Save": [ - null, - "Speichern" - ], - "Cancel": [ - null, - "Abbrechen" - ], - "An error occurred while trying to save the form.": [ - null, - "Beim Speichern der Formular is ein Fehler aufgetreten." - ], - "This chatroom requires a password": [ - null, - "Passwort wird für die Anmeldung benötigt." - ], - "Password: ": [ - null, - "Passwort: " - ], - "Submit": [ - null, - "Einreichen" - ], - "This room is not anonymous": [ - null, - "Dieser Raum ist nicht anonym" - ], - "This room now shows unavailable members": [ - null, - "Dieser Raum zeigt jetzt unferfügbare Mitglieder" - ], - "This room does not show unavailable members": [ - null, - "Dieser Raum zeigt nicht unverfügbare Mitglieder" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Die Konfiguration, die nicht auf die Privatsphäre bezogen ist, hat sich geändert" - ], - "Room logging is now enabled": [ - null, - "Zukünftige Nachrichten dieses Raums werden protokolliert." - ], - "Room logging is now disabled": [ - null, - "Zukünftige Nachrichten dieses Raums werden nicht protokolliert." - ], - "This room is now non-anonymous": [ - null, - "Dieser Raum ist jetzt nicht anonym" - ], - "This room is now semi-anonymous": [ - null, - "Dieser Raum ist jetzt teils anonym" - ], - "This room is now fully-anonymous": [ - null, - "Dieser Raum ist jetzt anonym" - ], - "A new room has been created": [ - null, - "Einen neuen Raum ist erstellen" - ], - "Your nickname has been changed": [ - null, - "Spitzname festgelegen" - ], - "%1$s has been banned": [ - null, - "%1$s ist verbannt" - ], - "%1$s has been kicked out": [ - null, - "%1$s ist hinausgeworfen" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s wurde wegen einer Zugehörigkeitsänderung entfernt" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s ist kein Mitglied und wurde daher entfernt" - ], - "You have been banned from this room": [ - null, - "Sie sind aus diesem Raum verbannt worden" - ], - "You have been kicked from this room": [ - null, - "Sie wurden aus diesem Raum hinausgeworfen" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Sie wurden wegen einer Zugehörigkeitsänderung entfernt" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Sie wurden aus diesem Raum entfernt da Sie kein Mitglied sind." - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Sie werden aus diesem Raum entfernt da der MUC (Muli-user chat) Dienst gerade abgeschalten wird." - ], - "You are not on the member list of this room": [ - null, - "Sie sind nicht auf der Mitgliederliste dieses Raums" - ], - "No nickname was specified": [ - null, - "Kein Spitzname festgelegt" - ], - "You are not allowed to create new rooms": [ - null, - "Es ist Ihnen nicht erlaubt, neue Räume anzulegen" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Ungültiger Spitzname" - ], - "Your nickname is already taken": [ - null, - "Ihre Spitzname existiert bereits." - ], - "This room does not (yet) exist": [ - null, - "Dieser Raum existiert (noch) nicht" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Dieser Raum hat die maximale Mitgliederanzahl erreicht" - ], - "Topic set by %1$s to: %2$s": [ - null, - "%1$s hat das Thema zu \"%2$s\" abgeändert" - ], - "This user is a moderator": [ - null, - "Dieser Benutzer ist ein Moderator" - ], - "This user can send messages in this room": [ - null, - "Dieser Benutzer kann Nachrichten in diesem Raum verschicken" - ], - "This user can NOT send messages in this room": [ - null, - "Dieser Benutzer kann keine Nachrichten in diesem Raum verschicken" - ], - "Click to restore this chat": [ - null, - "Hier klicken um diesen Kontakt zu entfernen" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Hier klicken um diesen Kontakt zu entfernen" - ], - "Click to remove this contact": [ - null, - "Hier klicken um diesen Kontakt zu entfernen" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "Online" - ], - "Click to chat with this contact": [ - null, - "Hier klicken um mit diesem Kontakt zu chatten" - ], - "My contacts": [ - null, - "Meine Kontakte" - ], - "Contact requests": [ - null, - "Kontaktanfragen" - ], - "Pending contacts": [ - null, - "Unbestätigte Kontakte" - ], - "Custom status": [ - null, - "Status-Nachricht" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "beschäfticht" - ], - "away for long": [ - null, - "länger abwesend" - ], - "away": [ - null, - "abwesend" - ], - "I am %1$s": [ - null, - "Ich bin %1$s" - ], - "Click here to write a custom status message": [ - null, - "Klicken Sie hier, um ihrer Status-Nachricht to ändern" - ], - "Click to change your chat status": [ - null, - "Klicken Sie, um ihrer Status to ändern" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber Benutzername" - ], - "Password:": [ - null, - "Passwort:" - ], - "Log In": [ - null, - "Anmelden" - ], - "Sign in": [ - null, - "Anmelden" - ], - "Toggle chat": [ - null, - "" - ], - "BOSH Service URL:": [ - null, - "BOSH " - ], - "%1$s is typing": [ - null, - "%1$s tippt" - ], - "Connected": [ - null, - "Verbunden" - ], - "Attached": [ - null, - "Angehängt" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "de" + }, + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "Dieser Kontakt ist beschäfticht" + ], + "This contact is online": [ + null, + "Dieser Kontakt ist online" + ], + "This contact is offline": [ + null, + "Dieser Kontakt ist offline" + ], + "This contact is unavailable": [ + null, + "Dieser Kontakt ist nicht verfügbar" + ], + "This contact is away for an extended period": [ + null, + "Dieser Kontakt is für längere Zeit abwesend" + ], + "This contact is away": [ + null, + "Dieser Kontakt ist abwesend" + ], + "My contacts": [ + null, + "Meine Kontakte" + ], + "Pending contacts": [ + null, + "Unbestätigte Kontakte" + ], + "Contact requests": [ + null, + "Kontaktanfragen" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Kontakte" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Fehler" + ], + "Connecting": [ + null, + "Verbindungsaufbau …" + ], + "Authenticating": [ + null, + "Authentifizierung" + ], + "Authentication Failed": [ + null, + "Authentifizierung gescheitert" + ], + "Online Contacts": [ + null, + "Online-Kontakte" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Persönliche Nachricht" + ], + "me": [ + null, + "Ich" + ], + "Show this menu": [ + null, + "Dieses Menü anzeigen" + ], + "Write in the third person": [ + null, + "In der dritten Person schreiben" + ], + "Remove messages": [ + null, + "Nachrichten entfernen" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Beschäfticht" + ], + "Away": [ + null, + "Abwesend" + ], + "Offline": [ + null, + "Abgemeldet" + ], + "Contact name": [ + null, + "Name des Kontakts" + ], + "Search": [ + null, + "Suche" + ], + "Contact username": [ + null, + "Benutzername" + ], + "Add": [ + null, + "Hinzufügen" + ], + "Click to add new chat contacts": [ + null, + "Klicken Sie, um einen neuen Kontakt hinzuzufügen" + ], + "Add a contact": [ + null, + "Kontakte hinzufügen" + ], + "No users found": [ + null, + "Keine Benutzer gefunden" + ], + "Click to add as a chat contact": [ + null, + "Hier klicken um als Kontakt hinzuzufügen" + ], + "Room name": [ + null, + "Raumname" + ], + "Nickname": [ + null, + "Spitzname" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Beitreten" + ], + "Show rooms": [ + null, + "Räume anzeigen" + ], + "Rooms": [ + null, + "Räume" + ], + "No rooms on %1$s": [ + null, + "Keine Räume auf %1$s" + ], + "Rooms on %1$s": [ + null, + "Räume auf %1$s" + ], + "Click to open this room": [ + null, + "Hier klicken um diesen Raum zu öffnen" + ], + "Show more information on this room": [ + null, + "Mehr Information über diesen Raum zeigen" + ], + "Description:": [ + null, + "Beschreibung" + ], + "Occupants:": [ + null, + "Teilnehmer" + ], + "Features:": [ + null, + "Funktionen:" + ], + "Requires authentication": [ + null, + "Authentifizierung erforderlich" + ], + "Hidden": [ + null, + "Versteckt" + ], + "Requires an invitation": [ + null, + "Einladung erforderlich" + ], + "Moderated": [ + null, + "Moderiert" + ], + "Non-anonymous": [ + null, + "Nicht anonym" + ], + "Open room": [ + null, + "Offener Raum" + ], + "Permanent room": [ + null, + "Dauerhafter Raum" + ], + "Public": [ + null, + "Öffentlich" + ], + "Semi-anonymous": [ + null, + "Teils anonym" + ], + "Temporary room": [ + null, + "Vorübergehender Raum" + ], + "Unmoderated": [ + null, + "Unmoderiert" + ], + "This user is a moderator": [ + null, + "Dieser Benutzer ist ein Moderator" + ], + "This user can send messages in this room": [ + null, + "Dieser Benutzer kann Nachrichten in diesem Raum verschicken" + ], + "This user can NOT send messages in this room": [ + null, + "Dieser Benutzer kann keine Nachrichten in diesem Raum verschicken" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Nachricht" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Speichern" + ], + "Cancel": [ + null, + "Abbrechen" + ], + "An error occurred while trying to save the form.": [ + null, + "Beim Speichern der Formular is ein Fehler aufgetreten." + ], + "This chatroom requires a password": [ + null, + "Passwort wird für die Anmeldung benötigt." + ], + "Password: ": [ + null, + "Passwort: " + ], + "Submit": [ + null, + "Einreichen" + ], + "This room is not anonymous": [ + null, + "Dieser Raum ist nicht anonym" + ], + "This room now shows unavailable members": [ + null, + "Dieser Raum zeigt jetzt unferfügbare Mitglieder" + ], + "This room does not show unavailable members": [ + null, + "Dieser Raum zeigt nicht unverfügbare Mitglieder" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Die Konfiguration, die nicht auf die Privatsphäre bezogen ist, hat sich geändert" + ], + "Room logging is now enabled": [ + null, + "Zukünftige Nachrichten dieses Raums werden protokolliert." + ], + "Room logging is now disabled": [ + null, + "Zukünftige Nachrichten dieses Raums werden nicht protokolliert." + ], + "This room is now non-anonymous": [ + null, + "Dieser Raum ist jetzt nicht anonym" + ], + "This room is now semi-anonymous": [ + null, + "Dieser Raum ist jetzt teils anonym" + ], + "This room is now fully-anonymous": [ + null, + "Dieser Raum ist jetzt anonym" + ], + "A new room has been created": [ + null, + "Einen neuen Raum ist erstellen" + ], + "You have been banned from this room": [ + null, + "Sie sind aus diesem Raum verbannt worden" + ], + "You have been kicked from this room": [ + null, + "Sie wurden aus diesem Raum hinausgeworfen" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Sie wurden wegen einer Zugehörigkeitsänderung entfernt" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Sie wurden aus diesem Raum entfernt da Sie kein Mitglied sind." + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Sie werden aus diesem Raum entfernt da der MUC (Muli-user chat) Dienst gerade abgeschalten wird." + ], + "%1$s has been banned": [ + null, + "%1$s ist verbannt" + ], + "%1$s has been kicked out": [ + null, + "%1$s ist hinausgeworfen" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s wurde wegen einer Zugehörigkeitsänderung entfernt" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s ist kein Mitglied und wurde daher entfernt" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Sie sind nicht auf der Mitgliederliste dieses Raums" + ], + "No nickname was specified": [ + null, + "Kein Spitzname festgelegt" + ], + "You are not allowed to create new rooms": [ + null, + "Es ist Ihnen nicht erlaubt, neue Räume anzulegen" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Ungültiger Spitzname" + ], + "Your nickname is already taken": [ + null, + "Ihre Spitzname existiert bereits." + ], + "This room does not (yet) exist": [ + null, + "Dieser Raum existiert (noch) nicht" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Dieser Raum hat die maximale Mitgliederanzahl erreicht" + ], + "Topic set by %1$s to: %2$s": [ + null, + "%1$s hat das Thema zu \"%2$s\" abgeändert" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Hier klicken um diesen Kontakt zu entfernen" + ], + "Click to chat with this contact": [ + null, + "Hier klicken um mit diesem Kontakt zu chatten" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Ich bin %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klicken Sie hier, um ihrer Status-Nachricht to ändern" + ], + "Click to change your chat status": [ + null, + "Klicken Sie, um ihrer Status to ändern" + ], + "Custom status": [ + null, + "Status-Nachricht" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "beschäfticht" + ], + "away for long": [ + null, + "länger abwesend" + ], + "away": [ + null, + "abwesend" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Passwort:" + ], + "Log In": [ + null, + "Anmelden" + ], + "Sign in": [ + null, + "Anmelden" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/de/LC_MESSAGES/de.js b/locale/de/LC_MESSAGES/de.js deleted file mode 100644 index e7980288f..000000000 --- a/locale/de/LC_MESSAGES/de.js +++ /dev/null @@ -1,637 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2013-09-15 21:55+0200", - "PO-Revision-Date": "2013-09-15 22:03+0200", - "Last-Translator": "JC Brand ", - "Language-Team": "German", - "Language": "de", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "domain": "converse", - "lang": "de", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "Disconnected": [ - null, - "Verbindung unterbrochen." - ], - "Error": [ - null, - "Fehler" - ], - "Connecting": [ - null, - "Verbindungsaufbau …" - ], - "Connection Failed": [ - null, - "Entfernte Verbindung fehlgeschlagen" - ], - "Authenticating": [ - null, - "Authentifizierung" - ], - "Authentication Failed": [ - null, - "Authentifizierung gescheitert" - ], - "Disconnecting": [ - null, - "Trenne Verbindung" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [ - null, - "" - ], - "Private key generated.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Personal message": [ - null, - "Persönliche Nachricht" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "me": [ - null, - "Ich" - ], - "Show this menu": [ - null, - "Dieses Menü anzeigen" - ], - "Write in the third person": [ - null, - "In der dritten Person schreiben" - ], - "Remove messages": [ - null, - "Nachrichten entfernen" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "Contacts": [ - null, - "Kontakte" - ], - "Online": [ - null, - "Online" - ], - "Busy": [ - null, - "Beschäfticht" - ], - "Away": [ - null, - "Abwesend" - ], - "Offline": [ - null, - "Abgemeldet" - ], - "Click to add new chat contacts": [ - null, - "Klicken Sie, um einen neuen Kontakt hinzuzufügen" - ], - "Add a contact": [ - null, - "Kontakte hinzufügen" - ], - "Contact username": [ - null, - "Benutzername" - ], - "Add": [ - null, - "Hinzufügen" - ], - "Contact name": [ - null, - "Name des Kontakts" - ], - "Search": [ - null, - "Suche" - ], - "No users found": [ - null, - "Keine Benutzer gefunden" - ], - "Click to add as a chat contact": [ - null, - "Hier klicken um als Kontakt hinzuzufügen" - ], - "Click to open this room": [ - null, - "Hier klicken um diesen Raum zu öffnen" - ], - "Show more information on this room": [ - null, - "Mehr Information über diesen Raum zeigen" - ], - "Description:": [ - null, - "Beschreibung" - ], - "Occupants:": [ - null, - "Teilnehmer" - ], - "Features:": [ - null, - "Funktionen:" - ], - "Requires authentication": [ - null, - "Authentifizierung erforderlich" - ], - "Hidden": [ - null, - "Versteckt" - ], - "Requires an invitation": [ - null, - "Einladung erforderlich" - ], - "Moderated": [ - null, - "Moderiert" - ], - "Non-anonymous": [ - null, - "Nicht anonym" - ], - "Open room": [ - null, - "Offener Raum" - ], - "Permanent room": [ - null, - "Dauerhafter Raum" - ], - "Public": [ - null, - "Öffentlich" - ], - "Semi-anonymous": [ - null, - "Teils anonym" - ], - "Temporary room": [ - null, - "Vorübergehender Raum" - ], - "Unmoderated": [ - null, - "Unmoderiert" - ], - "Rooms": [ - null, - "Räume" - ], - "Room name": [ - null, - "Raumname" - ], - "Nickname": [ - null, - "Spitzname" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Beitreten" - ], - "Show rooms": [ - null, - "Räume anzeigen" - ], - "No rooms on %1$s": [ - null, - "Keine Räume auf %1$s" - ], - "Rooms on %1$s": [ - null, - "Räume auf %1$s" - ], - "Set chatroom topic": [ - null, - "Chatraum Thema festlegen" - ], - "Kick user from chatroom": [ - null, - "Werfe einen Benutzer aus dem Raum." - ], - "Ban user from chatroom": [ - null, - "Verbanne einen Benutzer aus dem Raum." - ], - "Message": [ - null, - "Nachricht" - ], - "Save": [ - null, - "Speichern" - ], - "Cancel": [ - null, - "Abbrechen" - ], - "An error occurred while trying to save the form.": [ - null, - "Beim Speichern der Formular is ein Fehler aufgetreten." - ], - "This chatroom requires a password": [ - null, - "Passwort wird für die Anmeldung benötigt." - ], - "Password: ": [ - null, - "Passwort: " - ], - "Submit": [ - null, - "Einreichen" - ], - "This room is not anonymous": [ - null, - "Dieser Raum ist nicht anonym" - ], - "This room now shows unavailable members": [ - null, - "Dieser Raum zeigt jetzt unferfügbare Mitglieder" - ], - "This room does not show unavailable members": [ - null, - "Dieser Raum zeigt nicht unverfügbare Mitglieder" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Die Konfiguration, die nicht auf die Privatsphäre bezogen ist, hat sich geändert" - ], - "Room logging is now enabled": [ - null, - "Zukünftige Nachrichten dieses Raums werden protokolliert." - ], - "Room logging is now disabled": [ - null, - "Zukünftige Nachrichten dieses Raums werden nicht protokolliert." - ], - "This room is now non-anonymous": [ - null, - "Dieser Raum ist jetzt nicht anonym" - ], - "This room is now semi-anonymous": [ - null, - "Dieser Raum ist jetzt teils anonym" - ], - "This room is now fully-anonymous": [ - null, - "Dieser Raum ist jetzt anonym" - ], - "A new room has been created": [ - null, - "Einen neuen Raum ist erstellen" - ], - "Your nickname has been changed": [ - null, - "Spitzname festgelegen" - ], - "%1$s has been banned": [ - null, - "%1$s ist verbannt" - ], - "%1$s has been kicked out": [ - null, - "%1$s ist hinausgeworfen" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s wurde wegen einer Zugehörigkeitsänderung entfernt" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s ist kein Mitglied und wurde daher entfernt" - ], - "You have been banned from this room": [ - null, - "Sie sind aus diesem Raum verbannt worden" - ], - "You have been kicked from this room": [ - null, - "Sie wurden aus diesem Raum hinausgeworfen" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Sie wurden wegen einer Zugehörigkeitsänderung entfernt" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Sie wurden aus diesem Raum entfernt da Sie kein Mitglied sind." - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Sie werden aus diesem Raum entfernt da der MUC (Muli-user chat) Dienst gerade abgeschalten wird." - ], - "You are not on the member list of this room": [ - null, - "Sie sind nicht auf der Mitgliederliste dieses Raums" - ], - "No nickname was specified": [ - null, - "Kein Spitzname festgelegt" - ], - "You are not allowed to create new rooms": [ - null, - "Es ist Ihnen nicht erlaubt, neue Räume anzulegen" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Ungültiger Spitzname" - ], - "Your nickname is already taken": [ - null, - "Ihre Spitzname existiert bereits." - ], - "This room does not (yet) exist": [ - null, - "Dieser Raum existiert (noch) nicht" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Dieser Raum hat die maximale Mitgliederanzahl erreicht" - ], - "Topic set by %1$s to: %2$s": [ - null, - "%1$s hat das Thema zu \"%2$s\" abgeändert" - ], - "This user is a moderator": [ - null, - "Dieser Benutzer ist ein Moderator" - ], - "This user can send messages in this room": [ - null, - "Dieser Benutzer kann Nachrichten in diesem Raum verschicken" - ], - "This user can NOT send messages in this room": [ - null, - "Dieser Benutzer kann keine Nachrichten in diesem Raum verschicken" - ], - "Click to chat with this contact": [ - null, - "Hier klicken um mit diesem Kontakt zu chatten" - ], - "Click to remove this contact": [ - null, - "Hier klicken um diesen Kontakt zu entfernen" - ], - "This contact is busy": [ - null, - "Dieser Kontakt ist beschäfticht" - ], - "This contact is online": [ - null, - "Dieser Kontakt ist online" - ], - "This contact is offline": [ - null, - "Dieser Kontakt ist offline" - ], - "This contact is unavailable": [ - null, - "Dieser Kontakt ist nicht verfügbar" - ], - "This contact is away for an extended period": [ - null, - "Dieser Kontakt is für längere Zeit abwesend" - ], - "This contact is away": [ - null, - "Dieser Kontakt ist abwesend" - ], - "Contact requests": [ - null, - "Kontaktanfragen" - ], - "My contacts": [ - null, - "Meine Kontakte" - ], - "Pending contacts": [ - null, - "Unbestätigte Kontakte" - ], - "Custom status": [ - null, - "Status-Nachricht" - ], - "Click to change your chat status": [ - null, - "Klicken Sie, um ihrer Status to ändern" - ], - "Click here to write a custom status message": [ - null, - "Klicken Sie hier, um ihrer Status-Nachricht to ändern" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "beschäfticht" - ], - "away for long": [ - null, - "länger abwesend" - ], - "away": [ - null, - "abwesend" - ], - "I am %1$s": [ - null, - "Ich bin %1$s" - ], - "Sign in": [ - null, - "Anmelden" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber Benutzername" - ], - "Password:": [ - null, - "Passwort:" - ], - "Log In": [ - null, - "Anmelden" - ], - "BOSH Service URL:": [ - null, - "BOSH " - ], - "Online Contacts": [ - null, - "Online-Kontakte" - ], - "%1$s is typing": [ - null, - "%1$s tippt" - ], - "Connected": [ - null, - "Verbunden" - ], - "Attached": [ - null, - "Angehängt" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("de", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.de = factory(new Jed(translations)); - } -}(this, function (de) { - return de; -})); diff --git a/locale/en/LC_MESSAGES/converse.json b/locale/en/LC_MESSAGES/converse.json index 03beb7a09..c81c8f9ae 100644 --- a/locale/en/LC_MESSAGES/converse.json +++ b/locale/en/LC_MESSAGES/converse.json @@ -1,653 +1,696 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-15 22:15+0200", - "Last-Translator": "JC Brand ", - "Language-Team": "English", - "Language": "en", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=ASCII", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "unencrypted" - ], - "unverified": [ - null, - "unverified" - ], - "verified": [ - null, - "verified" - ], - "finished": [ - null, - "finished" - ], - "This contact is busy": [ - null, - "" - ], - "This contact is online": [ - null, - "" - ], - "This contact is offline": [ - null, - "" - ], - "This contact is unavailable": [ - null, - "" - ], - "This contact is away for an extended period": [ - null, - "" - ], - "This contact is away": [ - null, - "" - ], - "Reconnecting": [ - null, - "Connecting" - ], - "Disconnected": [ - null, - "Disconnected" - ], - "Error": [ - null, - "Error" - ], - "Connecting": [ - null, - "Connecting" - ], - "Connection Failed": [ - null, - "Connection Failed" - ], - "Authenticating": [ - null, - "Authenticating" - ], - "Authentication Failed": [ - null, - "Authentication Failed" - ], - "Disconnecting": [ - null, - "Disconnecting" - ], - "Online Contacts": [ - null, - "Online Contacts" - ], - "Re-establishing encrypted session": [ - null, - "Re-establishing encrypted session" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Personal message" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "You are not on the member list of this room" - ], - "me": [ - null, - "" - ], - "Show this menu": [ - null, - "Show this menu" - ], - "Write in the third person": [ - null, - "Write in the third person" - ], - "Remove messages": [ - null, - "Remove messages" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "Online": [ - null, - "Online" - ], - "Busy": [ - null, - "Busy" - ], - "Away": [ - null, - "Away" - ], - "Offline": [ - null, - "Offline" - ], - "Contacts": [ - null, - "Contacts" - ], - "Contact name": [ - null, - "Contact name" - ], - "Search": [ - null, - "Search" - ], - "Contact username": [ - null, - "Contact username" - ], - "Add": [ - null, - "Add" - ], - "Click to add new chat contacts": [ - null, - "Click to add new chat contacts" - ], - "Add a contact": [ - null, - "Add a contact" - ], - "No users found": [ - null, - "No users found" - ], - "Click to add as a chat contact": [ - null, - "Click to add as a chat contact" - ], - "Room name": [ - null, - "Room name" - ], - "Nickname": [ - null, - "Nickname" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Join" - ], - "Show rooms": [ - null, - "Show rooms" - ], - "Rooms": [ - null, - "Rooms" - ], - "No rooms on %1$s": [ - null, - "No rooms on %1$s" - ], - "Rooms on %1$s": [ - null, - "Rooms on %1$s" - ], - "Click to open this room": [ - null, - "Click to open this room" - ], - "Show more information on this room": [ - null, - "Show more information on this room" - ], - "Description:": [ - null, - "Description:" - ], - "Occupants:": [ - null, - "Occupants:" - ], - "Features:": [ - null, - "Features:" - ], - "Requires authentication": [ - null, - "Requires authentication" - ], - "Hidden": [ - null, - "Hidden" - ], - "Requires an invitation": [ - null, - "Requires an invitation" - ], - "Moderated": [ - null, - "Moderated" - ], - "Non-anonymous": [ - null, - "Non-anonymous" - ], - "Open room": [ - null, - "Open room" - ], - "Permanent room": [ - null, - "Permanent room" - ], - "Public": [ - null, - "Public" - ], - "Semi-anonymous": [ - null, - "Semi-anonymous" - ], - "Temporary room": [ - null, - "Temporary room" - ], - "Unmoderated": [ - null, - "Unmoderated" - ], - "Set chatroom topic": [ - null, - "Set chatroom topic" - ], - "Kick user from chatroom": [ - null, - "Kick user from chatroom" - ], - "Ban user from chatroom": [ - null, - "Ban user from chatroom" - ], - "Message": [ - null, - "Message" - ], - "Save": [ - null, - "Save" - ], - "Cancel": [ - null, - "Cancel" - ], - "An error occurred while trying to save the form.": [ - null, - "An error occurred while trying to save the form." - ], - "This chatroom requires a password": [ - null, - "This chatroom requires a password" - ], - "Password: ": [ - null, - "Password: " - ], - "Submit": [ - null, - "Submit" - ], - "This room is not anonymous": [ - null, - "This room is not anonymous" - ], - "This room now shows unavailable members": [ - null, - "This room now shows unavailable members" - ], - "This room does not show unavailable members": [ - null, - "This room does not show unavailable members" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Non-privacy-related room configuration has changed" - ], - "Room logging is now enabled": [ - null, - "Room logging is now enabled" - ], - "Room logging is now disabled": [ - null, - "Room logging is now disabled" - ], - "This room is now non-anonymous": [ - null, - "This room is now non-anonymous" - ], - "This room is now semi-anonymous": [ - null, - "This room is now semi-anonymous" - ], - "This room is now fully-anonymous": [ - null, - "This room is now fully-anonymous" - ], - "A new room has been created": [ - null, - "A new room has been created" - ], - "Your nickname has been changed": [ - null, - "Your nickname has been changed" - ], - "%1$s has been banned": [ - null, - "%1$s has been banned" - ], - "%1$s has been kicked out": [ - null, - "%1$s has been kicked out" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s has been removed because of an affiliation change" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s has been removed for not being a member" - ], - "You have been banned from this room": [ - null, - "You have been banned from this room" - ], - "You have been kicked from this room": [ - null, - "You have been kicked from this room" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "You have been removed from this room because of an affiliation change" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "You have been removed from this room because the room has changed to members-only and you're not a member" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down." - ], - "You are not on the member list of this room": [ - null, - "You are not on the member list of this room" - ], - "No nickname was specified": [ - null, - "No nickname was specified" - ], - "You are not allowed to create new rooms": [ - null, - "You are not allowed to create new rooms" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Your nickname doesn't conform to this room's policies" - ], - "Your nickname is already taken": [ - null, - "Your nickname is already taken" - ], - "This room does not (yet) exist": [ - null, - "This room does not (yet) exist" - ], - "This room has reached it's maximum number of occupants": [ - null, - "This room has reached it's maximum number of occupants" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Topic set by %1$s to: %2$s" - ], - "This user is a moderator": [ - null, - "This user is a moderator" - ], - "This user can send messages in this room": [ - null, - "This user can send messages in this room" - ], - "This user can NOT send messages in this room": [ - null, - "This user can NOT send messages in this room" - ], - "Click to restore this chat": [ - null, - "Click to remove this contact" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Click to remove this contact" - ], - "Click to remove this contact": [ - null, - "Click to remove this contact" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "Online" - ], - "Click to chat with this contact": [ - null, - "Click to chat with this contact" - ], - "My contacts": [ - null, - "My contacts" - ], - "Contact requests": [ - null, - "Contact requests" - ], - "Pending contacts": [ - null, - "Pending contacts" - ], - "Custom status": [ - null, - "Custom status" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "busy" - ], - "away for long": [ - null, - "away for long" - ], - "away": [ - null, - "away" - ], - "I am %1$s": [ - null, - "I am %1$s" - ], - "Click here to write a custom status message": [ - null, - "Click here to write a custom status message" - ], - "Click to change your chat status": [ - null, - "Click to change your chat status" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber Username:" - ], - "Password:": [ - null, - "Password:" - ], - "Log In": [ - null, - "Log In" - ], - "Sign in": [ - null, - "Sign in" - ], - "Toggle chat": [ - null, - "" - ], - "BOSH Service URL:": [ - null, - "BOSH Service URL:" - ], - "Connected": [ - null, - "Connected" - ], - "Attached": [ - null, - "Attached" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "en" + }, + "unencrypted": [ + null, + "unencrypted" + ], + "unverified": [ + null, + "unverified" + ], + "verified": [ + null, + "verified" + ], + "finished": [ + null, + "finished" + ], + "This contact is busy": [ + null, + "" + ], + "This contact is online": [ + null, + "" + ], + "This contact is offline": [ + null, + "" + ], + "This contact is unavailable": [ + null, + "" + ], + "This contact is away for an extended period": [ + null, + "" + ], + "This contact is away": [ + null, + "" + ], + "My contacts": [ + null, + "My contacts" + ], + "Pending contacts": [ + null, + "Pending contacts" + ], + "Contact requests": [ + null, + "Contact requests" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contacts" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Error" + ], + "Connecting": [ + null, + "Connecting" + ], + "Authenticating": [ + null, + "Authenticating" + ], + "Authentication Failed": [ + null, + "Authentication Failed" + ], + "Online Contacts": [ + null, + "Online Contacts" + ], + "Re-establishing encrypted session": [ + null, + "Re-establishing encrypted session" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Personal message" + ], + "me": [ + null, + "" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Show this menu" + ], + "Write in the third person": [ + null, + "Write in the third person" + ], + "Remove messages": [ + null, + "Remove messages" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Busy" + ], + "Away": [ + null, + "Away" + ], + "Offline": [ + null, + "Offline" + ], + "Contact name": [ + null, + "Contact name" + ], + "Search": [ + null, + "Search" + ], + "Contact username": [ + null, + "Contact username" + ], + "Add": [ + null, + "Add" + ], + "Click to add new chat contacts": [ + null, + "Click to add new chat contacts" + ], + "Add a contact": [ + null, + "Add a contact" + ], + "No users found": [ + null, + "No users found" + ], + "Click to add as a chat contact": [ + null, + "Click to add as a chat contact" + ], + "Room name": [ + null, + "Room name" + ], + "Nickname": [ + null, + "Nickname" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Join" + ], + "Show rooms": [ + null, + "Show rooms" + ], + "Rooms": [ + null, + "Rooms" + ], + "No rooms on %1$s": [ + null, + "No rooms on %1$s" + ], + "Rooms on %1$s": [ + null, + "Rooms on %1$s" + ], + "Click to open this room": [ + null, + "Click to open this room" + ], + "Show more information on this room": [ + null, + "Show more information on this room" + ], + "Description:": [ + null, + "Description:" + ], + "Occupants:": [ + null, + "Occupants:" + ], + "Features:": [ + null, + "Features:" + ], + "Requires authentication": [ + null, + "Requires authentication" + ], + "Hidden": [ + null, + "Hidden" + ], + "Requires an invitation": [ + null, + "Requires an invitation" + ], + "Moderated": [ + null, + "Moderated" + ], + "Non-anonymous": [ + null, + "Non-anonymous" + ], + "Open room": [ + null, + "Open room" + ], + "Permanent room": [ + null, + "Permanent room" + ], + "Public": [ + null, + "Public" + ], + "Semi-anonymous": [ + null, + "Semi-anonymous" + ], + "Temporary room": [ + null, + "Temporary room" + ], + "Unmoderated": [ + null, + "Unmoderated" + ], + "This user is a moderator": [ + null, + "This user is a moderator" + ], + "This user can send messages in this room": [ + null, + "This user can send messages in this room" + ], + "This user can NOT send messages in this room": [ + null, + "This user can NOT send messages in this room" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Message" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Save" + ], + "Cancel": [ + null, + "Cancel" + ], + "An error occurred while trying to save the form.": [ + null, + "An error occurred while trying to save the form." + ], + "This chatroom requires a password": [ + null, + "This chatroom requires a password" + ], + "Password: ": [ + null, + "Password: " + ], + "Submit": [ + null, + "Submit" + ], + "This room is not anonymous": [ + null, + "This room is not anonymous" + ], + "This room now shows unavailable members": [ + null, + "This room now shows unavailable members" + ], + "This room does not show unavailable members": [ + null, + "This room does not show unavailable members" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Non-privacy-related room configuration has changed" + ], + "Room logging is now enabled": [ + null, + "Room logging is now enabled" + ], + "Room logging is now disabled": [ + null, + "Room logging is now disabled" + ], + "This room is now non-anonymous": [ + null, + "This room is now non-anonymous" + ], + "This room is now semi-anonymous": [ + null, + "This room is now semi-anonymous" + ], + "This room is now fully-anonymous": [ + null, + "This room is now fully-anonymous" + ], + "A new room has been created": [ + null, + "A new room has been created" + ], + "You have been banned from this room": [ + null, + "You have been banned from this room" + ], + "You have been kicked from this room": [ + null, + "You have been kicked from this room" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "You have been removed from this room because of an affiliation change" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "You have been removed from this room because the room has changed to members-only and you're not a member" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down." + ], + "%1$s has been banned": [ + null, + "%1$s has been banned" + ], + "%1$s has been kicked out": [ + null, + "%1$s has been kicked out" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s has been removed because of an affiliation change" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s has been removed for not being a member" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "You are not on the member list of this room" + ], + "No nickname was specified": [ + null, + "No nickname was specified" + ], + "You are not allowed to create new rooms": [ + null, + "You are not allowed to create new rooms" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Your nickname doesn't conform to this room's policies" + ], + "Your nickname is already taken": [ + null, + "Your nickname is already taken" + ], + "This room does not (yet) exist": [ + null, + "This room does not (yet) exist" + ], + "This room has reached it's maximum number of occupants": [ + null, + "This room has reached it's maximum number of occupants" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topic set by %1$s to: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Click to remove this contact" + ], + "Click to chat with this contact": [ + null, + "Click to chat with this contact" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "I am %1$s" + ], + "Click here to write a custom status message": [ + null, + "Click here to write a custom status message" + ], + "Click to change your chat status": [ + null, + "Click to change your chat status" + ], + "Custom status": [ + null, + "Custom status" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "busy" + ], + "away for long": [ + null, + "away for long" + ], + "away": [ + null, + "away" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Password:" + ], + "Log In": [ + null, + "Log In" + ], + "Sign in": [ + null, + "Sign in" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/en/LC_MESSAGES/en.js b/locale/en/LC_MESSAGES/en.js deleted file mode 100644 index e1452bb6f..000000000 --- a/locale/en/LC_MESSAGES/en.js +++ /dev/null @@ -1,26 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "domain": "converse", - "lang": "en", - "plural_forms": "nplurals=2; plural=(n != 1);" - } - } - } - }; - if (typeof define === 'function' && define.amd) { - define("en", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.en = factory(new Jed(translations)); - } -}(this, function (en) { - return en; -})); diff --git a/locale/es/LC_MESSAGES/converse.json b/locale/es/LC_MESSAGES/converse.json index 38d219571..fc4d2a45a 100644 --- a/locale/es/LC_MESSAGES/converse.json +++ b/locale/es/LC_MESSAGES/converse.json @@ -1,661 +1,676 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-15 21:59+0200", - "Last-Translator": "Javier Lopez ", - "Language-Team": "ES ", - "Language": "es", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "plural_forms": "nplurals=2; plural=(n != 1);", - "lang": "es", - "Language-Code": "es", - "Language-Name": "Español", - "Preferred-Encodings": "utf-8 latin1", - "Domain": "converse", - "domain": "converse", - "X-Is-Fallback-For": "es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve" - }, - "unencrypted": [ - null, - "texto plano" - ], - "unverified": [ - null, - "sin verificar" - ], - "verified": [ - null, - "verificado" - ], - "finished": [ - null, - "finalizado" - ], - "This contact is busy": [ - null, - "Este contacto está ocupado" - ], - "This contact is online": [ - null, - "Este contacto está en línea" - ], - "This contact is offline": [ - null, - "Este contacto está desconectado" - ], - "This contact is unavailable": [ - null, - "Este contacto no está disponible" - ], - "This contact is away for an extended period": [ - null, - "Este contacto está ausente por un largo periodo de tiempo" - ], - "This contact is away": [ - null, - "Este contacto está ausente" - ], - "Reconnecting": [ - null, - "Reconectando" - ], - "Disconnected": [ - null, - "Desconectado" - ], - "Error": [ - null, - "Error" - ], - "Connecting": [ - null, - "Conectando" - ], - "Connection Failed": [ - null, - "La conexión falló" - ], - "Authenticating": [ - null, - "Autenticando" - ], - "Authentication Failed": [ - null, - "La autenticación falló" - ], - "Disconnecting": [ - null, - "Desconectando" - ], - "Online Contacts": [ - null, - "En línea" - ], - "Re-establishing encrypted session": [ - null, - "Re-estableciendo sesión cifrada" - ], - "Generating private key.": [ - null, - "Generando llave privada" - ], - "Your browser might become unresponsive.": [ - null, - "Su navegador podría dejar de responder por un momento" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "Petición de autenticación de %1$s\n\nSu contacto intenta verificar su identidad haciendo la siguiente pregunta.\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "No se pudo verificar la identidad de este usuario" - ], - "Exchanging private key with buddy.": [ - null, - "Intercambiando llaves privadas" - ], - "Personal message": [ - null, - "Mensaje personal" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "¿Está seguro de querer limpiar los mensajes de esta sala?" - ], - "me": [ - null, - "yo" - ], - "Show this menu": [ - null, - "Mostrar este menú" - ], - "Write in the third person": [ - null, - "Escribir en tercera persona" - ], - "Remove messages": [ - null, - "Eliminar mensajes" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "¿Está seguro de querer limpiar los mensajes de esta conversación?" - ], - "Your message could not be sent": [ - null, - "Su mensaje no se pudo enviar" - ], - "We received an unencrypted message": [ - null, - "Se recibío un mensaje sin cifrar" - ], - "We received an unreadable encrypted message": [ - null, - "Se recibío un mensaje cifrado corrupto" - ], - "This user has requested an encrypted session.": [ - null, - "El usuario ha solicitado una sesión cifrada" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "Por favor confirme los identificadores de %1$s fuera de este chat\n\n. Su identificador es, %2$s: %3$s\n\n. El identificador de %1$s es: %4$s\n\n. Después de confirmar los identificadores haga click en OK, cancele si no concuerdan." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "Se le solicitará una pregunta de seguridad.\n\n. La pregunta que responda se le hará a su contacto, si las respuestas concuerdan (cuidando mayúsculas/minúsculas) su identidad quedará verificada." - ], - "What is your security question?": [ - null, - "Introduzca su pregunta de seguridad" - ], - "What is the answer to the security question?": [ - null, - "Introduzca la respuesta a su pregunta de seguridad" - ], - "Invalid authentication scheme provided": [ - null, - "Esquema de autenticación inválido" - ], - "Your messages are not encrypted anymore": [ - null, - "Sus mensajes han dejado de cifrarse" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "Sus mensajes están ahora cifrados pero la identidad de su contacto no ha sido verificada" - ], - "Your buddy's identify has been verified.": [ - null, - "La identidad de su contacto ha sido confirmada" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "Su contacto finalizó la sesión cifrada, debería hacer lo mismo" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Sus mensajes no están cifrados. Haga click aquí para habilitar el cifrado OTR" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Sus mensajes están cifrados pero la identidad de su contacto no ha sido verificada" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Sus mensajes están cifrados y su contacto ha sido verificado" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "Su contacto ha finalizado la sesión actual, debería hacer lo mismo" - ], - "End encrypted conversation": [ - null, - "Finalizar sesión cifrada" - ], - "Refresh encrypted conversation": [ - null, - "Actualizar sesión cifrada" - ], - "Start encrypted conversation": [ - null, - "Iniciar sesión cifrada" - ], - "Verify with fingerprints": [ - null, - "Verificar con identificadores" - ], - "Verify with SMP": [ - null, - "Verificar con SMP" - ], - "What's this?": [ - null, - "¿Qué es esto?" - ], - "Online": [ - null, - "En línea" - ], - "Busy": [ - null, - "Ocupado" - ], - "Away": [ - null, - "Ausente" - ], - "Offline": [ - null, - "Desconectado" - ], - "Contacts": [ - null, - "Contactos" - ], - "Contact name": [ - null, - "Nombre de contacto" - ], - "Search": [ - null, - "Búsqueda" - ], - "Contact username": [ - null, - "Nombre de usuario de contacto" - ], - "Add": [ - null, - "Agregar" - ], - "Click to add new chat contacts": [ - null, - "Haga click para agregar nuevos contactos al chat" - ], - "Add a contact": [ - null, - "Agregar un contacto" - ], - "No users found": [ - null, - "Sin usuarios encontrados" - ], - "Click to add as a chat contact": [ - null, - "Haga click para agregar como contacto de chat" - ], - "Room name": [ - null, - "Nombre de sala" - ], - "Nickname": [ - null, - "Apodo" - ], - "Server": [ - null, - "Servidor" - ], - "Join": [ - null, - "Unirse" - ], - "Show rooms": [ - null, - "Mostrar salas" - ], - "Rooms": [ - null, - "Salas" - ], - "No rooms on %1$s": [ - null, - "Sin salas en %1$s" - ], - "Rooms on %1$s": [ - null, - "Salas en %1$s" - ], - "Click to open this room": [ - null, - "Haga click para abrir esta sala" - ], - "Show more information on this room": [ - null, - "Mostrar más información en esta sala" - ], - "Description:": [ - null, - "Descripción" - ], - "Occupants:": [ - null, - "Ocupantes:" - ], - "Features:": [ - null, - "Características:" - ], - "Requires authentication": [ - null, - "Autenticación requerida" - ], - "Hidden": [ - null, - "Oculto" - ], - "Requires an invitation": [ - null, - "Requiere una invitación" - ], - "Moderated": [ - null, - "Moderado" - ], - "Non-anonymous": [ - null, - "No anónimo" - ], - "Open room": [ - null, - "Abrir sala" - ], - "Permanent room": [ - null, - "Sala permanente" - ], - "Public": [ - null, - "Pública" - ], - "Semi-anonymous": [ - null, - "Semi anónimo" - ], - "Temporary room": [ - null, - "Sala temporal" - ], - "Unmoderated": [ - null, - "Sin moderar" - ], - "Set chatroom topic": [ - null, - "Definir tema de sala de chat" - ], - "Kick user from chatroom": [ - null, - "Expulsar usuario de sala de chat." - ], - "Ban user from chatroom": [ - null, - "Bloquear usuario de sala de chat." - ], - "Message": [ - null, - "Mensaje" - ], - "Save": [ - null, - "Guardar" - ], - "Cancel": [ - null, - "Cancelar" - ], - "An error occurred while trying to save the form.": [ - null, - "Un error ocurrío mientras se guardaba el formulario." - ], - "This chatroom requires a password": [ - null, - "Esta sala de chat requiere una contraseña." - ], - "Password: ": [ - null, - "Contraseña: " - ], - "Submit": [ - null, - "Enviar" - ], - "This room is not anonymous": [ - null, - "Esta sala no es para usuarios anónimos" - ], - "This room now shows unavailable members": [ - null, - "Esta sala ahora muestra los miembros no disponibles" - ], - "This room does not show unavailable members": [ - null, - "Esta sala no muestra los miembros no disponibles" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Una configuración de la sala no relacionada con la privacidad ha sido cambiada" - ], - "Room logging is now enabled": [ - null, - "El registro de la sala ahora está habilitado" - ], - "Room logging is now disabled": [ - null, - "El registro de la sala ahora está deshabilitado" - ], - "This room is now non-anonymous": [ - null, - "Esta sala ahora es pública" - ], - "This room is now semi-anonymous": [ - null, - "Esta sala ahora es semi-anónima" - ], - "This room is now fully-anonymous": [ - null, - "Esta sala ahora es completamente anónima" - ], - "A new room has been created": [ - null, - "Una nueva sala ha sido creada" - ], - "Your nickname has been changed": [ - null, - "Su apodo ha sido cambiado" - ], - "%1$s has been banned": [ - null, - "%1$s ha sido bloqueado" - ], - "%1$s has been kicked out": [ - null, - "%1$s ha sido expulsado" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s ha sido eliminado debido a un cambio de afiliación" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s ha sido eliminado debido a que no es miembro" - ], - "You have been banned from this room": [ - null, - "Usted ha sido bloqueado de esta sala" - ], - "You have been kicked from this room": [ - null, - "Usted ha sido expulsado de esta sala" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Usted ha sido eliminado de esta sala debido a un cambio de afiliación" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Usted ha sido eliminado de esta sala debido a que la sala cambio su configuración a solo-miembros y usted no es un miembro" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Usted ha sido eliminado de esta sala debido a que el servicio MUC (Multi-user chat) está deshabilitado." - ], - "You are not on the member list of this room": [ - null, - "Usted no está en la lista de miembros de esta sala" - ], - "No nickname was specified": [ - null, - "Sin apodo especificado" - ], - "You are not allowed to create new rooms": [ - null, - "Usted no esta autorizado para crear nuevas salas" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Su apodo no se ajusta a la política de esta sala" - ], - "Your nickname is already taken": [ - null, - "Su apodo ya ha sido tomando por otro usuario" - ], - "This room does not (yet) exist": [ - null, - "Esta sala (aún) no existe" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Esta sala ha alcanzado su número máximo de ocupantes" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Tema fijado por %1$s a: %2$s" - ], - "This user is a moderator": [ - null, - "Este usuario es un moderador" - ], - "This user can send messages in this room": [ - null, - "Este usuario puede enviar mensajes en esta sala" - ], - "This user can NOT send messages in this room": [ - null, - "Este usuario NO puede enviar mensajes en esta" - ], - "Click to restore this chat": [ - null, - "Haga click para eliminar este contacto" - ], - "Minimized": [ - null, - "Minimizado" - ], - "Are you sure you want to remove this contact?": [ - null, - "¿Esta seguro de querer eliminar este contacto?" - ], - "Click to remove this contact": [ - null, - "Haga click para eliminar este contacto" - ], - "Accept": [ - null, - "Aceptar" - ], - "Decline": [ - null, - "Cancelar" - ], - "Click to chat with this contact": [ - null, - "Haga click para conversar con este contacto" - ], - "My contacts": [ - null, - "Mis contactos" - ], - "Contact requests": [ - null, - "Solicitudes de contacto" - ], - "Pending contacts": [ - null, - "Contactos pendientes" - ], - "Custom status": [ - null, - "Personalizar estatus" - ], - "online": [ - null, - "en línea" - ], - "busy": [ - null, - "ocupado" - ], - "away for long": [ - null, - "ausente por mucho tiempo" - ], - "away": [ - null, - "ausente" - ], - "I am %1$s": [ - null, - "Estoy %1$s" - ], - "Click here to write a custom status message": [ - null, - "Haga click para escribir un mensaje de estatus personalizado" - ], - "Click to change your chat status": [ - null, - "Haga click para cambiar su estatus de chat" - ], - "XMPP/Jabber Username:": [ - null, - "Nombre de usuario XMPP/Jabber" - ], - "Password:": [ - null, - "Contraseña:" - ], - "Log In": [ - null, - "Iniciar sesión" - ], - "Sign in": [ - null, - "Registrar" - ], - "Toggle chat": [ - null, - "Chat" - ], - "BOSH Service URL:": [ - null, - "URL del servicio BOSH:" - ], - "Connected": [ - null, - "Conectado" - ], - "Attached": [ - null, - "Adjuntado" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "es" + }, + "unencrypted": [ + null, + "texto plano" + ], + "unverified": [ + null, + "sin verificar" + ], + "verified": [ + null, + "verificado" + ], + "finished": [ + null, + "finalizado" + ], + "This contact is busy": [ + null, + "Este contacto está ocupado" + ], + "This contact is online": [ + null, + "Este contacto está en línea" + ], + "This contact is offline": [ + null, + "Este contacto está desconectado" + ], + "This contact is unavailable": [ + null, + "Este contacto no está disponible" + ], + "This contact is away for an extended period": [ + null, + "Este contacto está ausente por un largo periodo de tiempo" + ], + "This contact is away": [ + null, + "Este contacto está ausente" + ], + "My contacts": [ + null, + "Mis contactos" + ], + "Pending contacts": [ + null, + "Contactos pendientes" + ], + "Contact requests": [ + null, + "Solicitudes de contacto" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contactos" + ], + "Groups": [ + null, + "" + ], + "Reconnecting": [ + null, + "Reconectando" + ], + "Error": [ + null, + "Error" + ], + "Connecting": [ + null, + "Conectando" + ], + "Authenticating": [ + null, + "Autenticando" + ], + "Authentication Failed": [ + null, + "La autenticación falló" + ], + "Online Contacts": [ + null, + "En línea" + ], + "Re-establishing encrypted session": [ + null, + "Re-estableciendo sesión cifrada" + ], + "Generating private key.": [ + null, + "Generando llave privada" + ], + "Your browser might become unresponsive.": [ + null, + "Su navegador podría dejar de responder por un momento" + ], + "Could not verify this user's identify.": [ + null, + "No se pudo verificar la identidad de este usuario" + ], + "Personal message": [ + null, + "Mensaje personal" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "¿Está seguro de querer limpiar los mensajes de esta sala?" + ], + "me": [ + null, + "yo" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Mostrar este menú" + ], + "Write in the third person": [ + null, + "Escribir en tercera persona" + ], + "Remove messages": [ + null, + "Eliminar mensajes" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "¿Está seguro de querer limpiar los mensajes de esta conversación?" + ], + "Your message could not be sent": [ + null, + "Su mensaje no se pudo enviar" + ], + "We received an unencrypted message": [ + null, + "Se recibío un mensaje sin cifrar" + ], + "We received an unreadable encrypted message": [ + null, + "Se recibío un mensaje cifrado corrupto" + ], + "This user has requested an encrypted session.": [ + null, + "El usuario ha solicitado una sesión cifrada" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Por favor confirme los identificadores de %1$s fuera de este chat.\n\nSu identificador es, %2$s: %3$s\n\nEl identificador de %1$s es: %4$s\n\nDespués de confirmar los identificadores haga click en OK, cancele si no concuerdan." + ], + "What is your security question?": [ + null, + "Introduzca su pregunta de seguridad" + ], + "What is the answer to the security question?": [ + null, + "Introduzca la respuesta a su pregunta de seguridad" + ], + "Invalid authentication scheme provided": [ + null, + "Esquema de autenticación inválido" + ], + "Your messages are not encrypted anymore": [ + null, + "Sus mensajes han dejado de cifrarse" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Sus mensajes no están cifrados. Haga click aquí para habilitar el cifrado OTR" + ], + "End encrypted conversation": [ + null, + "Finalizar sesión cifrada" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Actualizar sesión cifrada" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Iniciar sesión cifrada" + ], + "Verify with fingerprints": [ + null, + "Verificar con identificadores" + ], + "Verify with SMP": [ + null, + "Verificar con SMP" + ], + "What's this?": [ + null, + "¿Qué es esto?" + ], + "Online": [ + null, + "En línea" + ], + "Busy": [ + null, + "Ocupado" + ], + "Away": [ + null, + "Ausente" + ], + "Offline": [ + null, + "Desconectado" + ], + "Contact name": [ + null, + "Nombre de contacto" + ], + "Search": [ + null, + "Búsqueda" + ], + "Contact username": [ + null, + "Nombre de usuario de contacto" + ], + "Add": [ + null, + "Agregar" + ], + "Click to add new chat contacts": [ + null, + "Haga click para agregar nuevos contactos al chat" + ], + "Add a contact": [ + null, + "Agregar un contacto" + ], + "No users found": [ + null, + "Sin usuarios encontrados" + ], + "Click to add as a chat contact": [ + null, + "Haga click para agregar como contacto de chat" + ], + "Room name": [ + null, + "Nombre de sala" + ], + "Nickname": [ + null, + "Apodo" + ], + "Server": [ + null, + "Servidor" + ], + "Join": [ + null, + "Unirse" + ], + "Show rooms": [ + null, + "Mostrar salas" + ], + "Rooms": [ + null, + "Salas" + ], + "No rooms on %1$s": [ + null, + "Sin salas en %1$s" + ], + "Rooms on %1$s": [ + null, + "Salas en %1$s" + ], + "Click to open this room": [ + null, + "Haga click para abrir esta sala" + ], + "Show more information on this room": [ + null, + "Mostrar más información en esta sala" + ], + "Description:": [ + null, + "Descripción" + ], + "Occupants:": [ + null, + "Ocupantes:" + ], + "Features:": [ + null, + "Características:" + ], + "Requires authentication": [ + null, + "Autenticación requerida" + ], + "Hidden": [ + null, + "Oculto" + ], + "Requires an invitation": [ + null, + "Requiere una invitación" + ], + "Moderated": [ + null, + "Moderado" + ], + "Non-anonymous": [ + null, + "No anónimo" + ], + "Open room": [ + null, + "Abrir sala" + ], + "Permanent room": [ + null, + "Sala permanente" + ], + "Public": [ + null, + "Pública" + ], + "Semi-anonymous": [ + null, + "Semi anónimo" + ], + "Temporary room": [ + null, + "Sala temporal" + ], + "Unmoderated": [ + null, + "Sin moderar" + ], + "This user is a moderator": [ + null, + "Este usuario es un moderador" + ], + "This user can send messages in this room": [ + null, + "Este usuario puede enviar mensajes en esta sala" + ], + "This user can NOT send messages in this room": [ + null, + "Este usuario NO puede enviar mensajes en esta" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Mensaje" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Guardar" + ], + "Cancel": [ + null, + "Cancelar" + ], + "An error occurred while trying to save the form.": [ + null, + "Un error ocurrío mientras se guardaba el formulario." + ], + "This chatroom requires a password": [ + null, + "Esta sala de chat requiere una contraseña." + ], + "Password: ": [ + null, + "Contraseña: " + ], + "Submit": [ + null, + "Enviar" + ], + "This room is not anonymous": [ + null, + "Esta sala no es para usuarios anónimos" + ], + "This room now shows unavailable members": [ + null, + "Esta sala ahora muestra los miembros no disponibles" + ], + "This room does not show unavailable members": [ + null, + "Esta sala no muestra los miembros no disponibles" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Una configuración de la sala no relacionada con la privacidad ha sido cambiada" + ], + "Room logging is now enabled": [ + null, + "El registro de la sala ahora está habilitado" + ], + "Room logging is now disabled": [ + null, + "El registro de la sala ahora está deshabilitado" + ], + "This room is now non-anonymous": [ + null, + "Esta sala ahora es pública" + ], + "This room is now semi-anonymous": [ + null, + "Esta sala ahora es semi-anónima" + ], + "This room is now fully-anonymous": [ + null, + "Esta sala ahora es completamente anónima" + ], + "A new room has been created": [ + null, + "Una nueva sala ha sido creada" + ], + "You have been banned from this room": [ + null, + "Usted ha sido bloqueado de esta sala" + ], + "You have been kicked from this room": [ + null, + "Usted ha sido expulsado de esta sala" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Usted ha sido eliminado de esta sala debido a un cambio de afiliación" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Usted ha sido eliminado de esta sala debido a que la sala cambio su configuración a solo-miembros y usted no es un miembro" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Usted ha sido eliminado de esta sala debido a que el servicio MUC (Multi-user chat) está deshabilitado." + ], + "%1$s has been banned": [ + null, + "%1$s ha sido bloqueado" + ], + "%1$s has been kicked out": [ + null, + "%1$s ha sido expulsado" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s ha sido eliminado debido a un cambio de afiliación" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s ha sido eliminado debido a que no es miembro" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Usted no está en la lista de miembros de esta sala" + ], + "No nickname was specified": [ + null, + "Sin apodo especificado" + ], + "You are not allowed to create new rooms": [ + null, + "Usted no esta autorizado para crear nuevas salas" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Su apodo no se ajusta a la política de esta sala" + ], + "Your nickname is already taken": [ + null, + "Su apodo ya ha sido tomando por otro usuario" + ], + "This room does not (yet) exist": [ + null, + "Esta sala (aún) no existe" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Esta sala ha alcanzado su número máximo de ocupantes" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Tema fijado por %1$s a: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Click to restore this chat": [ + null, + "Haga click para eliminar este contacto" + ], + "Minimized": [ + null, + "Minimizado" + ], + "Click to remove this contact": [ + null, + "Haga click para eliminar este contacto" + ], + "Click to chat with this contact": [ + null, + "Haga click para conversar con este contacto" + ], + "Are you sure you want to remove this contact?": [ + null, + "¿Esta seguro de querer eliminar este contacto?" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Estoy %1$s" + ], + "Click here to write a custom status message": [ + null, + "Haga click para escribir un mensaje de estatus personalizado" + ], + "Click to change your chat status": [ + null, + "Haga click para cambiar su estatus de chat" + ], + "Custom status": [ + null, + "Personalizar estatus" + ], + "online": [ + null, + "en línea" + ], + "busy": [ + null, + "ocupado" + ], + "away for long": [ + null, + "ausente por mucho tiempo" + ], + "away": [ + null, + "ausente" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Contraseña:" + ], + "Log In": [ + null, + "Iniciar sesión" + ], + "Sign in": [ + null, + "Registrar" + ], + "Toggle chat": [ + null, + "Chat" + ] + } } -} +} \ No newline at end of file diff --git a/locale/es/LC_MESSAGES/es.js b/locale/es/LC_MESSAGES/es.js deleted file mode 100644 index 8fcf9cab0..000000000 --- a/locale/es/LC_MESSAGES/es.js +++ /dev/null @@ -1,638 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2013-09-15 21:55+0200", - "PO-Revision-Date": "2013-09-15 21:59+0200", - "Last-Translator": "Javier Lopez ", - "Language-Team": "ES ", - "Language": "es", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "plural_forms": "nplurals=2; plural=(n != 1);", - "lang": "es", - "Language-Code": "es", - "Language-Name": "Español", - "Preferred-Encodings": "utf-8 latin1", - "Domain": "converse", - "domain": "converse", - "X-Is-Fallback-For": "es-ar es-bo es-cl es-co es-cr es-do es-ec es-es es-sv es-gt es-hn es-mx es-ni es-pa es-py es-pe es-pr es-us es-uy es-ve" - }, - "unencrypted": [ - null, - "texto plano" - ], - "unverified": [ - null, - "sin verificar" - ], - "verified": [ - null, - "verificado" - ], - "finished": [ - null, - "finalizado" - ], - "Disconnected": [ - null, - "Desconectado" - ], - "Error": [ - null, - "Error" - ], - "Connecting": [ - null, - "Conectando" - ], - "Connection Failed": [ - null, - "La conexión falló" - ], - "Authenticating": [ - null, - "Autenticando" - ], - "Authentication Failed": [ - null, - "La autenticación falló" - ], - "Disconnecting": [ - null, - "Desconectando" - ], - "Re-establishing encrypted session": [ - null, - "Re-estableciendo sesión cifrada" - ], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [ - null, - "Su navegador generará una llave privada para usarse en la sesión cifrada. Esto puede tomar hasta 30 segundo, durante este tiempo su navegador puede dejar de responder." - ], - "Private key generated.": [ - null, - "Llave privada generada" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "Petición de autenticación de %1$s\n\nSu contacto intenta verificar su identidad haciendo la siguiente pregunta.\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "No se pudo verificar la identidad de este usuario" - ], - "Personal message": [ - null, - "Mensaje personal" - ], - "Start encrypted conversation": [ - null, - "Iniciar sesión cifrada" - ], - "Refresh encrypted conversation": [ - null, - "Actualizar sesión cifrada" - ], - "End encrypted conversation": [ - null, - "Finalizar sesión cifrada" - ], - "Verify with SMP": [ - null, - "Verificar con SMP" - ], - "Verify with fingerprints": [ - null, - "Verificar con identificadores" - ], - "What's this?": [ - null, - "¿Qué es esto?" - ], - "me": [ - null, - "yo" - ], - "Show this menu": [ - null, - "Mostrar este menú" - ], - "Write in the third person": [ - null, - "Escribir en tercera persona" - ], - "Remove messages": [ - null, - "Eliminar mensajes" - ], - "Your message could not be sent": [ - null, - "Su mensaje no se pudo enviar" - ], - "We received an unencrypted message": [ - null, - "Se recibío un mensaje sin cifrar" - ], - "We received an unreadable encrypted message": [ - null, - "Se recibío un mensaje cifrado corrupto" - ], - "This user has requested an encrypted session.": [ - null, - "El usuario ha solicitado una sesión cifrada" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "Por favor confirme los identificadores de %1$s fuera de este chat\n\n. Su identificador es, %2$s: %3$s\n\n. El identificador de %1$s es: %4$s\n\n. Después de confirmar los identificadores haga click en OK, cancele si no concuerdan." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [ - null, - "Se le solicitará una pregunta de seguridad.\n\n. La pregunta que responda se le hará a su contacto, si las respuestas concuerdan (cuidando mayúsculas/minúsculas) su identidad quedará verificada." - ], - "What is your security question?": [ - null, - "Introduzca su pregunta de seguridad" - ], - "What is the answer to the security question?": [ - null, - "Introduzca la respuesta a su pregunta de seguridad" - ], - "Invalid authentication scheme provided": [ - null, - "Esquema de autenticación inválido" - ], - "Your messages are not encrypted anymore": [ - null, - "Sus mensajes han dejado de cifrarse" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "Sus mensajes están ahora cifrados pero la identidad de su contacto no ha sido verificada" - ], - "Your buddy's identify has been verified.": [ - null, - "La identidad de su contacto ha sido confirmada" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "Su contacto finalizó la sesión cifrada, debería hacer lo mismo" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Sus mensajes no están cifrados. Haga click aquí para habilitar el cifrado OTR" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Sus mensajes están cifrados pero la identidad de su contacto no ha sido verificada" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Sus mensajes están cifrados y su contacto ha sido verificado" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "Su contacto finalizó la sesión cifrada, debería hacer lo mismo" - ], - "Contacts": [ - null, - "Contactos" - ], - "Online": [ - null, - "En linea" - ], - "Busy": [ - null, - "Ocupado" - ], - "Away": [ - null, - "Ausente" - ], - "Offline": [ - null, - "Desconectado" - ], - "Click to add new chat contacts": [ - null, - "Haga click para agregar nuevos contactos al chat" - ], - "Add a contact": [ - null, - "Agregar un contacto" - ], - "Contact username": [ - null, - "Nombre de usuario de contacto" - ], - "Add": [ - null, - "Agregar" - ], - "Contact name": [ - null, - "Nombre de contacto" - ], - "Search": [ - null, - "Búsqueda" - ], - "No users found": [ - null, - "Sin usuarios encontrados" - ], - "Click to add as a chat contact": [ - null, - "Haga click para agregar como contacto de chat" - ], - "Click to open this room": [ - null, - "Haga click para abrir esta sala" - ], - "Show more information on this room": [ - null, - "Mostrar más información en esta sala" - ], - "Description:": [ - null, - "Descripción" - ], - "Occupants:": [ - null, - "Ocupantes:" - ], - "Features:": [ - null, - "Características:" - ], - "Requires authentication": [ - null, - "Autenticación requerida" - ], - "Hidden": [ - null, - "Oculto" - ], - "Requires an invitation": [ - null, - "Requiere una invitación" - ], - "Moderated": [ - null, - "Moderado" - ], - "Non-anonymous": [ - null, - "No anónimo" - ], - "Open room": [ - null, - "Abrir sala" - ], - "Permanent room": [ - null, - "Sala permanente" - ], - "Public": [ - null, - "Publico" - ], - "Semi-anonymous": [ - null, - "Semi anónimo" - ], - "Temporary room": [ - null, - "Sala temporal" - ], - "Unmoderated": [ - null, - "Sin moderar" - ], - "Rooms": [ - null, - "Salas" - ], - "Room name": [ - null, - "Nombre de sala" - ], - "Nickname": [ - null, - "Apodo" - ], - "Server": [ - null, - "Servidor" - ], - "Join": [ - null, - "Unirse" - ], - "Show rooms": [ - null, - "Mostrar salas" - ], - "No rooms on %1$s": [ - null, - "Sin salas en %1$s" - ], - "Rooms on %1$s": [ - null, - "Salas en %1$s" - ], - "Set chatroom topic": [ - null, - "Definir tema de sala de chat" - ], - "Kick user from chatroom": [ - null, - "Expulsar usuario de sala de chat." - ], - "Ban user from chatroom": [ - null, - "Bloquear usuario de sala de chat." - ], - "Message": [ - null, - "Mensaje" - ], - "Save": [ - null, - "Guardar" - ], - "Cancel": [ - null, - "Cancelar" - ], - "An error occurred while trying to save the form.": [ - null, - "Un error ocurrío mientras se guardaba el formulario." - ], - "This chatroom requires a password": [ - null, - "Esta sala de chat requiere una contraseña." - ], - "Password: ": [ - null, - "Contraseña: " - ], - "Submit": [ - null, - "Enviar" - ], - "This room is not anonymous": [ - null, - "Esta sala no es para usuarios anónimos" - ], - "This room now shows unavailable members": [ - null, - "Esta sala ahora muestra los miembros no disponibles" - ], - "This room does not show unavailable members": [ - null, - "Esta sala no muestra los miembros no disponibles" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Una configuración de la sala no relacionada con la privacidad ha sido cambiada" - ], - "Room logging is now enabled": [ - null, - "El registro de la sala ahora está habilitado" - ], - "Room logging is now disabled": [ - null, - "El registro de la sala ahora está deshabilitado" - ], - "This room is now non-anonymous": [ - null, - "Esta sala ahora es pública" - ], - "This room is now semi-anonymous": [ - null, - "Esta sala ahora es semi-anónima" - ], - "This room is now fully-anonymous": [ - null, - "Esta sala ahora es completamente anónima" - ], - "A new room has been created": [ - null, - "Una nueva sala ha sido creada" - ], - "Your nickname has been changed": [ - null, - "Su apodo ha sido cambiado" - ], - "%1$s has been banned": [ - null, - "%1$s ha sido bloqueado" - ], - "%1$s has been kicked out": [ - null, - "%1$s ha sido expulsado" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s ha sido eliminado debido a un cambio de afiliación" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s ha sido eliminado debido a que no es miembro" - ], - "You have been banned from this room": [ - null, - "Usted ha sido bloqueado de esta sala" - ], - "You have been kicked from this room": [ - null, - "Usted ha sido expulsado de esta sala" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Usted ha sido eliminado de esta sala debido a un cambio de afiliación" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Usted ha sido eliminado de esta sala debido a que la sala cambio su configuración a solo-miembros y usted no es un miembro" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Usted ha sido eliminado de esta sala debido a que el servicio MUC (Multi-user chat) está deshabilitado." - ], - "You are not on the member list of this room": [ - null, - "Usted no está en la lista de miembros de esta sala" - ], - "No nickname was specified": [ - null, - "Sin apodo especificado" - ], - "You are not allowed to create new rooms": [ - null, - "Usted no esta autorizado para crear nuevas salas" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Su apodo no se ajusta a la política de esta sala" - ], - "Your nickname is already taken": [ - null, - "Su apodo ya ha sido tomando por otro usuario" - ], - "This room does not (yet) exist": [ - null, - "Esta sala (aún) no existe" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Esta sala ha alcanzado su número máximo de ocupantes" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Tema fijado por %1$s a: %2$s" - ], - "This user is a moderator": [ - null, - "Este usuario es un moderador" - ], - "This user can send messages in this room": [ - null, - "Este usuario puede enviar mensajes en esta sala" - ], - "This user can NOT send messages in this room": [ - null, - "Este usuario NO puede enviar mensajes en esta" - ], - "Click to chat with this contact": [ - null, - "Haga click para conversar con este contacto" - ], - "Click to remove this contact": [ - null, - "Haga click para eliminar este contacto" - ], - "This contact is busy": [ - null, - "Este contacto está ocupado" - ], - "This contact is online": [ - null, - "Este contacto está en línea" - ], - "This contact is offline": [ - null, - "Este contacto está desconectado" - ], - "This contact is unavailable": [ - null, - "Este contacto no está disponible" - ], - "This contact is away for an extended period": [ - null, - "Este contacto está ausente por un largo periodo de tiempo" - ], - "This contact is away": [ - null, - "Este contacto está ausente" - ], - "Contact requests": [ - null, - "Solicitudes de contacto" - ], - "My contacts": [ - null, - "Mis contactos" - ], - "Pending contacts": [ - null, - "Contactos pendientes" - ], - "Custom status": [ - null, - "Personalizar estatus" - ], - "Click to change your chat status": [ - null, - "Haga click para cambiar su estatus de chat" - ], - "Click here to write a custom status message": [ - null, - "Haga click para escribir un mensaje de estatus personalizado" - ], - "online": [ - null, - "en línea" - ], - "busy": [ - null, - "ocupado" - ], - "away for long": [ - null, - "ausente por mucho tiempo" - ], - "away": [ - null, - "ausente" - ], - "I am %1$s": [ - null, - "Estoy %1$s" - ], - "Sign in": [ - null, - "Registrar" - ], - "XMPP/Jabber Username:": [ - null, - "Nombre de usuario XMPP/Jabber" - ], - "Password:": [ - null, - "Contraseña:" - ], - "Log In": [ - null, - "Iniciar sesión" - ], - "BOSH Service URL:": [ - null, - "URL del servicio BOSH:" - ], - "Online Contacts": [ - null, - "En línea" - ], - "Connected": [ - null, - "Conectado" - ], - "Attached": [ - null, - "Adjuntado" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("es", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.es = factory(new Jed(translations)); - } -}(this, function (es) { - return es; -})); diff --git a/locale/fr/LC_MESSAGES/converse.json b/locale/fr/LC_MESSAGES/converse.json index acbf3b5ee..deecc54d9 100644 --- a/locale/fr/LC_MESSAGES/converse.json +++ b/locale/fr/LC_MESSAGES/converse.json @@ -1,658 +1,692 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-15 21:58+0200", - "Language-Team": "FR ", - "Language": "fr", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "plural_forms": "nplurals=2; plural=(n != 1);", - "lang": "fr", - "Language-Code": "fr", - "Preferred-Encodings": "utf-8 latin1", - "Domain": "converse", - "domain": "converse" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "This contact is busy": [ - null, - "" - ], - "This contact is online": [ - null, - "" - ], - "This contact is offline": [ - null, - "" - ], - "This contact is unavailable": [ - null, - "Ce salon affiche maintenant des membres indisponibles" - ], - "This contact is away for an extended period": [ - null, - "" - ], - "This contact is away": [ - null, - "" - ], - "Reconnecting": [ - null, - "Connection" - ], - "Disconnected": [ - null, - "Déconnecté" - ], - "Error": [ - null, - "Erreur" - ], - "Connecting": [ - null, - "Connection" - ], - "Connection Failed": [ - null, - "La connection a échoué" - ], - "Authenticating": [ - null, - "Authentification" - ], - "Authentication Failed": [ - null, - "L'authentification a échoué" - ], - "Disconnecting": [ - null, - "Déconnection" - ], - "Online Contacts": [ - null, - "Contacts en ligne" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Message personnel" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Vous n'êtes pas dans la liste des membres de ce salon" - ], - "me": [ - null, - "" - ], - "Show this menu": [ - null, - "Afficher ce menu" - ], - "Write in the third person": [ - null, - "Écrire à la troisième personne" - ], - "Remove messages": [ - null, - "Effacer les messages" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "Online": [ - null, - "En ligne" - ], - "Busy": [ - null, - "Occupé" - ], - "Away": [ - null, - "Absent" - ], - "Offline": [ - null, - "Déconnecté" - ], - "Contacts": [ - null, - "Contacts" - ], - "Contact name": [ - null, - "Nom du contact" - ], - "Search": [ - null, - "Rechercher" - ], - "Contact username": [ - null, - "Nom du contact" - ], - "Add": [ - null, - "Ajouter" - ], - "Click to add new chat contacts": [ - null, - "Cliquez pour ajouter de nouveaux contacts" - ], - "Add a contact": [ - null, - "Ajouter un contact" - ], - "No users found": [ - null, - "Aucun utilisateur trouvé" - ], - "Click to add as a chat contact": [ - null, - "Cliquer pour ajouter aux contacts de chat" - ], - "Room name": [ - null, - "Numéro de salon" - ], - "Nickname": [ - null, - "Alias" - ], - "Server": [ - null, - "Serveur" - ], - "Join": [ - null, - "Rejoindre" - ], - "Show rooms": [ - null, - "Afficher les salons" - ], - "Rooms": [ - null, - "Salons" - ], - "No rooms on %1$s": [ - null, - "Aucun salon dans %1$s" - ], - "Rooms on %1$s": [ - null, - "Salons dans %1$s" - ], - "Click to open this room": [ - null, - "Cliquer pour ouvrir ce salon" - ], - "Show more information on this room": [ - null, - "Afficher davantage d'informations sur ce salon" - ], - "Description:": [ - null, - "Description :" - ], - "Occupants:": [ - null, - "Participants :" - ], - "Features:": [ - null, - "Caractéristiques :" - ], - "Requires authentication": [ - null, - "Nécessite une authentification" - ], - "Hidden": [ - null, - "Masqué" - ], - "Requires an invitation": [ - null, - "Nécessite une invitation" - ], - "Moderated": [ - null, - "Modéré" - ], - "Non-anonymous": [ - null, - "Non-anonyme" - ], - "Open room": [ - null, - "Ouvrir un salon" - ], - "Permanent room": [ - null, - "Salon permanent" - ], - "Public": [ - null, - "Public" - ], - "Semi-anonymous": [ - null, - "Semi-anonyme" - ], - "Temporary room": [ - null, - "Salon temporaire" - ], - "Unmoderated": [ - null, - "Non modéré" - ], - "Set chatroom topic": [ - null, - "Indiquer le sujet du salon" - ], - "Kick user from chatroom": [ - null, - "Expulser l'utilisateur du salon." - ], - "Ban user from chatroom": [ - null, - "Bannir l'utilisateur du salon." - ], - "Message": [ - null, - "Message" - ], - "Save": [ - null, - "Enregistrer" - ], - "Cancel": [ - null, - "Annuler" - ], - "An error occurred while trying to save the form.": [ - null, - "Une erreur est survenue lors de l'enregistrement du formulaire." - ], - "This chatroom requires a password": [ - null, - "Ce salon nécessite un mot de passe." - ], - "Password: ": [ - null, - "Mot de passe : " - ], - "Submit": [ - null, - "Soumettre" - ], - "This room is not anonymous": [ - null, - "Ce salon n'est pas anonyme" - ], - "This room now shows unavailable members": [ - null, - "Ce salon affiche maintenant des membres indisponibles" - ], - "This room does not show unavailable members": [ - null, - "Ce salon n'affiche pas les membres indisponibles" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Les paramètres du salon non liés à la confidentialité ont été modifiés" - ], - "Room logging is now enabled": [ - null, - "Le logging du salon est activé" - ], - "Room logging is now disabled": [ - null, - "Le logging du salon est désactivé" - ], - "This room is now non-anonymous": [ - null, - "Ce salon est maintenant non-anonyme" - ], - "This room is now semi-anonymous": [ - null, - "Ce salon est maintenant semi-anonyme" - ], - "This room is now fully-anonymous": [ - null, - "Ce salon est maintenant entièrement anonyme" - ], - "A new room has been created": [ - null, - "Un nouveau salon a été créé" - ], - "Your nickname has been changed": [ - null, - "Votre alias a été modifié" - ], - "%1$s has been banned": [ - null, - "%1$s a été banni" - ], - "%1$s has been kicked out": [ - null, - "%1$s a été expulsé" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s a été supprimé à cause d'un changement d'affiliation" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s a été supprimé car il n'est pas membre" - ], - "You have been banned from this room": [ - null, - "Vous avez été banni de ce salon" - ], - "You have been kicked from this room": [ - null, - "Vous avez été expulsé de ce salon" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Vous avez été retiré de ce salon du fait d'un changement d'affiliation" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Vous avez été retiré de ce salon parce que ce salon est devenu réservé aux membres et vous n'êtes pas membre" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Vous avez été retiré de ce salon parce que le service de chat multi-utilisateur a été désactivé." - ], - "You are not on the member list of this room": [ - null, - "Vous n'êtes pas dans la liste des membres de ce salon" - ], - "No nickname was specified": [ - null, - "Aucun alias n'a été indiqué" - ], - "You are not allowed to create new rooms": [ - null, - "Vous n'êtes pas autorisé à créer des salons" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Votre alias n'est pas conforme à la politique de ce salon" - ], - "Your nickname is already taken": [ - null, - "Votre alias est déjà utilisé" - ], - "This room does not (yet) exist": [ - null, - "Ce salon n'existe pas encore" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Ce salon a atteint la limite maximale d'occupants" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Le sujet '%1$s' a été défini par %2$s" - ], - "This user is a moderator": [ - null, - "Cet utilisateur est modérateur" - ], - "This user can send messages in this room": [ - null, - "Cet utilisateur peut envoyer des messages dans ce salon" - ], - "This user can NOT send messages in this room": [ - null, - "Cet utilisateur ne peut PAS envoyer de messages dans ce salon" - ], - "Click to restore this chat": [ - null, - "Cliquez pour supprimer ce contact" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Cliquez pour supprimer ce contact" - ], - "Click to remove this contact": [ - null, - "Cliquez pour supprimer ce contact" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "En ligne" - ], - "Click to chat with this contact": [ - null, - "Cliquez pour discuter avec ce contact" - ], - "My contacts": [ - null, - "Mes contacts" - ], - "Contact requests": [ - null, - "Demandes de contacts" - ], - "Pending contacts": [ - null, - "Contacts en attente" - ], - "Custom status": [ - null, - "Statut personnel" - ], - "online": [ - null, - "en ligne" - ], - "busy": [ - null, - "occupé" - ], - "away for long": [ - null, - "absent pour une longue durée" - ], - "away": [ - null, - "absent" - ], - "I am %1$s": [ - null, - "Je suis %1$s" - ], - "Click here to write a custom status message": [ - null, - "Cliquez ici pour indiquer votre statut personnel" - ], - "Click to change your chat status": [ - null, - "Cliquez pour changer votre statut" - ], - "XMPP/Jabber Username:": [ - null, - "Nom d'utilisateur XMPP/Jabber" - ], - "Password:": [ - null, - "Mot de passe :" - ], - "Log In": [ - null, - "Se connecter" - ], - "Sign in": [ - null, - "S'inscrire" - ], - "Toggle chat": [ - null, - "" - ], - "BOSH Service URL:": [ - null, - "URL du service BOSH:" - ], - "Connected": [ - null, - "Connecté" - ], - "Attached": [ - null, - "Attaché" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "fr" + }, + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "" + ], + "This contact is online": [ + null, + "" + ], + "This contact is offline": [ + null, + "" + ], + "This contact is away for an extended period": [ + null, + "" + ], + "This contact is away": [ + null, + "" + ], + "My contacts": [ + null, + "Mes contacts" + ], + "Pending contacts": [ + null, + "Contacts en attente" + ], + "Contact requests": [ + null, + "Demandes de contacts" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contacts" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Erreur" + ], + "Connecting": [ + null, + "Connection" + ], + "Authenticating": [ + null, + "Authentification" + ], + "Authentication Failed": [ + null, + "L'authentification a échoué" + ], + "Online Contacts": [ + null, + "Contacts en ligne" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Message personnel" + ], + "me": [ + null, + "" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Afficher ce menu" + ], + "Write in the third person": [ + null, + "Écrire à la troisième personne" + ], + "Remove messages": [ + null, + "Effacer les messages" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "En ligne" + ], + "Busy": [ + null, + "Occupé" + ], + "Away": [ + null, + "Absent" + ], + "Offline": [ + null, + "Déconnecté" + ], + "Contact name": [ + null, + "Nom du contact" + ], + "Search": [ + null, + "Rechercher" + ], + "Contact username": [ + null, + "Nom du contact" + ], + "Add": [ + null, + "Ajouter" + ], + "Click to add new chat contacts": [ + null, + "Cliquez pour ajouter de nouveaux contacts" + ], + "Add a contact": [ + null, + "Ajouter un contact" + ], + "No users found": [ + null, + "Aucun utilisateur trouvé" + ], + "Click to add as a chat contact": [ + null, + "Cliquer pour ajouter aux contacts de chat" + ], + "Room name": [ + null, + "Numéro de salon" + ], + "Nickname": [ + null, + "Alias" + ], + "Server": [ + null, + "Serveur" + ], + "Join": [ + null, + "Rejoindre" + ], + "Show rooms": [ + null, + "Afficher les salons" + ], + "Rooms": [ + null, + "Salons" + ], + "No rooms on %1$s": [ + null, + "Aucun salon dans %1$s" + ], + "Rooms on %1$s": [ + null, + "Salons dans %1$s" + ], + "Click to open this room": [ + null, + "Cliquer pour ouvrir ce salon" + ], + "Show more information on this room": [ + null, + "Afficher davantage d'informations sur ce salon" + ], + "Description:": [ + null, + "Description :" + ], + "Occupants:": [ + null, + "Participants :" + ], + "Features:": [ + null, + "Caractéristiques :" + ], + "Requires authentication": [ + null, + "Nécessite une authentification" + ], + "Hidden": [ + null, + "Masqué" + ], + "Requires an invitation": [ + null, + "Nécessite une invitation" + ], + "Moderated": [ + null, + "Modéré" + ], + "Non-anonymous": [ + null, + "Non-anonyme" + ], + "Open room": [ + null, + "Ouvrir un salon" + ], + "Permanent room": [ + null, + "Salon permanent" + ], + "Public": [ + null, + "Public" + ], + "Semi-anonymous": [ + null, + "Semi-anonyme" + ], + "Temporary room": [ + null, + "Salon temporaire" + ], + "Unmoderated": [ + null, + "Non modéré" + ], + "This user is a moderator": [ + null, + "Cet utilisateur est modérateur" + ], + "This user can send messages in this room": [ + null, + "Cet utilisateur peut envoyer des messages dans ce salon" + ], + "This user can NOT send messages in this room": [ + null, + "Cet utilisateur ne peut PAS envoyer de messages dans ce salon" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Message" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Enregistrer" + ], + "Cancel": [ + null, + "Annuler" + ], + "An error occurred while trying to save the form.": [ + null, + "Une erreur est survenue lors de l'enregistrement du formulaire." + ], + "This chatroom requires a password": [ + null, + "Ce salon nécessite un mot de passe." + ], + "Password: ": [ + null, + "Mot de passe : " + ], + "Submit": [ + null, + "Soumettre" + ], + "This room is not anonymous": [ + null, + "Ce salon n'est pas anonyme" + ], + "This room now shows unavailable members": [ + null, + "Ce salon affiche maintenant des membres indisponibles" + ], + "This room does not show unavailable members": [ + null, + "Ce salon n'affiche pas les membres indisponibles" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Les paramètres du salon non liés à la confidentialité ont été modifiés" + ], + "Room logging is now enabled": [ + null, + "Le logging du salon est activé" + ], + "Room logging is now disabled": [ + null, + "Le logging du salon est désactivé" + ], + "This room is now non-anonymous": [ + null, + "Ce salon est maintenant non-anonyme" + ], + "This room is now semi-anonymous": [ + null, + "Ce salon est maintenant semi-anonyme" + ], + "This room is now fully-anonymous": [ + null, + "Ce salon est maintenant entièrement anonyme" + ], + "A new room has been created": [ + null, + "Un nouveau salon a été créé" + ], + "You have been banned from this room": [ + null, + "Vous avez été banni de ce salon" + ], + "You have been kicked from this room": [ + null, + "Vous avez été expulsé de ce salon" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Vous avez été retiré de ce salon du fait d'un changement d'affiliation" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Vous avez été retiré de ce salon parce que ce salon est devenu réservé aux membres et vous n'êtes pas membre" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Vous avez été retiré de ce salon parce que le service de chat multi-utilisateur a été désactivé." + ], + "%1$s has been banned": [ + null, + "%1$s a été banni" + ], + "%1$s has been kicked out": [ + null, + "%1$s a été expulsé" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s a été supprimé à cause d'un changement d'affiliation" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s a été supprimé car il n'est pas membre" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Vous n'êtes pas dans la liste des membres de ce salon" + ], + "No nickname was specified": [ + null, + "Aucun alias n'a été indiqué" + ], + "You are not allowed to create new rooms": [ + null, + "Vous n'êtes pas autorisé à créer des salons" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Votre alias n'est pas conforme à la politique de ce salon" + ], + "Your nickname is already taken": [ + null, + "Votre alias est déjà utilisé" + ], + "This room does not (yet) exist": [ + null, + "Ce salon n'existe pas encore" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Ce salon a atteint la limite maximale d'occupants" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Le sujet '%1$s' a été défini par %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Cliquez pour supprimer ce contact" + ], + "Click to chat with this contact": [ + null, + "Cliquez pour discuter avec ce contact" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Je suis %1$s" + ], + "Click here to write a custom status message": [ + null, + "Cliquez ici pour indiquer votre statut personnel" + ], + "Click to change your chat status": [ + null, + "Cliquez pour changer votre statut" + ], + "Custom status": [ + null, + "Statut personnel" + ], + "online": [ + null, + "en ligne" + ], + "busy": [ + null, + "occupé" + ], + "away for long": [ + null, + "absent pour une longue durée" + ], + "away": [ + null, + "absent" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Mot de passe :" + ], + "Log In": [ + null, + "Se connecter" + ], + "Sign in": [ + null, + "S'inscrire" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/fr/LC_MESSAGES/fr.js b/locale/fr/LC_MESSAGES/fr.js deleted file mode 100644 index 14be9e33d..000000000 --- a/locale/fr/LC_MESSAGES/fr.js +++ /dev/null @@ -1,635 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2013-09-15 21:55+0200", - "PO-Revision-Date": "2013-09-15 21:58+0200", - "Language-Team": "FR ", - "Language": "fr", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "plural_forms": "nplurals=2; plural=(n != 1);", - "lang": "fr", - "Language-Code": "fr", - "Preferred-Encodings": "utf-8 latin1", - "Domain": "converse", - "domain": "converse" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "Disconnected": [ - null, - "Déconnecté" - ], - "Error": [ - null, - "Erreur" - ], - "Connecting": [ - null, - "Connection" - ], - "Connection Failed": [ - null, - "La connection a échoué" - ], - "Authenticating": [ - null, - "Authentification" - ], - "Authentication Failed": [ - null, - "L'authentification a échoué" - ], - "Disconnecting": [ - null, - "Déconnection" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [ - null, - "" - ], - "Private key generated.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Personal message": [ - null, - "Message personnel" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "me": [ - null, - "" - ], - "Show this menu": [ - null, - "Afficher ce menu" - ], - "Write in the third person": [ - null, - "Écrire à la troisième personne" - ], - "Remove messages": [ - null, - "Effacer les messages" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "Contacts": [ - null, - "Contacts" - ], - "Online": [ - null, - "En ligne" - ], - "Busy": [ - null, - "Occupé" - ], - "Away": [ - null, - "Absent" - ], - "Offline": [ - null, - "Déconnecté" - ], - "Click to add new chat contacts": [ - null, - "Cliquez pour ajouter de nouveaux contacts" - ], - "Add a contact": [ - null, - "Ajouter un contact" - ], - "Contact username": [ - null, - "Nom du contact" - ], - "Add": [ - null, - "Ajouter" - ], - "Contact name": [ - null, - "Nom du contact" - ], - "Search": [ - null, - "Rechercher" - ], - "No users found": [ - null, - "Aucun utilisateur trouvé" - ], - "Click to add as a chat contact": [ - null, - "Cliquer pour ajouter aux contacts de chat" - ], - "Click to open this room": [ - null, - "Cliquer pour ouvrir ce salon" - ], - "Show more information on this room": [ - null, - "Afficher davantage d'informations sur ce salon" - ], - "Description:": [ - null, - "Description :" - ], - "Occupants:": [ - null, - "Participants :" - ], - "Features:": [ - null, - "Caractéristiques :" - ], - "Requires authentication": [ - null, - "Nécessite une authentification" - ], - "Hidden": [ - null, - "Masqué" - ], - "Requires an invitation": [ - null, - "Nécessite une invitation" - ], - "Moderated": [ - null, - "Modéré" - ], - "Non-anonymous": [ - null, - "Non-anonyme" - ], - "Open room": [ - null, - "Ouvrir un salon" - ], - "Permanent room": [ - null, - "Salon permanent" - ], - "Public": [ - null, - "Public" - ], - "Semi-anonymous": [ - null, - "Semi-anonyme" - ], - "Temporary room": [ - null, - "Salon temporaire" - ], - "Unmoderated": [ - null, - "Non modéré" - ], - "Rooms": [ - null, - "Salons" - ], - "Room name": [ - null, - "Numéro de salon" - ], - "Nickname": [ - null, - "Alias" - ], - "Server": [ - null, - "Serveur" - ], - "Join": [ - null, - "Rejoindre" - ], - "Show rooms": [ - null, - "Afficher les salons" - ], - "No rooms on %1$s": [ - null, - "Aucun salon dans %1$s" - ], - "Rooms on %1$s": [ - null, - "Salons dans %1$s" - ], - "Set chatroom topic": [ - null, - "Indiquer le sujet du salon" - ], - "Kick user from chatroom": [ - null, - "Expulser l'utilisateur du salon." - ], - "Ban user from chatroom": [ - null, - "Bannir l'utilisateur du salon." - ], - "Message": [ - null, - "Message" - ], - "Save": [ - null, - "Enregistrer" - ], - "Cancel": [ - null, - "Annuler" - ], - "An error occurred while trying to save the form.": [ - null, - "Une erreur est survenue lors de l'enregistrement du formulaire." - ], - "This chatroom requires a password": [ - null, - "Ce salon nécessite un mot de passe." - ], - "Password: ": [ - null, - "Mot de passe : " - ], - "Submit": [ - null, - "Soumettre" - ], - "This room is not anonymous": [ - null, - "Ce salon n'est pas anonyme" - ], - "This room now shows unavailable members": [ - null, - "Ce salon affiche maintenant des membres indisponibles" - ], - "This room does not show unavailable members": [ - null, - "Ce salon n'affiche pas les membres indisponibles" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Les paramètres du salon non liés à la confidentialité ont été modifiés" - ], - "Room logging is now enabled": [ - null, - "Le logging du salon est activé" - ], - "Room logging is now disabled": [ - null, - "Le logging du salon est désactivé" - ], - "This room is now non-anonymous": [ - null, - "Ce salon est maintenant non-anonyme" - ], - "This room is now semi-anonymous": [ - null, - "Ce salon est maintenant semi-anonyme" - ], - "This room is now fully-anonymous": [ - null, - "Ce salon est maintenant entièrement anonyme" - ], - "A new room has been created": [ - null, - "Un nouveau salon a été créé" - ], - "Your nickname has been changed": [ - null, - "Votre alias a été modifié" - ], - "%1$s has been banned": [ - null, - "%1$s a été banni" - ], - "%1$s has been kicked out": [ - null, - "%1$s a été expulsé" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s a été supprimé à cause d'un changement d'affiliation" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s a été supprimé car il n'est pas membre" - ], - "You have been banned from this room": [ - null, - "Vous avez été banni de ce salon" - ], - "You have been kicked from this room": [ - null, - "Vous avez été expulsé de ce salon" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Vous avez été retiré de ce salon du fait d'un changement d'affiliation" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Vous avez été retiré de ce salon parce que ce salon est devenu réservé aux membres et vous n'êtes pas membre" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Vous avez été retiré de ce salon parce que le service de chat multi-utilisateur a été désactivé." - ], - "You are not on the member list of this room": [ - null, - "Vous n'êtes pas dans la liste des membres de ce salon" - ], - "No nickname was specified": [ - null, - "Aucun alias n'a été indiqué" - ], - "You are not allowed to create new rooms": [ - null, - "Vous n'êtes pas autorisé à créer des salons" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Votre alias n'est pas conforme à la politique de ce salon" - ], - "Your nickname is already taken": [ - null, - "Votre alias est déjà utilisé" - ], - "This room does not (yet) exist": [ - null, - "Ce salon n'existe pas encore" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Ce salon a atteint la limite maximale d'occupants" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Le sujet '%1$s' a été défini par %2$s" - ], - "This user is a moderator": [ - null, - "Cet utilisateur est modérateur" - ], - "This user can send messages in this room": [ - null, - "Cet utilisateur peut envoyer des messages dans ce salon" - ], - "This user can NOT send messages in this room": [ - null, - "Cet utilisateur ne peut PAS envoyer de messages dans ce salon" - ], - "Click to chat with this contact": [ - null, - "Cliquez pour discuter avec ce contact" - ], - "Click to remove this contact": [ - null, - "Cliquez pour supprimer ce contact" - ], - "This contact is busy": [ - null, - "" - ], - "This contact is online": [ - null, - "" - ], - "This contact is offline": [ - null, - "" - ], - "This contact is unavailable": [ - null, - "Ce salon affiche maintenant des membres indisponibles" - ], - "This contact is away for an extended period": [ - null, - "" - ], - "This contact is away": [ - null, - "" - ], - "Contact requests": [ - null, - "Demandes de contacts" - ], - "My contacts": [ - null, - "Mes contacts" - ], - "Pending contacts": [ - null, - "Contacts en attente" - ], - "Custom status": [ - null, - "Statut personnel" - ], - "Click to change your chat status": [ - null, - "Cliquez pour changer votre statut" - ], - "Click here to write a custom status message": [ - null, - "Cliquez ici pour indiquer votre statut personnel" - ], - "online": [ - null, - "en ligne" - ], - "busy": [ - null, - "occupé" - ], - "away for long": [ - null, - "absent pour une longue durée" - ], - "away": [ - null, - "absent" - ], - "I am %1$s": [ - null, - "Je suis %1$s" - ], - "Sign in": [ - null, - "S'inscrire" - ], - "XMPP/Jabber Username:": [ - null, - "Nom d'utilisateur XMPP/Jabber" - ], - "Password:": [ - null, - "Mot de passe :" - ], - "Log In": [ - null, - "Se connecter" - ], - "BOSH Service URL:": [ - null, - "URL du service BOSH:" - ], - "Online Contacts": [ - null, - "Contacts en ligne" - ], - "Connected": [ - null, - "Connecté" - ], - "Attached": [ - null, - "Attaché" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("fr", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.fr = factory(new Jed(translations)); - } -}(this, function (fr) { - return fr; -})); diff --git a/locale/he/LC_MESSAGES/converse.json b/locale/he/LC_MESSAGES/converse.json index b92590ae0..6a743c892 100644 --- a/locale/he/LC_MESSAGES/converse.json +++ b/locale/he/LC_MESSAGES/converse.json @@ -1,506 +1,692 @@ { - "converse": - { - "project-id-version":"Converse.js 0.8.1", - "report-msgid-bugs-to":"", - "pot-creation-date":"2014-08-25 14:37+0200", - "po-revision-date":"2014-02-21 06:07+0200", - "last-translator":"GreenLunar ", - "language-team":"Rahut ", - "language":"he", - "mime-version":"1.0", - "content-type":"text/plain; charset=UTF-8", - "content-transfer-encoding":"8bit", - "x-generator":"Poedit 1.5.1", - "plural-forms":"nplurals=2; plural=(n != 1);" - }, - "unencrypted":[ - null,"לא מוצפנת" - ], - "unverified":[ - null,"לא מאומתת" - ], - "verified":[ - null,"מאומתת" - ], - "finished":[ - null,"מוגמרת" - ], - "This contact is busy":[ - null,"איש קשר זה עסוק" - ], - "This contact is online":[ - null,"איש קשר זה מקוון" - ], - "This contact is offline":[ - null,"איש קשר זה לא מקוון" - ], - "This contact is unavailable":[ - null,"איש קשר זה לא זמין" - ], - "This contact is away for an extended period":[ - null,"איש קשר זה נעדר למשך זמן ממושך" - ], - "This contact is away":[ - null,"איש קשר זה הינו נעדר" - ], - "Click to hide these contacts":[ - null,"לחץ כדי להסתיר את אנשי קשר אלה" - ], - "My contacts":[ - null,"אנשי הקשר שלי" - ], - "Pending contacts":[ - null,"אנשי קשר ממתינים" - ], - "Contact requests":[ - null,"בקשות איש קשר" - ], - "Ungrouped":[ - null,"ללא קבוצה" - ], - "Contacts":[ - null,"אנשי קשר" - ], - "Groups":[ - null,"קבוצות" - ], - "Reconnecting":[ - null,"כעת מתחבר" - ], - "Disconnected":[ - null,"מנותק" - ], - "Error":[ - null,"שגיאה" - ], - "Connecting":[ - null,"כעת מתחבר" - ], - "Connection Failed":[ - null,"חיבור נכשל" - ], - "Authenticating":[ - null,"כעת מאמת" - ], - "Authentication Failed":[ - null,"אימות נכשל" - ], - "Disconnecting":[ - null,"כעת מתנתק" - ], - "Online Contacts":[ - null,"אנשי קשר מקוונים" - ], - "Re-establishing encrypted session":[ - null,"בסס מחדש ישיבה מוצפנת" - ], - "Generating private key.":[ - null,"כעת מפיק מפתח פרטי." - ], - "Your browser might become unresponsive.":[ - null,"הדפדפן שלך עשוי שלא להגיב." - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s":[ - null,"בקשת אימות מאת %1$s\n\nהאישיות שכנגד מנסה לאמת את הזהות שלך, בעזרת שאילת שאלה להלן.\n\n%2$s" - ], - "Could not verify this user's identify.":[ - null,"לא היתה אפשרות לאמת את זהות משתמש זה." - ], - "Exchanging private key with buddy.":[ - null,"ממיר מפתח פרטי עם איש קשר." - ], - "Personal message":[ - null,"הודעה אישית" - ], - "Are you sure you want to clear the messages from this room?":[ - null,"האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך חדר זה?" - ], - "me":[ - null,"אני" - ], - "is typing":[ - null,"מקליד/ה כעת" - ], - "has stopped typing":[ - null,"חדל/ה מלהקליד" - ], - "Show this menu":[ - null,"הצג את תפריט זה" - ], - "Write in the third person":[ - null,"כתוב בגוף השלישי" - ], - "Remove messages":[ - null,"הסר הודעות" - ], - "Are you sure you want to clear the messages from this chat box?":[ - null,"האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך תיבת שיחה זה?" - ], - "Your message could not be sent":[ - null,"ההודעה שלך לא היתה יכולה להישלח" - ], - "We received an unencrypted message":[ - null,"אנחנו קיבלנו הודעה לא מוצפנת" - ], - "We received an unreadable encrypted message":[ - null,"אנחנו קיבלנו הודעה מוצפנת לא קריאה" - ], - "This user has requested an encrypted session.":[ - null,"משתמש זה ביקש ישיבה מוצפנת." - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.":[ - null,"הרי טביעות האצבע, אנא אמת אותן עם %1$s, מחוץ לשיחה זו.\n\nטביעת אצבע עבורך, %2$s: %3$s\n\nטביעת אצבע עבור %1$s: %4$s\n\nהיה ואימתת כי טביעות האצבע תואמות, לחץ אישור (OK), אחרת לחץ ביטול (Cancel)." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.":[ - null,"אתה תתבקש לספק שאלת אבטחה ולאחריה תשובה לשאלה הזו.\n\nהאישיות שכנגד תתבקש עובר זאת לאותה שאלת אבטחה ואם זו תקלידו את את אותה התשובה במדויק (case sensitive), זהותה תאומת." - ], - "What is your security question?":[ - null,"מהי שאלת האבטחה שלך?" - ], - "What is the answer to the security question?":[ - null,"מהי התשובה לשאלת האבטחה?" - ], - "Invalid authentication scheme provided":[ - null,"סופקה סכימת אימות שגויה" - ], - "Your messages are not encrypted anymore":[ - null,"ההודעות שלך אינן מוצפנות עוד" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.":[ - null,"ההודעות שלך מוצפנות כעת אך זהות האישיות שכנגד טרם אומתה." - ], - "Your buddy's identify has been verified.":[ - null,"זהות האישיות שכנגד אומתה." - ], - "Your buddy has ended encryption on their end, you should do the same.":[ - null,"האישיות שכנגד סיימה הצפנה בקצה שלה, עליך לעשות את אותו הדבר." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.":[ - null,"ההודעות שלך אינן מוצפנות. לחץ כאן כדי לאפשר OTR." - ], - "Your messages are encrypted, but your buddy has not been verified.":[ - null,"ההודעות שלך מוצפנות כעת, אך האישיות שכנגד טרם אומתה." - ], - "Your messages are encrypted and your buddy verified.":[ - null,"ההודעות שלך מוצפנות כעת והאישיות שכנגד אומתה." - ], - "Your buddy has closed their end of the private session, you should do the same":[ - null,"האישיות שכנגד סגרה את קצה הישיבה הפרטית שלה, עליך לעשות את אותו הדבר" - ], - "End encrypted conversation":[ - null,"סיים ישיבה מוצפנת" - ], - "Refresh encrypted conversation":[ - null,"רענן ישיבה מוצפנת" - ], - "Start encrypted conversation":[ - null,"התחל ישיבה מוצפנת" - ], - "Verify with fingerprints":[ - null,"אמת בעזרת טביעות אצבע" - ], - "Verify with SMP":[ - null,"אמת בעזרת SMP" - ], - "What's this?":[ - null,"מה זה?" - ], - "Online":[ - null,"מקוון" - ], - "Busy":[ - null,"עסוק" - ], - "Away":[ - null,"נעדר" - ], - "Offline":[ - null,"בלתי מקוון" - ], - "Contact name":[ - null,"שם איש קשר" - ], - "Search":[ - null,"חיפוש" - ], - "Contact username":[ - null,"שם משתמש איש קשר" - ], - "Add":[ - null,"הוסף" - ], - "Click to add new chat contacts":[ - null,"לחץ כדי להוסיף אנשי קשר שיחה חדשים" - ], - "Add a contact":[ - null,"הוסף איש קשר" - ], - "No users found":[ - null,"לא נמצאו משתמשים" - ], - "Click to add as a chat contact":[ - null,"לחץ כדי להוסיף בתור איש קשר שיחה" - ], - "Room name":[ - null,"שם חדר" - ], - "Nickname":[ - null,"שם כינוי" - ], - "Server":[ - null,"שרת" - ], - "Join":[ - null,"הצטרף" - ], - "Show rooms":[ - null,"הצג חדרים" - ], - "Rooms":[ - null,"חדרים" - ], - "No rooms on %1$s":[ - null,"אין חדרים על %1$s" - ], - "Rooms on %1$s":[ - null,"חדרים על %1$s" - ], - "Click to open this room":[ - null,"לחץ כדי לפתוח את חדר זה" - ], - "Show more information on this room":[ - null,"הצג עוד מידע אודות חדר זה" - ], - "Description:":[ - null,"תיאור:" - ], - "Occupants:":[ - null,"נוכחים:" - ], - "Features:":[ - null,"תכונות:" - ], - "Requires authentication":[ - null,"מצריך אישור" - ], - "Hidden":[ - null,"נסתר" - ], - "Requires an invitation":[ - null,"מצריך הזמנה" - ], - "Moderated":[ - null,"מבוקר" - ], - "Non-anonymous":[ - null,"לא אנונימי" - ], - "Open room":[ - null,"חדר פתוח" - ], - "Permanent room":[ - null,"חדר צמיתה" - ], - "Public":[ - null,"פומבי" - ], - "Semi-anonymous":[ - null,"אנונימי למחצה" - ], - "Temporary room":[ - null,"חדר זמני" - ], - "Unmoderated":[ - null,"לא מבוקר" - ], - "Set chatroom topic":[ - null,"קבע נושא חדר שיחה" - ], - "Kick user from chatroom":[ - null,"בעט משתמש מתוך חדר שיחה" - ], - "Ban user from chatroom":[ - null,"אסור משתמש מתוך חדר שיחה" - ], - "Message":[ - null,"הודעה" - ], - "Save":[ - null,"שמור" - ], - "Cancel":[ - null,"ביטול" - ], - "An error occurred while trying to save the form.":[ - null,"אירעה שגיאה במהלך ניסיון שמירת הטופס." - ], - "This chatroom requires a password":[ - null,"חדר שיחה זה מצריך סיסמה" - ], - "Password: ":[ - null,"סיסמה: " - ], - "Submit":[ - null,"שלח" - ], - "This room is not anonymous":[ - null,"חדר זה אינו אנונימי" - ], - "This room now shows unavailable members":[ - null,"חדר זה כעת מציג חברים לא זמינים" - ], - "This room does not show unavailable members":[ - null,"חדר זה לא מציג חברים לא זמינים" - ], - "Non-privacy-related room configuration has changed":[ - null,"תצורת חדר אשר לא-קשורה-בפרטיות שונתה" - ], - "Room logging is now enabled":[ - null,"יומן חדר הינו מופעל כעת" - ], - "Room logging is now disabled":[ - null,"יומן חדר הינו מנוטרל כעת" - ], - "This room is now non-anonymous":[ - null,"חדר זה אינו אנונימי כעת" - ], - "This room is now semi-anonymous":[ - null,"חדר זה הינו אנונימי למחצה כעת" - ], - "This room is now fully-anonymous":[ - null,"חדר זה הינו אנונימי לחלוטין כעת" - ], - "A new room has been created":[ - null,"חדר חדש נוצר" - ], - "Your nickname has been changed":[ - null,"שם הכינוי שלך שונה" - ], - "%1$s has been banned":[ - null,"%1$s נאסר(ה)" - ], - "%1$s has been kicked out":[ - null,"%1$s נבעט(ה)" - ], - "%1$s has been removed because of an affiliation change":[ - null,"%1$s הוסרה(ה) משום שינוי שיוך" - ], - "%1$s has been removed for not being a member":[ - null,"%1$s הוסר(ה) משום אי הימצאות במסגרת מעמד של חבר" - ], - "You have been banned from this room":[ - null,"נאסרת מתוך חדר זה" - ], - "You have been kicked from this room":[ - null,"נבעטת מתוך חדר זה" - ], - "You have been removed from this room because of an affiliation change":[ - null,"הוסרת מתוך חדר זה משום שינוי שיוך" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member":[ - null,"הוסרת מתוך חדר זה משום שהחדר שונה לחברים-בלבד ואינך במעמד של חבר" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.":[ - null,"הוסרת מתוך חדר זה משום ששירות שמ״מ (שיחה מרובת משתמשים) זה כעת מצוי בהליכי סגירה." - ], - "You are not on the member list of this room":[ - null,"אינך ברשימת החברים של חדר זה" - ], - "No nickname was specified":[ - null,"לא צוין שום שם כינוי" - ], - "You are not allowed to create new rooms":[ - null,"אין לך רשות ליצור חדרים חדשים" - ], - "Your nickname doesn't conform to this room's policies":[ - null,"שם הכינוי שלך לא תואם את המדינויות של חדר זה" - ], - "Your nickname is already taken":[ - null,"שם הכינוי שלך הינו תפוס" - ], - "This room does not (yet) exist":[ - null,"חדר זה (עדיין) לא קיים" - ], - "This room has reached it's maximum number of occupants":[ - null,"חדר זה הגיע לסף הנוכחים המרבי שלו" - ], - "Topic set by %1$s to: %2$s":[ - null,"נושא חדר זה נקבע על ידי %1$s אל: %2$s" - ], - "This user is a moderator":[ - null,"משתמש זה הינו אחראי" - ], - "This user can send messages in this room":[ - null,"משתמש זה מסוגל לשלוח הודעות בתוך חדר זה" - ], - "This user can NOT send messages in this room":[ - null,"משתמש זה ﬥﬡ מסוגל לשלוח הודעות בתוך חדר זה" - ], - "Click to restore this chat":[ - null,"לחץ כדי לשחזר את שיחה זו" - ], - "Minimized":[ - null,"ממוזער" - ], - "Are you sure you want to remove this contact?":[ - null,"האם אתה בטוח כי ברצונך להסיר את איש קשר זה?" - ], - "Are you sure you want to decline this contact request?":[ - null,"האם אתה בטוח כי ברצונך לסרב את בקשת איש קשר זה?" - ], - "Click to remove this contact":[ - null,"לחץ כדי להסיר את איש קשר זה" - ], - "Click to accept this contact request":[ - null,"לחץ כדי לקבל את בקשת איש קשר זה" - ], - "Click to decline this contact request":[ - null,"לחץ כדי לסרב את בקשת איש קשר זה" - ], - "Click to chat with this contact":[ - null,"לחץ כדי לשוחח עם איש קשר זה" - ], - "Type to filter":[ - null,"הקלד כדי לסנן" - ], - "Custom status":[ - null,"מצב מותאם" - ], - "online":[ - null,"מקוון" - ], - "busy":[ - null,"עסוק" - ], - "away for long":[ - null,"נעדר לזמן מה" - ], - "away":[ - null,"נעדר" - ], - "I am %1$s":[ - null,"מצבי כעת הינו %1$s" - ], - "Click here to write a custom status message":[ - null,"לחץ כאן כדי לכתוב הודעת מצב מותאמת" - ], - "Click to change your chat status":[ - null,"לחץ כדי לשנות את הודעת השיחה שלך" - ], - "XMPP/Jabber Username:":[ - null,"שם משתמש XMPP/Jabber:" - ], - "Password:":[ - null,"סיסמה:" - ], - "Log In":[ - null,"כניסה" - ], - "Sign in":[ - null,"התחברות" - ], - "Toggle chat":[ - null,"הפעל שיח" - ] -} + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "he" + }, + "unencrypted": [ + null, + "לא מוצפנת" + ], + "unverified": [ + null, + "לא מאומתת" + ], + "verified": [ + null, + "מאומתת" + ], + "finished": [ + null, + "מוגמרת" + ], + "This contact is busy": [ + null, + "איש קשר זה עסוק" + ], + "This contact is online": [ + null, + "איש קשר זה מקוון" + ], + "This contact is offline": [ + null, + "איש קשר זה לא מקוון" + ], + "This contact is unavailable": [ + null, + "איש קשר זה לא זמין" + ], + "This contact is away for an extended period": [ + null, + "איש קשר זה נעדר למשך זמן ממושך" + ], + "This contact is away": [ + null, + "איש קשר זה הינו נעדר" + ], + "Click to hide these contacts": [ + null, + "לחץ כדי להסתיר את אנשי קשר אלה" + ], + "My contacts": [ + null, + "אנשי הקשר שלי" + ], + "Pending contacts": [ + null, + "אנשי קשר ממתינים" + ], + "Contact requests": [ + null, + "בקשות איש קשר" + ], + "Ungrouped": [ + null, + "ללא קבוצה" + ], + "Contacts": [ + null, + "אנשי קשר" + ], + "Groups": [ + null, + "קבוצות" + ], + "Reconnecting": [ + null, + "כעת מתחבר" + ], + "Error": [ + null, + "שגיאה" + ], + "Connecting": [ + null, + "כעת מתחבר" + ], + "Authenticating": [ + null, + "כעת מאמת" + ], + "Authentication Failed": [ + null, + "אימות נכשל" + ], + "Online Contacts": [ + null, + "אנשי קשר מקוונים" + ], + "Re-establishing encrypted session": [ + null, + "בסס מחדש ישיבה מוצפנת" + ], + "Generating private key.": [ + null, + "כעת מפיק מפתח פרטי." + ], + "Your browser might become unresponsive.": [ + null, + "הדפדפן שלך עשוי שלא להגיב." + ], + "Could not verify this user's identify.": [ + null, + "לא היתה אפשרות לאמת את זהות משתמש זה." + ], + "Personal message": [ + null, + "הודעה אישית" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך חדר זה?" + ], + "me": [ + null, + "אני" + ], + "is typing": [ + null, + "מקליד/ה כעת" + ], + "has stopped typing": [ + null, + "חדל/ה מלהקליד" + ], + "Show this menu": [ + null, + "הצג את תפריט זה" + ], + "Write in the third person": [ + null, + "כתוב בגוף השלישי" + ], + "Remove messages": [ + null, + "הסר הודעות" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך תיבת שיחה זה?" + ], + "Your message could not be sent": [ + null, + "ההודעה שלך לא היתה יכולה להישלח" + ], + "We received an unencrypted message": [ + null, + "אנחנו קיבלנו הודעה לא מוצפנת" + ], + "We received an unreadable encrypted message": [ + null, + "אנחנו קיבלנו הודעה מוצפנת לא קריאה" + ], + "This user has requested an encrypted session.": [ + null, + "משתמש זה ביקש ישיבה מוצפנת." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "הרי טביעות האצבע, אנא אמת אותן עם %1$s, מחוץ לשיחה זו.\n\nטביעת אצבע עבורך, %2$s: %3$s\n\nטביעת אצבע עבור %1$s: %4$s\n\nהיה ואימתת כי טביעות האצבע תואמות, לחץ אישור (OK), אחרת לחץ ביטול (Cancel)." + ], + "What is your security question?": [ + null, + "מהי שאלת האבטחה שלך?" + ], + "What is the answer to the security question?": [ + null, + "מהי התשובה לשאלת האבטחה?" + ], + "Invalid authentication scheme provided": [ + null, + "סופקה סכימת אימות שגויה" + ], + "Your messages are not encrypted anymore": [ + null, + "ההודעות שלך אינן מוצפנות עוד" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "ההודעות שלך אינן מוצפנות. לחץ כאן כדי לאפשר OTR." + ], + "End encrypted conversation": [ + null, + "סיים ישיבה מוצפנת" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "רענן ישיבה מוצפנת" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "התחל ישיבה מוצפנת" + ], + "Verify with fingerprints": [ + null, + "אמת בעזרת טביעות אצבע" + ], + "Verify with SMP": [ + null, + "אמת בעזרת SMP" + ], + "What's this?": [ + null, + "מה זה?" + ], + "Online": [ + null, + "מקוון" + ], + "Busy": [ + null, + "עסוק" + ], + "Away": [ + null, + "נעדר" + ], + "Offline": [ + null, + "בלתי מקוון" + ], + "Contact name": [ + null, + "שם איש קשר" + ], + "Search": [ + null, + "חיפוש" + ], + "Contact username": [ + null, + "שם משתמש איש קשר" + ], + "Add": [ + null, + "הוסף" + ], + "Click to add new chat contacts": [ + null, + "לחץ כדי להוסיף אנשי קשר שיחה חדשים" + ], + "Add a contact": [ + null, + "הוסף איש קשר" + ], + "No users found": [ + null, + "לא נמצאו משתמשים" + ], + "Click to add as a chat contact": [ + null, + "לחץ כדי להוסיף בתור איש קשר שיחה" + ], + "Room name": [ + null, + "שם חדר" + ], + "Nickname": [ + null, + "שם כינוי" + ], + "Server": [ + null, + "שרת" + ], + "Join": [ + null, + "הצטרף" + ], + "Show rooms": [ + null, + "הצג חדרים" + ], + "Rooms": [ + null, + "חדרים" + ], + "No rooms on %1$s": [ + null, + "אין חדרים על %1$s" + ], + "Rooms on %1$s": [ + null, + "חדרים על %1$s" + ], + "Click to open this room": [ + null, + "לחץ כדי לפתוח את חדר זה" + ], + "Show more information on this room": [ + null, + "הצג עוד מידע אודות חדר זה" + ], + "Description:": [ + null, + "תיאור:" + ], + "Occupants:": [ + null, + "נוכחים:" + ], + "Features:": [ + null, + "תכונות:" + ], + "Requires authentication": [ + null, + "מצריך אישור" + ], + "Hidden": [ + null, + "נסתר" + ], + "Requires an invitation": [ + null, + "מצריך הזמנה" + ], + "Moderated": [ + null, + "מבוקר" + ], + "Non-anonymous": [ + null, + "לא אנונימי" + ], + "Open room": [ + null, + "חדר פתוח" + ], + "Permanent room": [ + null, + "חדר צמיתה" + ], + "Public": [ + null, + "פומבי" + ], + "Semi-anonymous": [ + null, + "אנונימי למחצה" + ], + "Temporary room": [ + null, + "חדר זמני" + ], + "Unmoderated": [ + null, + "לא מבוקר" + ], + "This user is a moderator": [ + null, + "משתמש זה הינו אחראי" + ], + "This user can send messages in this room": [ + null, + "משתמש זה מסוגל לשלוח הודעות בתוך חדר זה" + ], + "This user can NOT send messages in this room": [ + null, + "משתמש זה ﬥﬡ מסוגל לשלוח הודעות בתוך חדר זה" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "הודעה" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "שמור" + ], + "Cancel": [ + null, + "ביטול" + ], + "An error occurred while trying to save the form.": [ + null, + "אירעה שגיאה במהלך ניסיון שמירת הטופס." + ], + "This chatroom requires a password": [ + null, + "חדר שיחה זה מצריך סיסמה" + ], + "Password: ": [ + null, + "סיסמה: " + ], + "Submit": [ + null, + "שלח" + ], + "This room is not anonymous": [ + null, + "חדר זה אינו אנונימי" + ], + "This room now shows unavailable members": [ + null, + "חדר זה כעת מציג חברים לא זמינים" + ], + "This room does not show unavailable members": [ + null, + "חדר זה לא מציג חברים לא זמינים" + ], + "Non-privacy-related room configuration has changed": [ + null, + "תצורת חדר אשר לא-קשורה-בפרטיות שונתה" + ], + "Room logging is now enabled": [ + null, + "יומן חדר הינו מופעל כעת" + ], + "Room logging is now disabled": [ + null, + "יומן חדר הינו מנוטרל כעת" + ], + "This room is now non-anonymous": [ + null, + "חדר זה אינו אנונימי כעת" + ], + "This room is now semi-anonymous": [ + null, + "חדר זה הינו אנונימי למחצה כעת" + ], + "This room is now fully-anonymous": [ + null, + "חדר זה הינו אנונימי לחלוטין כעת" + ], + "A new room has been created": [ + null, + "חדר חדש נוצר" + ], + "You have been banned from this room": [ + null, + "נאסרת מתוך חדר זה" + ], + "You have been kicked from this room": [ + null, + "נבעטת מתוך חדר זה" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "הוסרת מתוך חדר זה משום שינוי שיוך" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "הוסרת מתוך חדר זה משום שהחדר שונה לחברים-בלבד ואינך במעמד של חבר" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "הוסרת מתוך חדר זה משום ששירות שמ״מ (שיחה מרובת משתמשים) זה כעת מצוי בהליכי סגירה." + ], + "%1$s has been banned": [ + null, + "%1$s נאסר(ה)" + ], + "%1$s has been kicked out": [ + null, + "%1$s נבעט(ה)" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s הוסרה(ה) משום שינוי שיוך" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s הוסר(ה) משום אי הימצאות במסגרת מעמד של חבר" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "אינך ברשימת החברים של חדר זה" + ], + "No nickname was specified": [ + null, + "לא צוין שום שם כינוי" + ], + "You are not allowed to create new rooms": [ + null, + "אין לך רשות ליצור חדרים חדשים" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "שם הכינוי שלך לא תואם את המדינויות של חדר זה" + ], + "Your nickname is already taken": [ + null, + "שם הכינוי שלך הינו תפוס" + ], + "This room does not (yet) exist": [ + null, + "חדר זה (עדיין) לא קיים" + ], + "This room has reached it's maximum number of occupants": [ + null, + "חדר זה הגיע לסף הנוכחים המרבי שלו" + ], + "Topic set by %1$s to: %2$s": [ + null, + "נושא חדר זה נקבע על ידי %1$s אל: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Click to restore this chat": [ + null, + "לחץ כדי לשחזר את שיחה זו" + ], + "Minimized": [ + null, + "ממוזער" + ], + "Click to remove this contact": [ + null, + "לחץ כדי להסיר את איש קשר זה" + ], + "Click to accept this contact request": [ + null, + "לחץ כדי לקבל את בקשת איש קשר זה" + ], + "Click to decline this contact request": [ + null, + "לחץ כדי לסרב את בקשת איש קשר זה" + ], + "Click to chat with this contact": [ + null, + "לחץ כדי לשוחח עם איש קשר זה" + ], + "Are you sure you want to remove this contact?": [ + null, + "האם אתה בטוח כי ברצונך להסיר את איש קשר זה?" + ], + "Are you sure you want to decline this contact request?": [ + null, + "האם אתה בטוח כי ברצונך לסרב את בקשת איש קשר זה?" + ], + "Type to filter": [ + null, + "הקלד כדי לסנן" + ], + "I am %1$s": [ + null, + "מצבי כעת הינו %1$s" + ], + "Click here to write a custom status message": [ + null, + "לחץ כאן כדי לכתוב הודעת מצב מותאמת" + ], + "Click to change your chat status": [ + null, + "לחץ כדי לשנות את הודעת השיחה שלך" + ], + "Custom status": [ + null, + "מצב מותאם" + ], + "online": [ + null, + "מקוון" + ], + "busy": [ + null, + "עסוק" + ], + "away for long": [ + null, + "נעדר לזמן מה" + ], + "away": [ + null, + "נעדר" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "סיסמה:" + ], + "Log In": [ + null, + "כניסה" + ], + "Sign in": [ + null, + "התחברות" + ], + "Toggle chat": [ + null, + "הפעל שיח" + ] + } + } +} \ No newline at end of file diff --git a/locale/he/LC_MESSAGES/he.js b/locale/he/LC_MESSAGES/he.js deleted file mode 100644 index 62a3ad52d..000000000 --- a/locale/he/LC_MESSAGES/he.js +++ /dev/null @@ -1,524 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "project-id-version": "Converse.js 0.8.1", - "report-msgid-bugs-to": "", - "pot-creation-date": "2014-08-25 14:37+0200", - "po-revision-date": "2014-02-21 06:07+0200", - "last-translator": "GreenLunar ", - "language-team": "Rahut ", - "language": "he", - "mime-version": "1.0", - "content-type": "text/plain; charset=UTF-8", - "content-transfer-encoding": "8bit", - "x-generator": "Poedit 1.5.1", - "plural-forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted":[ - null,"לא מוצפנת" - ], - "unverified":[ - null,"לא מאומתת" - ], - "verified":[ - null,"מאומתת" - ], - "finished":[ - null,"מוגמרת" - ], - "This contact is busy":[ - null,"איש קשר זה עסוק" - ], - "This contact is online":[ - null,"איש קשר זה מקוון" - ], - "This contact is offline":[ - null,"איש קשר זה לא מקוון" - ], - "This contact is unavailable":[ - null,"איש קשר זה לא זמין" - ], - "This contact is away for an extended period":[ - null,"איש קשר זה נעדר למשך זמן ממושך" - ], - "This contact is away":[ - null,"איש קשר זה הינו נעדר" - ], - "Click to hide these contacts":[ - null,"לחץ כדי להסתיר את אנשי קשר אלה" - ], - "My contacts":[ - null,"אנשי הקשר שלי" - ], - "Pending contacts":[ - null,"אנשי קשר ממתינים" - ], - "Contact requests":[ - null,"בקשות איש קשר" - ], - "Ungrouped":[ - null,"ללא קבוצה" - ], - "Contacts":[ - null,"אנשי קשר" - ], - "Groups":[ - null,"קבוצות" - ], - "Reconnecting":[ - null,"כעת מתחבר" - ], - "Disconnected":[ - null,"מנותק" - ], - "Error":[ - null,"שגיאה" - ], - "Connecting":[ - null,"כעת מתחבר" - ], - "Connection Failed":[ - null,"חיבור נכשל" - ], - "Authenticating":[ - null,"כעת מאמת" - ], - "Authentication Failed":[ - null,"אימות נכשל" - ], - "Disconnecting":[ - null,"כעת מתנתק" - ], - "Online Contacts":[ - null,"אנשי קשר מקוונים" - ], - "Re-establishing encrypted session":[ - null,"בסס מחדש ישיבה מוצפנת" - ], - "Generating private key.":[ - null,"כעת מפיק מפתח פרטי." - ], - "Your browser might become unresponsive.":[ - null,"הדפדפן שלך עשוי שלא להגיב." - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s":[ - null,"בקשת אימות מאת %1$s\n\nהאישיות שכנגד מנסה לאמת את הזהות שלך, בעזרת שאילת שאלה להלן.\n\n%2$s" - ], - "Could not verify this user's identify.":[ - null,"לא היתה אפשרות לאמת את זהות משתמש זה." - ], - "Exchanging private key with buddy.":[ - null,"ממיר מפתח פרטי עם איש קשר." - ], - "Personal message":[ - null,"הודעה אישית" - ], - "Are you sure you want to clear the messages from this room?":[ - null,"האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך חדר זה?" - ], - "me":[ - null,"אני" - ], - "is typing":[ - null,"מקליד/ה כעת" - ], - "has stopped typing":[ - null,"חדל/ה מלהקליד" - ], - "Show this menu":[ - null,"הצג את תפריט זה" - ], - "Write in the third person":[ - null,"כתוב בגוף השלישי" - ], - "Remove messages":[ - null,"הסר הודעות" - ], - "Are you sure you want to clear the messages from this chat box?":[ - null,"האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך תיבת שיחה זה?" - ], - "Your message could not be sent":[ - null,"ההודעה שלך לא היתה יכולה להישלח" - ], - "We received an unencrypted message":[ - null,"אנחנו קיבלנו הודעה לא מוצפנת" - ], - "We received an unreadable encrypted message":[ - null,"אנחנו קיבלנו הודעה מוצפנת לא קריאה" - ], - "This user has requested an encrypted session.":[ - null,"משתמש זה ביקש ישיבה מוצפנת." - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.":[ - null,"הרי טביעות האצבע, אנא אמת אותן עם %1$s, מחוץ לשיחה זו.\n\nטביעת אצבע עבורך, %2$s: %3$s\n\nטביעת אצבע עבור %1$s: %4$s\n\nהיה ואימתת כי טביעות האצבע תואמות, לחץ אישור (OK), אחרת לחץ ביטול (Cancel)." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.":[ - null,"אתה תתבקש לספק שאלת אבטחה ולאחריה תשובה לשאלה הזו.\n\nהאישיות שכנגד תתבקש עובר זאת לאותה שאלת אבטחה ואם זו תקלידו את את אותה התשובה במדויק (case sensitive), זהותה תאומת." - ], - "What is your security question?":[ - null,"מהי שאלת האבטחה שלך?" - ], - "What is the answer to the security question?":[ - null,"מהי התשובה לשאלת האבטחה?" - ], - "Invalid authentication scheme provided":[ - null,"סופקה סכימת אימות שגויה" - ], - "Your messages are not encrypted anymore":[ - null,"ההודעות שלך אינן מוצפנות עוד" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.":[ - null,"ההודעות שלך מוצפנות כעת אך זהות האישיות שכנגד טרם אומתה." - ], - "Your buddy's identify has been verified.":[ - null,"זהות האישיות שכנגד אומתה." - ], - "Your buddy has ended encryption on their end, you should do the same.":[ - null,"האישיות שכנגד סיימה הצפנה בקצה שלה, עליך לעשות את אותו הדבר." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.":[ - null,"ההודעות שלך אינן מוצפנות. לחץ כאן כדי לאפשר OTR." - ], - "Your messages are encrypted, but your buddy has not been verified.":[ - null,"ההודעות שלך מוצפנות כעת, אך האישיות שכנגד טרם אומתה." - ], - "Your messages are encrypted and your buddy verified.":[ - null,"ההודעות שלך מוצפנות כעת והאישיות שכנגד אומתה." - ], - "Your buddy has closed their end of the private session, you should do the same":[ - null,"האישיות שכנגד סגרה את קצה הישיבה הפרטית שלה, עליך לעשות את אותו הדבר" - ], - "End encrypted conversation":[ - null,"סיים ישיבה מוצפנת" - ], - "Refresh encrypted conversation":[ - null,"רענן ישיבה מוצפנת" - ], - "Start encrypted conversation":[ - null,"התחל ישיבה מוצפנת" - ], - "Verify with fingerprints":[ - null,"אמת בעזרת טביעות אצבע" - ], - "Verify with SMP":[ - null,"אמת בעזרת SMP" - ], - "What's this?":[ - null,"מה זה?" - ], - "Online":[ - null,"מקוון" - ], - "Busy":[ - null,"עסוק" - ], - "Away":[ - null,"נעדר" - ], - "Offline":[ - null,"בלתי מקוון" - ], - "Contact name":[ - null,"שם איש קשר" - ], - "Search":[ - null,"חיפוש" - ], - "Contact username":[ - null,"שם משתמש איש קשר" - ], - "Add":[ - null,"הוסף" - ], - "Click to add new chat contacts":[ - null,"לחץ כדי להוסיף אנשי קשר שיחה חדשים" - ], - "Add a contact":[ - null,"הוסף איש קשר" - ], - "No users found":[ - null,"לא נמצאו משתמשים" - ], - "Click to add as a chat contact":[ - null,"לחץ כדי להוסיף בתור איש קשר שיחה" - ], - "Room name":[ - null,"שם חדר" - ], - "Nickname":[ - null,"שם כינוי" - ], - "Server":[ - null,"שרת" - ], - "Join":[ - null,"הצטרף" - ], - "Show rooms":[ - null,"הצג חדרים" - ], - "Rooms":[ - null,"חדרים" - ], - "No rooms on %1$s":[ - null,"אין חדרים על %1$s" - ], - "Rooms on %1$s":[ - null,"חדרים על %1$s" - ], - "Click to open this room":[ - null,"לחץ כדי לפתוח את חדר זה" - ], - "Show more information on this room":[ - null,"הצג עוד מידע אודות חדר זה" - ], - "Description:":[ - null,"תיאור:" - ], - "Occupants:":[ - null,"נוכחים:" - ], - "Features:":[ - null,"תכונות:" - ], - "Requires authentication":[ - null,"מצריך אישור" - ], - "Hidden":[ - null,"נסתר" - ], - "Requires an invitation":[ - null,"מצריך הזמנה" - ], - "Moderated":[ - null,"מבוקר" - ], - "Non-anonymous":[ - null,"לא אנונימי" - ], - "Open room":[ - null,"חדר פתוח" - ], - "Permanent room":[ - null,"חדר צמיתה" - ], - "Public":[ - null,"פומבי" - ], - "Semi-anonymous":[ - null,"אנונימי למחצה" - ], - "Temporary room":[ - null,"חדר זמני" - ], - "Unmoderated":[ - null,"לא מבוקר" - ], - "Set chatroom topic":[ - null,"קבע נושא חדר שיחה" - ], - "Kick user from chatroom":[ - null,"בעט משתמש מתוך חדר שיחה" - ], - "Ban user from chatroom":[ - null,"אסור משתמש מתוך חדר שיחה" - ], - "Message":[ - null,"הודעה" - ], - "Save":[ - null,"שמור" - ], - "Cancel":[ - null,"ביטול" - ], - "An error occurred while trying to save the form.":[ - null,"אירעה שגיאה במהלך ניסיון שמירת הטופס." - ], - "This chatroom requires a password":[ - null,"חדר שיחה זה מצריך סיסמה" - ], - "Password: ":[ - null,"סיסמה: " - ], - "Submit":[ - null,"שלח" - ], - "This room is not anonymous":[ - null,"חדר זה אינו אנונימי" - ], - "This room now shows unavailable members":[ - null,"חדר זה כעת מציג חברים לא זמינים" - ], - "This room does not show unavailable members":[ - null,"חדר זה לא מציג חברים לא זמינים" - ], - "Non-privacy-related room configuration has changed":[ - null,"תצורת חדר אשר לא-קשורה-בפרטיות שונתה" - ], - "Room logging is now enabled":[ - null,"יומן חדר הינו מופעל כעת" - ], - "Room logging is now disabled":[ - null,"יומן חדר הינו מנוטרל כעת" - ], - "This room is now non-anonymous":[ - null,"חדר זה אינו אנונימי כעת" - ], - "This room is now semi-anonymous":[ - null,"חדר זה הינו אנונימי למחצה כעת" - ], - "This room is now fully-anonymous":[ - null,"חדר זה הינו אנונימי לחלוטין כעת" - ], - "A new room has been created":[ - null,"חדר חדש נוצר" - ], - "Your nickname has been changed":[ - null,"שם הכינוי שלך שונה" - ], - "%1$s has been banned":[ - null,"%1$s נאסר(ה)" - ], - "%1$s has been kicked out":[ - null,"%1$s נבעט(ה)" - ], - "%1$s has been removed because of an affiliation change":[ - null,"%1$s הוסרה(ה) משום שינוי שיוך" - ], - "%1$s has been removed for not being a member":[ - null,"%1$s הוסר(ה) משום אי הימצאות במסגרת מעמד של חבר" - ], - "You have been banned from this room":[ - null,"נאסרת מתוך חדר זה" - ], - "You have been kicked from this room":[ - null,"נבעטת מתוך חדר זה" - ], - "You have been removed from this room because of an affiliation change":[ - null,"הוסרת מתוך חדר זה משום שינוי שיוך" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member":[ - null,"הוסרת מתוך חדר זה משום שהחדר שונה לחברים-בלבד ואינך במעמד של חבר" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.":[ - null,"הוסרת מתוך חדר זה משום ששירות שמ״מ (שיחה מרובת משתמשים) זה כעת מצוי בהליכי סגירה." - ], - "You are not on the member list of this room":[ - null,"אינך ברשימת החברים של חדר זה" - ], - "No nickname was specified":[ - null,"לא צוין שום שם כינוי" - ], - "You are not allowed to create new rooms":[ - null,"אין לך רשות ליצור חדרים חדשים" - ], - "Your nickname doesn't conform to this room's policies":[ - null,"שם הכינוי שלך לא תואם את המדינויות של חדר זה" - ], - "Your nickname is already taken":[ - null,"שם הכינוי שלך הינו תפוס" - ], - "This room does not (yet) exist":[ - null,"חדר זה (עדיין) לא קיים" - ], - "This room has reached it's maximum number of occupants":[ - null,"חדר זה הגיע לסף הנוכחים המרבי שלו" - ], - "Topic set by %1$s to: %2$s":[ - null,"נושא חדר זה נקבע על ידי %1$s אל: %2$s" - ], - "This user is a moderator":[ - null,"משתמש זה הינו אחראי" - ], - "This user can send messages in this room":[ - null,"משתמש זה מסוגל לשלוח הודעות בתוך חדר זה" - ], - "This user can NOT send messages in this room":[ - null,"משתמש זה ﬥﬡ מסוגל לשלוח הודעות בתוך חדר זה" - ], - "Click to restore this chat":[ - null,"לחץ כדי לשחזר את שיחה זו" - ], - "Minimized":[ - null,"ממוזער" - ], - "Are you sure you want to remove this contact?":[ - null,"האם אתה בטוח כי ברצונך להסיר את איש קשר זה?" - ], - "Are you sure you want to decline this contact request?":[ - null,"האם אתה בטוח כי ברצונך לסרב את בקשת איש קשר זה?" - ], - "Click to remove this contact":[ - null,"לחץ כדי להסיר את איש קשר זה" - ], - "Click to accept this contact request":[ - null,"לחץ כדי לקבל את בקשת איש קשר זה" - ], - "Click to decline this contact request":[ - null,"לחץ כדי לסרב את בקשת איש קשר זה" - ], - "Click to chat with this contact":[ - null,"לחץ כדי לשוחח עם איש קשר זה" - ], - "Type to filter":[ - null,"הקלד כדי לסנן" - ], - "Custom status":[ - null,"מצב מותאם" - ], - "online":[ - null,"מקוון" - ], - "busy":[ - null,"עסוק" - ], - "away for long":[ - null,"נעדר לזמן מה" - ], - "away":[ - null,"נעדר" - ], - "I am %1$s":[ - null,"מצבי כעת הינו %1$s" - ], - "Click here to write a custom status message":[ - null,"לחץ כאן כדי לכתוב הודעת מצב מותאמת" - ], - "Click to change your chat status":[ - null,"לחץ כדי לשנות את הודעת השיחה שלך" - ], - "XMPP/Jabber Username:":[ - null,"שם משתמש XMPP/Jabber:" - ], - "Password:":[ - null,"סיסמה:" - ], - "Log In":[ - null,"כניסה" - ], - "Sign in":[ - null,"התחברות" - ], - "Toggle chat":[ - null,"הפעל שיח" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("he", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.he = factory(new Jed(translations)); - } -}(this, function (he) { - return he; -})); diff --git a/locale/hu/LC_MESSAGES/converse.json b/locale/hu/LC_MESSAGES/converse.json index df44687b6..8da7c689b 100644 --- a/locale/hu/LC_MESSAGES/converse.json +++ b/locale/hu/LC_MESSAGES/converse.json @@ -1,651 +1,691 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-25 22:42+0200", - "Last-Translator": "Krisztian Kompar ", - "Language-Team": "Hungarian", - "Language": "hu", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "domain": "converse", - "lang": "hu", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "This contact is busy": [ - null, - "Elfoglalt" - ], - "This contact is online": [ - null, - "Online" - ], - "This contact is offline": [ - null, - "Nincs bejelentkezve" - ], - "This contact is unavailable": [ - null, - "Elérhetetlen" - ], - "This contact is away for an extended period": [ - null, - "Hosszabb ideje távol" - ], - "This contact is away": [ - null, - "Távol" - ], - "Reconnecting": [ - null, - "Kapcsolódás" - ], - "Disconnected": [ - null, - "Szétkapcsolva" - ], - "Error": [ - null, - "Hiba" - ], - "Connecting": [ - null, - "Kapcsolódás" - ], - "Connection Failed": [ - null, - "Kapcsolódási hiba" - ], - "Authenticating": [ - null, - "Azonosítás" - ], - "Authentication Failed": [ - null, - "Azonosítási hiba" - ], - "Disconnecting": [ - null, - "Szétkapcsolás" - ], - "Online Contacts": [ - null, - "Online kapcsolatok" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Saját üzenet" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Nem szerepelsz a csevegő szoba taglistáján" - ], - "me": [ - null, - "én" - ], - "Show this menu": [ - null, - "Mutasd ezt a menüt" - ], - "Write in the third person": [ - null, - "" - ], - "Remove messages": [ - null, - "Üzenet törlése" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "Online": [ - null, - "Elérhető" - ], - "Busy": [ - null, - "Foglalt" - ], - "Away": [ - null, - "Távol" - ], - "Offline": [ - null, - "Nem elérhető" - ], - "Contacts": [ - null, - "Kapcsolatok" - ], - "Contact name": [ - null, - "Kapcsolat neve" - ], - "Search": [ - null, - "Keresés" - ], - "Contact username": [ - null, - "Felhasználónév" - ], - "Add": [ - null, - "Hozzáadás" - ], - "Click to add new chat contacts": [ - null, - "Új kapcsolatok hozzáadása" - ], - "Add a contact": [ - null, - "Új kapcsolat" - ], - "No users found": [ - null, - "Nincs találat" - ], - "Click to add as a chat contact": [ - null, - "Csevegő kapcsolatként hozzáad" - ], - "Room name": [ - null, - "A szoba neve" - ], - "Nickname": [ - null, - "Becenév" - ], - "Server": [ - null, - "Szerver" - ], - "Join": [ - null, - "Csatlakozás" - ], - "Show rooms": [ - null, - "Létező szobák" - ], - "Rooms": [ - null, - "Szobák" - ], - "No rooms on %1$s": [ - null, - "Nincs csevegő szoba a(z) %1$s szerveren" - ], - "Rooms on %1$s": [ - null, - "Csevegő szobák a(z) %1$s szerveren" - ], - "Click to open this room": [ - null, - "Belépés a csevegő szobába" - ], - "Show more information on this room": [ - null, - "További információk a csevegő szobáról" - ], - "Description:": [ - null, - "Leírás:" - ], - "Occupants:": [ - null, - "Jelenlevők:" - ], - "Features:": [ - null, - "Tulajdonságok" - ], - "Requires authentication": [ - null, - "Azonosítás szükséges" - ], - "Hidden": [ - null, - "Rejtett" - ], - "Requires an invitation": [ - null, - "Meghívás szükséges" - ], - "Moderated": [ - null, - "Moderált" - ], - "Non-anonymous": [ - null, - "NEM névtelen" - ], - "Open room": [ - null, - "Nyitott szoba" - ], - "Permanent room": [ - null, - "Állandó szoba" - ], - "Public": [ - null, - "Nyílvános" - ], - "Semi-anonymous": [ - null, - "Félig névtelen" - ], - "Temporary room": [ - null, - "Ideiglenes szoba" - ], - "Unmoderated": [ - null, - "Moderálatlan" - ], - "Set chatroom topic": [ - null, - "Csevegőszoba téma beállítás" - ], - "Kick user from chatroom": [ - null, - "Felhasználó kiléptetése a csevegő szobából" - ], - "Ban user from chatroom": [ - null, - "Felhasználó kitíltása a csevegő szobából" - ], - "Message": [ - null, - "Üzenet" - ], - "Save": [ - null, - "Mentés" - ], - "Cancel": [ - null, - "Mégsem" - ], - "An error occurred while trying to save the form.": [ - null, - "Hiba történt az adatok mentése közben." - ], - "This chatroom requires a password": [ - null, - "A csevegő szoba belépéshez jelszó szükséges" - ], - "Password: ": [ - null, - "Jelszó:" - ], - "Submit": [ - null, - "Küldés" - ], - "This room is not anonymous": [ - null, - "Ez a szoba NEM névtelen" - ], - "This room now shows unavailable members": [ - null, - "Ez a szoba mutatja az elérhetetlen tagokat" - ], - "This room does not show unavailable members": [ - null, - "Ez a szoba nem mutatja az elérhetetlen tagokat" - ], - "Non-privacy-related room configuration has changed": [ - null, - "A szoba általános konfigurációja módosult" - ], - "Room logging is now enabled": [ - null, - "A szobába a belépés lehetséges" - ], - "Room logging is now disabled": [ - null, - "A szobába a belépés szünetel" - ], - "This room is now non-anonymous": [ - null, - "Ez a szoba most NEM névtelen" - ], - "This room is now semi-anonymous": [ - null, - "Ez a szoba most félig névtelen" - ], - "This room is now fully-anonymous": [ - null, - "Ez a szoba most teljesen névtelen" - ], - "A new room has been created": [ - null, - "Létrejött egy új csevegő szoba" - ], - "Your nickname has been changed": [ - null, - "A beceneved módosításra került" - ], - "%1$s has been banned": [ - null, - "A szobából kitíltva: %1$s" - ], - "%1$s has been kicked out": [ - null, - "A szobából kidobva: %1$s" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "Taglista módosítás miatt a szobából kiléptetve: %1$s" - ], - "%1$s has been removed for not being a member": [ - null, - "A taglistán nem szerepel így a szobából kiléptetve: %1$s" - ], - "You have been banned from this room": [ - null, - "Ki lettél tíltva ebből a szobából" - ], - "You have been kicked from this room": [ - null, - "Ki lettél dobva ebből a szobából" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Taglista módosítás miatt kiléptettünk a csevegő szobából" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők lehetnek jelen." - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás leállításra került." - ], - "You are not on the member list of this room": [ - null, - "Nem szerepelsz a csevegő szoba taglistáján" - ], - "No nickname was specified": [ - null, - "Nem lett megadva becenév" - ], - "You are not allowed to create new rooms": [ - null, - "Nem lehet új csevegő szobát létrehozni" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "A beceneved ütközik a csevegő szoba szabályzataival" - ], - "Your nickname is already taken": [ - null, - "A becenevedet már valaki használja" - ], - "This room does not (yet) exist": [ - null, - "Ez a szoba (még) nem létezik" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Ez a csevegő szoba elérte a maximális jelenlevők számát" - ], - "Topic set by %1$s to: %2$s": [ - null, - "A következő témát állította be %1$s: %2$s" - ], - "This user is a moderator": [ - null, - "Ez a felhasználó egy moderátor" - ], - "This user can send messages in this room": [ - null, - "Ez a felhasználó küldhet üzenetet ebbe a szobába" - ], - "This user can NOT send messages in this room": [ - null, - "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába" - ], - "Click to restore this chat": [ - null, - "A kapcsolat törlése" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "A kapcsolat törlése" - ], - "Click to remove this contact": [ - null, - "A kapcsolat törlése" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "Elérhető" - ], - "Click to chat with this contact": [ - null, - "Csevegés indítása ezzel a kapcsolatunkkal" - ], - "My contacts": [ - null, - "Kapcsolatok:" - ], - "Contact requests": [ - null, - "Kapcsolat felvételi kérés" - ], - "Pending contacts": [ - null, - "Függőben levő kapcsolatok" - ], - "Custom status": [ - null, - "Egyedi státusz" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "elfoglalt" - ], - "away for long": [ - null, - "hosszú ideje távol" - ], - "away": [ - null, - "távol" - ], - "I am %1$s": [ - null, - "%1$s vagyok" - ], - "Click here to write a custom status message": [ - null, - "Egyedi státusz üzenet írása" - ], - "Click to change your chat status": [ - null, - "Saját státusz beállítása" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber azonosító:" - ], - "Password:": [ - null, - "Jelszó:" - ], - "Log In": [ - null, - "Belépés" - ], - "Sign in": [ - null, - "Belépés" - ], - "Toggle chat": [ - null, - "" - ], - "%1$s is typing": [ - null, - "%1$s gépel" - ], - "BOSH Service URL:": [ - null, - "BOSH szerver URL" - ] + "domain": "converse", + "locale_data": { + "converse": { + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "Elfoglalt" + ], + "This contact is online": [ + null, + "Online" + ], + "This contact is offline": [ + null, + "Nincs bejelentkezve" + ], + "This contact is unavailable": [ + null, + "Elérhetetlen" + ], + "This contact is away for an extended period": [ + null, + "Hosszabb ideje távol" + ], + "This contact is away": [ + null, + "Távol" + ], + "My contacts": [ + null, + "Kapcsolatok:" + ], + "Pending contacts": [ + null, + "Függőben levő kapcsolatok" + ], + "Contact requests": [ + null, + "Kapcsolat felvételi kérés" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Kapcsolatok" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Hiba" + ], + "Connecting": [ + null, + "Kapcsolódás" + ], + "Authenticating": [ + null, + "Azonosítás" + ], + "Authentication Failed": [ + null, + "Azonosítási hiba" + ], + "Online Contacts": [ + null, + "Online kapcsolatok" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Saját üzenet" + ], + "me": [ + null, + "én" + ], + "Show this menu": [ + null, + "Mutasd ezt a menüt" + ], + "Write in the third person": [ + null, + "" + ], + "Remove messages": [ + null, + "Üzenet törlése" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "Elérhető" + ], + "Busy": [ + null, + "Foglalt" + ], + "Away": [ + null, + "Távol" + ], + "Offline": [ + null, + "Nem elérhető" + ], + "Contact name": [ + null, + "Kapcsolat neve" + ], + "Search": [ + null, + "Keresés" + ], + "Contact username": [ + null, + "Felhasználónév" + ], + "Add": [ + null, + "Hozzáadás" + ], + "Click to add new chat contacts": [ + null, + "Új kapcsolatok hozzáadása" + ], + "Add a contact": [ + null, + "Új kapcsolat" + ], + "No users found": [ + null, + "Nincs találat" + ], + "Click to add as a chat contact": [ + null, + "Csevegő kapcsolatként hozzáad" + ], + "Room name": [ + null, + "A szoba neve" + ], + "Nickname": [ + null, + "Becenév" + ], + "Server": [ + null, + "Szerver" + ], + "Join": [ + null, + "Csatlakozás" + ], + "Show rooms": [ + null, + "Létező szobák" + ], + "Rooms": [ + null, + "Szobák" + ], + "No rooms on %1$s": [ + null, + "Nincs csevegő szoba a(z) %1$s szerveren" + ], + "Rooms on %1$s": [ + null, + "Csevegő szobák a(z) %1$s szerveren" + ], + "Click to open this room": [ + null, + "Belépés a csevegő szobába" + ], + "Show more information on this room": [ + null, + "További információk a csevegő szobáról" + ], + "Description:": [ + null, + "Leírás:" + ], + "Occupants:": [ + null, + "Jelenlevők:" + ], + "Features:": [ + null, + "Tulajdonságok" + ], + "Requires authentication": [ + null, + "Azonosítás szükséges" + ], + "Hidden": [ + null, + "Rejtett" + ], + "Requires an invitation": [ + null, + "Meghívás szükséges" + ], + "Moderated": [ + null, + "Moderált" + ], + "Non-anonymous": [ + null, + "NEM névtelen" + ], + "Open room": [ + null, + "Nyitott szoba" + ], + "Permanent room": [ + null, + "Állandó szoba" + ], + "Public": [ + null, + "Nyílvános" + ], + "Semi-anonymous": [ + null, + "Félig névtelen" + ], + "Temporary room": [ + null, + "Ideiglenes szoba" + ], + "Unmoderated": [ + null, + "Moderálatlan" + ], + "This user is a moderator": [ + null, + "Ez a felhasználó egy moderátor" + ], + "This user can send messages in this room": [ + null, + "Ez a felhasználó küldhet üzenetet ebbe a szobába" + ], + "This user can NOT send messages in this room": [ + null, + "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Üzenet" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Write in 3rd person": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Mentés" + ], + "Cancel": [ + null, + "Mégsem" + ], + "An error occurred while trying to save the form.": [ + null, + "Hiba történt az adatok mentése közben." + ], + "This chatroom requires a password": [ + null, + "A csevegő szoba belépéshez jelszó szükséges" + ], + "Password: ": [ + null, + "Jelszó:" + ], + "Submit": [ + null, + "Küldés" + ], + "This room is not anonymous": [ + null, + "Ez a szoba NEM névtelen" + ], + "This room now shows unavailable members": [ + null, + "Ez a szoba mutatja az elérhetetlen tagokat" + ], + "This room does not show unavailable members": [ + null, + "Ez a szoba nem mutatja az elérhetetlen tagokat" + ], + "Non-privacy-related room configuration has changed": [ + null, + "A szoba általános konfigurációja módosult" + ], + "Room logging is now enabled": [ + null, + "A szobába a belépés lehetséges" + ], + "Room logging is now disabled": [ + null, + "A szobába a belépés szünetel" + ], + "This room is now non-anonymous": [ + null, + "Ez a szoba most NEM névtelen" + ], + "This room is now semi-anonymous": [ + null, + "Ez a szoba most félig névtelen" + ], + "This room is now fully-anonymous": [ + null, + "Ez a szoba most teljesen névtelen" + ], + "A new room has been created": [ + null, + "Létrejött egy új csevegő szoba" + ], + "You have been banned from this room": [ + null, + "Ki lettél tíltva ebből a szobából" + ], + "You have been kicked from this room": [ + null, + "Ki lettél dobva ebből a szobából" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Taglista módosítás miatt kiléptettünk a csevegő szobából" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők lehetnek jelen." + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás leállításra került." + ], + "%1$s has been banned": [ + null, + "A szobából kitíltva: %1$s" + ], + "%1$s has been kicked out": [ + null, + "A szobából kidobva: %1$s" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "Taglista módosítás miatt a szobából kiléptetve: %1$s" + ], + "%1$s has been removed for not being a member": [ + null, + "A taglistán nem szerepel így a szobából kiléptetve: %1$s" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Nem szerepelsz a csevegő szoba taglistáján" + ], + "No nickname was specified": [ + null, + "Nem lett megadva becenév" + ], + "You are not allowed to create new rooms": [ + null, + "Nem lehet új csevegő szobát létrehozni" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "A beceneved ütközik a csevegő szoba szabályzataival" + ], + "Your nickname is already taken": [ + null, + "A becenevedet már valaki használja" + ], + "This room does not (yet) exist": [ + null, + "Ez a szoba (még) nem létezik" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Ez a csevegő szoba elérte a maximális jelenlevők számát" + ], + "Topic set by %1$s to: %2$s": [ + null, + "A következő témát állította be %1$s: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "A kapcsolat törlése" + ], + "Click to chat with this contact": [ + null, + "Csevegés indítása ezzel a kapcsolatunkkal" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "%1$s vagyok" + ], + "Click here to write a custom status message": [ + null, + "Egyedi státusz üzenet írása" + ], + "Click to change your chat status": [ + null, + "Saját státusz beállítása" + ], + "Custom status": [ + null, + "Egyedi státusz" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "elfoglalt" + ], + "away for long": [ + null, + "hosszú ideje távol" + ], + "away": [ + null, + "távol" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Jelszó:" + ], + "Log In": [ + null, + "Belépés" + ], + "Sign in": [ + null, + "Belépés" + ], + "Toggle chat": [ + null, + "" + ], + "": { + "domain": "converse", + "lang": "hu" + } + } } } \ No newline at end of file diff --git a/locale/hu/LC_MESSAGES/hu.js b/locale/hu/LC_MESSAGES/hu.js deleted file mode 100644 index ee0f8abb2..000000000 --- a/locale/hu/LC_MESSAGES/hu.js +++ /dev/null @@ -1,202 +0,0 @@ -(function(root, factory) { - var translations = { - "domain" : "converse", - "locale_data" : { - "converse" : { - "" : { - "Project-Id-Version" : "Converse.js 0.4", - "Report-Msgid-Bugs-To" : "", - "POT-Creation-Date" : "2013-09-24 23:22+0200", - "PO-Revision-Date" : "2013-09-25 22:42+0200", - "Last-Translator" : "Krisztian Kompar ", - "Language-Team" : "Hungarian", - "Language" : "hu", - "MIME-Version" : "1.0", - "Content-Type" : "text/plain; charset=UTF-8", - "Content-Transfer-Encoding" : "8bit", - "domain" : "converse", - "lang" : "hu", - "plural_forms" : "nplurals=2; plural=(n != 1);" - }, - "Disconnected" : [ null, "Szétkapcsolva" ], - "Error" : [ null, "Hiba" ], - "Connecting" : [ null, "Kapcsolódás" ], - "Connection Failed" : [ null, "Kapcsolódási hiba" ], - "Authenticating" : [ null, "Azonosítás" ], - "Authentication Failed" : [ null, "Azonosítási hiba" ], - "Disconnecting" : [ null, "Szétkapcsolás" ], - "me" : [ null, "én" ], - "%1$s is typing" : [ null, "%1$s gépel" ], - "Show this menu" : [ null, "Mutasd ezt a menüt" ], - "Write in the third person" : [ null, "" ], - "Remove messages" : [ null, "Üzenet törlése" ], - "Personal message" : [ null, "Saját üzenet" ], - "Contacts" : [ null, "Kapcsolatok" ], - "Online" : [ null, "Elérhető" ], - "Busy" : [ null, "Foglalt" ], - "Away" : [ null, "Távol" ], - "Offline" : [ null, "Nem elérhető" ], - "Click to add new chat contacts" : [ null, - "Új kapcsolatok hozzáadása" ], - "Add a contact" : [ null, "Új kapcsolat" ], - "Contact username" : [ null, "Felhasználónév" ], - "Add" : [ null, "Hozzáadás" ], - "Contact name" : [ null, "Kapcsolat neve" ], - "Search" : [ null, "Keresés" ], - "No users found" : [ null, "Nincs találat" ], - "Click to add as a chat contact" : [ null, - "Csevegő kapcsolatként hozzáad" ], - "Click to open this room" : [ null, "Belépés a csevegő szobába" ], - "Show more information on this room" : [ null, - "További információk a csevegő szobáról" ], - "Description:" : [ null, "Leírás:" ], - "Occupants:" : [ null, "Jelenlevők:" ], - "Features:" : [ null, "Tulajdonságok" ], - "Requires authentication" : [ null, "Azonosítás szükséges" ], - "Hidden" : [ null, "Rejtett" ], - "Requires an invitation" : [ null, "Meghívás szükséges" ], - "Moderated" : [ null, "Moderált" ], - "Non-anonymous" : [ null, "NEM névtelen" ], - "Open room" : [ null, "Nyitott szoba" ], - "Permanent room" : [ null, "Állandó szoba" ], - "Public" : [ null, "Nyílvános" ], - "Semi-anonymous" : [ null, "Félig névtelen" ], - "Temporary room" : [ null, "Ideiglenes szoba" ], - "Unmoderated" : [ null, "Moderálatlan" ], - "Rooms" : [ null, "Szobák" ], - "Room name" : [ null, "A szoba neve" ], - "Nickname" : [ null, "Becenév" ], - "Server" : [ null, "Szerver" ], - "Join" : [ null, "Csatlakozás" ], - "Show rooms" : [ null, "Létező szobák" ], - "No rooms on %1$s" : [ null, - "Nincs csevegő szoba a(z) %1$s szerveren" ], - "Rooms on %1$s" : [ null, "Csevegő szobák a(z) %1$s szerveren" ], - "Set chatroom topic" : [ null, "Csevegőszoba téma beállítás" ], - "Kick user from chatroom" : [ null, - "Felhasználó kiléptetése a csevegő szobából" ], - "Ban user from chatroom" : [ null, - "Felhasználó kitíltása a csevegő szobából" ], - "Message" : [ null, "Üzenet" ], - "Save" : [ null, "Mentés" ], - "Cancel" : [ null, "Mégsem" ], - "An error occurred while trying to save the form." : [ null, - "Hiba történt az adatok mentése közben." ], - "This chatroom requires a password" : [ null, - "A csevegő szoba belépéshez jelszó szükséges" ], - "Password: " : [ null, "Jelszó:" ], - "Submit" : [ null, "Küldés" ], - "This room is not anonymous" : [ null, - "Ez a szoba NEM névtelen" ], - "This room now shows unavailable members" : [ null, - "Ez a szoba mutatja az elérhetetlen tagokat" ], - "This room does not show unavailable members" : [ null, - "Ez a szoba nem mutatja az elérhetetlen tagokat" ], - "Non-privacy-related room configuration has changed" : [ null, - "A szoba általános konfigurációja módosult" ], - "Room logging is now enabled" : [ null, - "A szobába a belépés lehetséges" ], - "Room logging is now disabled" : [ null, - "A szobába a belépés szünetel" ], - "This room is now non-anonymous" : [ null, - "Ez a szoba most NEM névtelen" ], - "This room is now semi-anonymous" : [ null, - "Ez a szoba most félig névtelen" ], - "This room is now fully-anonymous" : [ null, - "Ez a szoba most teljesen névtelen" ], - "A new room has been created" : [ null, - "Létrejött egy új csevegő szoba" ], - "Your nickname has been changed" : [ null, - "A beceneved módosításra került" ], - "%1$s has been banned" : [ null, - "A szobából kitíltva: %1$s" ], - "%1$s has been kicked out" : [ null, - "A szobából kidobva: %1$s" ], - "%1$s has been removed because of an affiliation change" : [ - null, - "Taglista módosítás miatt a szobából kiléptetve: %1$s" ], - "%1$s has been removed for not being a member" : [ - null, - "A taglistán nem szerepel így a szobából kiléptetve: %1$s" ], - "You have been banned from this room" : [ null, - "Ki lettél tíltva ebből a szobából" ], - "You have been kicked from this room" : [ null, - "Ki lettél dobva ebből a szobából" ], - "You have been removed from this room because of an affiliation change" : [ - null, - "Taglista módosítás miatt kiléptettünk a csevegő szobából" ], - "You have been removed from this room because the room has changed to members-only and you're not a member" : [ - null, - "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők lehetnek jelen." ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down." : [ - null, - "Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás leállításra került." ], - "You are not on the member list of this room" : [ null, - "Nem szerepelsz a csevegő szoba taglistáján" ], - "No nickname was specified" : [ null, - "Nem lett megadva becenév" ], - "You are not allowed to create new rooms" : [ null, - "Nem lehet új csevegő szobát létrehozni" ], - "Your nickname doesn't conform to this room's policies" : [ - null, - "A beceneved ütközik a csevegő szoba szabályzataival" ], - "Your nickname is already taken" : [ null, - "A becenevedet már valaki használja" ], - "This room does not (yet) exist" : [ null, - "Ez a szoba (még) nem létezik" ], - "This room has reached it's maximum number of occupants" : [ - null, - "Ez a csevegő szoba elérte a maximális jelenlevők számát" ], - "Topic set by %1$s to: %2$s" : [ null, - "A következő témát állította be %1$s: %2$s" ], - "This user is a moderator" : [ null, - "Ez a felhasználó egy moderátor" ], - "This user can send messages in this room" : [ null, - "Ez a felhasználó küldhet üzenetet ebbe a szobába" ], - "This user can NOT send messages in this room" : [ null, - "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába" ], - "Click to chat with this contact" : [ null, - "Csevegés indítása ezzel a kapcsolatunkkal" ], - "Click to remove this contact" : [ null, "A kapcsolat törlése" ], - "This contact is busy" : [ null, "Elfoglalt" ], - "This contact is online" : [ null, "Online" ], - "This contact is offline" : [ null, "Nincs bejelentkezve" ], - "This contact is unavailable" : [ null, "Elérhetetlen" ], - "This contact is away for an extended period" : [ null, - "Hosszabb ideje távol" ], - "This contact is away" : [ null, "Távol" ], - "Contact requests" : [ null, "Kapcsolat felvételi kérés" ], - "My contacts" : [ null, "Kapcsolatok:" ], - "Pending contacts" : [ null, "Függőben levő kapcsolatok" ], - "Custom status" : [ null, "Egyedi státusz" ], - "Click to change your chat status" : [ null, - "Saját státusz beállítása" ], - "Click here to write a custom status message" : [ null, - "Egyedi státusz üzenet írása" ], - "online" : [ null, "online" ], - "busy" : [ null, "elfoglalt" ], - "away for long" : [ null, "hosszú ideje távol" ], - "away" : [ null, "távol" ], - "I am %1$s" : [ null, "%1$s vagyok" ], - "Sign in" : [ null, "Belépés" ], - "XMPP/Jabber Username:" : [ null, "XMPP/Jabber azonosító:" ], - "Password:" : [ null, "Jelszó:" ], - "Log In" : [ null, "Belépés" ], - "BOSH Service URL:" : [ null, "BOSH szerver URL" ], - "Online Contacts" : [ null, "Online kapcsolatok" ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("hu", [ 'jed' ], function() { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.hu = factory(new Jed(translations)); - } -}(this, function(hu) { - return hu; -})); diff --git a/locale/id/LC_MESSAGES/converse.json b/locale/id/LC_MESSAGES/converse.json index 9ae9a7809..c18c9b3c5 100644 --- a/locale/id/LC_MESSAGES/converse.json +++ b/locale/id/LC_MESSAGES/converse.json @@ -1,652 +1,663 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.7.0", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2014-01-25 21:30+0700", - "Last-Translator": "Priyadi Iman Nurcahyo ", - "Language-Team": "Bahasa Indonesia", - "Language": "id", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit" - }, - "unencrypted": [ - null, - "tak dienkripsi" - ], - "unverified": [ - null, - "tak diverifikasi" - ], - "verified": [ - null, - "diverifikasi" - ], - "finished": [ - null, - "selesai" - ], - "This contact is busy": [ - null, - "Teman ini sedang sibuk" - ], - "This contact is online": [ - null, - "Teman ini terhubung" - ], - "This contact is offline": [ - null, - "Teman ini tidak terhubung" - ], - "This contact is unavailable": [ - null, - "Teman ini tidak tersedia" - ], - "This contact is away for an extended period": [ - null, - "Teman ini tidak di tempat untuk waktu yang lama" - ], - "This contact is away": [ - null, - "Teman ini tidak di tempat" - ], - "Reconnecting": [ - null, - "Menyambung" - ], - "Disconnected": [ - null, - "Terputus" - ], - "Error": [ - null, - "Kesalahan" - ], - "Connecting": [ - null, - "Menyambung" - ], - "Connection Failed": [ - null, - "Gagal Menyambung" - ], - "Authenticating": [ - null, - "Melakukan otentikasi" - ], - "Authentication Failed": [ - null, - "Otentikasi gagal" - ], - "Disconnecting": [ - null, - "Memutuskan hubungan" - ], - "Online Contacts": [ - null, - "Teman yang Terhubung" - ], - "Re-establishing encrypted session": [ - null, - "Menyambung kembali sesi terenkripsi" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "Permintaan otentikasi dari %1$s\n\nTeman anda mencoba untuk melakukan verifikasi identitas anda dengan cara menanyakan pertanyaan di bawah ini.\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "Tak dapat melakukan verifikasi identitas pengguna ini." - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Pesan pribadi" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Anda bukan anggota dari ruangan ini" - ], - "me": [ - null, - "saya" - ], - "Show this menu": [ - null, - "Tampilkan menu ini" - ], - "Write in the third person": [ - null, - "Tulis ini menggunakan bahasa pihak ketiga" - ], - "Remove messages": [ - null, - "Hapus pesan" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "Pesan anda tak dapat dikirim" - ], - "We received an unencrypted message": [ - null, - "Kami menerima pesan terenkripsi" - ], - "We received an unreadable encrypted message": [ - null, - "Kami menerima pesan terenkripsi yang gagal dibaca" - ], - "This user has requested an encrypted session.": [ - null, - "Pengguna ini meminta sesi terenkripsi" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "Ini adalah sidik jari anda, konfirmasikan bersama mereka dengan %1$s, di luar percakapan ini.\n\nSidik jari untuk anda, %2$s: %3$s\n\nSidik jari untuk %1$s: %4$s\n\nJika anda bisa mengkonfirmasi sidik jadi cocok, klik Lanjutkan, jika tidak klik Batal." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "Anda akan ditanyakan pertanyaan untuk keamanan beserta jawaban untuk pertanyaan tersebut.\n\nTeman anda akan ditanyakan pertanyaan yang sama dan jika dia memberikan jawaban yang sama (huruf kapital diperhatikan), identitas mereka diverifikasi." - ], - "What is your security question?": [ - null, - "Apakah pertanyaan keamanan anda?" - ], - "What is the answer to the security question?": [ - null, - "Apa jawaban dari pertanyaan keamanan tersebut?" - ], - "Invalid authentication scheme provided": [ - null, - "Skema otentikasi salah" - ], - "Your messages are not encrypted anymore": [ - null, - "Pesan anda tidak lagi terenkripsi" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "Pesan anda sekarang terenkripsi, namun identitas teman anda belum dapat diverifikasi." - ], - "Your buddy's identify has been verified.": [ - null, - "Identitas teman anda telah diverifikasi." - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "Teman anda menghentikan percakapan terenkripsi, anda sebaiknya melakukan hal yang sama." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Pesan anda tak terenkripsi. Klik di sini untuk menyalakan enkripsi OTR." - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Pesan anda terenkripsi, tetapi teman anda belum diverifikasi." - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Pesan anda terenkripsi dan teman anda telah diverifikasi." - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "Teman anda telah mematikan sesi terenkripsi, dan anda juga sebaiknya melakukan hal yang sama" - ], - "End encrypted conversation": [ - null, - "Sudahi percakapan terenkripsi" - ], - "Refresh encrypted conversation": [ - null, - "Setel ulang percakapan terenkripsi" - ], - "Start encrypted conversation": [ - null, - "Mulai sesi terenkripsi" - ], - "Verify with fingerprints": [ - null, - "Verifikasi menggunakan sidik jari" - ], - "Verify with SMP": [ - null, - "Verifikasi menggunakan SMP" - ], - "What's this?": [ - null, - "Apakah ini?" - ], - "Online": [ - null, - "Terhubung" - ], - "Busy": [ - null, - "Sibuk" - ], - "Away": [ - null, - "Pergi" - ], - "Offline": [ - null, - "Tak Terhubung" - ], - "Contacts": [ - null, - "Teman" - ], - "Contact name": [ - null, - "Nama teman" - ], - "Search": [ - null, - "Cari" - ], - "Contact username": [ - null, - "Username teman" - ], - "Add": [ - null, - "Tambah" - ], - "Click to add new chat contacts": [ - null, - "Klik untuk menambahkan teman baru" - ], - "Add a contact": [ - null, - "Tambah teman" - ], - "No users found": [ - null, - "Pengguna tak ditemukan" - ], - "Click to add as a chat contact": [ - null, - "Klik untuk menambahkan sebagai teman" - ], - "Room name": [ - null, - "Nama ruangan" - ], - "Nickname": [ - null, - "Nama panggilan" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Ikuti" - ], - "Show rooms": [ - null, - "Perlihatkan ruangan" - ], - "Rooms": [ - null, - "Ruangan" - ], - "No rooms on %1$s": [ - null, - "Tak ada ruangan di %1$s" - ], - "Rooms on %1$s": [ - null, - "Ruangan di %1$s" - ], - "Click to open this room": [ - null, - "Klik untuk membuka ruangan ini" - ], - "Show more information on this room": [ - null, - "Tampilkan informasi ruangan ini" - ], - "Description:": [ - null, - "Keterangan:" - ], - "Occupants:": [ - null, - "Penghuni:" - ], - "Features:": [ - null, - "Fitur:" - ], - "Requires authentication": [ - null, - "Membutuhkan otentikasi" - ], - "Hidden": [ - null, - "Tersembunyi" - ], - "Requires an invitation": [ - null, - "Membutuhkan undangan" - ], - "Moderated": [ - null, - "Dimoderasi" - ], - "Non-anonymous": [ - null, - "Tidak anonim" - ], - "Open room": [ - null, - "Ruangan terbuka" - ], - "Permanent room": [ - null, - "Ruangan permanen" - ], - "Public": [ - null, - "Umum" - ], - "Semi-anonymous": [ - null, - "Semi-anonim" - ], - "Temporary room": [ - null, - "Ruangan sementara" - ], - "Unmoderated": [ - null, - "Tak dimoderasi" - ], - "Set chatroom topic": [ - null, - "Setel topik ruangan" - ], - "Kick user from chatroom": [ - null, - "Tendang pengguna dari ruangan" - ], - "Ban user from chatroom": [ - null, - "Larang pengguna dari ruangan" - ], - "Message": [ - null, - "Pesan" - ], - "Save": [ - null, - "Simpan" - ], - "Cancel": [ - null, - "Batal" - ], - "An error occurred while trying to save the form.": [ - null, - "Kesalahan terjadi saat menyimpan formulir ini." - ], - "This chatroom requires a password": [ - null, - "Ruangan ini membutuhkan kata sandi" - ], - "Password: ": [ - null, - "Kata sandi: " - ], - "Submit": [ - null, - "Kirim" - ], - "This room is not anonymous": [ - null, - "Ruangan ini tidak anonim" - ], - "This room now shows unavailable members": [ - null, - "Ruangan ini menampilkan anggota yang tak tersedia" - ], - "This room does not show unavailable members": [ - null, - "Ruangan ini tidak menampilkan anggota yang tak tersedia" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Konfigurasi ruangan yang tak berhubungan dengan privasi telah diubah" - ], - "Room logging is now enabled": [ - null, - "Pencatatan di ruangan ini sekarang dinyalakan" - ], - "Room logging is now disabled": [ - null, - "Pencatatan di ruangan ini sekarang dimatikan" - ], - "This room is now non-anonymous": [ - null, - "Ruangan ini sekarang tak-anonim" - ], - "This room is now semi-anonymous": [ - null, - "Ruangan ini sekarang semi-anonim" - ], - "This room is now fully-anonymous": [ - null, - "Ruangan ini sekarang anonim" - ], - "A new room has been created": [ - null, - "Ruangan baru telah dibuat" - ], - "Your nickname has been changed": [ - null, - "Nama panggilan anda telah diubah" - ], - "%1$s has been banned": [ - null, - "%1$s telah dicekal" - ], - "%1$s has been kicked out": [ - null, - "%1$s telah ditendang keluar" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s telah dihapus karena perubahan afiliasi" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s telah dihapus karena bukan anggota" - ], - "You have been banned from this room": [ - null, - "Anda telah dicekal dari ruangan ini" - ], - "You have been kicked from this room": [ - null, - "Anda telah ditendang dari ruangan ini" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Anda telah dihapus dari ruangan ini karena perubahan afiliasi" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Anda telah dihapus dari ruangan ini karena ruangan ini hanya terbuka untuk anggota dan anda bukan anggota" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Anda telah dihapus dari ruangan ini karena layanan MUC (Multi-user chat) telah dimatikan." - ], - "You are not on the member list of this room": [ - null, - "Anda bukan anggota dari ruangan ini" - ], - "No nickname was specified": [ - null, - "Nama panggilan belum ditentukan" - ], - "You are not allowed to create new rooms": [ - null, - "Anda tak diizinkan untuk membuat ruangan baru" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Nama panggilan anda tidak sesuai aturan ruangan ini" - ], - "Your nickname is already taken": [ - null, - "Nama panggilan anda telah digunakan orang lain" - ], - "This room does not (yet) exist": [ - null, - "Ruangan ini belum dibuat" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Ruangan ini telah mencapai jumlah penghuni maksimum" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Topik diganti oleh %1$s menjadi: %2$s" - ], - "This user is a moderator": [ - null, - "Pengguna ini adalah moderator" - ], - "This user can send messages in this room": [ - null, - "Pengguna ini dapat mengirim pesan di ruangan ini" - ], - "This user can NOT send messages in this room": [ - null, - "Pengguna ini tak dapat mengirim pesan di ruangan ini" - ], - "Click to restore this chat": [ - null, - "Klik untuk menghapus teman ini" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Klik untuk menghapus teman ini" - ], - "Click to remove this contact": [ - null, - "Klik untuk menghapus teman ini" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "Terhubung" - ], - "Click to chat with this contact": [ - null, - "Klik untuk mulai perbinjangan dengan teman ini" - ], - "My contacts": [ - null, - "Teman saya" - ], - "Contact requests": [ - null, - "Permintaan pertemanan" - ], - "Pending contacts": [ - null, - "Teman yang menunggu" - ], - "Custom status": [ - null, - "Status kustom" - ], - "online": [ - null, - "terhubung" - ], - "busy": [ - null, - "sibuk" - ], - "away for long": [ - null, - "lama tak di tempat" - ], - "away": [ - null, - "tak di tempat" - ], - "I am %1$s": [ - null, - "Saya %1$s" - ], - "Click here to write a custom status message": [ - null, - "Klik untuk menulis status kustom" - ], - "Click to change your chat status": [ - null, - "Klik untuk mengganti status" - ], - "XMPP/Jabber Username:": [ - null, - "Nama pengguna XMPP/Jabber:" - ], - "Password:": [ - null, - "Kata sandi:" - ], - "Log In": [ - null, - "Masuk" - ], - "Sign in": [ - null, - "Masuk" - ], - "Toggle chat": [ - null, - "" - ], - "#~ \"Your browser needs to generate a private key, which will be used in your \"#~ \"encrypted chat session. This can take up to 30 seconds during which your \"#~ \"browser might freeze and become unresponsive.\"": [ - null, - "#~ \"Perambah anda perlu membuat kunci privat, yang akan digunakan pada sesi \"#~ \"perbincangan anda. Ini akan membutuhkan waktu sampai 30 detik, dan selama \"#~ \"itu perambah mungkin akan tidak responsif.\"" - ], - "Private key generated.": [ - null, - "Kunci privat berhasil dibuat." - ], - "BOSH Service URL:": [ - null, - "URL Layanan BOSH:" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "id" + }, + "unencrypted": [ + null, + "tak dienkripsi" + ], + "unverified": [ + null, + "tak diverifikasi" + ], + "verified": [ + null, + "diverifikasi" + ], + "finished": [ + null, + "selesai" + ], + "This contact is busy": [ + null, + "Teman ini sedang sibuk" + ], + "This contact is online": [ + null, + "Teman ini terhubung" + ], + "This contact is offline": [ + null, + "Teman ini tidak terhubung" + ], + "This contact is unavailable": [ + null, + "Teman ini tidak tersedia" + ], + "This contact is away for an extended period": [ + null, + "Teman ini tidak di tempat untuk waktu yang lama" + ], + "This contact is away": [ + null, + "Teman ini tidak di tempat" + ], + "My contacts": [ + null, + "Teman saya" + ], + "Pending contacts": [ + null, + "Teman yang menunggu" + ], + "Contact requests": [ + null, + "Permintaan pertemanan" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Teman" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Kesalahan" + ], + "Connecting": [ + null, + "Menyambung" + ], + "Authenticating": [ + null, + "Melakukan otentikasi" + ], + "Authentication Failed": [ + null, + "Otentikasi gagal" + ], + "Online Contacts": [ + null, + "Teman yang Terhubung" + ], + "Re-establishing encrypted session": [ + null, + "Menyambung kembali sesi terenkripsi" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "Tak dapat melakukan verifikasi identitas pengguna ini." + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Pesan pribadi" + ], + "me": [ + null, + "saya" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Tampilkan menu ini" + ], + "Write in the third person": [ + null, + "Tulis ini menggunakan bahasa pihak ketiga" + ], + "Remove messages": [ + null, + "Hapus pesan" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "Pesan anda tak dapat dikirim" + ], + "We received an unencrypted message": [ + null, + "Kami menerima pesan terenkripsi" + ], + "We received an unreadable encrypted message": [ + null, + "Kami menerima pesan terenkripsi yang gagal dibaca" + ], + "This user has requested an encrypted session.": [ + null, + "Pengguna ini meminta sesi terenkripsi" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Ini adalah sidik jari anda, konfirmasikan bersama mereka dengan %1$s, di luar percakapan ini.\n\nSidik jari untuk anda, %2$s: %3$s\n\nSidik jari untuk %1$s: %4$s\n\nJika anda bisa mengkonfirmasi sidik jadi cocok, klik Lanjutkan, jika tidak klik Batal." + ], + "What is your security question?": [ + null, + "Apakah pertanyaan keamanan anda?" + ], + "What is the answer to the security question?": [ + null, + "Apa jawaban dari pertanyaan keamanan tersebut?" + ], + "Invalid authentication scheme provided": [ + null, + "Skema otentikasi salah" + ], + "Your messages are not encrypted anymore": [ + null, + "Pesan anda tidak lagi terenkripsi" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Pesan anda tak terenkripsi. Klik di sini untuk menyalakan enkripsi OTR." + ], + "End encrypted conversation": [ + null, + "Sudahi percakapan terenkripsi" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Setel ulang percakapan terenkripsi" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Mulai sesi terenkripsi" + ], + "Verify with fingerprints": [ + null, + "Verifikasi menggunakan sidik jari" + ], + "Verify with SMP": [ + null, + "Verifikasi menggunakan SMP" + ], + "What's this?": [ + null, + "Apakah ini?" + ], + "Online": [ + null, + "Terhubung" + ], + "Busy": [ + null, + "Sibuk" + ], + "Away": [ + null, + "Pergi" + ], + "Offline": [ + null, + "Tak Terhubung" + ], + "Contact name": [ + null, + "Nama teman" + ], + "Search": [ + null, + "Cari" + ], + "Contact username": [ + null, + "Username teman" + ], + "Add": [ + null, + "Tambah" + ], + "Click to add new chat contacts": [ + null, + "Klik untuk menambahkan teman baru" + ], + "Add a contact": [ + null, + "Tambah teman" + ], + "No users found": [ + null, + "Pengguna tak ditemukan" + ], + "Click to add as a chat contact": [ + null, + "Klik untuk menambahkan sebagai teman" + ], + "Room name": [ + null, + "Nama ruangan" + ], + "Nickname": [ + null, + "Nama panggilan" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Ikuti" + ], + "Show rooms": [ + null, + "Perlihatkan ruangan" + ], + "Rooms": [ + null, + "Ruangan" + ], + "No rooms on %1$s": [ + null, + "Tak ada ruangan di %1$s" + ], + "Rooms on %1$s": [ + null, + "Ruangan di %1$s" + ], + "Click to open this room": [ + null, + "Klik untuk membuka ruangan ini" + ], + "Show more information on this room": [ + null, + "Tampilkan informasi ruangan ini" + ], + "Description:": [ + null, + "Keterangan:" + ], + "Occupants:": [ + null, + "Penghuni:" + ], + "Features:": [ + null, + "Fitur:" + ], + "Requires authentication": [ + null, + "Membutuhkan otentikasi" + ], + "Hidden": [ + null, + "Tersembunyi" + ], + "Requires an invitation": [ + null, + "Membutuhkan undangan" + ], + "Moderated": [ + null, + "Dimoderasi" + ], + "Non-anonymous": [ + null, + "Tidak anonim" + ], + "Open room": [ + null, + "Ruangan terbuka" + ], + "Permanent room": [ + null, + "Ruangan permanen" + ], + "Public": [ + null, + "Umum" + ], + "Semi-anonymous": [ + null, + "Semi-anonim" + ], + "Temporary room": [ + null, + "Ruangan sementara" + ], + "Unmoderated": [ + null, + "Tak dimoderasi" + ], + "This user is a moderator": [ + null, + "Pengguna ini adalah moderator" + ], + "This user can send messages in this room": [ + null, + "Pengguna ini dapat mengirim pesan di ruangan ini" + ], + "This user can NOT send messages in this room": [ + null, + "Pengguna ini tak dapat mengirim pesan di ruangan ini" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Pesan" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Simpan" + ], + "Cancel": [ + null, + "Batal" + ], + "An error occurred while trying to save the form.": [ + null, + "Kesalahan terjadi saat menyimpan formulir ini." + ], + "This chatroom requires a password": [ + null, + "Ruangan ini membutuhkan kata sandi" + ], + "Password: ": [ + null, + "Kata sandi: " + ], + "Submit": [ + null, + "Kirim" + ], + "This room is not anonymous": [ + null, + "Ruangan ini tidak anonim" + ], + "This room now shows unavailable members": [ + null, + "Ruangan ini menampilkan anggota yang tak tersedia" + ], + "This room does not show unavailable members": [ + null, + "Ruangan ini tidak menampilkan anggota yang tak tersedia" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Konfigurasi ruangan yang tak berhubungan dengan privasi telah diubah" + ], + "Room logging is now enabled": [ + null, + "Pencatatan di ruangan ini sekarang dinyalakan" + ], + "Room logging is now disabled": [ + null, + "Pencatatan di ruangan ini sekarang dimatikan" + ], + "This room is now non-anonymous": [ + null, + "Ruangan ini sekarang tak-anonim" + ], + "This room is now semi-anonymous": [ + null, + "Ruangan ini sekarang semi-anonim" + ], + "This room is now fully-anonymous": [ + null, + "Ruangan ini sekarang anonim" + ], + "A new room has been created": [ + null, + "Ruangan baru telah dibuat" + ], + "You have been banned from this room": [ + null, + "Anda telah dicekal dari ruangan ini" + ], + "You have been kicked from this room": [ + null, + "Anda telah ditendang dari ruangan ini" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Anda telah dihapus dari ruangan ini karena perubahan afiliasi" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Anda telah dihapus dari ruangan ini karena ruangan ini hanya terbuka untuk anggota dan anda bukan anggota" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Anda telah dihapus dari ruangan ini karena layanan MUC (Multi-user chat) telah dimatikan." + ], + "%1$s has been banned": [ + null, + "%1$s telah dicekal" + ], + "%1$s has been kicked out": [ + null, + "%1$s telah ditendang keluar" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s telah dihapus karena perubahan afiliasi" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s telah dihapus karena bukan anggota" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Anda bukan anggota dari ruangan ini" + ], + "No nickname was specified": [ + null, + "Nama panggilan belum ditentukan" + ], + "You are not allowed to create new rooms": [ + null, + "Anda tak diizinkan untuk membuat ruangan baru" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Nama panggilan anda tidak sesuai aturan ruangan ini" + ], + "Your nickname is already taken": [ + null, + "Nama panggilan anda telah digunakan orang lain" + ], + "This room does not (yet) exist": [ + null, + "Ruangan ini belum dibuat" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Ruangan ini telah mencapai jumlah penghuni maksimum" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topik diganti oleh %1$s menjadi: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Klik untuk menghapus teman ini" + ], + "Click to chat with this contact": [ + null, + "Klik untuk mulai perbinjangan dengan teman ini" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Saya %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klik untuk menulis status kustom" + ], + "Click to change your chat status": [ + null, + "Klik untuk mengganti status" + ], + "Custom status": [ + null, + "Status kustom" + ], + "online": [ + null, + "terhubung" + ], + "busy": [ + null, + "sibuk" + ], + "away for long": [ + null, + "lama tak di tempat" + ], + "away": [ + null, + "tak di tempat" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Kata sandi:" + ], + "Log In": [ + null, + "Masuk" + ], + "Sign in": [ + null, + "Masuk" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/id/LC_MESSAGES/id.js b/locale/id/LC_MESSAGES/id.js deleted file mode 100644 index 0bcd43367..000000000 --- a/locale/id/LC_MESSAGES/id.js +++ /dev/null @@ -1,180 +0,0 @@ -(function(root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "project-id-version": "Converse.js 0.7.0", - "report-msgid-bugs-to": "", - "pot-creation-date": "2014-01-22 17:07+0200", - "po-revision-date": "2014-01-25 21:30+0700", - "last-translator": "Priyadi Iman Nurcahyo ", - "language-team": "Bahasa Indonesia", - "mime-version": "1.0", - "content-type": "text/plain; charset=UTF-8", - "content-transfer-encoding": "8bit", - "language": "id" - }, - "unencrypted": [null, "tak dienkripsi"], - "unverified": [null, "tak diverifikasi"], - "verified": [null, "diverifikasi"], - "finished": [null, "selesai"], - "This contact is busy": [null, "Teman ini sedang sibuk"], - "This contact is online": [null, "Teman ini terhubung"], - "This contact is offline": [null, "Teman ini tidak terhubung"], - "This contact is unavailable": [null, "Teman ini tidak tersedia"], - "This contact is away for an extended period": [null, "Teman ini tidak di tempat untuk waktu yang lama"], - "This contact is away": [null, "Teman ini tidak di tempat"], - "Disconnected": [null, "Terputus"], - "Error": [null, "Kesalahan"], - "Connecting": [null, "Menyambung"], - "Connection Failed": [null, "Gagal Menyambung"], - "Authenticating": [null, "Melakukan otentikasi"], - "Authentication Failed": [null, "Otentikasi gagal"], - "Disconnecting": [null, "Memutuskan hubungan"], - "Online Contacts": [null, "Teman yang Terhubung"], - "Re-establishing encrypted session": [null, "Menyambung kembali sesi terenkripsi"], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [null, "Perambah anda perlu membuat kunci privat, yang akan digunakan pada sesi perbincangan anda. Ini akan membutuhkan waktu sampai 30 detik, dan selama itu perambah mungkin akan tidak responsif."], - "Private key generated.": [null, "Kunci privat berhasil dibuat."], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [null, "Permintaan otentikasi dari %1$s\n\nTeman anda mencoba untuk melakukan verifikasi identitas anda dengan cara menanyakan pertanyaan di bawah ini.\n\n%2$s"], - "Could not verify this user's identify.": [null, "Tak dapat melakukan verifikasi identitas pengguna ini."], - "Personal message": [null, "Pesan pribadi"], - "Start encrypted conversation": [null, "Mulai sesi terenkripsi"], - "Refresh encrypted conversation": [null, "Setel ulang percakapan terenkripsi"], - "End encrypted conversation": [null, "Sudahi percakapan terenkripsi"], - "Verify with SMP": [null, "Verifikasi menggunakan SMP"], - "Verify with fingerprints": [null, "Verifikasi menggunakan sidik jari"], - "What's this?": [null, "Apakah ini?"], - "me": [null, "saya"], - "Show this menu": [null, "Tampilkan menu ini"], - "Write in the third person": [null, "Tulis ini menggunakan bahasa pihak ketiga"], - "Remove messages": [null, "Hapus pesan"], - "Your message could not be sent": [null, "Pesan anda tak dapat dikirim"], - "We received an unencrypted message": [null, "Kami menerima pesan terenkripsi"], - "We received an unreadable encrypted message": [null, "Kami menerima pesan terenkripsi yang gagal dibaca"], - "This user has requested an encrypted session.": [null, "Pengguna ini meminta sesi terenkripsi"], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [null, "Ini adalah sidik jari anda, konfirmasikan bersama mereka dengan %1$s, di luar percakapan ini.\n\nSidik jari untuk anda, %2$s: %3$s\n\nSidik jari untuk %1$s: %4$s\n\nJika anda bisa mengkonfirmasi sidik jadi cocok, klik Lanjutkan, jika tidak klik Batal."], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [null, "Anda akan ditanyakan pertanyaan untuk keamanan beserta jawaban untuk pertanyaan tersebut.\n\nTeman anda akan ditanyakan pertanyaan yang sama dan jika dia memberikan jawaban yang sama (huruf kapital diperhatikan), identitas mereka diverifikasi."], - "What is your security question?": [null, "Apakah pertanyaan keamanan anda?"], - "What is the answer to the security question?": [null, "Apa jawaban dari pertanyaan keamanan tersebut?"], - "Invalid authentication scheme provided": [null, "Skema otentikasi salah"], - "Your messages are not encrypted anymore": [null, "Pesan anda tidak lagi terenkripsi"], - "Your messages are now encrypted but your buddy's identity has not been verified.": [null, "Pesan anda sekarang terenkripsi, namun identitas teman anda belum dapat diverifikasi."], - "Your buddy's identify has been verified.": [null, "Identitas teman anda telah diverifikasi."], - "Your buddy has ended encryption on their end, you should do the same.": [null, "Teman anda menghentikan percakapan terenkripsi, anda sebaiknya melakukan hal yang sama."], - "Your messages are not encrypted. Click here to enable OTR encryption.": [null, "Pesan anda tak terenkripsi. Klik di sini untuk menyalakan enkripsi OTR."], - "Your messages are encrypted, but your buddy has not been verified.": [null, "Pesan anda terenkripsi, tetapi teman anda belum diverifikasi."], - "Your messages are encrypted and your buddy verified.": [null, "Pesan anda terenkripsi dan teman anda telah diverifikasi."], - "Your buddy has closed their end of the private session, you should do the same": [null, "Teman anda telah mematikan sesi terenkripsi, dan anda juga sebaiknya melakukan hal yang sama"], - "Contacts": [null, "Teman"], - "Online": [null, "Terhubung"], - "Busy": [null, "Sibuk"], - "Away": [null, "Pergi"], - "Offline": [null, "Tak Terhubung"], - "Click to add new chat contacts": [null, "Klik untuk menambahkan teman baru"], - "Add a contact": [null, "Tambah teman"], - "Contact username": [null, "Username teman"], - "Add": [null, "Tambah"], - "Contact name": [null, "Nama teman"], - "Search": [null, "Cari"], - "No users found": [null, "Pengguna tak ditemukan"], - "Click to add as a chat contact": [null, "Klik untuk menambahkan sebagai teman"], - "Click to open this room": [null, "Klik untuk membuka ruangan ini"], - "Show more information on this room": [null, "Tampilkan informasi ruangan ini"], - "Description:": [null, "Keterangan:"], - "Occupants:": [null, "Penghuni:"], - "Features:": [null, "Fitur:"], - "Requires authentication": [null, "Membutuhkan otentikasi"], - "Hidden": [null, "Tersembunyi"], - "Requires an invitation": [null, "Membutuhkan undangan"], - "Moderated": [null, "Dimoderasi"], - "Non-anonymous": [null, "Tidak anonim"], - "Open room": [null, "Ruangan terbuka"], - "Permanent room": [null, "Ruangan permanen"], - "Public": [null, "Umum"], - "Semi-anonymous": [null, "Semi-anonim"], - "Temporary room": [null, "Ruangan sementara"], - "Unmoderated": [null, "Tak dimoderasi"], - "Rooms": [null, "Ruangan"], - "Room name": [null, "Nama ruangan"], - "Nickname": [null, "Nama panggilan"], - "Server": [null, "Server"], - "Join": [null, "Ikuti"], - "Show rooms": [null, "Perlihatkan ruangan"], - "No rooms on %1$s": [null, "Tak ada ruangan di %1$s"], - "Rooms on %1$s": [null, "Ruangan di %1$s"], - "Set chatroom topic": [null, "Setel topik ruangan"], - "Kick user from chatroom": [null, "Tendang pengguna dari ruangan"], - "Ban user from chatroom": [null, "Larang pengguna dari ruangan"], - "Message": [null, "Pesan"], - "Save": [null, "Simpan"], - "Cancel": [null, "Batal"], - "An error occurred while trying to save the form.": [null, "Kesalahan terjadi saat menyimpan formulir ini."], - "This chatroom requires a password": [null, "Ruangan ini membutuhkan kata sandi"], - "Password: ": [null, "Kata sandi: "], - "Submit": [null, "Kirim"], - "This room is not anonymous": [null, "Ruangan ini tidak anonim"], - "This room now shows unavailable members": [null, "Ruangan ini menampilkan anggota yang tak tersedia"], - "This room does not show unavailable members": [null, "Ruangan ini tidak menampilkan anggota yang tak tersedia"], - "Non-privacy-related room configuration has changed": [null, "Konfigurasi ruangan yang tak berhubungan dengan privasi telah diubah"], - "Room logging is now enabled": [null, "Pencatatan di ruangan ini sekarang dinyalakan"], - "Room logging is now disabled": [null, "Pencatatan di ruangan ini sekarang dimatikan"], - "This room is now non-anonymous": [null, "Ruangan ini sekarang tak-anonim"], - "This room is now semi-anonymous": [null, "Ruangan ini sekarang semi-anonim"], - "This room is now fully-anonymous": [null, "Ruangan ini sekarang anonim"], - "A new room has been created": [null, "Ruangan baru telah dibuat"], - "Your nickname has been changed": [null, "Nama panggilan anda telah diubah"], - "%1$s has been banned": [null, "%1$s telah dicekal"], - "%1$s has been kicked out": [null, "%1$s telah ditendang keluar"], - "%1$s has been removed because of an affiliation change": [null, "%1$s telah dihapus karena perubahan afiliasi"], - "%1$s has been removed for not being a member": [null, "%1$s telah dihapus karena bukan anggota"], - "You have been banned from this room": [null, "Anda telah dicekal dari ruangan ini"], - "You have been kicked from this room": [null, "Anda telah ditendang dari ruangan ini"], - "You have been removed from this room because of an affiliation change": [null, "Anda telah dihapus dari ruangan ini karena perubahan afiliasi"], - "You have been removed from this room because the room has changed to members-only and you're not a member": [null, "Anda telah dihapus dari ruangan ini karena ruangan ini hanya terbuka untuk anggota dan anda bukan anggota"], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [null, "Anda telah dihapus dari ruangan ini karena layanan MUC (Multi-user chat) telah dimatikan."], - "You are not on the member list of this room": [null, "Anda bukan anggota dari ruangan ini"], - "No nickname was specified": [null, "Nama panggilan belum ditentukan"], - "You are not allowed to create new rooms": [null, "Anda tak diizinkan untuk membuat ruangan baru"], - "Your nickname doesn't conform to this room's policies": [null, "Nama panggilan anda tidak sesuai aturan ruangan ini"], - "Your nickname is already taken": [null, "Nama panggilan anda telah digunakan orang lain"], - "This room does not (yet) exist": [null, "Ruangan ini belum dibuat"], - "This room has reached it's maximum number of occupants": [null, "Ruangan ini telah mencapai jumlah penghuni maksimum"], - "Topic set by %1$s to: %2$s": [null, "Topik diganti oleh %1$s menjadi: %2$s"], - "This user is a moderator": [null, "Pengguna ini adalah moderator"], - "This user can send messages in this room": [null, "Pengguna ini dapat mengirim pesan di ruangan ini"], - "This user can NOT send messages in this room": [null, "Pengguna ini tak dapat mengirim pesan di ruangan ini"], - "Click to chat with this contact": [null, "Klik untuk mulai perbinjangan dengan teman ini"], - "Click to remove this contact": [null, "Klik untuk menghapus teman ini"], - "Contact requests": [null, "Permintaan pertemanan"], - "My contacts": [null, "Teman saya"], - "Pending contacts": [null, "Teman yang menunggu"], - "Custom status": [null, "Status kustom"], - "Click to change your chat status": [null, "Klik untuk mengganti status"], - "Click here to write a custom status message": [null, "Klik untuk menulis status kustom"], - "online": [null, "terhubung"], - "busy": [null, "sibuk"], - "away for long": [null, "lama tak di tempat"], - "away": [null, "tak di tempat"], - "I am %1$s": [null, "Saya %1$s"], - "Sign in": [null, "Masuk"], - "XMPP/Jabber Username:": [null, "Nama pengguna XMPP/Jabber:"], - "Password:": [null, "Kata sandi:"], - "Log In": [null, "Masuk"], - "BOSH Service URL:": [null, "URL Layanan BOSH:"] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("id", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.id = factory(new Jed(translations)); - } -}(this, function (id) { - return id; -})); diff --git a/locale/it/LC_MESSAGES/converse.json b/locale/it/LC_MESSAGES/converse.json index 29ce67464..4d3b76692 100644 --- a/locale/it/LC_MESSAGES/converse.json +++ b/locale/it/LC_MESSAGES/converse.json @@ -1,656 +1,692 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-15 22:00+0200", - "Last-Translator": "Fabio Bas ", - "Language-Team": "Italian", - "Language": "it", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "domain": "converse", - "lang": "it", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "This contact is busy": [ - null, - "" - ], - "This contact is online": [ - null, - "" - ], - "This contact is offline": [ - null, - "" - ], - "This contact is unavailable": [ - null, - "Questa stanza mostra i membri non disponibili al momento" - ], - "This contact is away for an extended period": [ - null, - "" - ], - "This contact is away": [ - null, - "" - ], - "Reconnecting": [ - null, - "Connessione in corso" - ], - "Disconnected": [ - null, - "Disconnesso" - ], - "Error": [ - null, - "Errore" - ], - "Connecting": [ - null, - "Connessione in corso" - ], - "Connection Failed": [ - null, - "Connessione fallita" - ], - "Authenticating": [ - null, - "Autenticazione in corso" - ], - "Authentication Failed": [ - null, - "Autenticazione fallita" - ], - "Disconnecting": [ - null, - "Disconnessione in corso" - ], - "Online Contacts": [ - null, - "Contatti in linea" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Messaggio personale" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Non sei nella lista dei membri di questa stanza" - ], - "me": [ - null, - "" - ], - "Show this menu": [ - null, - "Mostra questo menu" - ], - "Write in the third person": [ - null, - "Scrivi in terza persona" - ], - "Remove messages": [ - null, - "Rimuovi messaggi" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "Online": [ - null, - "In linea" - ], - "Busy": [ - null, - "Occupato" - ], - "Away": [ - null, - "Assente" - ], - "Offline": [ - null, - "Non in linea" - ], - "Contacts": [ - null, - "Contatti" - ], - "Contact name": [ - null, - "Nome del contatto" - ], - "Search": [ - null, - "Cerca" - ], - "Contact username": [ - null, - "Nome utente del contatto" - ], - "Add": [ - null, - "Aggiungi" - ], - "Click to add new chat contacts": [ - null, - "Clicca per aggiungere nuovi contatti alla chat" - ], - "Add a contact": [ - null, - "Aggiungi contatti" - ], - "No users found": [ - null, - "Nessun utente trovato" - ], - "Click to add as a chat contact": [ - null, - "Clicca per aggiungere il contatto alla chat" - ], - "Room name": [ - null, - "Nome stanza" - ], - "Nickname": [ - null, - "Soprannome" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Entra" - ], - "Show rooms": [ - null, - "Mostra stanze" - ], - "Rooms": [ - null, - "Stanze" - ], - "No rooms on %1$s": [ - null, - "Nessuna stanza su %1$s" - ], - "Rooms on %1$s": [ - null, - "Stanze su %1$s" - ], - "Click to open this room": [ - null, - "Clicca per aprire questa stanza" - ], - "Show more information on this room": [ - null, - "Mostra più informazioni su questa stanza" - ], - "Description:": [ - null, - "Descrizione:" - ], - "Occupants:": [ - null, - "Utenti presenti:" - ], - "Features:": [ - null, - "Funzionalità:" - ], - "Requires authentication": [ - null, - "Richiede autenticazione" - ], - "Hidden": [ - null, - "Nascosta" - ], - "Requires an invitation": [ - null, - "Richiede un invito" - ], - "Moderated": [ - null, - "Moderata" - ], - "Non-anonymous": [ - null, - "Non-anonima" - ], - "Open room": [ - null, - "Stanza aperta" - ], - "Permanent room": [ - null, - "Stanza permanente" - ], - "Public": [ - null, - "Pubblica" - ], - "Semi-anonymous": [ - null, - "Semi-anonima" - ], - "Temporary room": [ - null, - "Stanza temporanea" - ], - "Unmoderated": [ - null, - "Non moderata" - ], - "Set chatroom topic": [ - null, - "Cambia oggetto della stanza" - ], - "Kick user from chatroom": [ - null, - "Espelli utente dalla stanza" - ], - "Ban user from chatroom": [ - null, - "Bandisci utente dalla stanza" - ], - "Message": [ - null, - "Messaggio" - ], - "Save": [ - null, - "Salva" - ], - "Cancel": [ - null, - "Annulla" - ], - "An error occurred while trying to save the form.": [ - null, - "Errore durante il salvataggio del modulo" - ], - "This chatroom requires a password": [ - null, - "Questa stanza richiede una password" - ], - "Password: ": [ - null, - "Password: " - ], - "Submit": [ - null, - "Invia" - ], - "This room is not anonymous": [ - null, - "Questa stanza non è anonima" - ], - "This room now shows unavailable members": [ - null, - "Questa stanza mostra i membri non disponibili al momento" - ], - "This room does not show unavailable members": [ - null, - "Questa stanza non mostra i membri non disponibili" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Una configurazione della stanza non legata alla privacy è stata modificata" - ], - "Room logging is now enabled": [ - null, - "La registrazione è abilitata nella stanza" - ], - "Room logging is now disabled": [ - null, - "La registrazione è disabilitata nella stanza" - ], - "This room is now non-anonymous": [ - null, - "Questa stanza è non-anonima" - ], - "This room is now semi-anonymous": [ - null, - "Questa stanza è semi-anonima" - ], - "This room is now fully-anonymous": [ - null, - "Questa stanza è completamente-anonima" - ], - "A new room has been created": [ - null, - "Una nuova stanza è stata creata" - ], - "Your nickname has been changed": [ - null, - "Il tuo soprannome è stato cambiato" - ], - "%1$s has been banned": [ - null, - "%1$s è stato bandito" - ], - "%1$s has been kicked out": [ - null, - "%1$s è stato espulso" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s è stato rimosso a causa di un cambio di affiliazione" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s è stato rimosso in quanto non membro" - ], - "You have been banned from this room": [ - null, - "Sei stato bandito da questa stanza" - ], - "You have been kicked from this room": [ - null, - "Sei stato espulso da questa stanza" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Sei stato rimosso da questa stanza a causa di un cambio di affiliazione" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Sei stato rimosso da questa stanza poiché ora la stanza accetta solo membri" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Sei stato rimosso da questa stanza poiché il servizio MUC (Chat multi utente) è in fase di spegnimento" - ], - "You are not on the member list of this room": [ - null, - "Non sei nella lista dei membri di questa stanza" - ], - "No nickname was specified": [ - null, - "Nessun soprannome specificato" - ], - "You are not allowed to create new rooms": [ - null, - "Non ti è permesso creare nuove stanze" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Il tuo soprannome non è conforme alle regole di questa stanza" - ], - "Your nickname is already taken": [ - null, - "Il tuo soprannome è già utilizzato" - ], - "This room does not (yet) exist": [ - null, - "Questa stanza non esiste (per ora)" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Questa stanza ha raggiunto il limite massimo di utenti" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Topic impostato da %1$s a: %2$s" - ], - "This user is a moderator": [ - null, - "Questo utente è un moderatore" - ], - "This user can send messages in this room": [ - null, - "Questo utente può inviare messaggi in questa stanza" - ], - "This user can NOT send messages in this room": [ - null, - "Questo utente NON può inviare messaggi in questa stanza" - ], - "Click to restore this chat": [ - null, - "Clicca per rimuovere questo contatto" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Clicca per rimuovere questo contatto" - ], - "Click to remove this contact": [ - null, - "Clicca per rimuovere questo contatto" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "In linea" - ], - "Click to chat with this contact": [ - null, - "Clicca per parlare con questo contatto" - ], - "My contacts": [ - null, - "I miei contatti" - ], - "Contact requests": [ - null, - "Richieste dei contatti" - ], - "Pending contacts": [ - null, - "Contatti in attesa" - ], - "Custom status": [ - null, - "Stato personalizzato" - ], - "online": [ - null, - "in linea" - ], - "busy": [ - null, - "occupato" - ], - "away for long": [ - null, - "assente da molto" - ], - "away": [ - null, - "assente" - ], - "I am %1$s": [ - null, - "Sono %1$s" - ], - "Click here to write a custom status message": [ - null, - "Clicca qui per scrivere un messaggio di stato personalizzato" - ], - "Click to change your chat status": [ - null, - "Clicca per cambiare il tuo stato" - ], - "XMPP/Jabber Username:": [ - null, - "Nome utente:" - ], - "Password:": [ - null, - "Password:" - ], - "Log In": [ - null, - "Entra" - ], - "Sign in": [ - null, - "Accesso" - ], - "Toggle chat": [ - null, - "" - ], - "BOSH Service URL:": [ - null, - "Indirizzo servizio BOSH:" - ], - "Connected": [ - null, - "Connesso" - ], - "Attached": [ - null, - "Allegato" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "it" + }, + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "" + ], + "This contact is online": [ + null, + "" + ], + "This contact is offline": [ + null, + "" + ], + "This contact is away for an extended period": [ + null, + "" + ], + "This contact is away": [ + null, + "" + ], + "My contacts": [ + null, + "I miei contatti" + ], + "Pending contacts": [ + null, + "Contatti in attesa" + ], + "Contact requests": [ + null, + "Richieste dei contatti" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contatti" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Errore" + ], + "Connecting": [ + null, + "Connessione in corso" + ], + "Authenticating": [ + null, + "Autenticazione in corso" + ], + "Authentication Failed": [ + null, + "Autenticazione fallita" + ], + "Online Contacts": [ + null, + "Contatti in linea" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Messaggio personale" + ], + "me": [ + null, + "" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Mostra questo menu" + ], + "Write in the third person": [ + null, + "Scrivi in terza persona" + ], + "Remove messages": [ + null, + "Rimuovi messaggi" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "In linea" + ], + "Busy": [ + null, + "Occupato" + ], + "Away": [ + null, + "Assente" + ], + "Offline": [ + null, + "Non in linea" + ], + "Contact name": [ + null, + "Nome del contatto" + ], + "Search": [ + null, + "Cerca" + ], + "Contact username": [ + null, + "Nome utente del contatto" + ], + "Add": [ + null, + "Aggiungi" + ], + "Click to add new chat contacts": [ + null, + "Clicca per aggiungere nuovi contatti alla chat" + ], + "Add a contact": [ + null, + "Aggiungi contatti" + ], + "No users found": [ + null, + "Nessun utente trovato" + ], + "Click to add as a chat contact": [ + null, + "Clicca per aggiungere il contatto alla chat" + ], + "Room name": [ + null, + "Nome stanza" + ], + "Nickname": [ + null, + "Soprannome" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Entra" + ], + "Show rooms": [ + null, + "Mostra stanze" + ], + "Rooms": [ + null, + "Stanze" + ], + "No rooms on %1$s": [ + null, + "Nessuna stanza su %1$s" + ], + "Rooms on %1$s": [ + null, + "Stanze su %1$s" + ], + "Click to open this room": [ + null, + "Clicca per aprire questa stanza" + ], + "Show more information on this room": [ + null, + "Mostra più informazioni su questa stanza" + ], + "Description:": [ + null, + "Descrizione:" + ], + "Occupants:": [ + null, + "Utenti presenti:" + ], + "Features:": [ + null, + "Funzionalità:" + ], + "Requires authentication": [ + null, + "Richiede autenticazione" + ], + "Hidden": [ + null, + "Nascosta" + ], + "Requires an invitation": [ + null, + "Richiede un invito" + ], + "Moderated": [ + null, + "Moderata" + ], + "Non-anonymous": [ + null, + "Non-anonima" + ], + "Open room": [ + null, + "Stanza aperta" + ], + "Permanent room": [ + null, + "Stanza permanente" + ], + "Public": [ + null, + "Pubblica" + ], + "Semi-anonymous": [ + null, + "Semi-anonima" + ], + "Temporary room": [ + null, + "Stanza temporanea" + ], + "Unmoderated": [ + null, + "Non moderata" + ], + "This user is a moderator": [ + null, + "Questo utente è un moderatore" + ], + "This user can send messages in this room": [ + null, + "Questo utente può inviare messaggi in questa stanza" + ], + "This user can NOT send messages in this room": [ + null, + "Questo utente NON può inviare messaggi in questa stanza" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Messaggio" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Salva" + ], + "Cancel": [ + null, + "Annulla" + ], + "An error occurred while trying to save the form.": [ + null, + "Errore durante il salvataggio del modulo" + ], + "This chatroom requires a password": [ + null, + "Questa stanza richiede una password" + ], + "Password: ": [ + null, + "Password: " + ], + "Submit": [ + null, + "Invia" + ], + "This room is not anonymous": [ + null, + "Questa stanza non è anonima" + ], + "This room now shows unavailable members": [ + null, + "Questa stanza mostra i membri non disponibili al momento" + ], + "This room does not show unavailable members": [ + null, + "Questa stanza non mostra i membri non disponibili" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Una configurazione della stanza non legata alla privacy è stata modificata" + ], + "Room logging is now enabled": [ + null, + "La registrazione è abilitata nella stanza" + ], + "Room logging is now disabled": [ + null, + "La registrazione è disabilitata nella stanza" + ], + "This room is now non-anonymous": [ + null, + "Questa stanza è non-anonima" + ], + "This room is now semi-anonymous": [ + null, + "Questa stanza è semi-anonima" + ], + "This room is now fully-anonymous": [ + null, + "Questa stanza è completamente-anonima" + ], + "A new room has been created": [ + null, + "Una nuova stanza è stata creata" + ], + "You have been banned from this room": [ + null, + "Sei stato bandito da questa stanza" + ], + "You have been kicked from this room": [ + null, + "Sei stato espulso da questa stanza" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Sei stato rimosso da questa stanza a causa di un cambio di affiliazione" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Sei stato rimosso da questa stanza poiché ora la stanza accetta solo membri" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Sei stato rimosso da questa stanza poiché il servizio MUC (Chat multi utente) è in fase di spegnimento" + ], + "%1$s has been banned": [ + null, + "%1$s è stato bandito" + ], + "%1$s has been kicked out": [ + null, + "%1$s è stato espulso" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s è stato rimosso a causa di un cambio di affiliazione" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s è stato rimosso in quanto non membro" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Non sei nella lista dei membri di questa stanza" + ], + "No nickname was specified": [ + null, + "Nessun soprannome specificato" + ], + "You are not allowed to create new rooms": [ + null, + "Non ti è permesso creare nuove stanze" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Il tuo soprannome non è conforme alle regole di questa stanza" + ], + "Your nickname is already taken": [ + null, + "Il tuo soprannome è già utilizzato" + ], + "This room does not (yet) exist": [ + null, + "Questa stanza non esiste (per ora)" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Questa stanza ha raggiunto il limite massimo di utenti" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topic impostato da %1$s a: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Clicca per rimuovere questo contatto" + ], + "Click to chat with this contact": [ + null, + "Clicca per parlare con questo contatto" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Sono %1$s" + ], + "Click here to write a custom status message": [ + null, + "Clicca qui per scrivere un messaggio di stato personalizzato" + ], + "Click to change your chat status": [ + null, + "Clicca per cambiare il tuo stato" + ], + "Custom status": [ + null, + "Stato personalizzato" + ], + "online": [ + null, + "in linea" + ], + "busy": [ + null, + "occupato" + ], + "away for long": [ + null, + "assente da molto" + ], + "away": [ + null, + "assente" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Password:" + ], + "Log In": [ + null, + "Entra" + ], + "Sign in": [ + null, + "Accesso" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/it/LC_MESSAGES/it.js b/locale/it/LC_MESSAGES/it.js deleted file mode 100644 index 4f4b2a33a..000000000 --- a/locale/it/LC_MESSAGES/it.js +++ /dev/null @@ -1,633 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2013-09-15 21:55+0200", - "PO-Revision-Date": "2013-09-15 22:00+0200", - "Last-Translator": "Fabio Bas ", - "Language-Team": "Italian", - "Language": "it", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "domain": "converse", - "lang": "it", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "Disconnected": [ - null, - "Disconnesso" - ], - "Error": [ - null, - "Errore" - ], - "Connecting": [ - null, - "Connessione in corso" - ], - "Connection Failed": [ - null, - "Connessione fallita" - ], - "Authenticating": [ - null, - "Autenticazione in corso" - ], - "Authentication Failed": [ - null, - "Autenticazione fallita" - ], - "Disconnecting": [ - null, - "Disconnessione in corso" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [ - null, - "" - ], - "Private key generated.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Personal message": [ - null, - "Messaggio personale" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "me": [ - null, - "" - ], - "Show this menu": [ - null, - "Mostra questo menu" - ], - "Write in the third person": [ - null, - "Scrivi in terza persona" - ], - "Remove messages": [ - null, - "Rimuovi messaggi" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "Contacts": [ - null, - "Contatti" - ], - "Online": [ - null, - "In linea" - ], - "Busy": [ - null, - "Occupato" - ], - "Away": [ - null, - "Assente" - ], - "Offline": [ - null, - "Non in linea" - ], - "Click to add new chat contacts": [ - null, - "Clicca per aggiungere nuovi contatti alla chat" - ], - "Add a contact": [ - null, - "Aggiungi contatti" - ], - "Contact username": [ - null, - "Nome utente del contatto" - ], - "Add": [ - null, - "Aggiungi" - ], - "Contact name": [ - null, - "Nome del contatto" - ], - "Search": [ - null, - "Cerca" - ], - "No users found": [ - null, - "Nessun utente trovato" - ], - "Click to add as a chat contact": [ - null, - "Clicca per aggiungere il contatto alla chat" - ], - "Click to open this room": [ - null, - "Clicca per aprire questa stanza" - ], - "Show more information on this room": [ - null, - "Mostra più informazioni su questa stanza" - ], - "Description:": [ - null, - "Descrizione:" - ], - "Occupants:": [ - null, - "Utenti presenti:" - ], - "Features:": [ - null, - "Funzionalità:" - ], - "Requires authentication": [ - null, - "Richiede autenticazione" - ], - "Hidden": [ - null, - "Nascosta" - ], - "Requires an invitation": [ - null, - "Richiede un invito" - ], - "Moderated": [ - null, - "Moderata" - ], - "Non-anonymous": [ - null, - "Non-anonima" - ], - "Open room": [ - null, - "Stanza aperta" - ], - "Permanent room": [ - null, - "Stanza permanente" - ], - "Public": [ - null, - "Pubblica" - ], - "Semi-anonymous": [ - null, - "Semi-anonima" - ], - "Temporary room": [ - null, - "Stanza temporanea" - ], - "Unmoderated": [ - null, - "Non moderata" - ], - "Rooms": [ - null, - "Stanze" - ], - "Room name": [ - null, - "Nome stanza" - ], - "Nickname": [ - null, - "Soprannome" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Entra" - ], - "Show rooms": [ - null, - "Mostra stanze" - ], - "No rooms on %1$s": [ - null, - "Nessuna stanza su %1$s" - ], - "Rooms on %1$s": [ - null, - "Stanze su %1$s" - ], - "Set chatroom topic": [ - null, - "Cambia oggetto della stanza" - ], - "Kick user from chatroom": [ - null, - "Espelli utente dalla stanza" - ], - "Ban user from chatroom": [ - null, - "Bandisci utente dalla stanza" - ], - "Message": [ - null, - "Messaggio" - ], - "Save": [ - null, - "Salva" - ], - "Cancel": [ - null, - "Annulla" - ], - "An error occurred while trying to save the form.": [ - null, - "Errore durante il salvataggio del modulo" - ], - "This chatroom requires a password": [ - null, - "Questa stanza richiede una password" - ], - "Password: ": [ - null, - "Password: " - ], - "Submit": [ - null, - "Invia" - ], - "This room is not anonymous": [ - null, - "Questa stanza non è anonima" - ], - "This room now shows unavailable members": [ - null, - "Questa stanza mostra i membri non disponibili al momento" - ], - "This room does not show unavailable members": [ - null, - "Questa stanza non mostra i membri non disponibili" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Una configurazione della stanza non legata alla privacy è stata modificata" - ], - "Room logging is now enabled": [ - null, - "La registrazione è abilitata nella stanza" - ], - "Room logging is now disabled": [ - null, - "La registrazione è disabilitata nella stanza" - ], - "This room is now non-anonymous": [ - null, - "Questa stanza è non-anonima" - ], - "This room is now semi-anonymous": [ - null, - "Questa stanza è semi-anonima" - ], - "This room is now fully-anonymous": [ - null, - "Questa stanza è completamente-anonima" - ], - "A new room has been created": [ - null, - "Una nuova stanza è stata creata" - ], - "Your nickname has been changed": [ - null, - "Il tuo soprannome è stato cambiato" - ], - "%1$s has been banned": [ - null, - "%1$s è stato bandito" - ], - "%1$s has been kicked out": [ - null, - "%1$s è stato espulso" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s è stato rimosso a causa di un cambio di affiliazione" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s è stato rimosso in quanto non membro" - ], - "You have been banned from this room": [ - null, - "Sei stato bandito da questa stanza" - ], - "You have been kicked from this room": [ - null, - "Sei stato espulso da questa stanza" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Sei stato rimosso da questa stanza a causa di un cambio di affiliazione" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Sei stato rimosso da questa stanza poiché ora la stanza accetta solo membri" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Sei stato rimosso da questa stanza poiché il servizio MUC (Chat multi utente) è in fase di spegnimento" - ], - "You are not on the member list of this room": [ - null, - "Non sei nella lista dei membri di questa stanza" - ], - "No nickname was specified": [ - null, - "Nessun soprannome specificato" - ], - "You are not allowed to create new rooms": [ - null, - "Non ti è permesso creare nuove stanze" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Il tuo soprannome non è conforme alle regole di questa stanza" - ], - "Your nickname is already taken": [ - null, - "Il tuo soprannome è già utilizzato" - ], - "This room does not (yet) exist": [ - null, - "Questa stanza non esiste (per ora)" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Questa stanza ha raggiunto il limite massimo di utenti" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Topic impostato da %1$s a: %2$s" - ], - "This user is a moderator": [ - null, - "Questo utente è un moderatore" - ], - "This user can send messages in this room": [ - null, - "Questo utente può inviare messaggi in questa stanza" - ], - "This user can NOT send messages in this room": [ - null, - "Questo utente NON può inviare messaggi in questa stanza" - ], - "Click to chat with this contact": [ - null, - "Clicca per parlare con questo contatto" - ], - "Click to remove this contact": [ - null, - "Clicca per rimuovere questo contatto" - ], - "This contact is busy": [ - null, - "" - ], - "This contact is online": [ - null, - "" - ], - "This contact is offline": [ - null, - "" - ], - "This contact is unavailable": [ - null, - "Questa stanza mostra i membri non disponibili al momento" - ], - "This contact is away for an extended period": [ - null, - "" - ], - "This contact is away": [ - null, - "" - ], - "Contact requests": [ - null, - "Richieste dei contatti" - ], - "My contacts": [ - null, - "I miei contatti" - ], - "Pending contacts": [ - null, - "Contatti in attesa" - ], - "Custom status": [ - null, - "Stato personalizzato" - ], - "Click to change your chat status": [ - null, - "Clicca per cambiare il tuo stato" - ], - "Click here to write a custom status message": [ - null, - "Clicca qui per scrivere un messaggio di stato personalizzato" - ], - "online": [ - null, - "in linea" - ], - "busy": [ - null, - "occupato" - ], - "away for long": [ - null, - "assente da molto" - ], - "away": [ - null, - "assente" - ], - "I am %1$s": [ - null, - "Sono %1$s" - ], - "Sign in": [ - null, - "Accesso" - ], - "XMPP/Jabber Username:": [ - null, - "Nome utente:" - ], - "Password:": [ - null, - "Password:" - ], - "Log In": [ - null, - "Entra" - ], - "BOSH Service URL:": [ - null, - "Indirizzo servizio BOSH:" - ], - "Online Contacts": [ - null, - "Contatti in linea" - ], - "Connected": [ - null, - "Connesso" - ], - "Attached": [ - null, - "Allegato" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("it", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.it = factory(new Jed(translations)); - } -}(this, function (it) { - return it; -})); diff --git a/locale/ja/LC_MESSAGES/converse.json b/locale/ja/LC_MESSAGES/converse.json index 14f79ae22..07219babc 100644 --- a/locale/ja/LC_MESSAGES/converse.json +++ b/locale/ja/LC_MESSAGES/converse.json @@ -1,653 +1,664 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2014-01-07 11:32+0900", - "Last-Translator": "Mako N ", - "Language-Team": "Language JA", - "Language": "JA", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=1; plural=0;" - }, - "unencrypted": [ - null, - "暗号化されていません" - ], - "unverified": [ - null, - "検証されていません" - ], - "verified": [ - null, - "検証されました" - ], - "finished": [ - null, - "完了" - ], - "This contact is busy": [ - null, - "この相手先は取り込み中です" - ], - "This contact is online": [ - null, - "この相手先は在席しています" - ], - "This contact is offline": [ - null, - "この相手先はオフラインです" - ], - "This contact is unavailable": [ - null, - "この相手先は不通です" - ], - "This contact is away for an extended period": [ - null, - "この相手先は不在です" - ], - "This contact is away": [ - null, - "この相手先は離席中です" - ], - "Reconnecting": [ - null, - "接続中です" - ], - "Disconnected": [ - null, - "切断中" - ], - "Error": [ - null, - "エラー" - ], - "Connecting": [ - null, - "接続中です" - ], - "Connection Failed": [ - null, - "接続に失敗しました" - ], - "Authenticating": [ - null, - "認証中" - ], - "Authentication Failed": [ - null, - "認証に失敗" - ], - "Disconnecting": [ - null, - "切断" - ], - "Online Contacts": [ - null, - "オンラインの相手先" - ], - "Re-establishing encrypted session": [ - null, - "暗号化セッションの再接続" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "%1$s からの認証のリクエスト\n\n相手はあなたの本人性を検証しようとしています。次の質問に答えてください。\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "このユーザーの本人性を検証できませんでした。" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "私信" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "この談話室のメンバー一覧にいません" - ], - "me": [ - null, - "私" - ], - "Show this menu": [ - null, - "このメニューを表示" - ], - "Write in the third person": [ - null, - "第三者に書く" - ], - "Remove messages": [ - null, - "メッセージを削除" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "メッセージを送信できませんでした" - ], - "We received an unencrypted message": [ - null, - "暗号化されていないメッセージを受信しました" - ], - "We received an unreadable encrypted message": [ - null, - "読めない暗号化メッセージを受信しました" - ], - "This user has requested an encrypted session.": [ - null, - "このユーザーは暗号化セッションを求めています。" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "これは鍵指紋です。チャット以外の方法でこれらを %1$s と確認してください。\n\nあなた %2$s の鍵指紋: %3$s\n\n%1$s の鍵指紋: %4$s\n\n確認して、鍵指紋が正しければ「OK」を、正しくなければ「キャンセル」をクリックしてください。" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "秘密の質問を入力し、それに対して答えるように促されます。\n\n相手にも、同じ質問が表示され、正しく同じ答(大文字・小文字は区別されます)を入力することで、本人性を検証します。" - ], - "What is your security question?": [ - null, - "秘密の質問はなんですか?" - ], - "What is the answer to the security question?": [ - null, - "秘密の質問の答はなんですか?" - ], - "Invalid authentication scheme provided": [ - null, - "認証の方式が正しくありません" - ], - "Your messages are not encrypted anymore": [ - null, - "メッセージはもう暗号化されません" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "メッセージは暗号化されますが、相手が本人であることは検証されていません。" - ], - "Your buddy's identify has been verified.": [ - null, - "相手の本人性を検証しました。" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "相手は、暗号化を終了しました。あなたもそれに合わせる必要があります。" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "メッセージは暗号化されません。OTR 暗号化を有効にするにはここをクリックしてください。" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "メッセージは暗号化されますが、相手は検証されていません。" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "メッセージは暗号化され、相手も検証されています。" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "相手は私信を終了しました。あなたも同じようにしてください" - ], - "End encrypted conversation": [ - null, - "暗号化された会話を終了" - ], - "Refresh encrypted conversation": [ - null, - "暗号化された会話をリフレッシュ" - ], - "Start encrypted conversation": [ - null, - "暗号化された会話を開始" - ], - "Verify with fingerprints": [ - null, - "鍵指紋で検証" - ], - "Verify with SMP": [ - null, - "SMP で検証" - ], - "What's this?": [ - null, - "これは何ですか?" - ], - "Online": [ - null, - "オンライン" - ], - "Busy": [ - null, - "取り込み中" - ], - "Away": [ - null, - "離席中" - ], - "Offline": [ - null, - "オフライン" - ], - "Contacts": [ - null, - "相手先" - ], - "Contact name": [ - null, - "名前" - ], - "Search": [ - null, - "検索" - ], - "Contact username": [ - null, - "相手先の名前" - ], - "Add": [ - null, - "追加" - ], - "Click to add new chat contacts": [ - null, - "クリックして新しいチャットの相手先を追加" - ], - "Add a contact": [ - null, - "相手先を追加" - ], - "No users found": [ - null, - "ユーザーが見つかりません" - ], - "Click to add as a chat contact": [ - null, - "クリックしてチャットの相手先として追加" - ], - "Room name": [ - null, - "談話室の名前" - ], - "Nickname": [ - null, - "ニックネーム" - ], - "Server": [ - null, - "サーバー" - ], - "Join": [ - null, - "入室" - ], - "Show rooms": [ - null, - "談話室一覧を見る" - ], - "Rooms": [ - null, - "談話室" - ], - "No rooms on %1$s": [ - null, - "%1$s に談話室はありません" - ], - "Rooms on %1$s": [ - null, - "%1$s の談話室一覧" - ], - "Click to open this room": [ - null, - "クリックしてこの談話室を開く" - ], - "Show more information on this room": [ - null, - "この談話室についての詳細を見る" - ], - "Description:": [ - null, - "説明: " - ], - "Occupants:": [ - null, - "入室者:" - ], - "Features:": [ - null, - "特徴:" - ], - "Requires authentication": [ - null, - "認証の要求" - ], - "Hidden": [ - null, - "非表示" - ], - "Requires an invitation": [ - null, - "招待の要求" - ], - "Moderated": [ - null, - "発言制限" - ], - "Non-anonymous": [ - null, - "非匿名" - ], - "Open room": [ - null, - "開放談話室" - ], - "Permanent room": [ - null, - "常設談話室" - ], - "Public": [ - null, - "公開談話室" - ], - "Semi-anonymous": [ - null, - "半匿名" - ], - "Temporary room": [ - null, - "臨時談話室" - ], - "Unmoderated": [ - null, - "発言制限なし" - ], - "Set chatroom topic": [ - null, - "談話室の話題を設定" - ], - "Kick user from chatroom": [ - null, - "ユーザーを談話室から蹴り出す" - ], - "Ban user from chatroom": [ - null, - "ユーザーを談話室から締め出す" - ], - "Message": [ - null, - "メッセージ" - ], - "Save": [ - null, - "保存" - ], - "Cancel": [ - null, - "キャンセル" - ], - "An error occurred while trying to save the form.": [ - null, - "フォームを保存する際にエラーが発生しました。" - ], - "This chatroom requires a password": [ - null, - "この談話室にはパスワードが必要です" - ], - "Password: ": [ - null, - "パスワード:" - ], - "Submit": [ - null, - "送信" - ], - "This room is not anonymous": [ - null, - "この談話室は非匿名です" - ], - "This room now shows unavailable members": [ - null, - "この談話室はメンバー以外にも見えます" - ], - "This room does not show unavailable members": [ - null, - "この談話室はメンバー以外には見えません" - ], - "Non-privacy-related room configuration has changed": [ - null, - "談話室の設定(プライバシーに無関係)が変更されました" - ], - "Room logging is now enabled": [ - null, - "談話室の記録を取りはじめます" - ], - "Room logging is now disabled": [ - null, - "談話室の記録を止めます" - ], - "This room is now non-anonymous": [ - null, - "この談話室はただいま非匿名です" - ], - "This room is now semi-anonymous": [ - null, - "この談話室はただいま半匿名です" - ], - "This room is now fully-anonymous": [ - null, - "この談話室はただいま匿名です" - ], - "A new room has been created": [ - null, - "新しい談話室が作成されました" - ], - "Your nickname has been changed": [ - null, - "ニックネームを変更しました" - ], - "%1$s has been banned": [ - null, - "%1$s を締め出しました" - ], - "%1$s has been kicked out": [ - null, - "%1$s を蹴り出しました" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "分掌の変更のため、%1$s を削除しました" - ], - "%1$s has been removed for not being a member": [ - null, - "メンバーでなくなったため、%1$s を削除しました" - ], - "You have been banned from this room": [ - null, - "この談話室から締め出されました" - ], - "You have been kicked from this room": [ - null, - "この談話室から蹴り出されました" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "分掌の変更のため、この談話室から削除されました" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "談話室がメンバー制に変更されました。メンバーではないため、この談話室から削除されました" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "MUC(グループチャット)のサービスが停止したため、この談話室から削除されました。" - ], - "You are not on the member list of this room": [ - null, - "この談話室のメンバー一覧にいません" - ], - "No nickname was specified": [ - null, - "ニックネームがありません" - ], - "You are not allowed to create new rooms": [ - null, - "新しい談話室を作成する権限がありません" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "ニックネームがこの談話室のポリシーに従っていません" - ], - "Your nickname is already taken": [ - null, - "ニックネームは既に使われています" - ], - "This room does not (yet) exist": [ - null, - "この談話室は存在しません" - ], - "This room has reached it's maximum number of occupants": [ - null, - "この談話室は入室者数の上限に達しています" - ], - "Topic set by %1$s to: %2$s": [ - null, - "%1$s が話題を設定しました: %2$s" - ], - "This user is a moderator": [ - null, - "このユーザーは司会者です" - ], - "This user can send messages in this room": [ - null, - "このユーザーはこの談話室で発言できます" - ], - "This user can NOT send messages in this room": [ - null, - "このユーザーはこの談話室で発言できません" - ], - "Click to restore this chat": [ - null, - "クリックしてこの相手先を削除" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "クリックしてこの相手先を削除" - ], - "Click to remove this contact": [ - null, - "クリックしてこの相手先を削除" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "オンライン" - ], - "Click to chat with this contact": [ - null, - "クリックしてこの相手先とチャット" - ], - "My contacts": [ - null, - "相手先一覧" - ], - "Contact requests": [ - null, - "会話に呼び出し" - ], - "Pending contacts": [ - null, - "保留中の相手先" - ], - "Custom status": [ - null, - "独自の在席状況" - ], - "online": [ - null, - "在席" - ], - "busy": [ - null, - "取り込み中" - ], - "away for long": [ - null, - "不在" - ], - "away": [ - null, - "離席中" - ], - "I am %1$s": [ - null, - "私はいま %1$s" - ], - "Click here to write a custom status message": [ - null, - "状況メッセージを入力するには、ここをクリック" - ], - "Click to change your chat status": [ - null, - "クリックして、在席状況を変更" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber ユーザー名:" - ], - "Password:": [ - null, - "パスワード:" - ], - "Log In": [ - null, - "ログイン" - ], - "Sign in": [ - null, - "サインイン" - ], - "Toggle chat": [ - null, - "" - ], - "#~ \"Your browser needs to generate a private key, which will be used in your \"#~ \"encrypted chat session. This can take up to 30 seconds during which your \"#~ \"browser might freeze and become unresponsive.\"": [ - null, - "#~ \"暗号化チャットで使用する秘密鍵を生成する必要があります。これには30秒ほどか\"#~ \"かり、そのあいだブラウザがフリーズして反応しないかもしれません。\"" - ], - "Private key generated.": [ - null, - "秘密鍵を生成しました。" - ], - "BOSH Service URL:": [ - null, - "BOSH サービス URL:" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=1; plural=0;", + "lang": "JA" + }, + "unencrypted": [ + null, + "暗号化されていません" + ], + "unverified": [ + null, + "検証されていません" + ], + "verified": [ + null, + "検証されました" + ], + "finished": [ + null, + "完了" + ], + "This contact is busy": [ + null, + "この相手先は取り込み中です" + ], + "This contact is online": [ + null, + "この相手先は在席しています" + ], + "This contact is offline": [ + null, + "この相手先はオフラインです" + ], + "This contact is unavailable": [ + null, + "この相手先は不通です" + ], + "This contact is away for an extended period": [ + null, + "この相手先は不在です" + ], + "This contact is away": [ + null, + "この相手先は離席中です" + ], + "My contacts": [ + null, + "相手先一覧" + ], + "Pending contacts": [ + null, + "保留中の相手先" + ], + "Contact requests": [ + null, + "会話に呼び出し" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "相手先" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "エラー" + ], + "Connecting": [ + null, + "接続中です" + ], + "Authenticating": [ + null, + "認証中" + ], + "Authentication Failed": [ + null, + "認証に失敗" + ], + "Online Contacts": [ + null, + "オンラインの相手先" + ], + "Re-establishing encrypted session": [ + null, + "暗号化セッションの再接続" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "このユーザーの本人性を検証できませんでした。" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "私信" + ], + "me": [ + null, + "私" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "このメニューを表示" + ], + "Write in the third person": [ + null, + "第三者に書く" + ], + "Remove messages": [ + null, + "メッセージを削除" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "メッセージを送信できませんでした" + ], + "We received an unencrypted message": [ + null, + "暗号化されていないメッセージを受信しました" + ], + "We received an unreadable encrypted message": [ + null, + "読めない暗号化メッセージを受信しました" + ], + "This user has requested an encrypted session.": [ + null, + "このユーザーは暗号化セッションを求めています。" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "これは鍵指紋です。チャット以外の方法でこれらを %1$s と確認してください。\n\nあなた %2$s の鍵指紋: %3$s\n\n%1$s の鍵指紋: %4$s\n\n確認して、鍵指紋が正しければ「OK」を、正しくなければ「キャンセル」をクリックしてください。" + ], + "What is your security question?": [ + null, + "秘密の質問はなんですか?" + ], + "What is the answer to the security question?": [ + null, + "秘密の質問の答はなんですか?" + ], + "Invalid authentication scheme provided": [ + null, + "認証の方式が正しくありません" + ], + "Your messages are not encrypted anymore": [ + null, + "メッセージはもう暗号化されません" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "メッセージは暗号化されません。OTR 暗号化を有効にするにはここをクリックしてください。" + ], + "End encrypted conversation": [ + null, + "暗号化された会話を終了" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "暗号化された会話をリフレッシュ" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "暗号化された会話を開始" + ], + "Verify with fingerprints": [ + null, + "鍵指紋で検証" + ], + "Verify with SMP": [ + null, + "SMP で検証" + ], + "What's this?": [ + null, + "これは何ですか?" + ], + "Online": [ + null, + "オンライン" + ], + "Busy": [ + null, + "取り込み中" + ], + "Away": [ + null, + "離席中" + ], + "Offline": [ + null, + "オフライン" + ], + "Contact name": [ + null, + "名前" + ], + "Search": [ + null, + "検索" + ], + "Contact username": [ + null, + "相手先の名前" + ], + "Add": [ + null, + "追加" + ], + "Click to add new chat contacts": [ + null, + "クリックして新しいチャットの相手先を追加" + ], + "Add a contact": [ + null, + "相手先を追加" + ], + "No users found": [ + null, + "ユーザーが見つかりません" + ], + "Click to add as a chat contact": [ + null, + "クリックしてチャットの相手先として追加" + ], + "Room name": [ + null, + "談話室の名前" + ], + "Nickname": [ + null, + "ニックネーム" + ], + "Server": [ + null, + "サーバー" + ], + "Join": [ + null, + "入室" + ], + "Show rooms": [ + null, + "談話室一覧を見る" + ], + "Rooms": [ + null, + "談話室" + ], + "No rooms on %1$s": [ + null, + "%1$s に談話室はありません" + ], + "Rooms on %1$s": [ + null, + "%1$s の談話室一覧" + ], + "Click to open this room": [ + null, + "クリックしてこの談話室を開く" + ], + "Show more information on this room": [ + null, + "この談話室についての詳細を見る" + ], + "Description:": [ + null, + "説明: " + ], + "Occupants:": [ + null, + "入室者:" + ], + "Features:": [ + null, + "特徴:" + ], + "Requires authentication": [ + null, + "認証の要求" + ], + "Hidden": [ + null, + "非表示" + ], + "Requires an invitation": [ + null, + "招待の要求" + ], + "Moderated": [ + null, + "発言制限" + ], + "Non-anonymous": [ + null, + "非匿名" + ], + "Open room": [ + null, + "開放談話室" + ], + "Permanent room": [ + null, + "常設談話室" + ], + "Public": [ + null, + "公開談話室" + ], + "Semi-anonymous": [ + null, + "半匿名" + ], + "Temporary room": [ + null, + "臨時談話室" + ], + "Unmoderated": [ + null, + "発言制限なし" + ], + "This user is a moderator": [ + null, + "このユーザーは司会者です" + ], + "This user can send messages in this room": [ + null, + "このユーザーはこの談話室で発言できます" + ], + "This user can NOT send messages in this room": [ + null, + "このユーザーはこの談話室で発言できません" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "メッセージ" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "保存" + ], + "Cancel": [ + null, + "キャンセル" + ], + "An error occurred while trying to save the form.": [ + null, + "フォームを保存する際にエラーが発生しました。" + ], + "This chatroom requires a password": [ + null, + "この談話室にはパスワードが必要です" + ], + "Password: ": [ + null, + "パスワード:" + ], + "Submit": [ + null, + "送信" + ], + "This room is not anonymous": [ + null, + "この談話室は非匿名です" + ], + "This room now shows unavailable members": [ + null, + "この談話室はメンバー以外にも見えます" + ], + "This room does not show unavailable members": [ + null, + "この談話室はメンバー以外には見えません" + ], + "Non-privacy-related room configuration has changed": [ + null, + "談話室の設定(プライバシーに無関係)が変更されました" + ], + "Room logging is now enabled": [ + null, + "談話室の記録を取りはじめます" + ], + "Room logging is now disabled": [ + null, + "談話室の記録を止めます" + ], + "This room is now non-anonymous": [ + null, + "この談話室はただいま非匿名です" + ], + "This room is now semi-anonymous": [ + null, + "この談話室はただいま半匿名です" + ], + "This room is now fully-anonymous": [ + null, + "この談話室はただいま匿名です" + ], + "A new room has been created": [ + null, + "新しい談話室が作成されました" + ], + "You have been banned from this room": [ + null, + "この談話室から締め出されました" + ], + "You have been kicked from this room": [ + null, + "この談話室から蹴り出されました" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "分掌の変更のため、この談話室から削除されました" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "談話室がメンバー制に変更されました。メンバーではないため、この談話室から削除されました" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "MUC(グループチャット)のサービスが停止したため、この談話室から削除されました。" + ], + "%1$s has been banned": [ + null, + "%1$s を締め出しました" + ], + "%1$s has been kicked out": [ + null, + "%1$s を蹴り出しました" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "分掌の変更のため、%1$s を削除しました" + ], + "%1$s has been removed for not being a member": [ + null, + "メンバーでなくなったため、%1$s を削除しました" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "この談話室のメンバー一覧にいません" + ], + "No nickname was specified": [ + null, + "ニックネームがありません" + ], + "You are not allowed to create new rooms": [ + null, + "新しい談話室を作成する権限がありません" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "ニックネームがこの談話室のポリシーに従っていません" + ], + "Your nickname is already taken": [ + null, + "ニックネームは既に使われています" + ], + "This room does not (yet) exist": [ + null, + "この談話室は存在しません" + ], + "This room has reached it's maximum number of occupants": [ + null, + "この談話室は入室者数の上限に達しています" + ], + "Topic set by %1$s to: %2$s": [ + null, + "%1$s が話題を設定しました: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "クリックしてこの相手先を削除" + ], + "Click to chat with this contact": [ + null, + "クリックしてこの相手先とチャット" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "私はいま %1$s" + ], + "Click here to write a custom status message": [ + null, + "状況メッセージを入力するには、ここをクリック" + ], + "Click to change your chat status": [ + null, + "クリックして、在席状況を変更" + ], + "Custom status": [ + null, + "独自の在席状況" + ], + "online": [ + null, + "在席" + ], + "busy": [ + null, + "取り込み中" + ], + "away for long": [ + null, + "不在" + ], + "away": [ + null, + "離席中" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "パスワード:" + ], + "Log In": [ + null, + "ログイン" + ], + "Sign in": [ + null, + "サインイン" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/ja/LC_MESSAGES/ja.js b/locale/ja/LC_MESSAGES/ja.js deleted file mode 100644 index ba9b01343..000000000 --- a/locale/ja/LC_MESSAGES/ja.js +++ /dev/null @@ -1,622 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-01-07 11:12+0900", - "PO-Revision-Date": "2014-01-07 11:32+0900", - "Last-Translator": "Mako N ", - "Language-Team": "Language JA", - "Language": "JA", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=1; plural=0;" - }, - "unencrypted": [ - null, - "暗号化されていません" - ], - "unverified": [ - null, - "検証されていません" - ], - "verified": [ - null, - "検証されました" - ], - "finished": [ - null, - "完了" - ], - "This contact is busy": [ - null, - "この相手先は取り込み中です" - ], - "This contact is online": [ - null, - "この相手先は在席しています" - ], - "This contact is offline": [ - null, - "この相手先はオフラインです" - ], - "This contact is unavailable": [ - null, - "この相手先は不通です" - ], - "This contact is away for an extended period": [ - null, - "この相手先は不在です" - ], - "This contact is away": [ - null, - "この相手先は離席中です" - ], - "Disconnected": [ - null, - "切断中" - ], - "Error": [ - null, - "エラー" - ], - "Connecting": [ - null, - "接続中です" - ], - "Connection Failed": [ - null, - "接続に失敗しました" - ], - "Authenticating": [ - null, - "認証中" - ], - "Authentication Failed": [ - null, - "認証に失敗" - ], - "Disconnecting": [ - null, - "切断" - ], - "Online Contacts": [ - null, - "オンラインの相手先" - ], - "Re-establishing encrypted session": [ - null, - "暗号化セッションの再接続" - ], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [ - null, - "暗号化チャットで使用する秘密鍵を生成する必要があります。これには30秒ほどかかり、そのあいだブラウザがフリーズして反応しないかもしれません。" - ], - "Private key generated.": [ - null, - "秘密鍵を生成しました。" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "%1$s からの認証のリクエスト\n\n相手はあなたの本人性を検証しようとしています。次の質問に答えてください。\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "このユーザーの本人性を検証できませんでした。" - ], - "Personal message": [ - null, - "私信" - ], - "Start encrypted conversation": [ - null, - "暗号化された会話を開始" - ], - "Refresh encrypted conversation": [ - null, - "暗号化された会話をリフレッシュ" - ], - "End encrypted conversation": [ - null, - "暗号化された会話を終了" - ], - "Verify with SMP": [ - null, - "SMP で検証" - ], - "Verify with fingerprints": [ - null, - "鍵指紋で検証" - ], - "What's this?": [ - null, - "これは何ですか?" - ], - "me": [ - null, - "私" - ], - "Show this menu": [ - null, - "このメニューを表示" - ], - "Write in the third person": [ - null, - "第三者に書く" - ], - "Remove messages": [ - null, - "メッセージを削除" - ], - "Your message could not be sent": [ - null, - "メッセージを送信できませんでした" - ], - "We received an unencrypted message": [ - null, - "暗号化されていないメッセージを受信しました" - ], - "We received an unreadable encrypted message": [ - null, - "読めない暗号化メッセージを受信しました" - ], - "This user has requested an encrypted session.": [ - null, - "このユーザーは暗号化セッションを求めています。" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "これは鍵指紋です。チャット以外の方法でこれらを %1$s と確認してください。\n\nあなた %2$s の鍵指紋: %3$s\n\n%1$s の鍵指紋: %4$s\n\n確認して、鍵指紋が正しければ「OK」を、正しくなければ「キャンセル」をクリックしてください。" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [ - null, - "秘密の質問を入力し、それに対して答えるように促されます。\n\n相手にも、同じ質問が表示され、正しく同じ答(大文字・小文字は区別されます)を入力することで、本人性を検証します。" - ], - "What is your security question?": [ - null, - "秘密の質問はなんですか?" - ], - "What is the answer to the security question?": [ - null, - "秘密の質問の答はなんですか?" - ], - "Invalid authentication scheme provided": [ - null, - "認証の方式が正しくありません" - ], - "Your messages are not encrypted anymore": [ - null, - "メッセージはもう暗号化されません" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "メッセージは暗号化されますが、相手が本人であることは検証されていません。" - ], - "Your buddy's identify has been verified.": [ - null, - "相手の本人性を検証しました。" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "相手は、暗号化を終了しました。あなたもそれに合わせる必要があります。" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "メッセージは暗号化されません。OTR 暗号化を有効にするにはここをクリックしてください。" - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "メッセージは暗号化されますが、相手は検証されていません。" - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "メッセージは暗号化され、相手も検証されています。" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "相手は私信を終了しました。あなたも同じようにしてください" - ], - "Contacts": [ - null, - "相手先" - ], - "Online": [ - null, - "オンライン" - ], - "Busy": [ - null, - "取り込み中" - ], - "Away": [ - null, - "離席中" - ], - "Offline": [ - null, - "オフライン" - ], - "Click to add new chat contacts": [ - null, - "クリックして新しいチャットの相手先を追加" - ], - "Add a contact": [ - null, - "相手先を追加" - ], - "Contact username": [ - null, - "相手先の名前" - ], - "Add": [ - null, - "追加" - ], - "Contact name": [ - null, - "名前" - ], - "Search": [ - null, - "検索" - ], - "No users found": [ - null, - "ユーザーが見つかりません" - ], - "Click to add as a chat contact": [ - null, - "クリックしてチャットの相手先として追加" - ], - "Click to open this room": [ - null, - "クリックしてこの談話室を開く" - ], - "Show more information on this room": [ - null, - "この談話室についての詳細を見る" - ], - "Description:": [ - null, - "説明: " - ], - "Occupants:": [ - null, - "入室者:" - ], - "Features:": [ - null, - "特徴:" - ], - "Requires authentication": [ - null, - "認証の要求" - ], - "Hidden": [ - null, - "非表示" - ], - "Requires an invitation": [ - null, - "招待の要求" - ], - "Moderated": [ - null, - "発言制限" - ], - "Non-anonymous": [ - null, - "非匿名" - ], - "Open room": [ - null, - "開放談話室" - ], - "Permanent room": [ - null, - "常設談話室" - ], - "Public": [ - null, - "公開談話室" - ], - "Semi-anonymous": [ - null, - "半匿名" - ], - "Temporary room": [ - null, - "臨時談話室" - ], - "Unmoderated": [ - null, - "発言制限なし" - ], - "Rooms": [ - null, - "談話室" - ], - "Room name": [ - null, - "談話室の名前" - ], - "Nickname": [ - null, - "ニックネーム" - ], - "Server": [ - null, - "サーバー" - ], - "Join": [ - null, - "入室" - ], - "Show rooms": [ - null, - "談話室一覧を見る" - ], - "No rooms on %1$s": [ - null, - "%1$s に談話室はありません" - ], - "Rooms on %1$s": [ - null, - "%1$s の談話室一覧" - ], - "Set chatroom topic": [ - null, - "談話室の話題を設定" - ], - "Kick user from chatroom": [ - null, - "ユーザーを談話室から蹴り出す" - ], - "Ban user from chatroom": [ - null, - "ユーザーを談話室から締め出す" - ], - "Message": [ - null, - "メッセージ" - ], - "Save": [ - null, - "保存" - ], - "Cancel": [ - null, - "キャンセル" - ], - "An error occurred while trying to save the form.": [ - null, - "フォームを保存する際にエラーが発生しました。" - ], - "This chatroom requires a password": [ - null, - "この談話室にはパスワードが必要です" - ], - "Password: ": [ - null, - "パスワード:" - ], - "Submit": [ - null, - "送信" - ], - "This room is not anonymous": [ - null, - "この談話室は非匿名です" - ], - "This room now shows unavailable members": [ - null, - "この談話室はメンバー以外にも見えます" - ], - "This room does not show unavailable members": [ - null, - "この談話室はメンバー以外には見えません" - ], - "Non-privacy-related room configuration has changed": [ - null, - "談話室の設定(プライバシーに無関係)が変更されました" - ], - "Room logging is now enabled": [ - null, - "談話室の記録を取りはじめます" - ], - "Room logging is now disabled": [ - null, - "談話室の記録を止めます" - ], - "This room is now non-anonymous": [ - null, - "この談話室はただいま非匿名です" - ], - "This room is now semi-anonymous": [ - null, - "この談話室はただいま半匿名です" - ], - "This room is now fully-anonymous": [ - null, - "この談話室はただいま匿名です" - ], - "A new room has been created": [ - null, - "新しい談話室が作成されました" - ], - "Your nickname has been changed": [ - null, - "ニックネームを変更しました" - ], - "%1$s has been banned": [ - null, - "%1$s を締め出しました" - ], - "%1$s has been kicked out": [ - null, - "%1$s を蹴り出しました" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "分掌の変更のため、%1$s を削除しました" - ], - "%1$s has been removed for not being a member": [ - null, - "メンバーでなくなったため、%1$s を削除しました" - ], - "You have been banned from this room": [ - null, - "この談話室から締め出されました" - ], - "You have been kicked from this room": [ - null, - "この談話室から蹴り出されました" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "分掌の変更のため、この談話室から削除されました" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "談話室がメンバー制に変更されました。メンバーではないため、この談話室から削除されました" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "MUC(グループチャット)のサービスが停止したため、この談話室から削除されました。" - ], - "You are not on the member list of this room": [ - null, - "この談話室のメンバー一覧にいません" - ], - "No nickname was specified": [ - null, - "ニックネームがありません" - ], - "You are not allowed to create new rooms": [ - null, - "新しい談話室を作成する権限がありません" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "ニックネームがこの談話室のポリシーに従っていません" - ], - "Your nickname is already taken": [ - null, - "ニックネームは既に使われています" - ], - "This room does not (yet) exist": [ - null, - "この談話室は存在しません" - ], - "This room has reached it's maximum number of occupants": [ - null, - "この談話室は入室者数の上限に達しています" - ], - "Topic set by %1$s to: %2$s": [ - null, - "%1$s が話題を設定しました: %2$s" - ], - "This user is a moderator": [ - null, - "このユーザーは司会者です" - ], - "This user can send messages in this room": [ - null, - "このユーザーはこの談話室で発言できます" - ], - "This user can NOT send messages in this room": [ - null, - "このユーザーはこの談話室で発言できません" - ], - "Click to chat with this contact": [ - null, - "クリックしてこの相手先とチャット" - ], - "Click to remove this contact": [ - null, - "クリックしてこの相手先を削除" - ], - "Contact requests": [ - null, - "会話に呼び出し" - ], - "My contacts": [ - null, - "相手先一覧" - ], - "Pending contacts": [ - null, - "保留中の相手先" - ], - "Custom status": [ - null, - "独自の在席状況" - ], - "Click to change your chat status": [ - null, - "クリックして、在席状況を変更" - ], - "Click here to write a custom status message": [ - null, - "状況メッセージを入力するには、ここをクリック" - ], - "online": [ - null, - "在席" - ], - "busy": [ - null, - "取り込み中" - ], - "away for long": [ - null, - "不在" - ], - "away": [ - null, - "離席中" - ], - "I am %1$s": [ - null, - "私はいま %1$s" - ], - "Sign in": [ - null, - "サインイン" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber ユーザー名:" - ], - "Password:": [ - null, - "パスワード:" - ], - "Log In": [ - null, - "ログイン" - ], - "BOSH Service URL:": [ - null, - "BOSH サービス URL:" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("ja", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.ja = factory(new Jed(translations)); - } -}(this, function (ja) { - return ja; -})); diff --git a/locale/locales.js b/locale/locales.js index 88da20cbc..95f8aac69 100644 --- a/locale/locales.js +++ b/locale/locales.js @@ -7,40 +7,40 @@ (function (root, factory) { define("locales", ['jquery', 'jed', - 'af', - 'de', - 'en', - 'es', - 'fr', - 'he', - 'hu', - 'id', - 'it', - 'ja', - 'nb', - 'nl', + 'text!af', + 'text!de', + 'text!en', + 'text!es', + 'text!fr', + 'text!he', + 'text!hu', + 'text!id', + 'text!it', + 'text!ja', + 'text!nb', + 'text!nl', 'text!pl', - 'pt_BR', - 'ru', - 'zh' + 'text!pt_BR', + 'text!ru', + 'text!zh' ], function ($, Jed, af, de, en, es, fr, he, hu, id, it, ja, nb, nl, pl, pt_BR, ru, zh) { root.locales = { - 'af': af, - 'de': de, - 'en': en, - 'es': es, - 'fr': fr, - 'he': he, - 'hu': hu, - 'id': id, - 'it': it, - 'ja': ja, - 'nb': nb, - 'nl': nl, - 'pl': new Jed($.parseJSON(pl)), - 'pt-br': pt_BR, - 'ru': ru, - 'zh':zh + 'af': new Jed($.parseJSON(af)), + 'de': new Jed($.parseJSON(de)), + 'en': new Jed($.parseJSON(en)), + 'es': new Jed($.parseJSON(es)), + 'fr': new Jed($.parseJSON(fr)), + 'he': new Jed($.parseJSON(he)), + 'hu': new Jed($.parseJSON(hu)), + 'id': new Jed($.parseJSON(id)), + 'it': new Jed($.parseJSON(it)), + 'ja': new Jed($.parseJSON(ja)), + 'nb': new Jed($.parseJSON(nb)), + 'nl': new Jed($.parseJSON(nl)), + 'pl': new Jed($.parseJSON(pl)), + 'pt-br': new Jed($.parseJSON(pt_BR)), + 'ru': new Jed($.parseJSON(ru)), + 'zh': new Jed($.parseJSON(zh)) }; }); })(this); diff --git a/locale/nb/LC_MESSAGES/nb.js b/locale/nb/LC_MESSAGES/nb.js deleted file mode 100644 index 30a5f0a69..000000000 --- a/locale/nb/LC_MESSAGES/nb.js +++ /dev/null @@ -1,786 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "domain": "converse", - "plural_forms": "nplurals=2; plural=(n != 1);", - "lang": "nb" - }, - "unencrypted": [ - null, - "ukryptertß" - ], - "unverified": [ - null, - "uverifisert" - ], - "verified": [ - null, - "verifisert" - ], - "finished": [ - null, - "ferdig" - ], - "This contact is busy": [ - null, - "Denne kontakten er opptatt" - ], - "This contact is online": [ - null, - "Kontakten er pålogget" - ], - "This contact is offline": [ - null, - "Kontakten er avlogget" - ], - "This contact is unavailable": [ - null, - "Kontakten er utilgjengelig" - ], - "This contact is away for an extended period": [ - null, - "Kontakten er borte for en lengre periode" - ], - "This contact is away": [ - null, - "Kontakten er borte" - ], - "Click to hide these contacts": [ - null, - "Klikk for å skjule disse kontaktene" - ], - "My contacts": [ - null, - "Mine Kontakter" - ], - "Pending contacts": [ - null, - "Kontakter som venter på godkjenning" - ], - "Contact requests": [ - null, - "Kontaktforespørsler" - ], - "Ungrouped": [ - null, - "Ugrupperte" - ], - "Contacts": [ - null, - "Kontakter" - ], - "Groups": [ - null, - "Grupper" - ], - "Reconnecting": [ - null, - "Kobler til igjen" - ], - "Error": [ - null, - "Feil" - ], - "Connecting": [ - null, - "Kobler til" - ], - "Authenticating": [ - null, - "Godkjenner" - ], - "Authentication Failed": [ - null, - "Godkjenning mislyktes" - ], - "Online Contacts": [ - null, - "Påloggede Kontakter" - ], - "Re-establishing encrypted session": [ - null, - "Gjenopptar kryptert økt" - ], - "Generating private key.": [ - null, - "Genererer privat nøkkel" - ], - "Your browser might become unresponsive.": [ - null, - "Din nettleser kan bli uresponsiv" - ], - "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "Godkjenningsforespørsel fra %1$s\n\nDin nettpratkontakt forsøker å bekrefte din identitet, ved å spørre deg spørsmålet under.\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "Kunne ikke bekrefte denne brukerens identitet" - ], - "Exchanging private key with contact.": [ - null, - "Bytter private nøkler med kontakt" - ], - "Personal message": [ - null, - "Personlig melding" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Er du sikker på at du vil fjerne meldingene fra dette rommet?" - ], - "me": [ - null, - "meg" - ], - "is typing": [ - null, - "skriver" - ], - "has stopped typing": [ - null, - "har stoppet å skrive" - ], - "Show this menu": [ - null, - "Viser denne menyen" - ], - "Write in the third person": [ - null, - "Skriv i tredjeperson" - ], - "Remove messages": [ - null, - "Fjern meldinger" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "Er du sikker på at du vil fjerne meldingene fra denne meldingsboksen?" - ], - "Your message could not be sent": [ - null, - "Beskjeden din kunne ikke sendes" - ], - "We received an unencrypted message": [ - null, - "Vi mottok en ukryptert beskjed" - ], - "We received an unreadable encrypted message": [ - null, - "Vi mottok en uleselig melding" - ], - "This user has requested an encrypted session.": [ - null, - "Denne brukeren har ønsket en kryptert økt" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nOm du har bekreftet at avtrykkene matcher, klikk OK. I motsatt fall, trykk Avbryt." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "Du vil bli spurt etter å tilby et sikkerhetsspørsmål og siden svare på dette.\n\nDin kontakt vil så bli spurt om det samme spørsmålet, og om de svarer det nøyaktig samme svaret (det er forskjell på små og store bokstaver), vil identiteten verifiseres." - ], - "What is your security question?": [ - null, - "Hva er ditt Sikkerhetsspørsmål?" - ], - "What is the answer to the security question?": [ - null, - "Hva er svaret på ditt Sikkerhetsspørsmål?" - ], - "Invalid authentication scheme provided": [ - null, - "Du har vedlagt en ugyldig godkjenningsplan." - ], - "Your messages are not encrypted anymore": [ - null, - "Dine meldinger er ikke kryptert lenger." - ], - "Your messages are now encrypted but your contact's identity has not been verified.": [ - null, - "Dine meldinger er nå krypterte, men identiteten til din kontakt har ikke blitt verifisert." - ], - "Your contact's identify has been verified.": [ - null, - "Din kontakts identitet har blitt verifisert." - ], - "Your contact has ended encryption on their end, you should do the same.": [ - null, - "Din kontakt har avsluttet kryptering i sin ende, dette burde du også gjøre." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Dine meldinger er ikke krypterte. Klikk her for å aktivere OTR-kryptering." - ], - "Your messages are encrypted, but your contact has not been verified.": [ - null, - "Dine meldinger er krypterte, men din kontakt har ikke blitt verifisert." - ], - "Your messages are encrypted and your contact verified.": [ - null, - "Dine meldinger er krypterte og din kontakt er verifisert." - ], - "Your contact has closed their end of the private session, you should do the same": [ - null, - "Din kontakt har avsluttet økten i sin ende, dette burde du også gjøre." - ], - "Clear all messages": [ - null, - "Fjern alle meldinger" - ], - "End encrypted conversation": [ - null, - "Avslutt kryptert økt" - ], - "Hide the list of participants": [ - null, - "Skjul deltakerlisten" - ], - "Refresh encrypted conversation": [ - null, - "Last inn kryptert samtale på nytt" - ], - "Start a call": [ - null, - "Start en samtale" - ], - "Start encrypted conversation": [ - null, - "Start en kryptert samtale" - ], - "Verify with fingerprints": [ - null, - "Verifiser med Avtrykk" - ], - "Verify with SMP": [ - null, - "Verifiser med SMP" - ], - "What's this?": [ - null, - "Hva er dette?" - ], - "Online": [ - null, - "Pålogget" - ], - "Busy": [ - null, - "Opptatt" - ], - "Away": [ - null, - "Borte" - ], - "Offline": [ - null, - "Avlogget" - ], - "Log out": [ - null, - "Logg Av" - ], - "Contact name": [ - null, - "Kontaktnavn" - ], - "Search": [ - null, - "Søk" - ], - "Contact username": [ - null, - "Brukernavnet til Kontakt" - ], - "Add": [ - null, - "Legg Til" - ], - "Click to add new chat contacts": [ - null, - "Klikk for å legge til nye meldingskontakter" - ], - "Add a contact": [ - null, - "Legg til en Kontakt" - ], - "No users found": [ - null, - "Ingen brukere funnet" - ], - "Click to add as a chat contact": [ - null, - "Klikk for å legge til som meldingskontakt" - ], - "Room name": [ - null, - "Romnavn" - ], - "Nickname": [ - null, - "Kallenavn" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Koble til" - ], - "Show rooms": [ - null, - "Vis Rom" - ], - "Rooms": [ - null, - "Rom" - ], - "No rooms on %1$s": [ - null, - "Ingen rom på %1$s" - ], - "Rooms on %1$s": [ - null, - "Rom på %1$s" - ], - "Click to open this room": [ - null, - "Klikk for å åpne dette rommet" - ], - "Show more information on this room": [ - null, - "Vis mer informasjon om dette rommet" - ], - "Description:": [ - null, - "Beskrivelse:" - ], - "Occupants:": [ - null, - "Brukere her:" - ], - "Features:": [ - null, - "Egenskaper:" - ], - "Requires authentication": [ - null, - "Krever Godkjenning" - ], - "Hidden": [ - null, - "Skjult" - ], - "Requires an invitation": [ - null, - "Krever en invitasjon" - ], - "Moderated": [ - null, - "Moderert" - ], - "Non-anonymous": [ - null, - "Ikke-Anonym" - ], - "Open room": [ - null, - "Åpent Rom" - ], - "Permanent room": [ - null, - "Permanent Rom" - ], - "Public": [ - null, - "Alle" - ], - "Semi-anonymous": [ - null, - "Semi-anonymt" - ], - "Temporary room": [ - null, - "Midlertidig Rom" - ], - "Unmoderated": [ - null, - "Umoderert" - ], - "This user is a moderator": [ - null, - "Denne brukeren er moderator" - ], - "This user can send messages in this room": [ - null, - "Denne brukeren kan skrive meldinger i dette rommet" - ], - "This user can NOT send messages in this room": [ - null, - "Denne brukeren kan IKKE sende meldinger i dette rommet" - ], - "Invite...": [ - null, - "Invitér..." - ], - "Occupants": [ - null, - "Brukere her:" - ], - "You are about to invite %1$s to the chat room \"%2$s\". ": [ - null, - "Du er i ferd med å invitere %1$s til samtalerommet \"%2$s\". " - ], - "You may optionally include a message, explaining the reason for the invitation.": [ - null, - "Du kan eventuelt inkludere en melding og forklare årsaken til invitasjonen." - ], - "Message": [ - null, - "Melding" - ], - "Error: could not execute the command": [ - null, - "Feil: kunne ikke utføre kommandoen" - ], - "Ban user from room": [ - null, - "Utesteng bruker fra rommet" - ], - "Kick user from room": [ - null, - "Kast ut bruker fra rommet" - ], - "Write in 3rd person": [ - null, - "Skriv i tredjeperson" - ], - "Remove user's ability to post messages": [ - null, - "Fjern brukerens muligheter til å skrive meldinger" - ], - "Change your nickname": [ - null, - "Endre ditt kallenavn" - ], - "Set room topic": [ - null, - "Endre rommets emne" - ], - "Allow muted user to post messages": [ - null, - "Tillat stumme brukere å skrive meldinger" - ], - "Save": [ - null, - "Lagre" - ], - "Cancel": [ - null, - "Avbryt" - ], - "An error occurred while trying to save the form.": [ - null, - "En feil skjedde under lagring av skjemaet." - ], - "This chatroom requires a password": [ - null, - "Dette rommet krever et passord" - ], - "Password: ": [ - null, - "Passord:" - ], - "Submit": [ - null, - "Send" - ], - "This room is not anonymous": [ - null, - "Dette rommet er ikke anonymt" - ], - "This room now shows unavailable members": [ - null, - "Dette rommet viser nå utilgjengelige medlemmer" - ], - "This room does not show unavailable members": [ - null, - "Dette rommet viser ikke utilgjengelige medlemmer" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Ikke-personvernsrelatert romkonfigurasjon har blitt endret" - ], - "Room logging is now enabled": [ - null, - "Romlogging er nå aktivert" - ], - "Room logging is now disabled": [ - null, - "Romlogging er nå deaktivert" - ], - "This room is now non-anonymous": [ - null, - "Dette rommet er nå ikke-anonymt" - ], - "This room is now semi-anonymous": [ - null, - "Dette rommet er nå semi-anonymt" - ], - "This room is now fully-anonymous": [ - null, - "Dette rommet er nå totalt anonymt" - ], - "A new room has been created": [ - null, - "Et nytt rom har blitt opprettet" - ], - "You have been banned from this room": [ - null, - "Du har blitt utestengt fra dette rommet" - ], - "You have been kicked from this room": [ - null, - "Du ble kastet ut av dette rommet" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Du har blitt fjernet fra dette rommet på grunn av en holdningsendring" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Du har blitt fjernet fra dette rommet fordi rommet nå kun tillater medlemmer, noe du ikke er." - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Du har blitt fjernet fra dette rommet fordi MBC (Multi-Bruker-Chat)-tjenesten er stengt ned." - ], - "%1$s has been banned": [ - null, - "%1$s har blitt utestengt" - ], - "%1$s's nickname has changed": [ - null, - "%1$s sitt kallenavn er endret" - ], - "%1$s has been kicked out": [ - null, - "%1$s ble kastet ut" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s har blitt fjernet på grunn av en holdningsendring" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s har blitt fjernet på grunn av at han/hun ikke er medlem" - ], - "Your nickname has been automatically changed to: %1$s": [ - null, - "Ditt kallenavn har blitt automatisk endret til %1$s " - ], - "Your nickname has been changed to: %1$s": [ - null, - "Ditt kallenavn har blitt endret til %1$s " - ], - "The reason given is: \"": [ - null, - "Årsaken som er oppgitt er: \"" - ], - "You are not on the member list of this room": [ - null, - "Du er ikke på medlemslisten til dette rommet" - ], - "No nickname was specified": [ - null, - "Ingen kallenavn var spesifisert" - ], - "You are not allowed to create new rooms": [ - null, - "Du har ikke tillatelse til å opprette nye rom" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Ditt kallenavn er ikke i samsvar med rommets regler" - ], - "Your nickname is already taken": [ - null, - "Kallenavnet er allerede tatt" - ], - "This room does not (yet) exist": [ - null, - "Dette rommet eksisterer ikke (enda)" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Dette rommet har nådd maksimalt antall brukere" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Emnet ble endret den %1$s til: %2$s" - ], - "%1$s has invited you to join a chat room: %2$s": [ - null, - "%1$s har invitert deg til å bli med i chatterommet: %2$s" - ], - "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ - null, - "%1$s har invitert deg til å bli med i chatterommet: %2$s, og forlot selv av følgende grunn: \"%3$s\"" - ], - "Click to restore this chat": [ - null, - "Klikk for å gjenopprette denne samtalen" - ], - "Minimized": [ - null, - "Minimert" - ], - "Click to remove this contact": [ - null, - "Klikk for å fjerne denne kontakten" - ], - "Click to accept this contact request": [ - null, - "Klikk for å Godta denne kontaktforespørselen" - ], - "Click to decline this contact request": [ - null, - "Klikk for å avslå denne kontaktforespørselen" - ], - "Click to chat with this contact": [ - null, - "Klikk for å chatte med denne kontakten" - ], - "Are you sure you want to remove this contact?": [ - null, - "Er du sikker på at du vil fjerne denne kontakten?" - ], - "Are you sure you want to decline this contact request?": [ - null, - "Er du sikker på at du vil avslå denne kontaktforespørselen?" - ], - "Type to filter": [ - null, - "Skriv til filter" - ], - "I am %1$s": [ - null, - "Jeg er %1$s" - ], - "Click here to write a custom status message": [ - null, - "Klikk her for å skrive en personlig statusmelding" - ], - "Click to change your chat status": [ - null, - "Klikk for å endre din meldingsstatus" - ], - "Custom status": [ - null, - "Personlig status" - ], - "online": [ - null, - "pålogget" - ], - "busy": [ - null, - "opptatt" - ], - "away for long": [ - null, - "borte lenge" - ], - "away": [ - null, - "borte" - ], - "Your XMPP provider's domain name:": [ - null, - "Din XMPP-tilbyders domenenavn:" - ], - "Fetch registration form": [ - null, - "Hent registreringsskjema" - ], - "Tip: A list of public XMPP providers is available": [ - null, - "Tips: En liste med offentlige XMPP-tilbydere er tilgjengelig" - ], - "here": [ - null, - "her" - ], - "Register": [ - null, - "Registrér deg" - ], - "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ - null, - "Beklager, den valgte tilbyderen støtter ikke in band kontoregistrering. Vennligst prøv igjen med en annen tilbyder. " - ], - "Requesting a registration form from the XMPP server": [ - null, - "Spør etter registreringsskjema fra XMPP-tjeneren" - ], - "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ - null, - "Noe gikk galt under etablering av forbindelse med \"%1$s\". Er du sikker på at denne eksisterer?" - ], - "Now logging you in": [ - null, - "Logger deg inn" - ], - "Registered successfully": [ - null, - "Registrering var vellykket" - ], - "Return": [ - null, - "Tilbake" - ], - "The provider rejected your registration attempt. ": [ - null, - "Tilbyderen avviste ditt registreringsforsøk." - ], - "XMPP Username:": [ - null, - "XMPP Brukernavn:" - ], - "Password:": [ - null, - "Passord:" - ], - "Log In": [ - null, - "Logg inn" - ], - "Sign in": [ - null, - "Innlogging" - ], - "Toggle chat": [ - null, - "Endre chatten" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("nb", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.nb = factory(new Jed(translations)); - } -}(this, function (nb) { - return nb; -})); diff --git a/locale/nl/LC_MESSAGES/converse.json b/locale/nl/LC_MESSAGES/converse.json index 1afffa7fb..47e2a85f0 100644 --- a/locale/nl/LC_MESSAGES/converse.json +++ b/locale/nl/LC_MESSAGES/converse.json @@ -1,660 +1,664 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-15 22:03+0200", - "Last-Translator": "Maarten Kling ", - "Language-Team": "Dutch", - "Language": "nl", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "domain": "converse", - "lang": "nl", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "ongecodeerde" - ], - "unverified": [ - null, - "niet geverifieerd" - ], - "verified": [ - null, - "geverifieerd" - ], - "finished": [ - null, - "klaar" - ], - "This contact is busy": [ - null, - "Contact is bezet" - ], - "This contact is online": [ - null, - "Contact is online" - ], - "This contact is offline": [ - null, - "Contact is offline" - ], - "This contact is unavailable": [ - null, - "Contact is niet beschikbaar" - ], - "This contact is away for an extended period": [ - null, - "Contact is afwezig voor lange periode" - ], - "This contact is away": [ - null, - "Conact is afwezig" - ], - "Reconnecting": [ - null, - "Verbinden" - ], - "Disconnected": [ - null, - "Verbinding verbroken." - ], - "Error": [ - null, - "Error" - ], - "Connecting": [ - null, - "Verbinden" - ], - "Connection Failed": [ - null, - "Verbinden mislukt" - ], - "Authenticating": [ - null, - "Authenticeren" - ], - "Authentication Failed": [ - null, - "Authenticeren mislukt" - ], - "Disconnecting": [ - null, - "" - ], - "Online Contacts": [ - null, - "Online Contacten" - ], - "Re-establishing encrypted session": [ - null, - "Bezig versleutelde sessie te herstellen" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "Niet kon de identiteit van deze gebruiker niet identificeren." - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Persoonlijk bericht" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Je bent niet een gebruiker van deze room" - ], - "me": [ - null, - "ikzelf" - ], - "Show this menu": [ - null, - "Toon dit menu" - ], - "Write in the third person": [ - null, - "Schrijf in de 3de persoon" - ], - "Remove messages": [ - null, - "Verwijder bericht" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "Je bericht kon niet worden verzonden" - ], - "We received an unencrypted message": [ - null, - "We ontvingen een unencrypted bericht " - ], - "We received an unreadable encrypted message": [ - null, - "We ontvangen een onleesbaar unencrypted bericht" - ], - "This user has requested an encrypted session.": [ - null, - "Deze gebruiker heeft een encrypted sessie aangevraagd." - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "Wat is jou sericury vraag?" - ], - "What is the answer to the security question?": [ - null, - "Wat is het antwoord op de security vraag?" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "Je berichten zijn niet meer encrypted" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "Jou contact is geverifieerd" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "Jou contact heeft encryption aanstaan, je moet het zelfde doen." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Jou bericht is niet encrypted. KLik hier om ORC encrytion aan te zetten." - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Jou berichten zijn encrypted, maar je contact is niet geverifieerd." - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Jou bericht is encrypted en jou contact is geverifieerd." - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "Beeindig encrypted gesprek" - ], - "Refresh encrypted conversation": [ - null, - "Ververs encrypted gesprek" - ], - "Start encrypted conversation": [ - null, - "Start encrypted gesprek" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "Wat is dit?" - ], - "Online": [ - null, - "Online" - ], - "Busy": [ - null, - "Bezet" - ], - "Away": [ - null, - "Afwezig" - ], - "Offline": [ - null, - "" - ], - "Contacts": [ - null, - "Contacten" - ], - "Contact name": [ - null, - "Contact naam" - ], - "Search": [ - null, - "Zoeken" - ], - "Contact username": [ - null, - "Contact gebruikernaam" - ], - "Add": [ - null, - "Toevoegen" - ], - "Click to add new chat contacts": [ - null, - "Klik om nieuwe contacten toe te voegen" - ], - "Add a contact": [ - null, - "Voeg contact toe" - ], - "No users found": [ - null, - "Geen gebruikers gevonden" - ], - "Click to add as a chat contact": [ - null, - "Klik om contact toe te voegen" - ], - "Room name": [ - null, - "Room naam" - ], - "Nickname": [ - null, - "Nickname" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Deelnemen" - ], - "Show rooms": [ - null, - "Toon rooms" - ], - "Rooms": [ - null, - "Rooms" - ], - "No rooms on %1$s": [ - null, - "Geen room op %1$s" - ], - "Rooms on %1$s": [ - null, - "Room op %1$s" - ], - "Click to open this room": [ - null, - "Klik om room te openen" - ], - "Show more information on this room": [ - null, - "Toon meer informatie over deze room" - ], - "Description:": [ - null, - "Beschrijving" - ], - "Occupants:": [ - null, - "Deelnemers:" - ], - "Features:": [ - null, - "Functies:" - ], - "Requires authentication": [ - null, - "Verificatie vereist" - ], - "Hidden": [ - null, - "Verborgen" - ], - "Requires an invitation": [ - null, - "Veriest een uitnodiging" - ], - "Moderated": [ - null, - "Gemodereerd" - ], - "Non-anonymous": [ - null, - "Niet annoniem" - ], - "Open room": [ - null, - "Open room" - ], - "Permanent room": [ - null, - "Blijvend room" - ], - "Public": [ - null, - "Publiek" - ], - "Semi-anonymous": [ - null, - "Semi annoniem" - ], - "Temporary room": [ - null, - "Tijdelijke room" - ], - "Unmoderated": [ - null, - "Niet gemodereerd" - ], - "Set chatroom topic": [ - null, - "Zet chatroom topic" - ], - "Kick user from chatroom": [ - null, - "Goei gebruiker uit chatroom" - ], - "Ban user from chatroom": [ - null, - "Ban gebruiker van chatroom" - ], - "Message": [ - null, - "Bericht" - ], - "Save": [ - null, - "Opslaan" - ], - "Cancel": [ - null, - "Annuleren" - ], - "An error occurred while trying to save the form.": [ - null, - "Een error tijdens het opslaan van het formulier." - ], - "This chatroom requires a password": [ - null, - "Chatroom heeft een wachtwoord" - ], - "Password: ": [ - null, - "Wachtwoord: " - ], - "Submit": [ - null, - "Indienen" - ], - "This room is not anonymous": [ - null, - "Deze room is niet annoniem" - ], - "This room now shows unavailable members": [ - null, - "" - ], - "This room does not show unavailable members": [ - null, - "" - ], - "Non-privacy-related room configuration has changed": [ - null, - "" - ], - "Room logging is now enabled": [ - null, - "" - ], - "Room logging is now disabled": [ - null, - "" - ], - "This room is now non-anonymous": [ - null, - "Deze room is nu niet annoniem" - ], - "This room is now semi-anonymous": [ - null, - "Deze room is nu semie annoniem" - ], - "This room is now fully-anonymous": [ - null, - "Deze room is nu volledig annoniem" - ], - "A new room has been created": [ - null, - "Een nieuwe room is gemaakt" - ], - "Your nickname has been changed": [ - null, - "Je nickname is veranderd" - ], - "%1$s has been banned": [ - null, - "%1$s is verbannen" - ], - "%1$s has been kicked out": [ - null, - "%1$s has been kicked out" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "" - ], - "%1$s has been removed for not being a member": [ - null, - "" - ], - "You have been banned from this room": [ - null, - "Je bent verbannen uit deze room" - ], - "You have been kicked from this room": [ - null, - "Je bent uit de room gegooid" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "" - ], - "You are not on the member list of this room": [ - null, - "Je bent niet een gebruiker van deze room" - ], - "No nickname was specified": [ - null, - "Geen nickname ingegeven" - ], - "You are not allowed to create new rooms": [ - null, - "Je bent niet toegestaan nieuwe rooms te maken" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Je nickname is niet conform policy" - ], - "Your nickname is already taken": [ - null, - "Je nickname bestaat al" - ], - "This room does not (yet) exist": [ - null, - "Deze room bestaat niet" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Deze room heeft het maximale aantal gebruikers" - ], - "Topic set by %1$s to: %2$s": [ - null, - "" - ], - "This user is a moderator": [ - null, - "Dit is een moderator" - ], - "This user can send messages in this room": [ - null, - "Deze gebruiker kan berichten sturen in deze room" - ], - "This user can NOT send messages in this room": [ - null, - "Deze gebruiker kan NIET een bericht sturen in deze room" - ], - "Click to restore this chat": [ - null, - "Klik om contact te verwijderen" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Klik om contact te verwijderen" - ], - "Click to remove this contact": [ - null, - "Klik om contact te verwijderen" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "Online" - ], - "Click to chat with this contact": [ - null, - "Klik om te chatten met contact" - ], - "My contacts": [ - null, - "Mijn contacts" - ], - "Contact requests": [ - null, - "Contact uitnodiging" - ], - "Pending contacts": [ - null, - "Conacten in afwachting van" - ], - "Custom status": [ - null, - "" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "bezet" - ], - "away for long": [ - null, - "afwezig lange tijd" - ], - "away": [ - null, - "afwezig" - ], - "I am %1$s": [ - null, - "Ik ben %1$s" - ], - "Click here to write a custom status message": [ - null, - "Klik hier om custom status bericht te maken" - ], - "Click to change your chat status": [ - null, - "Klik hier om status te wijzigen" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber Username:" - ], - "Password:": [ - null, - "Wachtwoord:" - ], - "Log In": [ - null, - "Aanmelden" - ], - "Sign in": [ - null, - "Aanmelden" - ], - "Toggle chat": [ - null, - "" - ], - "Private key generated.": [ - null, - "Private key gegenereerd." - ], - "%1$s is typing": [ - null, - "%1$s is aan typen" - ], - "Connected": [ - null, - "Verbonden" - ], - "Attached": [ - null, - "Bijlage" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "nl" + }, + "unencrypted": [ + null, + "ongecodeerde" + ], + "unverified": [ + null, + "niet geverifieerd" + ], + "verified": [ + null, + "geverifieerd" + ], + "finished": [ + null, + "klaar" + ], + "This contact is busy": [ + null, + "Contact is bezet" + ], + "This contact is online": [ + null, + "Contact is online" + ], + "This contact is offline": [ + null, + "Contact is offline" + ], + "This contact is unavailable": [ + null, + "Contact is niet beschikbaar" + ], + "This contact is away for an extended period": [ + null, + "Contact is afwezig voor lange periode" + ], + "This contact is away": [ + null, + "Conact is afwezig" + ], + "My contacts": [ + null, + "Mijn contacts" + ], + "Pending contacts": [ + null, + "Conacten in afwachting van" + ], + "Contact requests": [ + null, + "Contact uitnodiging" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contacten" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Error" + ], + "Connecting": [ + null, + "Verbinden" + ], + "Authenticating": [ + null, + "Authenticeren" + ], + "Authentication Failed": [ + null, + "Authenticeren mislukt" + ], + "Online Contacts": [ + null, + "Online Contacten" + ], + "Re-establishing encrypted session": [ + null, + "Bezig versleutelde sessie te herstellen" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "Niet kon de identiteit van deze gebruiker niet identificeren." + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Persoonlijk bericht" + ], + "me": [ + null, + "ikzelf" + ], + "Show this menu": [ + null, + "Toon dit menu" + ], + "Write in the third person": [ + null, + "Schrijf in de 3de persoon" + ], + "Remove messages": [ + null, + "Verwijder bericht" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "Je bericht kon niet worden verzonden" + ], + "We received an unencrypted message": [ + null, + "We ontvingen een unencrypted bericht " + ], + "We received an unreadable encrypted message": [ + null, + "We ontvangen een onleesbaar unencrypted bericht" + ], + "This user has requested an encrypted session.": [ + null, + "Deze gebruiker heeft een encrypted sessie aangevraagd." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "Wat is jou sericury vraag?" + ], + "What is the answer to the security question?": [ + null, + "Wat is het antwoord op de security vraag?" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "Je berichten zijn niet meer encrypted" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Jou bericht is niet encrypted. KLik hier om ORC encrytion aan te zetten." + ], + "End encrypted conversation": [ + null, + "Beeindig encrypted gesprek" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Ververs encrypted gesprek" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Start encrypted gesprek" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "Wat is dit?" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Bezet" + ], + "Away": [ + null, + "Afwezig" + ], + "Offline": [ + null, + "" + ], + "Contact name": [ + null, + "Contact naam" + ], + "Search": [ + null, + "Zoeken" + ], + "Contact username": [ + null, + "Contact gebruikernaam" + ], + "Add": [ + null, + "Toevoegen" + ], + "Click to add new chat contacts": [ + null, + "Klik om nieuwe contacten toe te voegen" + ], + "Add a contact": [ + null, + "Voeg contact toe" + ], + "No users found": [ + null, + "Geen gebruikers gevonden" + ], + "Click to add as a chat contact": [ + null, + "Klik om contact toe te voegen" + ], + "Room name": [ + null, + "Room naam" + ], + "Nickname": [ + null, + "Nickname" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Deelnemen" + ], + "Show rooms": [ + null, + "Toon rooms" + ], + "Rooms": [ + null, + "Rooms" + ], + "No rooms on %1$s": [ + null, + "Geen room op %1$s" + ], + "Rooms on %1$s": [ + null, + "Room op %1$s" + ], + "Click to open this room": [ + null, + "Klik om room te openen" + ], + "Show more information on this room": [ + null, + "Toon meer informatie over deze room" + ], + "Description:": [ + null, + "Beschrijving" + ], + "Occupants:": [ + null, + "Deelnemers:" + ], + "Features:": [ + null, + "Functies:" + ], + "Requires authentication": [ + null, + "Verificatie vereist" + ], + "Hidden": [ + null, + "Verborgen" + ], + "Requires an invitation": [ + null, + "Veriest een uitnodiging" + ], + "Moderated": [ + null, + "Gemodereerd" + ], + "Non-anonymous": [ + null, + "Niet annoniem" + ], + "Open room": [ + null, + "Open room" + ], + "Permanent room": [ + null, + "Blijvend room" + ], + "Public": [ + null, + "Publiek" + ], + "Semi-anonymous": [ + null, + "Semi annoniem" + ], + "Temporary room": [ + null, + "Tijdelijke room" + ], + "Unmoderated": [ + null, + "Niet gemodereerd" + ], + "This user is a moderator": [ + null, + "Dit is een moderator" + ], + "This user can send messages in this room": [ + null, + "Deze gebruiker kan berichten sturen in deze room" + ], + "This user can NOT send messages in this room": [ + null, + "Deze gebruiker kan NIET een bericht sturen in deze room" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Bericht" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Opslaan" + ], + "Cancel": [ + null, + "Annuleren" + ], + "An error occurred while trying to save the form.": [ + null, + "Een error tijdens het opslaan van het formulier." + ], + "This chatroom requires a password": [ + null, + "Chatroom heeft een wachtwoord" + ], + "Password: ": [ + null, + "Wachtwoord: " + ], + "Submit": [ + null, + "Indienen" + ], + "This room is not anonymous": [ + null, + "Deze room is niet annoniem" + ], + "This room now shows unavailable members": [ + null, + "" + ], + "This room does not show unavailable members": [ + null, + "" + ], + "Non-privacy-related room configuration has changed": [ + null, + "" + ], + "Room logging is now enabled": [ + null, + "" + ], + "Room logging is now disabled": [ + null, + "" + ], + "This room is now non-anonymous": [ + null, + "Deze room is nu niet annoniem" + ], + "This room is now semi-anonymous": [ + null, + "Deze room is nu semie annoniem" + ], + "This room is now fully-anonymous": [ + null, + "Deze room is nu volledig annoniem" + ], + "A new room has been created": [ + null, + "Een nieuwe room is gemaakt" + ], + "You have been banned from this room": [ + null, + "Je bent verbannen uit deze room" + ], + "You have been kicked from this room": [ + null, + "Je bent uit de room gegooid" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "" + ], + "%1$s has been banned": [ + null, + "%1$s is verbannen" + ], + "%1$s has been kicked out": [ + null, + "%1$s has been kicked out" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "" + ], + "%1$s has been removed for not being a member": [ + null, + "" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Je bent niet een gebruiker van deze room" + ], + "No nickname was specified": [ + null, + "Geen nickname ingegeven" + ], + "You are not allowed to create new rooms": [ + null, + "Je bent niet toegestaan nieuwe rooms te maken" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Je nickname is niet conform policy" + ], + "Your nickname is already taken": [ + null, + "Je nickname bestaat al" + ], + "This room does not (yet) exist": [ + null, + "Deze room bestaat niet" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Deze room heeft het maximale aantal gebruikers" + ], + "Topic set by %1$s to: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Klik om contact te verwijderen" + ], + "Click to chat with this contact": [ + null, + "Klik om te chatten met contact" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Ik ben %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klik hier om custom status bericht te maken" + ], + "Click to change your chat status": [ + null, + "Klik hier om status te wijzigen" + ], + "Custom status": [ + null, + "" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "bezet" + ], + "away for long": [ + null, + "afwezig lange tijd" + ], + "away": [ + null, + "afwezig" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Wachtwoord:" + ], + "Log In": [ + null, + "Aanmelden" + ], + "Sign in": [ + null, + "Aanmelden" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/nl/LC_MESSAGES/nl.js b/locale/nl/LC_MESSAGES/nl.js deleted file mode 100644 index b9b85988b..000000000 --- a/locale/nl/LC_MESSAGES/nl.js +++ /dev/null @@ -1,637 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2013-09-15 21:55+0200", - "PO-Revision-Date": "2013-09-15 22:03+0200", - "Last-Translator": "Maarten Kling ", - "Language-Team": "Dutch", - "Language": "nl", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n != 1);", - "domain": "converse", - "lang": "nl", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "ongecodeerde" - ], - "unverified": [ - null, - "niet geverifieerd" - ], - "verified": [ - null, - "geverifieerd" - ], - "finished": [ - null, - "klaar" - ], - "Disconnected": [ - null, - "Verbinding verbroken." - ], - "Error": [ - null, - "Error" - ], - "Connecting": [ - null, - "Verbinden" - ], - "Connection Failed": [ - null, - "Verbinden mislukt" - ], - "Authenticating": [ - null, - "Authenticeren" - ], - "Authentication Failed": [ - null, - "Authenticeren mislukt" - ], - "Disconnecting": [ - null, - "" - ], - "Re-establishing encrypted session": [ - null, - "Bezig versleutelde sessie te herstellen" - ], - "Your browser needs to generate a private key, which will be used in your encrypted chat session. This can take up to 30 seconds during which your browser might freeze and become unresponsive.": [ - null, - "" - ], - "Private key generated.": [ - null, - "Private key gegenereerd." - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "Niet kon de identiteit van deze gebruiker niet identificeren." - ], - "Personal message": [ - null, - "Persoonlijk bericht" - ], - "Start encrypted conversation": [ - null, - "Start encrypted gesprek" - ], - "Refresh encrypted conversation": [ - null, - "Ververs encrypted gesprek" - ], - "End encrypted conversation": [ - null, - "Beeindig encrypted gesprek" - ], - "Verify with SMP": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "What's this?": [ - null, - "Wat is dit?" - ], - "me": [ - null, - "ikzelf" - ], - "Show this menu": [ - null, - "Toon dit menu" - ], - "Write in the third person": [ - null, - "Schrijf in de 3de persoon" - ], - "Remove messages": [ - null, - "Verwijder bericht" - ], - "Your message could not be sent": [ - null, - "Je bericht kon niet worden verzonden" - ], - "We received an unencrypted message": [ - null, - "We ontvingen een unencrypted bericht " - ], - "We received an unreadable encrypted message": [ - null, - "We ontvangen een onleesbaar unencrypted bericht" - ], - "This user has requested an encrypted session.": [ - null, - "Deze gebruiker heeft een encrypted sessie aangevraagd." - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will have been verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "Wat is jou sericury vraag?" - ], - "What is the answer to the security question?": [ - null, - "Wat is het antwoord op de security vraag?" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "Je berichten zijn niet meer encrypted" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "" - ], - "Your buddy's identify has been verified.": [ - null, - "Jou contact is geverifieerd" - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "Jou contact heeft encryption aanstaan, je moet het zelfde doen." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Jou bericht is niet encrypted. KLik hier om ORC encrytion aan te zetten." - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Jou berichten zijn encrypted, maar je contact is niet geverifieerd." - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Jou bericht is encrypted en jou contact is geverifieerd." - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "Contacts": [ - null, - "Contacten" - ], - "Online": [ - null, - "Online" - ], - "Busy": [ - null, - "Bezet" - ], - "Away": [ - null, - "Afwezig" - ], - "Offline": [ - null, - "" - ], - "Click to add new chat contacts": [ - null, - "Klik om nieuwe contacten toe te voegen" - ], - "Add a contact": [ - null, - "Voeg contact toe" - ], - "Contact username": [ - null, - "Contact gebruikernaam" - ], - "Add": [ - null, - "Toevoegen" - ], - "Contact name": [ - null, - "Contact naam" - ], - "Search": [ - null, - "Zoeken" - ], - "No users found": [ - null, - "Geen gebruikers gevonden" - ], - "Click to add as a chat contact": [ - null, - "Klik om contact toe te voegen" - ], - "Click to open this room": [ - null, - "Klik om room te openen" - ], - "Show more information on this room": [ - null, - "Toon meer informatie over deze room" - ], - "Description:": [ - null, - "Beschrijving" - ], - "Occupants:": [ - null, - "Deelnemers:" - ], - "Features:": [ - null, - "Functies:" - ], - "Requires authentication": [ - null, - "Verificatie vereist" - ], - "Hidden": [ - null, - "Verborgen" - ], - "Requires an invitation": [ - null, - "Veriest een uitnodiging" - ], - "Moderated": [ - null, - "Gemodereerd" - ], - "Non-anonymous": [ - null, - "Niet annoniem" - ], - "Open room": [ - null, - "Open room" - ], - "Permanent room": [ - null, - "Blijvend room" - ], - "Public": [ - null, - "Publiek" - ], - "Semi-anonymous": [ - null, - "Semi annoniem" - ], - "Temporary room": [ - null, - "Tijdelijke room" - ], - "Unmoderated": [ - null, - "Niet gemodereerd" - ], - "Rooms": [ - null, - "Rooms" - ], - "Room name": [ - null, - "Room naam" - ], - "Nickname": [ - null, - "Nickname" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Deelnemen" - ], - "Show rooms": [ - null, - "Toon rooms" - ], - "No rooms on %1$s": [ - null, - "Geen room op %1$s" - ], - "Rooms on %1$s": [ - null, - "Room op %1$s" - ], - "Set chatroom topic": [ - null, - "Zet chatroom topic" - ], - "Kick user from chatroom": [ - null, - "Goei gebruiker uit chatroom" - ], - "Ban user from chatroom": [ - null, - "Ban gebruiker van chatroom" - ], - "Message": [ - null, - "Bericht" - ], - "Save": [ - null, - "Opslaan" - ], - "Cancel": [ - null, - "Annuleren" - ], - "An error occurred while trying to save the form.": [ - null, - "Een error tijdens het opslaan van het formulier." - ], - "This chatroom requires a password": [ - null, - "Chatroom heeft een wachtwoord" - ], - "Password: ": [ - null, - "Wachtwoord: " - ], - "Submit": [ - null, - "Indienen" - ], - "This room is not anonymous": [ - null, - "Deze room is niet annoniem" - ], - "This room now shows unavailable members": [ - null, - "" - ], - "This room does not show unavailable members": [ - null, - "" - ], - "Non-privacy-related room configuration has changed": [ - null, - "" - ], - "Room logging is now enabled": [ - null, - "" - ], - "Room logging is now disabled": [ - null, - "" - ], - "This room is now non-anonymous": [ - null, - "Deze room is nu niet annoniem" - ], - "This room is now semi-anonymous": [ - null, - "Deze room is nu semie annoniem" - ], - "This room is now fully-anonymous": [ - null, - "Deze room is nu volledig annoniem" - ], - "A new room has been created": [ - null, - "Een nieuwe room is gemaakt" - ], - "Your nickname has been changed": [ - null, - "Je nickname is veranderd" - ], - "%1$s has been banned": [ - null, - "%1$s is verbannen" - ], - "%1$s has been kicked out": [ - null, - "%1$s has been kicked out" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "" - ], - "%1$s has been removed for not being a member": [ - null, - "" - ], - "You have been banned from this room": [ - null, - "Je bent verbannen uit deze room" - ], - "You have been kicked from this room": [ - null, - "Je bent uit de room gegooid" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "" - ], - "You are not on the member list of this room": [ - null, - "Je bent niet een gebruiker van deze room" - ], - "No nickname was specified": [ - null, - "Geen nickname ingegeven" - ], - "You are not allowed to create new rooms": [ - null, - "Je bent niet toegestaan nieuwe rooms te maken" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Je nickname is niet conform policy" - ], - "Your nickname is already taken": [ - null, - "Je nickname bestaat al" - ], - "This room does not (yet) exist": [ - null, - "Deze room bestaat niet" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Deze room heeft het maximale aantal gebruikers" - ], - "Topic set by %1$s to: %2$s": [ - null, - "" - ], - "This user is a moderator": [ - null, - "Dit is een moderator" - ], - "This user can send messages in this room": [ - null, - "Deze gebruiker kan berichten sturen in deze room" - ], - "This user can NOT send messages in this room": [ - null, - "Deze gebruiker kan NIET een bericht sturen in deze room" - ], - "Click to chat with this contact": [ - null, - "Klik om te chatten met contact" - ], - "Click to remove this contact": [ - null, - "Klik om contact te verwijderen" - ], - "This contact is busy": [ - null, - "Contact is bezet" - ], - "This contact is online": [ - null, - "Contact is online" - ], - "This contact is offline": [ - null, - "Contact is offline" - ], - "This contact is unavailable": [ - null, - "Contact is niet beschikbaar" - ], - "This contact is away for an extended period": [ - null, - "Contact is afwezig voor lange periode" - ], - "This contact is away": [ - null, - "Conact is afwezig" - ], - "Contact requests": [ - null, - "Contact uitnodiging" - ], - "My contacts": [ - null, - "Mijn contacts" - ], - "Pending contacts": [ - null, - "Conacten in afwachting van" - ], - "Custom status": [ - null, - "" - ], - "Click to change your chat status": [ - null, - "Klik hier om status te wijzigen" - ], - "Click here to write a custom status message": [ - null, - "Klik hier om custom status bericht te maken" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "bezet" - ], - "away for long": [ - null, - "afwezig lange tijd" - ], - "away": [ - null, - "afwezig" - ], - "I am %1$s": [ - null, - "Ik ben %1$s" - ], - "Sign in": [ - null, - "Aanmelden" - ], - "XMPP/Jabber Username:": [ - null, - "XMPP/Jabber Username:" - ], - "Password:": [ - null, - "Wachtwoord:" - ], - "Log In": [ - null, - "Aanmelden" - ], - "BOSH Service URL:": [ - null, - "" - ], - "Online Contacts": [ - null, - "Online Contacten" - ], - "%1$s is typing": [ - null, - "%1$s is aan typen" - ], - "Connected": [ - null, - "Verbonden" - ], - "Attached": [ - null, - "Bijlage" - ] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("nl", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.nl = factory(new Jed(translations)); - } -}(this, function (nl) { - return nl; -})); diff --git a/locale/pt_BR/LC_MESSAGES/converse.json b/locale/pt_BR/LC_MESSAGES/converse.json index 1b25ea3fa..0807d979f 100644 --- a/locale/pt_BR/LC_MESSAGES/converse.json +++ b/locale/pt_BR/LC_MESSAGES/converse.json @@ -1,660 +1,652 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.6.3", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2014-07-07 11:02+0200", - "Last-Translator": "Alan Meira ", - "Language-Team": "Brazilian Portuguese", - "Language": "pt_BR", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=2; plural=(n > 1);", - "domain": "converse", - "lang": "pt_BR", - "plural_forms": "nplurals=2; plural=(n != 1);" - }, - "unencrypted": [ - null, - "não-encriptado" - ], - "unverified": [ - null, - "não-verificado" - ], - "verified": [ - null, - "verificado" - ], - "finished": [ - null, - "finalizado" - ], - "This contact is busy": [ - null, - "Este contato está ocupado" - ], - "This contact is online": [ - null, - "Este contato está online" - ], - "This contact is offline": [ - null, - "Este contato está offline" - ], - "This contact is unavailable": [ - null, - "Este contato está indisponível" - ], - "This contact is away for an extended period": [ - null, - "Este contato está ausente por um longo período" - ], - "This contact is away": [ - null, - "Este contato está ausente" - ], - "Reconnecting": [ - null, - "Conectando" - ], - "Disconnected": [ - null, - "Desconectado" - ], - "Error": [ - null, - "Erro" - ], - "Connecting": [ - null, - "Conectando" - ], - "Connection Failed": [ - null, - "Falha de conexão" - ], - "Authenticating": [ - null, - "Autenticando" - ], - "Authentication Failed": [ - null, - "Falha de autenticação" - ], - "Disconnecting": [ - null, - "Desconectando" - ], - "Online Contacts": [ - null, - "Contatos online" - ], - "Re-establishing encrypted session": [ - null, - "Reestabelecendo sessão criptografada" - ], - "Generating private key.": [ - null, - "Gerando chave-privada." - ], - "Your browser might become unresponsive.": [ - null, - "Seu navegador pode parar de responder." - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "Pedido de autenticação de %$s\n\nSeu contato está tentando verificar sua identidade, perguntando a questão abaixo.\n\n%2$s" - ], - "Could not verify this user's identify.": [ - null, - "Não foi possível verificar a identidade deste usuário." - ], - "Exchanging private key with buddy.": [ - null, - "Trocando chave-privada com o contato." - ], - "Personal message": [ - null, - "Mensagem pessoal" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Tem certeza que você deseja limpar as mensagens dessa sala?" - ], - "me": [ - null, - "eu" - ], - "Show this menu": [ - null, - "Mostrar o menu" - ], - "Write in the third person": [ - null, - "Escrever em terceira pessoa" - ], - "Remove messages": [ - null, - "Remover mensagens" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "Tem certeza que deseja limpar as mensagens dessa caixa?" - ], - "Your message could not be sent": [ - null, - "Sua mensagem não pode ser enviada" - ], - "We received an unencrypted message": [ - null, - "Recebemos uma mensagem não-criptografada" - ], - "We received an unreadable encrypted message": [ - null, - "Recebemos uma mensagem não-criptografada ilegível" - ], - "This user has requested an encrypted session.": [ - null, - "Usuário pediu uma sessão criptografada." - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "Aqui estão as assinaturas digitais, por favor confirme elas com %1$s, fora deste chat.\n\nAssinaturas para você, %2$s: %3$s\n\nAssinaturas para %1$s: %4$s\n\nSe você tiver confirmado que as assinaturas conferem, clique OK, caso contrário, clique Cancel." - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "Será solicitado que você informe uma pergunta de segurança e também uma resposta.\n\nNós iremos, então, transfeir a pergunta para seu contato e caso ele envie corretamente a mesma resposta (caso sensitivo), a identidade dele será verificada." - ], - "What is your security question?": [ - null, - "Qual é a sua pergunta de segurança?" - ], - "What is the answer to the security question?": [ - null, - "Qual é a resposta para a pergunta de segurança?" - ], - "Invalid authentication scheme provided": [ - null, - "Schema de autenticação fornecido é inválido" - ], - "Your messages are not encrypted anymore": [ - null, - "Suas mensagens não estão mais criptografadas" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "Suas mensagens estão agora criptografadas mas a identidade do contato não foi confirmada." - ], - "Your buddy's identify has been verified.": [ - null, - "A identidade do contato foi verificada." - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "Seu contato parou de usar criptografia, você deveria fazer o mesmo." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Suas mensagens não estão criptografadas. Clique aqui para habilitar criptografia OTR." - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Suas mensagens estão criptografadas, mas seu contato não foi verificado." - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Suas mensagens estão criptografadas e seu contato verificado." - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "Seu contato fechou a sessão privada, você deveria fazer o mesmo" - ], - "End encrypted conversation": [ - null, - "Finalizar conversa criptografada" - ], - "Refresh encrypted conversation": [ - null, - "Atualizar conversa criptografada" - ], - "Start encrypted conversation": [ - null, - "Iniciar conversa criptografada" - ], - "Verify with fingerprints": [ - null, - "Verificar com assinatura digital" - ], - "Verify with SMP": [ - null, - "Verificar com SMP" - ], - "What's this?": [ - null, - "O que é isso?" - ], - "Online": [ - null, - "Online" - ], - "Busy": [ - null, - "Ocupado" - ], - "Away": [ - null, - "Ausente" - ], - "Offline": [ - null, - "Offline" - ], - "Contacts": [ - null, - "Contatos" - ], - "Contact name": [ - null, - "Nome do contato" - ], - "Search": [ - null, - "Procurar" - ], - "Contact username": [ - null, - "Usuário do contatt" - ], - "Add": [ - null, - "Adicionar" - ], - "Click to add new chat contacts": [ - null, - "Clique para adicionar novos contatos ao chat" - ], - "Add a contact": [ - null, - "Adicionar contato" - ], - "No users found": [ - null, - "Não foram encontrados usuários" - ], - "Click to add as a chat contact": [ - null, - "Clique para adicionar como um contato do chat" - ], - "Room name": [ - null, - "Nome da sala" - ], - "Nickname": [ - null, - "Apelido" - ], - "Server": [ - null, - "Server" - ], - "Join": [ - null, - "Entrar" - ], - "Show rooms": [ - null, - "Mostar salas" - ], - "Rooms": [ - null, - "Salas" - ], - "No rooms on %1$s": [ - null, - "Sem salas em %1$s" - ], - "Rooms on %1$s": [ - null, - "Salas em %1$s" - ], - "Click to open this room": [ - null, - "CLique para abrir a sala" - ], - "Show more information on this room": [ - null, - "Mostrar mais informações nessa sala" - ], - "Description:": [ - null, - "Descrição:" - ], - "Occupants:": [ - null, - "Ocupantes:" - ], - "Features:": [ - null, - "Recursos:" - ], - "Requires authentication": [ - null, - "Requer autenticação" - ], - "Hidden": [ - null, - "Escondido" - ], - "Requires an invitation": [ - null, - "Requer um convite" - ], - "Moderated": [ - null, - "Moderado" - ], - "Non-anonymous": [ - null, - "Não anônimo" - ], - "Open room": [ - null, - "Sala aberta" - ], - "Permanent room": [ - null, - "Sala permanente" - ], - "Public": [ - null, - "Público" - ], - "Semi-anonymous": [ - null, - "Semi anônimo" - ], - "Temporary room": [ - null, - "Sala temporária" - ], - "Unmoderated": [ - null, - "Sem moderação" - ], - "Set chatroom topic": [ - null, - "Definir tópico do chat" - ], - "Kick user from chatroom": [ - null, - "Expulsar usuário do chat" - ], - "Ban user from chatroom": [ - null, - "Banir usuário do chat" - ], - "Message": [ - null, - "Mensagem" - ], - "Save": [ - null, - "Salvar" - ], - "Cancel": [ - null, - "Cancelar" - ], - "An error occurred while trying to save the form.": [ - null, - "Ocorreu um erro enquanto tentava salvar o formulário" - ], - "This chatroom requires a password": [ - null, - "Esse chat precisa de senha" - ], - "Password: ": [ - null, - "Senha: " - ], - "Submit": [ - null, - "Enviar" - ], - "This room is not anonymous": [ - null, - "Essa sala não é anônima" - ], - "This room now shows unavailable members": [ - null, - "Agora esta sala mostra membros indisponíveis" - ], - "This room does not show unavailable members": [ - null, - "Essa sala não mostra membros indisponíveis" - ], - "Non-privacy-related room configuration has changed": [ - null, - "Configuraçõs não relacionadas à privacidade mudaram" - ], - "Room logging is now enabled": [ - null, - "O log da sala está ativado" - ], - "Room logging is now disabled": [ - null, - "O log da sala está desativado" - ], - "This room is now non-anonymous": [ - null, - "Esse sala é não anônima" - ], - "This room is now semi-anonymous": [ - null, - "Essa sala agora é semi anônima" - ], - "This room is now fully-anonymous": [ - null, - "Essa sala agora é totalmente anônima" - ], - "A new room has been created": [ - null, - "Uma nova sala foi criada" - ], - "Your nickname has been changed": [ - null, - "Seu apelido foi mudado" - ], - "%1$s has been banned": [ - null, - "%1$s foi banido" - ], - "%1$s has been kicked out": [ - null, - "%1$s foi expulso" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s foi removido por causa de troca de associação" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s foi removido por não ser um membro" - ], - "You have been banned from this room": [ - null, - "Você foi banido dessa sala" - ], - "You have been kicked from this room": [ - null, - "Você foi expulso dessa sala" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Você foi removido da sala devido a uma mudança de associação" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Você foi removido da sala porque ela foi mudada para somente membrose você não é um membro" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Você foi removido da sala devido a MUC (Multi-user chat)o serviço está sendo desligado" - ], - "You are not on the member list of this room": [ - null, - "Você não é membro dessa sala" - ], - "No nickname was specified": [ - null, - "Você não escolheu um apelido " - ], - "You are not allowed to create new rooms": [ - null, - "Você não tem permitição de criar novas salas" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Seu apelido não está de acordo com as regras da sala" - ], - "Your nickname is already taken": [ - null, - "Seu apelido já foi escolhido" - ], - "This room does not (yet) exist": [ - null, - "A sala não existe (ainda)" - ], - "This room has reached it's maximum number of occupants": [ - null, - "A sala atingiu o número máximo de ocupantes" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Topico definido por %1$s para: %2$s" - ], - "This user is a moderator": [ - null, - "Esse usuário é o moderador" - ], - "This user can send messages in this room": [ - null, - "Esse usuário pode enviar mensagens nessa sala" - ], - "This user can NOT send messages in this room": [ - null, - "Esse usuário NÃO pode enviar mensagens nessa sala" - ], - "Click to restore this chat": [ - null, - "Clique para remover o contato" - ], - "Minimized": [ - null, - "Minimizado" - ], - "Are you sure you want to remove this contact?": [ - null, - "Clique para remover o contato" - ], - "Click to remove this contact": [ - null, - "Clique para remover o contato" - ], - "Accept": [ - null, - "Aceitar" - ], - "Decline": [ - null, - "Rejeitar" - ], - "Click to chat with this contact": [ - null, - "Clique para conversar com o contato" - ], - "My contacts": [ - null, - "Meus contatos" - ], - "Contact requests": [ - null, - "Solicitação de contatos" - ], - "Pending contacts": [ - null, - "Contados pendentes" - ], - "Custom status": [ - null, - "Status customizado" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "ocupado" - ], - "away for long": [ - null, - "ausente a bastante tempo" - ], - "away": [ - null, - "ausente" - ], - "I am %1$s": [ - null, - "Estou %1$s" - ], - "Click here to write a custom status message": [ - null, - "Clique aqui para customizar a mensagem de status" - ], - "Click to change your chat status": [ - null, - "Clique para mudar seu status no chat" - ], - "XMPP/Jabber Username:": [ - null, - "Usuário XMPP/Jabber:" - ], - "Password:": [ - null, - "Senha:" - ], - "Log In": [ - null, - "Entrar" - ], - "Sign in": [ - null, - "Conectar-se" - ], - "Toggle chat": [ - null, - "Alternar bate-papo" - ], - "BOSH Service URL:": [ - null, - "URL de serviço BOSH:" - ], - "%1$s is typing": [ - null, - "%1$s está digitando" - ], - "Connected": [ - null, - "Conectado" - ], - "Attached": [ - null, - "Anexado" - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n > 1);", + "lang": "pt_BR" + }, + "unencrypted": [ + null, + "não-criptografado" + ], + "unverified": [ + null, + "não-verificado" + ], + "verified": [ + null, + "verificado" + ], + "finished": [ + null, + "finalizado" + ], + "This contact is busy": [ + null, + "Este contato está ocupado" + ], + "This contact is online": [ + null, + "Este contato está online" + ], + "This contact is offline": [ + null, + "Este contato está offline" + ], + "This contact is unavailable": [ + null, + "Este contato está indisponível" + ], + "This contact is away for an extended period": [ + null, + "Este contato está ausente por um longo período" + ], + "This contact is away": [ + null, + "Este contato está ausente" + ], + "My contacts": [ + null, + "Meus contatos" + ], + "Pending contacts": [ + null, + "Contados pendentes" + ], + "Contact requests": [ + null, + "Solicitação de contatos" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contatos" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Erro" + ], + "Connecting": [ + null, + "Conectando" + ], + "Authenticating": [ + null, + "Autenticando" + ], + "Authentication Failed": [ + null, + "Falha de autenticação" + ], + "Online Contacts": [ + null, + "Contatos online" + ], + "Re-establishing encrypted session": [ + null, + "Reestabelecendo sessão criptografada" + ], + "Generating private key.": [ + null, + "Gerando chave-privada." + ], + "Your browser might become unresponsive.": [ + null, + "Seu navegador pode parar de responder." + ], + "Could not verify this user's identify.": [ + null, + "Não foi possível verificar a identidade deste usuário." + ], + "Personal message": [ + null, + "Mensagem pessoal" + ], + "me": [ + null, + "eu" + ], + "Show this menu": [ + null, + "Mostrar o menu" + ], + "Write in the third person": [ + null, + "Escrever em terceira pessoa" + ], + "Remove messages": [ + null, + "Remover mensagens" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "Tem certeza que deseja limpar as mensagens dessa caixa?" + ], + "Your message could not be sent": [ + null, + "Sua mensagem não pode ser enviada" + ], + "We received an unencrypted message": [ + null, + "Recebemos uma mensagem não-criptografada" + ], + "We received an unreadable encrypted message": [ + null, + "Recebemos uma mensagem não-criptografada ilegível" + ], + "This user has requested an encrypted session.": [ + null, + "Usuário pediu uma sessão criptografada." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Aqui estão as assinaturas digitais, por favor confirme elas com %1$s, fora deste chat.\n\nAssinatura para você, %2$s: %3$s\n\nAssinatura para %1$s: %4$s\n\nSe você tiver confirmado que as assinaturas conferem, clique OK, caso contrário, clique Cancelar." + ], + "What is your security question?": [ + null, + "Qual é a sua pergunta de segurança?" + ], + "What is the answer to the security question?": [ + null, + "Qual é a resposta para a pergunta de segurança?" + ], + "Invalid authentication scheme provided": [ + null, + "Schema de autenticação fornecido é inválido" + ], + "Your messages are not encrypted anymore": [ + null, + "Suas mensagens não estão mais criptografadas" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Suas mensagens não estão criptografadas. Clique aqui para habilitar criptografia OTR." + ], + "End encrypted conversation": [ + null, + "Finalizar conversa criptografada" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Atualizar conversa criptografada" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Iniciar conversa criptografada" + ], + "Verify with fingerprints": [ + null, + "Verificar com assinatura digital" + ], + "Verify with SMP": [ + null, + "Verificar com SMP" + ], + "What's this?": [ + null, + "O que é isso?" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Ocupado" + ], + "Away": [ + null, + "Ausente" + ], + "Offline": [ + null, + "Offline" + ], + "Contact name": [ + null, + "Nome do contato" + ], + "Search": [ + null, + "Procurar" + ], + "Contact username": [ + null, + "Usuário do contatt" + ], + "Add": [ + null, + "Adicionar" + ], + "Click to add new chat contacts": [ + null, + "Clique para adicionar novos contatos ao chat" + ], + "Add a contact": [ + null, + "Adicionar contato" + ], + "No users found": [ + null, + "Não foram encontrados usuários" + ], + "Click to add as a chat contact": [ + null, + "Clique para adicionar como um contato do chat" + ], + "Room name": [ + null, + "Nome da sala" + ], + "Nickname": [ + null, + "Apelido" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Entrar" + ], + "Show rooms": [ + null, + "Mostar salas" + ], + "Rooms": [ + null, + "Salas" + ], + "No rooms on %1$s": [ + null, + "Sem salas em %1$s" + ], + "Rooms on %1$s": [ + null, + "Salas em %1$s" + ], + "Click to open this room": [ + null, + "CLique para abrir a sala" + ], + "Show more information on this room": [ + null, + "Mostrar mais informações nessa sala" + ], + "Description:": [ + null, + "Descrição:" + ], + "Occupants:": [ + null, + "Ocupantes:" + ], + "Features:": [ + null, + "Recursos:" + ], + "Requires authentication": [ + null, + "Requer autenticação" + ], + "Hidden": [ + null, + "Escondido" + ], + "Requires an invitation": [ + null, + "Requer um convite" + ], + "Moderated": [ + null, + "Moderado" + ], + "Non-anonymous": [ + null, + "Não anônimo" + ], + "Open room": [ + null, + "Sala aberta" + ], + "Permanent room": [ + null, + "Sala permanente" + ], + "Public": [ + null, + "Público" + ], + "Semi-anonymous": [ + null, + "Semi anônimo" + ], + "Temporary room": [ + null, + "Sala temporária" + ], + "Unmoderated": [ + null, + "Sem moderação" + ], + "This user is a moderator": [ + null, + "Esse usuário é o moderador" + ], + "This user can send messages in this room": [ + null, + "Esse usuário pode enviar mensagens nessa sala" + ], + "This user can NOT send messages in this room": [ + null, + "Esse usuário NÃO pode enviar mensagens nessa sala" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Mensagem" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Salvar" + ], + "Cancel": [ + null, + "Cancelar" + ], + "An error occurred while trying to save the form.": [ + null, + "Ocorreu um erro enquanto tentava salvar o formulário" + ], + "This chatroom requires a password": [ + null, + "Esse chat precisa de senha" + ], + "Password: ": [ + null, + "Senha: " + ], + "Submit": [ + null, + "Enviar" + ], + "This room is not anonymous": [ + null, + "Essa sala não é anônima" + ], + "This room now shows unavailable members": [ + null, + "Agora esta sala mostra membros indisponíveis" + ], + "This room does not show unavailable members": [ + null, + "Essa sala não mostra membros indisponíveis" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Configuraçõs não relacionadas à privacidade mudaram" + ], + "Room logging is now enabled": [ + null, + "O log da sala está ativado" + ], + "Room logging is now disabled": [ + null, + "O log da sala está desativado" + ], + "This room is now non-anonymous": [ + null, + "Esse sala é não anônima" + ], + "This room is now semi-anonymous": [ + null, + "Essa sala agora é semi anônima" + ], + "This room is now fully-anonymous": [ + null, + "Essa sala agora é totalmente anônima" + ], + "A new room has been created": [ + null, + "Uma nova sala foi criada" + ], + "You have been banned from this room": [ + null, + "Você foi banido dessa sala" + ], + "You have been kicked from this room": [ + null, + "Você foi expulso dessa sala" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Você foi removido da sala devido a uma mudança de associação" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Você foi removido da sala porque ela foi mudada para somente membrose você não é um membro" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Você foi removido da sala devido a MUC (Multi-user chat)o serviço está sendo desligado" + ], + "%1$s has been banned": [ + null, + "%1$s foi banido" + ], + "%1$s has been kicked out": [ + null, + "%1$s foi expulso" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s foi removido por causa de troca de associação" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s foi removido por não ser um membro" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Você não é membro dessa sala" + ], + "No nickname was specified": [ + null, + "Você não escolheu um apelido " + ], + "You are not allowed to create new rooms": [ + null, + "Você não tem permitição de criar novas salas" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Seu apelido não está de acordo com as regras da sala" + ], + "Your nickname is already taken": [ + null, + "Seu apelido já foi escolhido" + ], + "This room does not (yet) exist": [ + null, + "A sala não existe (ainda)" + ], + "This room has reached it's maximum number of occupants": [ + null, + "A sala atingiu o número máximo de ocupantes" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topico definido por %1$s para: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "Minimizado" + ], + "Click to remove this contact": [ + null, + "Clique para remover o contato" + ], + "Click to chat with this contact": [ + null, + "Clique para conversar com o contato" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Estou %1$s" + ], + "Click here to write a custom status message": [ + null, + "Clique aqui para customizar a mensagem de status" + ], + "Click to change your chat status": [ + null, + "Clique para mudar seu status no chat" + ], + "Custom status": [ + null, + "Status customizado" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "ocupado" + ], + "away for long": [ + null, + "ausente a bastante tempo" + ], + "away": [ + null, + "ausente" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Senha:" + ], + "Log In": [ + null, + "Entrar" + ], + "Sign in": [ + null, + "Conectar-se" + ], + "Toggle chat": [ + null, + "Alternar bate-papo" + ] + } } -} +} \ No newline at end of file diff --git a/locale/ru/LC_MESSAGES/converse.json b/locale/ru/LC_MESSAGES/converse.json index 3e8b55ae4..c8c373373 100644 --- a/locale/ru/LC_MESSAGES/converse.json +++ b/locale/ru/LC_MESSAGES/converse.json @@ -1,645 +1,683 @@ { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-07-06 17:58+0200", - "PO-Revision-Date": "2013-09-29 17:24+0300", - "Last-Translator": "Boris Kocherov ", - "Language-Team": "", - "Language": "ru", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "X-Generator": "Poedit 1.5.5" - }, - "unencrypted": [ - null, - "не зашифровано" - ], - "unverified": [ - null, - "непроверено" - ], - "verified": [ - null, - "проверено" - ], - "finished": [ - null, - "закончено" - ], - "This contact is busy": [ - null, - "Занят" - ], - "This contact is online": [ - null, - "В сети" - ], - "This contact is offline": [ - null, - "Не в сети" - ], - "This contact is unavailable": [ - null, - "Не доступен" - ], - "This contact is away for an extended period": [ - null, - "На долго отошёл" - ], - "This contact is away": [ - null, - "Отошёл" - ], - "Reconnecting": [ - null, - "Соединение" - ], - "Disconnected": [ - null, - "Отключено" - ], - "Error": [ - null, - "Ошибка" - ], - "Connecting": [ - null, - "Соединение" - ], - "Connection Failed": [ - null, - "Не удалось соединится" - ], - "Authenticating": [ - null, - "Авторизация" - ], - "Authentication Failed": [ - null, - "Не удалось авторизоваться" - ], - "Disconnecting": [ - null, - "Отключаемся" - ], - "Online Contacts": [ - null, - "Cписок собеседников" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with buddy.": [ - null, - "" - ], - "Personal message": [ - null, - "Введите сообщение" - ], - "Are you sure you want to clear the messages from this room?": [ - null, - "Вас нет в списке этой конференции" - ], - "me": [ - null, - "Я" - ], - "Show this menu": [ - null, - "Показать это меню" - ], - "Write in the third person": [ - null, - "" - ], - "Remove messages": [ - null, - "Удалить сообщения" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "Ваше сообщение не послано" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour buddy will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "Ваши сообщения больше не шифруются" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "Ваши сообщения шифруются, но ваша учётная запись не проверена вашим собеседником." - ], - "Your buddy's identify has been verified.": [ - null, - "Ваша учётная запись проверена вашим собеседником." - ], - "Your buddy has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Ваши сообщения не шифруются. Нажмите здесь чтобы настроить шифрование." - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Ваши сообщения шифруются, но ваш контакт не проверен." - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Ваши сообщения шифруются и ваш контакт проверен" - ], - "Your buddy has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "Что это?" - ], - "Online": [ - null, - "В сети" - ], - "Busy": [ - null, - "Занят" - ], - "Away": [ - null, - "Отошёл" - ], - "Offline": [ - null, - "Не в сети" - ], - "Contacts": [ - null, - "Контакты" - ], - "Contact name": [ - null, - "Имя контакта" - ], - "Search": [ - null, - "Поиск" - ], - "Contact username": [ - null, - "Имя пользователя" - ], - "Add": [ - null, - "Добавить" - ], - "Click to add new chat contacts": [ - null, - "Добавить новую конференцию" - ], - "Add a contact": [ - null, - "Добавть контакт" - ], - "No users found": [ - null, - "Пользователи не найдены" - ], - "Click to add as a chat contact": [ - null, - "Добавить контакт" - ], - "Room name": [ - null, - "Имя конференции" - ], - "Nickname": [ - null, - "Псевдоним" - ], - "Server": [ - null, - "Сервер" - ], - "Join": [ - null, - "Подключиться" - ], - "Show rooms": [ - null, - "Обновить" - ], - "Rooms": [ - null, - "Конфер." - ], - "No rooms on %1$s": [ - null, - "Нет доступных конференций %1$s" - ], - "Rooms on %1$s": [ - null, - "Конференции %1$s:" - ], - "Click to open this room": [ - null, - "Зайти в конференцию" - ], - "Show more information on this room": [ - null, - "Показать больше информации об этой конференции" - ], - "Description:": [ - null, - "Описание:" - ], - "Occupants:": [ - null, - "Участники:" - ], - "Features:": [ - null, - "Свойства:" - ], - "Requires authentication": [ - null, - "Требуется авторизация" - ], - "Hidden": [ - null, - "Скрыто" - ], - "Requires an invitation": [ - null, - "Требуется приглашение" - ], - "Moderated": [ - null, - "Модерируемая" - ], - "Non-anonymous": [ - null, - "Не анонимная" - ], - "Open room": [ - null, - "Открыть конференцию" - ], - "Permanent room": [ - null, - "Перманентная конференция" - ], - "Public": [ - null, - "Публичный" - ], - "Semi-anonymous": [ - null, - "Частично анонимная" - ], - "Temporary room": [ - null, - "Временная конференция" - ], - "Unmoderated": [ - null, - "Немодерируемая" - ], - "Set chatroom topic": [ - null, - "Установить тему" - ], - "Kick user from chatroom": [ - null, - "Отключить пользователя от кнофер." - ], - "Ban user from chatroom": [ - null, - "Забанить пользователя в этой конф." - ], - "Message": [ - null, - "Сообщение" - ], - "Save": [ - null, - "Сохранить" - ], - "Cancel": [ - null, - "Отменить" - ], - "An error occurred while trying to save the form.": [ - null, - "При сохранение формы произошла ошибка." - ], - "This chatroom requires a password": [ - null, - "Для доступа в конфер. необходим пароль." - ], - "Password: ": [ - null, - "Пароль: " - ], - "Submit": [ - null, - "Отправить" - ], - "This room is not anonymous": [ - null, - "Эта комната не анонимная" - ], - "This room now shows unavailable members": [ - null, - "Эта комната показывает доступных собеседников" - ], - "This room does not show unavailable members": [ - null, - "Эта комната не показывает недоступных собеседников" - ], - "Non-privacy-related room configuration has changed": [ - null, - "" - ], - "Room logging is now enabled": [ - null, - "" - ], - "Room logging is now disabled": [ - null, - "" - ], - "This room is now non-anonymous": [ - null, - "Эта комната не анонимная" - ], - "This room is now semi-anonymous": [ - null, - "Эта комната частично анонимная" - ], - "This room is now fully-anonymous": [ - null, - "Эта комната стала полностью анонимной" - ], - "A new room has been created": [ - null, - "Новая комната была создана" - ], - "Your nickname has been changed": [ - null, - "Ваш псевдоним уже используется другим пользователем" - ], - "%1$s has been banned": [ - null, - "%1$s забанен" - ], - "%1$s has been kicked out": [ - null, - "%1$s выдворен" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s has been removed because of an affiliation change" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s удалён потому что не участник" - ], - "You have been banned from this room": [ - null, - "Вам запрещено подключатся к этой конференции" - ], - "You have been kicked from this room": [ - null, - "Вам запрещено подключатся к этой конференции" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "%1$s удалён потому что изменились права" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Вы отключены от этой конференции потому что режим изменился: только-участники" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Вы отключены от этой конференции потому что сервись конференций выключен." - ], - "You are not on the member list of this room": [ - null, - "Вас нет в списке этой конференции" - ], - "No nickname was specified": [ - null, - "Вы не указали псевдоним" - ], - "You are not allowed to create new rooms": [ - null, - "Вы не имеете права создавать конфер." - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Псевдоним не согласуется с правилами конфер." - ], - "Your nickname is already taken": [ - null, - "Ваш ник уже используется другим пользователем" - ], - "This room does not (yet) exist": [ - null, - "Эта комната не существует" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Конференция достигла максимального количества участников" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Тема %2$s устатновлена %1$s" - ], - "This user is a moderator": [ - null, - "Модератор" - ], - "This user can send messages in this room": [ - null, - "Собеседник" - ], - "This user can NOT send messages in this room": [ - null, - "Пользователь не может посылать сообщения в эту комнату" - ], - "Click to restore this chat": [ - null, - "Удалить контакт" - ], - "Minimized": [ - null, - "" - ], - "Are you sure you want to remove this contact?": [ - null, - "Удалить контакт" - ], - "Click to remove this contact": [ - null, - "Удалить контакт" - ], - "Accept": [ - null, - "" - ], - "Decline": [ - null, - "В сети" - ], - "Click to chat with this contact": [ - null, - "Начать общение" - ], - "My contacts": [ - null, - "Контакты" - ], - "Contact requests": [ - null, - "Запросы на авторизацию" - ], - "Pending contacts": [ - null, - "Собеседники ожидающие авторизации" - ], - "Custom status": [ - null, - "Произвольный статус" - ], - "online": [ - null, - "на связи" - ], - "busy": [ - null, - "занят" - ], - "away for long": [ - null, - "отошёл на долго" - ], - "away": [ - null, - "отошёл" - ], - "I am %1$s": [ - null, - "%1$s" - ], - "Click here to write a custom status message": [ - null, - "Редактировать произвольный статус" - ], - "Click to change your chat status": [ - null, - "Изменить ваш статус" - ], - "XMPP/Jabber Username:": [ - null, - "JID:" - ], - "Password:": [ - null, - "Пароль:" - ], - "Log In": [ - null, - "Войти" - ], - "Sign in": [ - null, - "Подписать" - ], - "Toggle chat": [ - null, - "" - ], - "Private key generated.": [ - null, - "Приватный ключ сгенерирован." - ] + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "ru" + }, + "unencrypted": [ + null, + "не зашифровано" + ], + "unverified": [ + null, + "непроверено" + ], + "verified": [ + null, + "проверено" + ], + "finished": [ + null, + "закончено" + ], + "This contact is busy": [ + null, + "Занят" + ], + "This contact is online": [ + null, + "В сети" + ], + "This contact is offline": [ + null, + "Не в сети" + ], + "This contact is unavailable": [ + null, + "Не доступен" + ], + "This contact is away for an extended period": [ + null, + "На долго отошёл" + ], + "This contact is away": [ + null, + "Отошёл" + ], + "My contacts": [ + null, + "Контакты" + ], + "Pending contacts": [ + null, + "Собеседники ожидающие авторизации" + ], + "Contact requests": [ + null, + "Запросы на авторизацию" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Контакты" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Ошибка" + ], + "Connecting": [ + null, + "Соединение" + ], + "Authenticating": [ + null, + "Авторизация" + ], + "Authentication Failed": [ + null, + "Не удалось авторизоваться" + ], + "Online Contacts": [ + null, + "Cписок собеседников" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Введите сообщение" + ], + "me": [ + null, + "Я" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Показать это меню" + ], + "Write in the third person": [ + null, + "" + ], + "Remove messages": [ + null, + "Удалить сообщения" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "Ваше сообщение не послано" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "Ваши сообщения больше не шифруются" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Ваши сообщения не шифруются. Нажмите здесь чтобы настроить шифрование." + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "Что это?" + ], + "Online": [ + null, + "В сети" + ], + "Busy": [ + null, + "Занят" + ], + "Away": [ + null, + "Отошёл" + ], + "Offline": [ + null, + "Не в сети" + ], + "Contact name": [ + null, + "Имя контакта" + ], + "Search": [ + null, + "Поиск" + ], + "Contact username": [ + null, + "Имя пользователя" + ], + "Add": [ + null, + "Добавить" + ], + "Click to add new chat contacts": [ + null, + "Добавить новую конференцию" + ], + "Add a contact": [ + null, + "Добавть контакт" + ], + "No users found": [ + null, + "Пользователи не найдены" + ], + "Click to add as a chat contact": [ + null, + "Добавить контакт" + ], + "Room name": [ + null, + "Имя конференции" + ], + "Nickname": [ + null, + "Псевдоним" + ], + "Server": [ + null, + "Сервер" + ], + "Join": [ + null, + "Подключиться" + ], + "Show rooms": [ + null, + "Обновить" + ], + "Rooms": [ + null, + "Конфер." + ], + "No rooms on %1$s": [ + null, + "Нет доступных конференций %1$s" + ], + "Rooms on %1$s": [ + null, + "Конференции %1$s:" + ], + "Click to open this room": [ + null, + "Зайти в конференцию" + ], + "Show more information on this room": [ + null, + "Показать больше информации об этой конференции" + ], + "Description:": [ + null, + "Описание:" + ], + "Occupants:": [ + null, + "Участники:" + ], + "Features:": [ + null, + "Свойства:" + ], + "Requires authentication": [ + null, + "Требуется авторизация" + ], + "Hidden": [ + null, + "Скрыто" + ], + "Requires an invitation": [ + null, + "Требуется приглашение" + ], + "Moderated": [ + null, + "Модерируемая" + ], + "Non-anonymous": [ + null, + "Не анонимная" + ], + "Open room": [ + null, + "Открыть конференцию" + ], + "Permanent room": [ + null, + "Перманентная конференция" + ], + "Public": [ + null, + "Публичный" + ], + "Semi-anonymous": [ + null, + "Частично анонимная" + ], + "Temporary room": [ + null, + "Временная конференция" + ], + "Unmoderated": [ + null, + "Немодерируемая" + ], + "This user is a moderator": [ + null, + "Модератор" + ], + "This user can send messages in this room": [ + null, + "Собеседник" + ], + "This user can NOT send messages in this room": [ + null, + "Пользователь не может посылать сообщения в эту комнату" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Сообщение" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Write in 3rd person": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Сохранить" + ], + "Cancel": [ + null, + "Отменить" + ], + "An error occurred while trying to save the form.": [ + null, + "При сохранение формы произошла ошибка." + ], + "This chatroom requires a password": [ + null, + "Для доступа в конфер. необходим пароль." + ], + "Password: ": [ + null, + "Пароль: " + ], + "Submit": [ + null, + "Отправить" + ], + "This room is not anonymous": [ + null, + "Эта комната не анонимная" + ], + "This room now shows unavailable members": [ + null, + "Эта комната показывает доступных собеседников" + ], + "This room does not show unavailable members": [ + null, + "Эта комната не показывает недоступных собеседников" + ], + "Non-privacy-related room configuration has changed": [ + null, + "" + ], + "Room logging is now enabled": [ + null, + "" + ], + "Room logging is now disabled": [ + null, + "" + ], + "This room is now non-anonymous": [ + null, + "Эта комната не анонимная" + ], + "This room is now semi-anonymous": [ + null, + "Эта комната частично анонимная" + ], + "This room is now fully-anonymous": [ + null, + "Эта комната стала полностью анонимной" + ], + "A new room has been created": [ + null, + "Новая комната была создана" + ], + "You have been banned from this room": [ + null, + "Вам запрещено подключатся к этой конференции" + ], + "You have been kicked from this room": [ + null, + "Вам запрещено подключатся к этой конференции" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "%1$s удалён потому что изменились права" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Вы отключены от этой конференции потому что режим изменился: только-участники" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Вы отключены от этой конференции потому что сервись конференций выключен." + ], + "%1$s has been banned": [ + null, + "%1$s забанен" + ], + "%1$s has been kicked out": [ + null, + "%1$s выдворен" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s has been removed because of an affiliation change" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s удалён потому что не участник" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Вас нет в списке этой конференции" + ], + "No nickname was specified": [ + null, + "Вы не указали псевдоним" + ], + "You are not allowed to create new rooms": [ + null, + "Вы не имеете права создавать конфер." + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Псевдоним не согласуется с правилами конфер." + ], + "Your nickname is already taken": [ + null, + "Ваш ник уже используется другим пользователем" + ], + "This room does not (yet) exist": [ + null, + "Эта комната не существует" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Конференция достигла максимального количества участников" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Тема %2$s устатновлена %1$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Удалить контакт" + ], + "Click to chat with this contact": [ + null, + "Начать общение" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "%1$s" + ], + "Click here to write a custom status message": [ + null, + "Редактировать произвольный статус" + ], + "Click to change your chat status": [ + null, + "Изменить ваш статус" + ], + "Custom status": [ + null, + "Произвольный статус" + ], + "online": [ + null, + "на связи" + ], + "busy": [ + null, + "занят" + ], + "away for long": [ + null, + "отошёл на долго" + ], + "away": [ + null, + "отошёл" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Пароль:" + ], + "Log In": [ + null, + "Войти" + ], + "Sign in": [ + null, + "Подписать" + ], + "Toggle chat": [ + null, + "" + ] + } } } \ No newline at end of file diff --git a/locale/ru/LC_MESSAGES/ru.js b/locale/ru/LC_MESSAGES/ru.js deleted file mode 100644 index f0273f7f3..000000000 --- a/locale/ru/LC_MESSAGES/ru.js +++ /dev/null @@ -1,532 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": - - -{ - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.4", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2013-09-15 22:06+0200", - "PO-Revision-Date": "2013-09-29 17:24+0300", - "Last-Translator": "Boris Kocherov ", - "Language-Team": "", - "Language": "ru", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "X-Generator": "Poedit 1.5.5" - }, - "unencrypted": [ - null, - "не зашифровано" - ], - "unverified": [ - null, - "непроверено" - ], - "verified": [ - null, - "проверено" - ], - "finished": [ - null, - "закончено" - ], - "Disconnected": [ - null, - "Отключено" - ], - "Error": [ - null, - "Ошибка" - ], - "Connecting": [ - null, - "Соединение" - ], - "Connection Failed": [ - null, - "Не удалось соединится" - ], - "Authenticating": [ - null, - "Авторизация" - ], - "Authentication Failed": [ - null, - "Не удалось авторизоваться" - ], - "Disconnecting": [ - null, - "Отключаемся" - ], - "Private key generated.": [ - null, - "Приватный ключ сгенерирован." - ], - "Personal message": [ - null, - "Введите сообщение" - ], - "What's this?": [ - null, - "Что это?" - ], - "me": [ - null, - "Я" - ], - "Show this menu": [ - null, - "Показать это меню" - ], - "Remove messages": [ - null, - "Удалить сообщения" - ], - "Your message could not be sent": [ - null, - "Ваше сообщение не послано" - ], - "Your messages are not encrypted anymore": [ - null, - "Ваши сообщения больше не шифруются" - ], - "Your messages are now encrypted but your buddy's identity has not been verified.": [ - null, - "Ваши сообщения шифруются, но ваша учётная запись не проверена вашим собеседником." - ], - "Your buddy's identify has been verified.": [ - null, - "Ваша учётная запись проверена вашим собеседником." - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "Ваши сообщения не шифруются. Нажмите здесь чтобы настроить шифрование." - ], - "Your messages are encrypted, but your buddy has not been verified.": [ - null, - "Ваши сообщения шифруются, но ваш контакт не проверен." - ], - "Your messages are encrypted and your buddy verified.": [ - null, - "Ваши сообщения шифруются и ваш контакт проверен" - ], - "Contacts": [ - null, - "Контакты" - ], - "Online": [ - null, - "В сети" - ], - "Busy": [ - null, - "Занят" - ], - "Away": [ - null, - "Отошёл" - ], - "Offline": [ - null, - "Не в сети" - ], - "Click to add new chat contacts": [ - null, - "Добавить новую конференцию" - ], - "Add a contact": [ - null, - "Добавть контакт" - ], - "Contact username": [ - null, - "Имя пользователя" - ], - "Add": [ - null, - "Добавить" - ], - "Contact name": [ - null, - "Имя контакта" - ], - "Search": [ - null, - "Поиск" - ], - "No users found": [ - null, - "Пользователи не найдены" - ], - "Click to add as a chat contact": [ - null, - "Добавить контакт" - ], - "Click to open this room": [ - null, - "Зайти в конференцию" - ], - "Show more information on this room": [ - null, - "Показать больше информации об этой конференции" - ], - "Description:": [ - null, - "Описание:" - ], - "Occupants:": [ - null, - "Участники:" - ], - "Features:": [ - null, - "Свойства:" - ], - "Requires authentication": [ - null, - "Требуется авторизация" - ], - "Hidden": [ - null, - "Скрыто" - ], - "Requires an invitation": [ - null, - "Требуется приглашение" - ], - "Moderated": [ - null, - "Модерируемая" - ], - "Non-anonymous": [ - null, - "Не анонимная" - ], - "Open room": [ - null, - "Открыть конференцию" - ], - "Permanent room": [ - null, - "Перманентная конференция" - ], - "Public": [ - null, - "Публичный" - ], - "Semi-anonymous": [ - null, - "Частично анонимная" - ], - "Temporary room": [ - null, - "Временная конференция" - ], - "Unmoderated": [ - null, - "Немодерируемая" - ], - "Rooms": [ - null, - "Конфер." - ], - "Room name": [ - null, - "Имя конференции" - ], - "Nickname": [ - null, - "Псевдоним" - ], - "Server": [ - null, - "Сервер" - ], - "Join": [ - null, - "Подключиться" - ], - "Show rooms": [ - null, - "Обновить" - ], - "No rooms on %1$s": [ - null, - "Нет доступных конференций %1$s" - ], - "Rooms on %1$s": [ - null, - "Конференции %1$s:" - ], - "Set chatroom topic": [ - null, - "Установить тему" - ], - "Kick user from chatroom": [ - null, - "Отключить пользователя от кнофер." - ], - "Ban user from chatroom": [ - null, - "Забанить пользователя в этой конф." - ], - "Message": [ - null, - "Сообщение" - ], - "Save": [ - null, - "Сохранить" - ], - "Cancel": [ - null, - "Отменить" - ], - "An error occurred while trying to save the form.": [ - null, - "При сохранение формы произошла ошибка." - ], - "This chatroom requires a password": [ - null, - "Для доступа в конфер. необходим пароль." - ], - "Password: ": [ - null, - "Пароль: " - ], - "Submit": [ - null, - "Отправить" - ], - "This room is not anonymous": [ - null, - "Эта комната не анонимная" - ], - "This room now shows unavailable members": [ - null, - "Эта комната показывает доступных собеседников" - ], - "This room does not show unavailable members": [ - null, - "Эта комната не показывает недоступных собеседников" - ], - "This room is now non-anonymous": [ - null, - "Эта комната не анонимная" - ], - "This room is now semi-anonymous": [ - null, - "Эта комната частично анонимная" - ], - "This room is now fully-anonymous": [ - null, - "Эта комната стала полностью анонимной" - ], - "A new room has been created": [ - null, - "Новая комната была создана" - ], - "Your nickname has been changed": [ - null, - "Ваш псевдоним уже используется другим пользователем" - ], - "%1$s has been banned": [ - null, - "%1$s забанен" - ], - "%1$s has been kicked out": [ - null, - "%1$s выдворен" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "%1$s has been removed because of an affiliation change" - ], - "%1$s has been removed for not being a member": [ - null, - "%1$s удалён потому что не участник" - ], - "You have been banned from this room": [ - null, - "Вам запрещено подключатся к этой конференции" - ], - "You have been kicked from this room": [ - null, - "Вам запрещено подключатся к этой конференции" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "%1$s удалён потому что изменились права" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Вы отключены от этой конференции потому что режим изменился: только-участники" - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Вы отключены от этой конференции потому что сервись конференций выключен." - ], - "You are not on the member list of this room": [ - null, - "Вас нет в списке этой конференции" - ], - "No nickname was specified": [ - null, - "Вы не указали псевдоним" - ], - "You are not allowed to create new rooms": [ - null, - "Вы не имеете права создавать конфер." - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "Псевдоним не согласуется с правилами конфер." - ], - "Your nickname is already taken": [ - null, - "Ваш ник уже используется другим пользователем" - ], - "This room does not (yet) exist": [ - null, - "Эта комната не существует" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Конференция достигла максимального количества участников" - ], - "Topic set by %1$s to: %2$s": [ - null, - "Тема %2$s устатновлена %1$s" - ], - "This user is a moderator": [ - null, - "Модератор" - ], - "This user can send messages in this room": [ - null, - "Собеседник" - ], - "This user can NOT send messages in this room": [ - null, - "Пользователь не может посылать сообщения в эту комнату" - ], - "Click to chat with this contact": [ - null, - "Начать общение" - ], - "Click to remove this contact": [ - null, - "Удалить контакт" - ], - "This contact is busy": [ - null, - "Занят" - ], - "This contact is online": [ - null, - "В сети" - ], - "This contact is offline": [ - null, - "Не в сети" - ], - "This contact is unavailable": [ - null, - "Не доступен" - ], - "This contact is away for an extended period": [ - null, - "На долго отошёл" - ], - "This contact is away": [ - null, - "Отошёл" - ], - "Contact requests": [ - null, - "Запросы на авторизацию" - ], - "My contacts": [ - null, - "Контакты" - ], - "Pending contacts": [ - null, - "Собеседники ожидающие авторизации" - ], - "Custom status": [ - null, - "Произвольный статус" - ], - "Click to change your chat status": [ - null, - "Изменить ваш статус" - ], - "Click here to write a custom status message": [ - null, - "Редактировать произвольный статус" - ], - "online": [ - null, - "на связи" - ], - "busy": [ - null, - "занят" - ], - "away for long": [ - null, - "отошёл на долго" - ], - "away": [ - null, - "отошёл" - ], - "I am %1$s": [ - null, - "%1$s" - ], - "Sign in": [ - null, - "Подписать" - ], - "XMPP/Jabber Username:": [ - null, - "JID:" - ], - "Password:": [ - null, - "Пароль:" - ], - "Log In": [ - null, - "Войти" - ], - "Online Contacts": [ - null, - "Cписок собеседников" - ] - } -} - - - - }; - if (typeof define === 'function' && define.amd) { - define("ru", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.ru = factory(new Jed(translations)); - } -}(this, function (ru) { - return ru; -})); diff --git a/locale/zh/LC_MESSAGES/converse.json b/locale/zh/LC_MESSAGES/converse.json index 3eeed150a..488f7d899 100644 --- a/locale/zh/LC_MESSAGES/converse.json +++ b/locale/zh/LC_MESSAGES/converse.json @@ -1,168 +1,659 @@ { - "converse": { - "":{ - "project-id-version": "Converse.js 0.4", - "report-msgid-bugs-to":"", - "pot-creation-date":"2014-07-06 17:58+0200", - "po-revision-date":"2014-07-06 18:05+0200", - "last-translator":"Huxisuz Hu ", - "language-team":"Language zh", - "language":"zh", - "mime-version":"1.0", - "content-type":"text/plain; charset=UTF-8", - "content-transfer-encoding":"8bit", - "domain":"converse", - "lang":"zh", - "plural_forms":"nplurals=2; plural=(n != 1);" - }, - "unencrypted": [null,"未加密"], - "unverified": [null,"未验证"], - "verified": [null,"已验证"], - "finished": [null,"结束了"], - "This contact is busy": [null,"对方忙碌中"], - "This contact is online": [null,"对方在线中"], - "This contact is offline": [null,"对方已下线"], - "This contact is unavailable": [null,"对方免打扰"], - "This contact is away for an extended period": [null,"对方暂时离开"], - "This contact is away": [null,"对方离开"], - "Disconnected": [null,"连接已断开"], - "Error": [null,"错误"], - "Connecting": [null,"连接中"], - "Connection Failed": [null,"连接失败"], - "Authenticating": [null,"验证中"], - "Authentication Failed": [null,"验证失败"], - "Disconnecting": [null,"断开链接中"], - "Online Contacts": [null,"在线好友"], - "Re-establishing encrypted session": [null,"重新建立加密会话"], - "Generating private key.": [null,"正在生成私钥"], - "Your browser might become unresponsive.": [null,"您的浏览器可能会暂时无响应"], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [null,"来自%1$s的验证请求 \n\n对方正在试图验证您的信息,请回答如下问题:\n\n%2$s"], - "Could not verify this user's identify.": [null,"无法验证对方信息。"], - "Exchanging private key with buddy.": [null,"正在与对方交换私钥"], - "Personal message": [null,"私信"], - "me": [null,"我"], - "Show this menu": [null,"显示此项菜单"], - "Write in the third person": [null,"以第三者身份写"], - "Remove messages": [null,"移除消息"], - "Are you sure you want to clear the messages from this chat box?": [null,"你确定清除此次的聊天记录吗?"], - "Your message could not be sent": [null,"您的消息无法送出"], - "We received an unencrypted message": [null,"我们收到了一条未加密的信息"], - "We received an unreadable encrypted message": [null,"我们收到一条无法读取的信息"], - "This user has requested an encrypted session.": [null,"此用户请求了一个加密会话。"], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [null,"这里是指纹。请与 %1$s 确认。\n\n您的 %2$s 指纹: %3$s\n\n%1$s 的指纹: %4$s\n\n如果确认符合,请点击OK,否则点击取消"], - "What is your security question?": [null,"您的安全问题是?"], - "What is the answer to the security question?": [null,"此安全问题的答案是?"], - "Invalid authentication scheme provided": [null,"非法的认证方式"], - "Your messages are not encrypted anymore": [null,"您的消息将不再被加密"], - "Your messages are now encrypted but your buddy's identity has not been verified.": [null,"您的消息现已加密,但是对方身份尚未验证"], - "Your buddy's identify has been verified.": [null,"对方的身份已通过验证。"], - "Your buddy has ended encryption on their end, you should do the same.": [null,"对方已结束加密,您也需要做同样的操作。"], - "Your messages are not encrypted. Click here to enable OTR encryption.": [null,"您的消息未加密。点击这里来启用OTR加密"], - "Your messages are encrypted, but your buddy has not been verified.": [null,"您的消息已加密,但对方未通过验证"], - "Your messages are encrypted and your buddy verified.": [null,"您的消息已加密,对方已验证。"], - "Your buddy has closed their end of the private session, you should do the same": [null,"对方已关闭私有会话,您也应该关闭"], - "End encrypted conversation": [null,"结束加密的会话"], - "Refresh encrypted conversation": [null,"刷新加密的会话"], - "Start encrypted conversation": [null,"开始加密的会话"], - "Verify with fingerprints": [null,"验证指纹"], - "Verify with SMP": [null,"验证SMP"], - "What's this?": [null,"这是什么?"], - "Online": [null,"在线"], - "Busy": [null,"忙碌中"], - "Away": [null,"离开"], - "Offline": [null,"离线"], - "Contacts": [null,"联系人"], - "Contact name": [null,"联系人名称"], - "Search": [null,"搜索"], - "Contact username": [null,"联系人姓名"], - "Add": [null,"添加"], - "Click to add new chat contacts": [null,"点击添加新联系人"], - "Add a contact": [null,"添加联系人"], - "No users found": [null,"未找到用户"], - "Click to add as a chat contact": [null,"点击添加为好友"], - "Room name": [null,"聊天室名称"], - "Nickname": [null,"昵称"], - "Server": [null,"服务器"], - "Join": [null,"加入"], - "Show rooms": [null,"显示所有聊天室"], - "Rooms": [null,"聊天室"], - "No rooms on %1$s": [null,"%1$s 上没有聊天室"], - "Rooms on %1$s": [null,"%1$s 上的聊天室"], - "Click to open this room": [null,"打开聊天室"], - "Show more information on this room": [null,"显示次聊天室的更多信息"], - "Description:": [null,"描述: "], - "Occupants:": [null,"成员:"], - "Features:": [null,"特性:"], - "Requires authentication": [null,"需要验证"], - "Hidden": [null,"隐藏的"], - "Requires an invitation": [null,"需要被邀请"], - "Moderated": [null,"发言受限"], - "Non-anonymous": [null,"非匿名"], - "Open room": [null,"打开聊天室"], - "Permanent room": [null,"永久聊天室"], - "Public": [null,"公开的"], - "Semi-anonymous": [null,"半匿名"], - "Temporary room": [null,"临时聊天室"], - "Unmoderated": [null,"无发言限制"], - "Set chatroom topic": [null,"设置房间主题"], - "Kick user from chatroom": [null,"把用户踢出房间"], - "Ban user from chatroom": [null,"阻止此用户进入房间"], - "Message": [null,"信息"], - "Save": [null,"保存"], - "Cancel": [null,"取消"], - "An error occurred while trying to save the form.": [null,"保存表单是出错。"], - "This chatroom requires a password": [null,"此聊天室需要密码"], - "Password: ": [null,"密码:"], - "Submit": [null,"发送"], - "This room is not anonymous": [null,"此为非匿名聊天室"], - "This room now shows unavailable members": [null,"此聊天室显示不可用用户"], - "This room does not show unavailable members": [null,"此聊天室不显示不可用用户"], - "Non-privacy-related room configuration has changed": [null,"此聊天室设置(非私密性)已改变"], - "Room logging is now enabled": [null,"聊天室聊天记录已启用"], - "Room logging is now disabled": [null,"聊天室聊天记录已禁用"], - "This room is now non-anonymous": [null,"此聊天室非匿名"], - "This room is now semi-anonymous": [null,"此聊天室半匿名"], - "This room is now fully-anonymous": [null,"此聊天室完全匿名"], - "A new room has been created": [null,"新聊天室已创建"], - "Your nickname has been changed": [null,"您的昵称被更改了"], - "%1$s has been banned": [null,"%1$s 已被禁止"], - "%1$s has been kicked out": [null,"%1$s 已被踢出"], - "%1$s has been removed because of an affiliation change": [null,"由于关系解除、%1$s 已被移除"], - "%1$s has been removed for not being a member": [null,"由于不是成员、%1$s 已被移除"], - "You have been banned from this room": [null,"您已被此聊天室禁止入内"], - "You have been kicked from this room": [null,"您已被踢出次房间"], - "You have been removed from this room because of an affiliation change": [null,"由于关系变化,您已被移除此房间"], - "You have been removed from this room because the room has changed to members-only and you're not a member": [null,"您已被移除此房间因为此房间更改为只允许成员加入,而您非成员"], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [null,"由于服务不可用,您已被移除此房间。"], - "You are not on the member list of this room": [null,"您并非此房间成员"], - "No nickname was specified": [null,"未指定昵称"], - "You are not allowed to create new rooms": [null,"您可此创建新房间了"], - "Your nickname doesn't conform to this room's policies": [null,"您的昵称不符合此房间标准"], - "Your nickname is already taken": [null,"您的昵称已被占用"], - "This room does not (yet) exist": [null,"此房间不存在"], - "This room has reached it's maximum number of occupants": [null,"此房间人数已达上线"], - "Topic set by %1$s to: %2$s": [null,"%1$s 设置话题为: %2$s"], - "This user is a moderator": [null,"此用户是主持人"], - "This user can send messages in this room": [null,"此用户在这房间里可发消息"], - "This user can NOT send messages in this room": [null,"此用户不可在此房间发消息"], - "Minimized": [null,"最小化的"], - "Click to remove this contact": [null,"点击移除联系人"], - "Accept": [null,"接受"], - "Click to chat with this contact": [null,"点击与对方交谈"], - "My contacts": [null,"我的好友列表"], - "Contact requests": [null,"来自好友的请求"], - "Pending contacts": [null,"保留中的联系人"], - "Custom status": [null,"DIY状态"], - "online": [null,"在线"], - "busy": [null,"忙碌"], - "away for long": [null,"长时间离开"], - "away": [null,"离开"], - "I am %1$s": [null,"我现在%1$s"], - "Click here to write a custom status message": [null,"点击这里,填写状态信息"], - "Click to change your chat status": [null,"点击这里改变聊天状态"], - "XMPP/Jabber Username:": [null,"XMPP/Jabber用户名:"], - "Password:": [null,"密码:"], - "Log In": [null,"登录"], - "Sign in": [null,"登录"], - "Toggle chat": [null,"折叠聊天窗口"] -} + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "zh" + }, + "unencrypted": [ + null, + "未加密" + ], + "unverified": [ + null, + "未验证" + ], + "verified": [ + null, + "已验证" + ], + "finished": [ + null, + "结束了" + ], + "This contact is busy": [ + null, + "对方忙碌中" + ], + "This contact is online": [ + null, + "对方在线中" + ], + "This contact is offline": [ + null, + "对方已下线" + ], + "This contact is unavailable": [ + null, + "对方免打扰" + ], + "This contact is away for an extended period": [ + null, + "对方暂时离开" + ], + "This contact is away": [ + null, + "对方离开" + ], + "My contacts": [ + null, + "我的好友列表" + ], + "Pending contacts": [ + null, + "保留中的联系人" + ], + "Contact requests": [ + null, + "来自好友的请求" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "联系人" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "错误" + ], + "Connecting": [ + null, + "连接中" + ], + "Authenticating": [ + null, + "验证中" + ], + "Authentication Failed": [ + null, + "验证失败" + ], + "Online Contacts": [ + null, + "在线好友" + ], + "Re-establishing encrypted session": [ + null, + "重新建立加密会话" + ], + "Generating private key.": [ + null, + "正在生成私钥" + ], + "Your browser might become unresponsive.": [ + null, + "您的浏览器可能会暂时无响应" + ], + "Could not verify this user's identify.": [ + null, + "无法验证对方信息。" + ], + "Personal message": [ + null, + "私信" + ], + "me": [ + null, + "我" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "显示此项菜单" + ], + "Write in the third person": [ + null, + "以第三者身份写" + ], + "Remove messages": [ + null, + "移除消息" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "你确定清除此次的聊天记录吗?" + ], + "Your message could not be sent": [ + null, + "您的消息无法送出" + ], + "We received an unencrypted message": [ + null, + "我们收到了一条未加密的信息" + ], + "We received an unreadable encrypted message": [ + null, + "我们收到一条无法读取的信息" + ], + "This user has requested an encrypted session.": [ + null, + "此用户请求了一个加密会话。" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "这里是指纹。请与 %1$s 确认。\n\n您的 %2$s 指纹: %3$s\n\n%1$s 的指纹: %4$s\n\n如果确认符合,请点击OK,否则点击取消" + ], + "What is your security question?": [ + null, + "您的安全问题是?" + ], + "What is the answer to the security question?": [ + null, + "此安全问题的答案是?" + ], + "Invalid authentication scheme provided": [ + null, + "非法的认证方式" + ], + "Your messages are not encrypted anymore": [ + null, + "您的消息将不再被加密" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "您的消息未加密。点击这里来启用OTR加密" + ], + "End encrypted conversation": [ + null, + "结束加密的会话" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "刷新加密的会话" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "开始加密的会话" + ], + "Verify with fingerprints": [ + null, + "验证指纹" + ], + "Verify with SMP": [ + null, + "验证SMP" + ], + "What's this?": [ + null, + "这是什么?" + ], + "Online": [ + null, + "在线" + ], + "Busy": [ + null, + "忙碌中" + ], + "Away": [ + null, + "离开" + ], + "Offline": [ + null, + "离线" + ], + "Contact name": [ + null, + "联系人名称" + ], + "Search": [ + null, + "搜索" + ], + "Contact username": [ + null, + "联系人姓名" + ], + "Add": [ + null, + "添加" + ], + "Click to add new chat contacts": [ + null, + "点击添加新联系人" + ], + "Add a contact": [ + null, + "添加联系人" + ], + "No users found": [ + null, + "未找到用户" + ], + "Click to add as a chat contact": [ + null, + "点击添加为好友" + ], + "Room name": [ + null, + "聊天室名称" + ], + "Nickname": [ + null, + "昵称" + ], + "Server": [ + null, + "服务器" + ], + "Join": [ + null, + "加入" + ], + "Show rooms": [ + null, + "显示所有聊天室" + ], + "Rooms": [ + null, + "聊天室" + ], + "No rooms on %1$s": [ + null, + "%1$s 上没有聊天室" + ], + "Rooms on %1$s": [ + null, + "%1$s 上的聊天室" + ], + "Click to open this room": [ + null, + "打开聊天室" + ], + "Show more information on this room": [ + null, + "显示次聊天室的更多信息" + ], + "Description:": [ + null, + "描述: " + ], + "Occupants:": [ + null, + "成员:" + ], + "Features:": [ + null, + "特性:" + ], + "Requires authentication": [ + null, + "需要验证" + ], + "Hidden": [ + null, + "隐藏的" + ], + "Requires an invitation": [ + null, + "需要被邀请" + ], + "Moderated": [ + null, + "发言受限" + ], + "Non-anonymous": [ + null, + "非匿名" + ], + "Open room": [ + null, + "打开聊天室" + ], + "Permanent room": [ + null, + "永久聊天室" + ], + "Public": [ + null, + "公开的" + ], + "Semi-anonymous": [ + null, + "半匿名" + ], + "Temporary room": [ + null, + "临时聊天室" + ], + "Unmoderated": [ + null, + "无发言限制" + ], + "This user is a moderator": [ + null, + "此用户是主持人" + ], + "This user can send messages in this room": [ + null, + "此用户在这房间里可发消息" + ], + "This user can NOT send messages in this room": [ + null, + "此用户不可在此房间发消息" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "信息" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "保存" + ], + "Cancel": [ + null, + "取消" + ], + "An error occurred while trying to save the form.": [ + null, + "保存表单是出错。" + ], + "This chatroom requires a password": [ + null, + "此聊天室需要密码" + ], + "Password: ": [ + null, + "密码:" + ], + "Submit": [ + null, + "发送" + ], + "This room is not anonymous": [ + null, + "此为非匿名聊天室" + ], + "This room now shows unavailable members": [ + null, + "此聊天室显示不可用用户" + ], + "This room does not show unavailable members": [ + null, + "此聊天室不显示不可用用户" + ], + "Non-privacy-related room configuration has changed": [ + null, + "此聊天室设置(非私密性)已改变" + ], + "Room logging is now enabled": [ + null, + "聊天室聊天记录已启用" + ], + "Room logging is now disabled": [ + null, + "聊天室聊天记录已禁用" + ], + "This room is now non-anonymous": [ + null, + "此聊天室非匿名" + ], + "This room is now semi-anonymous": [ + null, + "此聊天室半匿名" + ], + "This room is now fully-anonymous": [ + null, + "此聊天室完全匿名" + ], + "A new room has been created": [ + null, + "新聊天室已创建" + ], + "You have been banned from this room": [ + null, + "您已被此聊天室禁止入内" + ], + "You have been kicked from this room": [ + null, + "您已被踢出次房间" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "由于关系变化,您已被移除此房间" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "您已被移除此房间因为此房间更改为只允许成员加入,而您非成员" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "由于服务不可用,您已被移除此房间。" + ], + "%1$s has been banned": [ + null, + "%1$s 已被禁止" + ], + "%1$s has been kicked out": [ + null, + "%1$s 已被踢出" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "由于关系解除、%1$s 已被移除" + ], + "%1$s has been removed for not being a member": [ + null, + "由于不是成员、%1$s 已被移除" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "您并非此房间成员" + ], + "No nickname was specified": [ + null, + "未指定昵称" + ], + "You are not allowed to create new rooms": [ + null, + "您可此创建新房间了" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "您的昵称不符合此房间标准" + ], + "Your nickname is already taken": [ + null, + "您的昵称已被占用" + ], + "This room does not (yet) exist": [ + null, + "此房间不存在" + ], + "This room has reached it's maximum number of occupants": [ + null, + "此房间人数已达上线" + ], + "Topic set by %1$s to: %2$s": [ + null, + "%1$s 设置话题为: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "最小化的" + ], + "Click to remove this contact": [ + null, + "点击移除联系人" + ], + "Click to chat with this contact": [ + null, + "点击与对方交谈" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "我现在%1$s" + ], + "Click here to write a custom status message": [ + null, + "点击这里,填写状态信息" + ], + "Click to change your chat status": [ + null, + "点击这里改变聊天状态" + ], + "Custom status": [ + null, + "DIY状态" + ], + "online": [ + null, + "在线" + ], + "busy": [ + null, + "忙碌" + ], + "away for long": [ + null, + "长时间离开" + ], + "away": [ + null, + "离开" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "密码:" + ], + "Log In": [ + null, + "登录" + ], + "Sign in": [ + null, + "登录" + ], + "Toggle chat": [ + null, + "折叠聊天窗口" + ] + } + } +} \ No newline at end of file diff --git a/locale/zh/LC_MESSAGES/zh.js b/locale/zh/LC_MESSAGES/zh.js deleted file mode 100644 index b0e8c1c4e..000000000 --- a/locale/zh/LC_MESSAGES/zh.js +++ /dev/null @@ -1,184 +0,0 @@ -(function (root, factory) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "Project-Id-Version": "Converse.js 0.8", - "Report-Msgid-Bugs-To": "", - "POT-Creation-Date": "2014-01-07 11:12+0900", - "PO-Revision-Date": "2014-01-07 11:32+0900", - "Last-Translator": "Huxisuz Hu ", - "Language-Team": "Language zh", - "Language": "zh", - "MIME-Version": "1.0", - "Content-Type": "text/plain; charset=UTF-8", - "Content-Transfer-Encoding": "8bit", - "Plural-Forms": "nplurals=1; plural=0;" - }, - "unencrypted": [null,"未加密"], - "unverified": [null,"未验证"], - "verified": [null,"已验证"], - "finished": [null,"结束了"], - "This contact is busy": [null,"对方忙碌中"], - "This contact is online": [null,"对方在线中"], - "This contact is offline": [null,"对方已下线"], - "This contact is unavailable": [null,"对方免打扰"], - "This contact is away for an extended period": [null,"对方暂时离开"], - "This contact is away": [null,"对方离开"], - "Disconnected": [null,"连接已断开"], - "Error": [null,"错误"], - "Connecting": [null,"连接中"], - "Connection Failed": [null,"连接失败"], - "Authenticating": [null,"验证中"], - "Authentication Failed": [null,"验证失败"], - "Disconnecting": [null,"断开链接中"], - "Online Contacts": [null,"在线好友"], - "Re-establishing encrypted session": [null,"重新建立加密会话"], - "Generating private key.": [null,"正在生成私钥"], - "Your browser might become unresponsive.": [null,"您的浏览器可能会暂时无响应"], - "Authentication request from %1$s\n\nYour buddy is attempting to verify your identity, by asking you the question below.\n\n%2$s": [null,"来自%1$s的验证请求 \n\n对方正在试图验证您的信息,请回答如下问题:\n\n%2$s"], - "Could not verify this user's identify.": [null,"无法验证对方信息。"], - "Exchanging private key with buddy.": [null,"正在与对方交换私钥"], - "Personal message": [null,"私信"], - "me": [null,"我"], - "Show this menu": [null,"显示此项菜单"], - "Write in the third person": [null,"以第三者身份写"], - "Remove messages": [null,"移除消息"], - "Are you sure you want to clear the messages from this chat box?": [null,"你确定清除此次的聊天记录吗?"], - "Your message could not be sent": [null,"您的消息无法送出"], - "We received an unencrypted message": [null,"我们收到了一条未加密的信息"], - "We received an unreadable encrypted message": [null,"我们收到一条无法读取的信息"], - "This user has requested an encrypted session.": [null,"此用户请求了一个加密会话。"], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [null,"这里是指纹。请与 %1$s 确认。\n\n您的 %2$s 指纹: %3$s\n\n%1$s 的指纹: %4$s\n\n如果确认符合,请点击OK,否则点击取消"], - "What is your security question?": [null,"您的安全问题是?"], - "What is the answer to the security question?": [null,"此安全问题的答案是?"], - "Invalid authentication scheme provided": [null,"非法的认证方式"], - "Your messages are not encrypted anymore": [null,"您的消息将不再被加密"], - "Your messages are now encrypted but your buddy's identity has not been verified.": [null,"您的消息现已加密,但是对方身份尚未验证"], - "Your buddy's identify has been verified.": [null,"对方的身份已通过验证。"], - "Your buddy has ended encryption on their end, you should do the same.": [null,"对方已结束加密,您也需要做同样的操作。"], - "Your messages are not encrypted. Click here to enable OTR encryption.": [null,"您的消息未加密。点击这里来启用OTR加密"], - "Your messages are encrypted, but your buddy has not been verified.": [null,"您的消息已加密,但对方未通过验证"], - "Your messages are encrypted and your buddy verified.": [null,"您的消息已加密,对方已验证。"], - "Your buddy has closed their end of the private session, you should do the same": [null,"对方已关闭私有会话,您也应该关闭"], - "End encrypted conversation": [null,"结束加密的会话"], - "Refresh encrypted conversation": [null,"刷新加密的会话"], - "Start encrypted conversation": [null,"开始加密的会话"], - "Verify with fingerprints": [null,"验证指纹"], - "Verify with SMP": [null,"验证SMP"], - "What's this?": [null,"这是什么?"], - "Online": [null,"在线"], - "Busy": [null,"忙碌中"], - "Away": [null,"离开"], - "Offline": [null,"离线"], - "Contacts": [null,"联系人"], - "Contact name": [null,"联系人名称"], - "Search": [null,"搜索"], - "Contact username": [null,"联系人姓名"], - "Add": [null,"添加"], - "Click to add new chat contacts": [null,"点击添加新联系人"], - "Add a contact": [null,"添加联系人"], - "No users found": [null,"未找到用户"], - "Click to add as a chat contact": [null,"点击添加为好友"], - "Room name": [null,"聊天室名称"], - "Nickname": [null,"昵称"], - "Server": [null,"服务器"], - "Join": [null,"加入"], - "Show rooms": [null,"显示所有聊天室"], - "Rooms": [null,"聊天室"], - "No rooms on %1$s": [null,"%1$s 上没有聊天室"], - "Rooms on %1$s": [null,"%1$s 上的聊天室"], - "Click to open this room": [null,"打开聊天室"], - "Show more information on this room": [null,"显示次聊天室的更多信息"], - "Description:": [null,"描述: "], - "Occupants:": [null,"成员:"], - "Features:": [null,"特性:"], - "Requires authentication": [null,"需要验证"], - "Hidden": [null,"隐藏的"], - "Requires an invitation": [null,"需要被邀请"], - "Moderated": [null,"发言受限"], - "Non-anonymous": [null,"非匿名"], - "Open room": [null,"打开聊天室"], - "Permanent room": [null,"永久聊天室"], - "Public": [null,"公开的"], - "Semi-anonymous": [null,"半匿名"], - "Temporary room": [null,"临时聊天室"], - "Unmoderated": [null,"无发言限制"], - "Set chatroom topic": [null,"设置房间主题"], - "Kick user from chatroom": [null,"把用户踢出房间"], - "Ban user from chatroom": [null,"阻止此用户进入房间"], - "Message": [null,"信息"], - "Save": [null,"保存"], - "Cancel": [null,"取消"], - "An error occurred while trying to save the form.": [null,"保存表单是出错。"], - "This chatroom requires a password": [null,"此聊天室需要密码"], - "Password: ": [null,"密码:"], - "Submit": [null,"发送"], - "This room is not anonymous": [null,"此为非匿名聊天室"], - "This room now shows unavailable members": [null,"此聊天室显示不可用用户"], - "This room does not show unavailable members": [null,"此聊天室不显示不可用用户"], - "Non-privacy-related room configuration has changed": [null,"此聊天室设置(非私密性)已改变"], - "Room logging is now enabled": [null,"聊天室聊天记录已启用"], - "Room logging is now disabled": [null,"聊天室聊天记录已禁用"], - "This room is now non-anonymous": [null,"此聊天室非匿名"], - "This room is now semi-anonymous": [null,"此聊天室半匿名"], - "This room is now fully-anonymous": [null,"此聊天室完全匿名"], - "A new room has been created": [null,"新聊天室已创建"], - "Your nickname has been changed": [null,"您的昵称被更改了"], - "%1$s has been banned": [null,"%1$s 已被禁止"], - "%1$s has been kicked out": [null,"%1$s 已被踢出"], - "%1$s has been removed because of an affiliation change": [null,"由于关系解除、%1$s 已被移除"], - "%1$s has been removed for not being a member": [null,"由于不是成员、%1$s 已被移除"], - "You have been banned from this room": [null,"您已被此聊天室禁止入内"], - "You have been kicked from this room": [null,"您已被踢出次房间"], - "You have been removed from this room because of an affiliation change": [null,"由于关系变化,您已被移除此房间"], - "You have been removed from this room because the room has changed to members-only and you're not a member": [null,"您已被移除此房间因为此房间更改为只允许成员加入,而您非成员"], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [null,"由于服务不可用,您已被移除此房间。"], - "You are not on the member list of this room": [null,"您并非此房间成员"], - "No nickname was specified": [null,"未指定昵称"], - "You are not allowed to create new rooms": [null,"您可此创建新房间了"], - "Your nickname doesn't conform to this room's policies": [null,"您的昵称不符合此房间标准"], - "Your nickname is already taken": [null,"您的昵称已被占用"], - "This room does not (yet) exist": [null,"此房间不存在"], - "This room has reached it's maximum number of occupants": [null,"此房间人数已达上线"], - "Topic set by %1$s to: %2$s": [null,"%1$s 设置话题为: %2$s"], - "This user is a moderator": [null,"此用户是主持人"], - "This user can send messages in this room": [null,"此用户在这房间里可发消息"], - "This user can NOT send messages in this room": [null,"此用户不可在此房间发消息"], - "Minimized": [null,"最小化的"], - "Click to remove this contact": [null,"点击移除联系人"], - "Accept": [null,"接受"], - "Click to chat with this contact": [null,"点击与对方交谈"], - "My contacts": [null,"我的好友列表"], - "Contact requests": [null,"来自好友的请求"], - "Pending contacts": [null,"保留中的联系人"], - "Custom status": [null,"DIY状态"], - "online": [null,"在线"], - "busy": [null,"忙碌"], - "away for long": [null,"长时间离开"], - "away": [null,"离开"], - "I am %1$s": [null,"我现在%1$s"], - "Click here to write a custom status message": [null,"点击这里,填写状态信息"], - "Click to change your chat status": [null,"点击这里改变聊天状态"], - "XMPP/Jabber Username:": [null,"XMPP/Jabber用户名:"], - "Password:": [null,"密码:"], - "Log In": [null,"登录"], - "Sign in": [null,"登录"], - "Toggle chat": [null,"折叠聊天窗口"] - } - } - }; - if (typeof define === 'function' && define.amd) { - define("zh", ['jed'], function () { - return factory(new Jed(translations)); - }); - } else { - if (!window.locales) { - window.locales = {}; - } - window.locales.zh = factory(new Jed(translations)); - } -}(this, function (zh) { - return zh; -})); diff --git a/main.js b/main.js index 092425956..def5ed5a5 100644 --- a/main.js +++ b/main.js @@ -58,22 +58,22 @@ require.config({ // Locales paths "locales": "locale/locales", "jed": "components/jed/jed", - "af": "locale/af/LC_MESSAGES/af", - "de": "locale/de/LC_MESSAGES/de", - "en": "locale/en/LC_MESSAGES/en", - "es": "locale/es/LC_MESSAGES/es", - "fr": "locale/fr/LC_MESSAGES/fr", - "he": "locale/he/LC_MESSAGES/he", - "hu": "locale/hu/LC_MESSAGES/hu", - "id": "locale/id/LC_MESSAGES/id", - "it": "locale/it/LC_MESSAGES/it", - "ja": "locale/ja/LC_MESSAGES/ja", - "nb": "locale/nb/LC_MESSAGES/nb", - "nl": "locale/nl/LC_MESSAGES/nl", + "af": "locale/af/LC_MESSAGES/converse.json", + "de": "locale/de/LC_MESSAGES/converse.json", + "en": "locale/en/LC_MESSAGES/converse.json", + "es": "locale/es/LC_MESSAGES/converse.json", + "fr": "locale/fr/LC_MESSAGES/converse.json", + "he": "locale/he/LC_MESSAGES/converse.json", + "hu": "locale/hu/LC_MESSAGES/converse.json", + "id": "locale/id/LC_MESSAGES/converse.json", + "it": "locale/it/LC_MESSAGES/converse.json", + "ja": "locale/ja/LC_MESSAGES/converse.json", + "nb": "locale/nb/LC_MESSAGES/converse.json", + "nl": "locale/nl/LC_MESSAGES/converse.json", "pl": "locale/pl/LC_MESSAGES/converse.json", - "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", - "ru": "locale/ru/LC_MESSAGES/ru", - "zh": "locale/zh/LC_MESSAGES/zh", + "pt_BR": "locale/pt_BR/LC_MESSAGES/converse.json", + "ru": "locale/ru/LC_MESSAGES/converse.json", + "zh": "locale/zh/LC_MESSAGES/converse.json", // Templates "action": "src/templates/action", From 31cb3d4b6ecf79fcd9393f40f84aedb7d9ca3907 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 16 Jan 2015 22:07:27 +0100 Subject: [PATCH 15/81] Fix the non-AMD case. --- Gruntfile.js | 16 + builds/locales.js | 11108 ++++++++++++++++++++++++++++++++++++++++++ builds/templates.js | 142 +- converse.js | 4 +- dev.html | 1 - locale/locales.js | 34 - non_amd.html | 186 +- package.json | 1 + src/utils.js | 35 +- 9 files changed, 11260 insertions(+), 267 deletions(-) create mode 100644 builds/locales.js diff --git a/Gruntfile.js b/Gruntfile.js index 4f53af59f..cf4909c3e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,6 +4,7 @@ module.exports = function(grunt) { jst: { compile: { options: { + namespace: 'templates', templateSettings: { evaluate : /\{\[([\s\S]+?)\]\}/g, interpolate : /\{\{([\s\S]+?)\}\}/g @@ -20,6 +21,20 @@ module.exports = function(grunt) { } }, + json: { + main: { + options: { + namespace: 'locales', + includePath: true, + processName: function(filename) { + return filename.toLowerCase().match(/^locale\/(.*)\/lc_messages/)[1]; + } + }, + src: ['locale/**/LC_MESSAGES/*.json'], + dest: 'builds/locales.js' + } + }, + jshint: { options: { trailing: true @@ -52,6 +67,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-jst'); + grunt.loadNpmTasks('grunt-json'); grunt.loadNpmTasks('grunt-contrib-requirejs'); grunt.registerTask('test', 'Run Tests', function () { diff --git a/builds/locales.js b/builds/locales.js new file mode 100644 index 000000000..40017cbda --- /dev/null +++ b/builds/locales.js @@ -0,0 +1,11108 @@ +var locales = locales || {}; +locales["af"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "af" + }, + "unencrypted": [ + null, + "nie-privaat" + ], + "unverified": [ + null, + "ongeverifieer" + ], + "verified": [ + null, + "privaat" + ], + "finished": [ + null, + "afgesluit" + ], + "This contact is busy": [ + null, + "Hierdie persoon is besig" + ], + "This contact is online": [ + null, + "Hierdie persoon is aanlyn" + ], + "This contact is offline": [ + null, + "Hierdie persoon is aflyn" + ], + "This contact is unavailable": [ + null, + "Hierdie persoon is onbeskikbaar" + ], + "This contact is away for an extended period": [ + null, + "Hierdie persoon is vir lank afwesig" + ], + "This contact is away": [ + null, + "Hierdie persoon is afwesig" + ], + "My contacts": [ + null, + "My kontakte" + ], + "Pending contacts": [ + null, + "Hangende kontakte" + ], + "Contact requests": [ + null, + "Kontak versoeke" + ], + "Ungrouped": [ + null, + "Ongegroepeer" + ], + "Contacts": [ + null, + "Kontakte" + ], + "Groups": [ + null, + "Groepe" + ], + "Reconnecting": [ + null, + "Herkonnekteer" + ], + "Error": [ + null, + "Fout" + ], + "Connecting": [ + null, + "Verbind tans" + ], + "Authenticating": [ + null, + "Besig om te bekragtig" + ], + "Authentication Failed": [ + null, + "Bekragtiging het gefaal" + ], + "Online Contacts": [ + null, + "Kontakte aangemeld" + ], + "Re-establishing encrypted session": [ + null, + "Herstel versleutelde sessie" + ], + "Generating private key.": [ + null, + "Genereer private sleutel." + ], + "Your browser might become unresponsive.": [ + null, + "U webblaaier mag tydelik onreageerbaar word." + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "Verifieeringsversoek van %1$s\n\nU gespreksmaat probeer om u identiteit te verifieer, deur die volgende vraag te vra \n\n%2$s" + ], + "Could not verify this user's identify.": [ + null, + "Kon nie hierdie gebruiker se identitied verifieer nie." + ], + "Exchanging private key with contact.": [ + null, + "Sleutels word met gespreksmaat uitgeruil." + ], + "Personal message": [ + null, + "Persoonlike boodskap" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "Is u seker dat u die boodskappe in hierdie kamer wil verwyder?" + ], + "me": [ + null, + "ek" + ], + "is typing": [ + null, + "tik tans" + ], + "has stopped typing": [ + null, + "het opgehou tik" + ], + "Show this menu": [ + null, + "Vertoon hierdie keuselys" + ], + "Write in the third person": [ + null, + "Skryf in die derde persoon" + ], + "Remove messages": [ + null, + "Verwyder boodskappe" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "Is u seker u wil die boodskappe van hierdie klets uitvee?" + ], + "Your message could not be sent": [ + null, + "U boodskap kon nie gestuur word nie" + ], + "We received an unencrypted message": [ + null, + "Ons het 'n onversleutelde boodskap ontvang" + ], + "We received an unreadable encrypted message": [ + null, + "Ons het 'n onleesbare versleutelde boodskap ontvang" + ], + "This user has requested an encrypted session.": [ + null, + "Hierdie gebruiker versoek 'n versleutelde sessie" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Hier is die vingerafdrukke, bevestig hulle met %1$s, buite hierdie kletskanaal \n\nU vingerafdruk, %2$s: %3$s\n\nVingerafdruk vir %1$s: %4$s\n\nIndien u die vingerafdrukke bevestig het, klik OK, andersinds klik Kanselleer" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "Daar sal van u verwag word om 'n sekuriteitsvraag te stel, en dan ook die antwoord tot daardie vraag te verskaf.\n\nU gespreksmaat sal dan daardie vraag gestel word, en indien hulle presies dieselfde antwoord (lw. hoofletters tel) verskaf, sal hul identiteit geverifieer wees." + ], + "What is your security question?": [ + null, + "Wat is u sekuriteitsvraag?" + ], + "What is the answer to the security question?": [ + null, + "Wat is die antwoord tot die sekuriteitsvraag?" + ], + "Invalid authentication scheme provided": [ + null, + "Ongeldige verifikasiemetode verskaf" + ], + "Your messages are not encrypted anymore": [ + null, + "U boodskappe is nie meer versleutel nie" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "U boodskappe is now versleutel maar u gespreksmaat se identiteit is nog onseker." + ], + "Your contact's identify has been verified.": [ + null, + "U gespreksmaat se identiteit is geverifieer." + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "U gespreksmaat het versleuteling gestaak, u behoort nou dieselfde te doen." + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "U boodskappe is nie versleutel nie. Klik hier om OTR versleuteling te aktiveer." + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "U boodskappe is versleutel, maar u gespreksmaat se identiteit is not onseker." + ], + "Your messages are encrypted and your contact verified.": [ + null, + "U boodskappe is versleutel en u gespreksmaat se identiteit geverifieer." + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "U gespreksmaat het die private sessie gestaak. U behoort dieselfde te doen" + ], + "Clear all messages": [ + null, + "Vee alle boodskappe uit" + ], + "End encrypted conversation": [ + null, + "Beëindig versleutelde gesprek" + ], + "Hide the list of participants": [ + null, + "Verskuil die lys van deelnemers" + ], + "Refresh encrypted conversation": [ + null, + "Verfris versleutelde gesprek" + ], + "Start a call": [ + null, + "Begin 'n oproep" + ], + "Start encrypted conversation": [ + null, + "Begin versleutelde gesprek" + ], + "Verify with fingerprints": [ + null, + "Verifieer met vingerafdrukke" + ], + "Verify with SMP": [ + null, + "Verifieer met SMP" + ], + "What's this?": [ + null, + "Wat is hierdie?" + ], + "Online": [ + null, + "Aangemeld" + ], + "Busy": [ + null, + "Besig" + ], + "Away": [ + null, + "Afwesig" + ], + "Offline": [ + null, + "Afgemeld" + ], + "Contact name": [ + null, + "Kontaknaam" + ], + "Search": [ + null, + "Soek" + ], + "Contact username": [ + null, + "Konak gebruikersnaam" + ], + "Add": [ + null, + "Voeg by" + ], + "Click to add new chat contacts": [ + null, + "Kliek om nuwe kletskontakte by te voeg" + ], + "Add a contact": [ + null, + "Voeg 'n kontak by" + ], + "No users found": [ + null, + "Geen gebruikers gevind" + ], + "Click to add as a chat contact": [ + null, + "Kliek om as kletskontak by te voeg" + ], + "Room name": [ + null, + "Kamer naam" + ], + "Nickname": [ + null, + "Bynaam" + ], + "Server": [ + null, + "Bediener" + ], + "Join": [ + null, + "Sluit aan" + ], + "Show rooms": [ + null, + "Wys kamers" + ], + "Rooms": [ + null, + "Kamers" + ], + "No rooms on %1$s": [ + null, + "Geen kamers op %1$s" + ], + "Rooms on %1$s": [ + null, + "Kamers op %1$s" + ], + "Click to open this room": [ + null, + "Kliek om hierdie kletskamer te open" + ], + "Show more information on this room": [ + null, + "Wys meer inligting aangaande hierdie kletskamer" + ], + "Description:": [ + null, + "Beskrywing:" + ], + "Occupants:": [ + null, + "Deelnemers:" + ], + "Features:": [ + null, + "Eienskappe:" + ], + "Requires authentication": [ + null, + "Benodig magtiging" + ], + "Hidden": [ + null, + "Verskuil" + ], + "Requires an invitation": [ + null, + "Benodig 'n uitnodiging" + ], + "Moderated": [ + null, + "Gemodereer" + ], + "Non-anonymous": [ + null, + "Nie-anoniem" + ], + "Open room": [ + null, + "Oop kletskamer" + ], + "Permanent room": [ + null, + "Permanente kamer" + ], + "Public": [ + null, + "Publiek" + ], + "Semi-anonymous": [ + null, + "Deels anoniem" + ], + "Temporary room": [ + null, + "Tydelike kamer" + ], + "Unmoderated": [ + null, + "Ongemodereer" + ], + "This user is a moderator": [ + null, + "Hierdie gebruiker is 'n moderator" + ], + "This user can send messages in this room": [ + null, + "Hierdie gebruiker kan boodskappe na die kamer stuur" + ], + "This user can NOT send messages in this room": [ + null, + "Hierdie gebruiker kan NIE boodskappe na die kamer stuur nie" + ], + "Invite...": [ + null, + "Nooi uit..." + ], + "Occupants": [ + null, + "Deelnemers" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "U is op die punt om %1$s na die kletskamer \"%2$s\" uit te nooi." + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "U mag na keuse 'n boodskap insluit, om bv. die rede vir die uitnodiging te staaf." + ], + "Message": [ + null, + "Boodskap" + ], + "Error: could not execute the command": [ + null, + "Fout: kon nie die opdrag uitvoer nie" + ], + "Ban user from room": [ + null, + "Verban gebruiker uit hierdie kletskamer" + ], + "Kick user from room": [ + null, + "Skop gebruiker uit hierdie kletskamer" + ], + "Write in 3rd person": [ + null, + "Skryf in die derde persoon" + ], + "Remove user's ability to post messages": [ + null, + "Verwyder gebruiker se vermoë om boodskappe te plaas" + ], + "Change your nickname": [ + null, + "Verander u bynaam" + ], + "Set room topic": [ + null, + "Stel onderwerp vir kletskamer" + ], + "Allow muted user to post messages": [ + null, + "Laat stilgemaakte gebruiker toe om weer boodskappe te plaas" + ], + "Save": [ + null, + "Stoor" + ], + "Cancel": [ + null, + "Kanseleer" + ], + "An error occurred while trying to save the form.": [ + null, + "A fout het voorgekom terwyl probeer is om die vorm te stoor." + ], + "This chatroom requires a password": [ + null, + "Hiedie kletskamer benodig 'n wagwoord" + ], + "Password: ": [ + null, + "Wagwoord:" + ], + "Submit": [ + null, + "Dien in" + ], + "This room is not anonymous": [ + null, + "Hierdie vertrek is nie anoniem nie" + ], + "This room now shows unavailable members": [ + null, + "Hierdie vertrek wys nou onbeskikbare lede" + ], + "This room does not show unavailable members": [ + null, + "Hierdie vertrek wys nie onbeskikbare lede nie" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Nie-privaatheidverwante kamer instellings het verander" + ], + "Room logging is now enabled": [ + null, + "Kamer log is nou aangeskakel" + ], + "Room logging is now disabled": [ + null, + "Kamer log is nou afgeskakel" + ], + "This room is now non-anonymous": [ + null, + "Hiedie kamer is nou nie anoniem nie" + ], + "This room is now semi-anonymous": [ + null, + "Hierdie kamer is nou gedeeltelik anoniem" + ], + "This room is now fully-anonymous": [ + null, + "Hierdie kamer is nou ten volle anoniem" + ], + "A new room has been created": [ + null, + "'n Nuwe kamer is geskep" + ], + "You have been banned from this room": [ + null, + "Jy is uit die kamer verban" + ], + "You have been kicked from this room": [ + null, + "Jy is uit die kamer geskop" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Jy is vanuit die kamer verwyder a.g.v 'n verandering van affiliasie" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Jy is vanuit die kamer verwyder omdat die kamer nou slegs tot lede beperk word en jy nie 'n lid is nie." + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Jy is van hierdie kamer verwyder aangesien die MUC (Multi-user chat) diens nou afgeskakel word." + ], + "%1$s has been banned": [ + null, + "%1$s is verban" + ], + "%1$s has been kicked out": [ + null, + "%1$s is uitgeskop" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s is verwyder a.g.v 'n verandering van affiliasie" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s is nie 'n lid nie, en dus verwyder" + ], + "Your nickname has been automatically changed to: %1$s": [ + null, + "U bynaam is outomaties verander na: %1$s" + ], + "Your nickname has been changed to: %1$s": [ + null, + "U bynaam is verander na: %1$s" + ], + "The reason given is: \"": [ + null, + "Die gegewe rede is: \"" + ], + "You are not on the member list of this room": [ + null, + "Jy is nie op die ledelys van hierdie kamer nie" + ], + "No nickname was specified": [ + null, + "Geen bynaam verskaf nie" + ], + "You are not allowed to create new rooms": [ + null, + "Jy word nie toegelaat om nog kamers te skep nie" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Jou bynaam voldoen nie aan die kamer se beleid nie" + ], + "Your nickname is already taken": [ + null, + "Jou bynaam is reeds geneem" + ], + "This room does not (yet) exist": [ + null, + "Hierdie kamer bestaan tans (nog) nie" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Hierdie kamer het sy maksimum aantal deelnemers bereik" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Onderwerp deur %1$s bygewerk na: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "%1$s het u uitgenooi om die kletskamer %2$s te besoek" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "%1$s het u uitgenooi om die kletskamer %2$s te besoek, en het die volgende rede verskaf: \"%3$s\"" + ], + "Click to restore this chat": [ + null, + "Kliek om hierdie klets te herstel" + ], + "Minimized": [ + null, + "Geminimaliseer" + ], + "Click to remove this contact": [ + null, + "Kliek om hierdie kontak te verwyder" + ], + "Click to chat with this contact": [ + null, + "Kliek om met hierdie kontak te klets" + ], + "Are you sure you want to remove this contact?": [ + null, + "Is u seker u wil hierdie gespreksmaat verwyder?" + ], + "Are you sure you want to decline this contact request?": [ + null, + "Is u seker dat u hierdie persoon se versoek wil afkeur?" + ], + "Type to filter": [ + null, + "Tik om te filtreer" + ], + "I am %1$s": [ + null, + "Ek is %1$s" + ], + "Click here to write a custom status message": [ + null, + "Kliek hier om jou eie statusboodskap te skryf" + ], + "Click to change your chat status": [ + null, + "Kliek om jou klets-status te verander" + ], + "Custom status": [ + null, + "Doelgemaakte status" + ], + "online": [ + null, + "aangemeld" + ], + "busy": [ + null, + "besig" + ], + "away for long": [ + null, + "vir lank afwesig" + ], + "away": [ + null, + "afwesig" + ], + "Your XMPP provider's domain name:": [ + null, + "U XMPP-verskaffer se domein naam:" + ], + "Fetch registration form": [ + null, + "Haal die registrasie form" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "Wenk: A lys van publieke XMPP-verskaffers is beskikbaar" + ], + "here": [ + null, + "hier" + ], + "Register": [ + null, + "Registreer" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "Jammer, die gekose verskaffer ondersteun nie in-band registrasie nie.Probeer weer met 'n ander verskaffer." + ], + "Requesting a registration form from the XMPP server": [ + null, + "Vra tans die XMPP-bediener vir 'n registrasie vorm" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "Iets het fout geloop tydens koppeling met \"%1$s\". Is u seker dat dit bestaan?" + ], + "Now logging you in": [ + null, + "U word nou aangemeld" + ], + "Registered successfully": [ + null, + "Suksesvol geregistreer" + ], + "Return": [ + null, + "Terug" + ], + "The provider rejected your registration attempt. ": [ + null, + "Die verskaffer het u registrasieversoek verwerp." + ], + "XMPP Username:": [ + null, + "XMPP Gebruikersnaam:" + ], + "Password:": [ + null, + "Wagwoord" + ], + "Log In": [ + null, + "Meld aan" + ], + "Sign in": [ + null, + "Teken in" + ], + "Toggle chat": [ + null, + "Klets" + ] + } + } +}; +locales["de"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "de" + }, + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "Dieser Kontakt ist beschäfticht" + ], + "This contact is online": [ + null, + "Dieser Kontakt ist online" + ], + "This contact is offline": [ + null, + "Dieser Kontakt ist offline" + ], + "This contact is unavailable": [ + null, + "Dieser Kontakt ist nicht verfügbar" + ], + "This contact is away for an extended period": [ + null, + "Dieser Kontakt is für längere Zeit abwesend" + ], + "This contact is away": [ + null, + "Dieser Kontakt ist abwesend" + ], + "My contacts": [ + null, + "Meine Kontakte" + ], + "Pending contacts": [ + null, + "Unbestätigte Kontakte" + ], + "Contact requests": [ + null, + "Kontaktanfragen" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Kontakte" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Fehler" + ], + "Connecting": [ + null, + "Verbindungsaufbau …" + ], + "Authenticating": [ + null, + "Authentifizierung" + ], + "Authentication Failed": [ + null, + "Authentifizierung gescheitert" + ], + "Online Contacts": [ + null, + "Online-Kontakte" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Persönliche Nachricht" + ], + "me": [ + null, + "Ich" + ], + "Show this menu": [ + null, + "Dieses Menü anzeigen" + ], + "Write in the third person": [ + null, + "In der dritten Person schreiben" + ], + "Remove messages": [ + null, + "Nachrichten entfernen" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Beschäfticht" + ], + "Away": [ + null, + "Abwesend" + ], + "Offline": [ + null, + "Abgemeldet" + ], + "Contact name": [ + null, + "Name des Kontakts" + ], + "Search": [ + null, + "Suche" + ], + "Contact username": [ + null, + "Benutzername" + ], + "Add": [ + null, + "Hinzufügen" + ], + "Click to add new chat contacts": [ + null, + "Klicken Sie, um einen neuen Kontakt hinzuzufügen" + ], + "Add a contact": [ + null, + "Kontakte hinzufügen" + ], + "No users found": [ + null, + "Keine Benutzer gefunden" + ], + "Click to add as a chat contact": [ + null, + "Hier klicken um als Kontakt hinzuzufügen" + ], + "Room name": [ + null, + "Raumname" + ], + "Nickname": [ + null, + "Spitzname" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Beitreten" + ], + "Show rooms": [ + null, + "Räume anzeigen" + ], + "Rooms": [ + null, + "Räume" + ], + "No rooms on %1$s": [ + null, + "Keine Räume auf %1$s" + ], + "Rooms on %1$s": [ + null, + "Räume auf %1$s" + ], + "Click to open this room": [ + null, + "Hier klicken um diesen Raum zu öffnen" + ], + "Show more information on this room": [ + null, + "Mehr Information über diesen Raum zeigen" + ], + "Description:": [ + null, + "Beschreibung" + ], + "Occupants:": [ + null, + "Teilnehmer" + ], + "Features:": [ + null, + "Funktionen:" + ], + "Requires authentication": [ + null, + "Authentifizierung erforderlich" + ], + "Hidden": [ + null, + "Versteckt" + ], + "Requires an invitation": [ + null, + "Einladung erforderlich" + ], + "Moderated": [ + null, + "Moderiert" + ], + "Non-anonymous": [ + null, + "Nicht anonym" + ], + "Open room": [ + null, + "Offener Raum" + ], + "Permanent room": [ + null, + "Dauerhafter Raum" + ], + "Public": [ + null, + "Öffentlich" + ], + "Semi-anonymous": [ + null, + "Teils anonym" + ], + "Temporary room": [ + null, + "Vorübergehender Raum" + ], + "Unmoderated": [ + null, + "Unmoderiert" + ], + "This user is a moderator": [ + null, + "Dieser Benutzer ist ein Moderator" + ], + "This user can send messages in this room": [ + null, + "Dieser Benutzer kann Nachrichten in diesem Raum verschicken" + ], + "This user can NOT send messages in this room": [ + null, + "Dieser Benutzer kann keine Nachrichten in diesem Raum verschicken" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Nachricht" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Speichern" + ], + "Cancel": [ + null, + "Abbrechen" + ], + "An error occurred while trying to save the form.": [ + null, + "Beim Speichern der Formular is ein Fehler aufgetreten." + ], + "This chatroom requires a password": [ + null, + "Passwort wird für die Anmeldung benötigt." + ], + "Password: ": [ + null, + "Passwort: " + ], + "Submit": [ + null, + "Einreichen" + ], + "This room is not anonymous": [ + null, + "Dieser Raum ist nicht anonym" + ], + "This room now shows unavailable members": [ + null, + "Dieser Raum zeigt jetzt unferfügbare Mitglieder" + ], + "This room does not show unavailable members": [ + null, + "Dieser Raum zeigt nicht unverfügbare Mitglieder" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Die Konfiguration, die nicht auf die Privatsphäre bezogen ist, hat sich geändert" + ], + "Room logging is now enabled": [ + null, + "Zukünftige Nachrichten dieses Raums werden protokolliert." + ], + "Room logging is now disabled": [ + null, + "Zukünftige Nachrichten dieses Raums werden nicht protokolliert." + ], + "This room is now non-anonymous": [ + null, + "Dieser Raum ist jetzt nicht anonym" + ], + "This room is now semi-anonymous": [ + null, + "Dieser Raum ist jetzt teils anonym" + ], + "This room is now fully-anonymous": [ + null, + "Dieser Raum ist jetzt anonym" + ], + "A new room has been created": [ + null, + "Einen neuen Raum ist erstellen" + ], + "You have been banned from this room": [ + null, + "Sie sind aus diesem Raum verbannt worden" + ], + "You have been kicked from this room": [ + null, + "Sie wurden aus diesem Raum hinausgeworfen" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Sie wurden wegen einer Zugehörigkeitsänderung entfernt" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Sie wurden aus diesem Raum entfernt da Sie kein Mitglied sind." + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Sie werden aus diesem Raum entfernt da der MUC (Muli-user chat) Dienst gerade abgeschalten wird." + ], + "%1$s has been banned": [ + null, + "%1$s ist verbannt" + ], + "%1$s has been kicked out": [ + null, + "%1$s ist hinausgeworfen" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s wurde wegen einer Zugehörigkeitsänderung entfernt" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s ist kein Mitglied und wurde daher entfernt" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Sie sind nicht auf der Mitgliederliste dieses Raums" + ], + "No nickname was specified": [ + null, + "Kein Spitzname festgelegt" + ], + "You are not allowed to create new rooms": [ + null, + "Es ist Ihnen nicht erlaubt, neue Räume anzulegen" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Ungültiger Spitzname" + ], + "Your nickname is already taken": [ + null, + "Ihre Spitzname existiert bereits." + ], + "This room does not (yet) exist": [ + null, + "Dieser Raum existiert (noch) nicht" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Dieser Raum hat die maximale Mitgliederanzahl erreicht" + ], + "Topic set by %1$s to: %2$s": [ + null, + "%1$s hat das Thema zu \"%2$s\" abgeändert" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Hier klicken um diesen Kontakt zu entfernen" + ], + "Click to chat with this contact": [ + null, + "Hier klicken um mit diesem Kontakt zu chatten" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Ich bin %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klicken Sie hier, um ihrer Status-Nachricht to ändern" + ], + "Click to change your chat status": [ + null, + "Klicken Sie, um ihrer Status to ändern" + ], + "Custom status": [ + null, + "Status-Nachricht" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "beschäfticht" + ], + "away for long": [ + null, + "länger abwesend" + ], + "away": [ + null, + "abwesend" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Passwort:" + ], + "Log In": [ + null, + "Anmelden" + ], + "Sign in": [ + null, + "Anmelden" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["en"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "en" + }, + "unencrypted": [ + null, + "unencrypted" + ], + "unverified": [ + null, + "unverified" + ], + "verified": [ + null, + "verified" + ], + "finished": [ + null, + "finished" + ], + "This contact is busy": [ + null, + "" + ], + "This contact is online": [ + null, + "" + ], + "This contact is offline": [ + null, + "" + ], + "This contact is unavailable": [ + null, + "" + ], + "This contact is away for an extended period": [ + null, + "" + ], + "This contact is away": [ + null, + "" + ], + "My contacts": [ + null, + "My contacts" + ], + "Pending contacts": [ + null, + "Pending contacts" + ], + "Contact requests": [ + null, + "Contact requests" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contacts" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Error" + ], + "Connecting": [ + null, + "Connecting" + ], + "Authenticating": [ + null, + "Authenticating" + ], + "Authentication Failed": [ + null, + "Authentication Failed" + ], + "Online Contacts": [ + null, + "Online Contacts" + ], + "Re-establishing encrypted session": [ + null, + "Re-establishing encrypted session" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Personal message" + ], + "me": [ + null, + "" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Show this menu" + ], + "Write in the third person": [ + null, + "Write in the third person" + ], + "Remove messages": [ + null, + "Remove messages" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Busy" + ], + "Away": [ + null, + "Away" + ], + "Offline": [ + null, + "Offline" + ], + "Contact name": [ + null, + "Contact name" + ], + "Search": [ + null, + "Search" + ], + "Contact username": [ + null, + "Contact username" + ], + "Add": [ + null, + "Add" + ], + "Click to add new chat contacts": [ + null, + "Click to add new chat contacts" + ], + "Add a contact": [ + null, + "Add a contact" + ], + "No users found": [ + null, + "No users found" + ], + "Click to add as a chat contact": [ + null, + "Click to add as a chat contact" + ], + "Room name": [ + null, + "Room name" + ], + "Nickname": [ + null, + "Nickname" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Join" + ], + "Show rooms": [ + null, + "Show rooms" + ], + "Rooms": [ + null, + "Rooms" + ], + "No rooms on %1$s": [ + null, + "No rooms on %1$s" + ], + "Rooms on %1$s": [ + null, + "Rooms on %1$s" + ], + "Click to open this room": [ + null, + "Click to open this room" + ], + "Show more information on this room": [ + null, + "Show more information on this room" + ], + "Description:": [ + null, + "Description:" + ], + "Occupants:": [ + null, + "Occupants:" + ], + "Features:": [ + null, + "Features:" + ], + "Requires authentication": [ + null, + "Requires authentication" + ], + "Hidden": [ + null, + "Hidden" + ], + "Requires an invitation": [ + null, + "Requires an invitation" + ], + "Moderated": [ + null, + "Moderated" + ], + "Non-anonymous": [ + null, + "Non-anonymous" + ], + "Open room": [ + null, + "Open room" + ], + "Permanent room": [ + null, + "Permanent room" + ], + "Public": [ + null, + "Public" + ], + "Semi-anonymous": [ + null, + "Semi-anonymous" + ], + "Temporary room": [ + null, + "Temporary room" + ], + "Unmoderated": [ + null, + "Unmoderated" + ], + "This user is a moderator": [ + null, + "This user is a moderator" + ], + "This user can send messages in this room": [ + null, + "This user can send messages in this room" + ], + "This user can NOT send messages in this room": [ + null, + "This user can NOT send messages in this room" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Message" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Save" + ], + "Cancel": [ + null, + "Cancel" + ], + "An error occurred while trying to save the form.": [ + null, + "An error occurred while trying to save the form." + ], + "This chatroom requires a password": [ + null, + "This chatroom requires a password" + ], + "Password: ": [ + null, + "Password: " + ], + "Submit": [ + null, + "Submit" + ], + "This room is not anonymous": [ + null, + "This room is not anonymous" + ], + "This room now shows unavailable members": [ + null, + "This room now shows unavailable members" + ], + "This room does not show unavailable members": [ + null, + "This room does not show unavailable members" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Non-privacy-related room configuration has changed" + ], + "Room logging is now enabled": [ + null, + "Room logging is now enabled" + ], + "Room logging is now disabled": [ + null, + "Room logging is now disabled" + ], + "This room is now non-anonymous": [ + null, + "This room is now non-anonymous" + ], + "This room is now semi-anonymous": [ + null, + "This room is now semi-anonymous" + ], + "This room is now fully-anonymous": [ + null, + "This room is now fully-anonymous" + ], + "A new room has been created": [ + null, + "A new room has been created" + ], + "You have been banned from this room": [ + null, + "You have been banned from this room" + ], + "You have been kicked from this room": [ + null, + "You have been kicked from this room" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "You have been removed from this room because of an affiliation change" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "You have been removed from this room because the room has changed to members-only and you're not a member" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down." + ], + "%1$s has been banned": [ + null, + "%1$s has been banned" + ], + "%1$s has been kicked out": [ + null, + "%1$s has been kicked out" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s has been removed because of an affiliation change" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s has been removed for not being a member" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "You are not on the member list of this room" + ], + "No nickname was specified": [ + null, + "No nickname was specified" + ], + "You are not allowed to create new rooms": [ + null, + "You are not allowed to create new rooms" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Your nickname doesn't conform to this room's policies" + ], + "Your nickname is already taken": [ + null, + "Your nickname is already taken" + ], + "This room does not (yet) exist": [ + null, + "This room does not (yet) exist" + ], + "This room has reached it's maximum number of occupants": [ + null, + "This room has reached it's maximum number of occupants" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topic set by %1$s to: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Click to remove this contact" + ], + "Click to chat with this contact": [ + null, + "Click to chat with this contact" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "I am %1$s" + ], + "Click here to write a custom status message": [ + null, + "Click here to write a custom status message" + ], + "Click to change your chat status": [ + null, + "Click to change your chat status" + ], + "Custom status": [ + null, + "Custom status" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "busy" + ], + "away for long": [ + null, + "away for long" + ], + "away": [ + null, + "away" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Password:" + ], + "Log In": [ + null, + "Log In" + ], + "Sign in": [ + null, + "Sign in" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["es"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "es" + }, + "unencrypted": [ + null, + "texto plano" + ], + "unverified": [ + null, + "sin verificar" + ], + "verified": [ + null, + "verificado" + ], + "finished": [ + null, + "finalizado" + ], + "This contact is busy": [ + null, + "Este contacto está ocupado" + ], + "This contact is online": [ + null, + "Este contacto está en línea" + ], + "This contact is offline": [ + null, + "Este contacto está desconectado" + ], + "This contact is unavailable": [ + null, + "Este contacto no está disponible" + ], + "This contact is away for an extended period": [ + null, + "Este contacto está ausente por un largo periodo de tiempo" + ], + "This contact is away": [ + null, + "Este contacto está ausente" + ], + "My contacts": [ + null, + "Mis contactos" + ], + "Pending contacts": [ + null, + "Contactos pendientes" + ], + "Contact requests": [ + null, + "Solicitudes de contacto" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contactos" + ], + "Groups": [ + null, + "" + ], + "Reconnecting": [ + null, + "Reconectando" + ], + "Error": [ + null, + "Error" + ], + "Connecting": [ + null, + "Conectando" + ], + "Authenticating": [ + null, + "Autenticando" + ], + "Authentication Failed": [ + null, + "La autenticación falló" + ], + "Online Contacts": [ + null, + "En línea" + ], + "Re-establishing encrypted session": [ + null, + "Re-estableciendo sesión cifrada" + ], + "Generating private key.": [ + null, + "Generando llave privada" + ], + "Your browser might become unresponsive.": [ + null, + "Su navegador podría dejar de responder por un momento" + ], + "Could not verify this user's identify.": [ + null, + "No se pudo verificar la identidad de este usuario" + ], + "Personal message": [ + null, + "Mensaje personal" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "¿Está seguro de querer limpiar los mensajes de esta sala?" + ], + "me": [ + null, + "yo" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Mostrar este menú" + ], + "Write in the third person": [ + null, + "Escribir en tercera persona" + ], + "Remove messages": [ + null, + "Eliminar mensajes" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "¿Está seguro de querer limpiar los mensajes de esta conversación?" + ], + "Your message could not be sent": [ + null, + "Su mensaje no se pudo enviar" + ], + "We received an unencrypted message": [ + null, + "Se recibío un mensaje sin cifrar" + ], + "We received an unreadable encrypted message": [ + null, + "Se recibío un mensaje cifrado corrupto" + ], + "This user has requested an encrypted session.": [ + null, + "El usuario ha solicitado una sesión cifrada" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Por favor confirme los identificadores de %1$s fuera de este chat.\n\nSu identificador es, %2$s: %3$s\n\nEl identificador de %1$s es: %4$s\n\nDespués de confirmar los identificadores haga click en OK, cancele si no concuerdan." + ], + "What is your security question?": [ + null, + "Introduzca su pregunta de seguridad" + ], + "What is the answer to the security question?": [ + null, + "Introduzca la respuesta a su pregunta de seguridad" + ], + "Invalid authentication scheme provided": [ + null, + "Esquema de autenticación inválido" + ], + "Your messages are not encrypted anymore": [ + null, + "Sus mensajes han dejado de cifrarse" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Sus mensajes no están cifrados. Haga click aquí para habilitar el cifrado OTR" + ], + "End encrypted conversation": [ + null, + "Finalizar sesión cifrada" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Actualizar sesión cifrada" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Iniciar sesión cifrada" + ], + "Verify with fingerprints": [ + null, + "Verificar con identificadores" + ], + "Verify with SMP": [ + null, + "Verificar con SMP" + ], + "What's this?": [ + null, + "¿Qué es esto?" + ], + "Online": [ + null, + "En línea" + ], + "Busy": [ + null, + "Ocupado" + ], + "Away": [ + null, + "Ausente" + ], + "Offline": [ + null, + "Desconectado" + ], + "Contact name": [ + null, + "Nombre de contacto" + ], + "Search": [ + null, + "Búsqueda" + ], + "Contact username": [ + null, + "Nombre de usuario de contacto" + ], + "Add": [ + null, + "Agregar" + ], + "Click to add new chat contacts": [ + null, + "Haga click para agregar nuevos contactos al chat" + ], + "Add a contact": [ + null, + "Agregar un contacto" + ], + "No users found": [ + null, + "Sin usuarios encontrados" + ], + "Click to add as a chat contact": [ + null, + "Haga click para agregar como contacto de chat" + ], + "Room name": [ + null, + "Nombre de sala" + ], + "Nickname": [ + null, + "Apodo" + ], + "Server": [ + null, + "Servidor" + ], + "Join": [ + null, + "Unirse" + ], + "Show rooms": [ + null, + "Mostrar salas" + ], + "Rooms": [ + null, + "Salas" + ], + "No rooms on %1$s": [ + null, + "Sin salas en %1$s" + ], + "Rooms on %1$s": [ + null, + "Salas en %1$s" + ], + "Click to open this room": [ + null, + "Haga click para abrir esta sala" + ], + "Show more information on this room": [ + null, + "Mostrar más información en esta sala" + ], + "Description:": [ + null, + "Descripción" + ], + "Occupants:": [ + null, + "Ocupantes:" + ], + "Features:": [ + null, + "Características:" + ], + "Requires authentication": [ + null, + "Autenticación requerida" + ], + "Hidden": [ + null, + "Oculto" + ], + "Requires an invitation": [ + null, + "Requiere una invitación" + ], + "Moderated": [ + null, + "Moderado" + ], + "Non-anonymous": [ + null, + "No anónimo" + ], + "Open room": [ + null, + "Abrir sala" + ], + "Permanent room": [ + null, + "Sala permanente" + ], + "Public": [ + null, + "Pública" + ], + "Semi-anonymous": [ + null, + "Semi anónimo" + ], + "Temporary room": [ + null, + "Sala temporal" + ], + "Unmoderated": [ + null, + "Sin moderar" + ], + "This user is a moderator": [ + null, + "Este usuario es un moderador" + ], + "This user can send messages in this room": [ + null, + "Este usuario puede enviar mensajes en esta sala" + ], + "This user can NOT send messages in this room": [ + null, + "Este usuario NO puede enviar mensajes en esta" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Mensaje" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Guardar" + ], + "Cancel": [ + null, + "Cancelar" + ], + "An error occurred while trying to save the form.": [ + null, + "Un error ocurrío mientras se guardaba el formulario." + ], + "This chatroom requires a password": [ + null, + "Esta sala de chat requiere una contraseña." + ], + "Password: ": [ + null, + "Contraseña: " + ], + "Submit": [ + null, + "Enviar" + ], + "This room is not anonymous": [ + null, + "Esta sala no es para usuarios anónimos" + ], + "This room now shows unavailable members": [ + null, + "Esta sala ahora muestra los miembros no disponibles" + ], + "This room does not show unavailable members": [ + null, + "Esta sala no muestra los miembros no disponibles" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Una configuración de la sala no relacionada con la privacidad ha sido cambiada" + ], + "Room logging is now enabled": [ + null, + "El registro de la sala ahora está habilitado" + ], + "Room logging is now disabled": [ + null, + "El registro de la sala ahora está deshabilitado" + ], + "This room is now non-anonymous": [ + null, + "Esta sala ahora es pública" + ], + "This room is now semi-anonymous": [ + null, + "Esta sala ahora es semi-anónima" + ], + "This room is now fully-anonymous": [ + null, + "Esta sala ahora es completamente anónima" + ], + "A new room has been created": [ + null, + "Una nueva sala ha sido creada" + ], + "You have been banned from this room": [ + null, + "Usted ha sido bloqueado de esta sala" + ], + "You have been kicked from this room": [ + null, + "Usted ha sido expulsado de esta sala" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Usted ha sido eliminado de esta sala debido a un cambio de afiliación" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Usted ha sido eliminado de esta sala debido a que la sala cambio su configuración a solo-miembros y usted no es un miembro" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Usted ha sido eliminado de esta sala debido a que el servicio MUC (Multi-user chat) está deshabilitado." + ], + "%1$s has been banned": [ + null, + "%1$s ha sido bloqueado" + ], + "%1$s has been kicked out": [ + null, + "%1$s ha sido expulsado" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s ha sido eliminado debido a un cambio de afiliación" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s ha sido eliminado debido a que no es miembro" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Usted no está en la lista de miembros de esta sala" + ], + "No nickname was specified": [ + null, + "Sin apodo especificado" + ], + "You are not allowed to create new rooms": [ + null, + "Usted no esta autorizado para crear nuevas salas" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Su apodo no se ajusta a la política de esta sala" + ], + "Your nickname is already taken": [ + null, + "Su apodo ya ha sido tomando por otro usuario" + ], + "This room does not (yet) exist": [ + null, + "Esta sala (aún) no existe" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Esta sala ha alcanzado su número máximo de ocupantes" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Tema fijado por %1$s a: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Click to restore this chat": [ + null, + "Haga click para eliminar este contacto" + ], + "Minimized": [ + null, + "Minimizado" + ], + "Click to remove this contact": [ + null, + "Haga click para eliminar este contacto" + ], + "Click to chat with this contact": [ + null, + "Haga click para conversar con este contacto" + ], + "Are you sure you want to remove this contact?": [ + null, + "¿Esta seguro de querer eliminar este contacto?" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Estoy %1$s" + ], + "Click here to write a custom status message": [ + null, + "Haga click para escribir un mensaje de estatus personalizado" + ], + "Click to change your chat status": [ + null, + "Haga click para cambiar su estatus de chat" + ], + "Custom status": [ + null, + "Personalizar estatus" + ], + "online": [ + null, + "en línea" + ], + "busy": [ + null, + "ocupado" + ], + "away for long": [ + null, + "ausente por mucho tiempo" + ], + "away": [ + null, + "ausente" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Contraseña:" + ], + "Log In": [ + null, + "Iniciar sesión" + ], + "Sign in": [ + null, + "Registrar" + ], + "Toggle chat": [ + null, + "Chat" + ] + } + } +}; +locales["fr"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "fr" + }, + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "" + ], + "This contact is online": [ + null, + "" + ], + "This contact is offline": [ + null, + "" + ], + "This contact is away for an extended period": [ + null, + "" + ], + "This contact is away": [ + null, + "" + ], + "My contacts": [ + null, + "Mes contacts" + ], + "Pending contacts": [ + null, + "Contacts en attente" + ], + "Contact requests": [ + null, + "Demandes de contacts" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contacts" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Erreur" + ], + "Connecting": [ + null, + "Connection" + ], + "Authenticating": [ + null, + "Authentification" + ], + "Authentication Failed": [ + null, + "L'authentification a échoué" + ], + "Online Contacts": [ + null, + "Contacts en ligne" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Message personnel" + ], + "me": [ + null, + "" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Afficher ce menu" + ], + "Write in the third person": [ + null, + "Écrire à la troisième personne" + ], + "Remove messages": [ + null, + "Effacer les messages" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "En ligne" + ], + "Busy": [ + null, + "Occupé" + ], + "Away": [ + null, + "Absent" + ], + "Offline": [ + null, + "Déconnecté" + ], + "Contact name": [ + null, + "Nom du contact" + ], + "Search": [ + null, + "Rechercher" + ], + "Contact username": [ + null, + "Nom du contact" + ], + "Add": [ + null, + "Ajouter" + ], + "Click to add new chat contacts": [ + null, + "Cliquez pour ajouter de nouveaux contacts" + ], + "Add a contact": [ + null, + "Ajouter un contact" + ], + "No users found": [ + null, + "Aucun utilisateur trouvé" + ], + "Click to add as a chat contact": [ + null, + "Cliquer pour ajouter aux contacts de chat" + ], + "Room name": [ + null, + "Numéro de salon" + ], + "Nickname": [ + null, + "Alias" + ], + "Server": [ + null, + "Serveur" + ], + "Join": [ + null, + "Rejoindre" + ], + "Show rooms": [ + null, + "Afficher les salons" + ], + "Rooms": [ + null, + "Salons" + ], + "No rooms on %1$s": [ + null, + "Aucun salon dans %1$s" + ], + "Rooms on %1$s": [ + null, + "Salons dans %1$s" + ], + "Click to open this room": [ + null, + "Cliquer pour ouvrir ce salon" + ], + "Show more information on this room": [ + null, + "Afficher davantage d'informations sur ce salon" + ], + "Description:": [ + null, + "Description :" + ], + "Occupants:": [ + null, + "Participants :" + ], + "Features:": [ + null, + "Caractéristiques :" + ], + "Requires authentication": [ + null, + "Nécessite une authentification" + ], + "Hidden": [ + null, + "Masqué" + ], + "Requires an invitation": [ + null, + "Nécessite une invitation" + ], + "Moderated": [ + null, + "Modéré" + ], + "Non-anonymous": [ + null, + "Non-anonyme" + ], + "Open room": [ + null, + "Ouvrir un salon" + ], + "Permanent room": [ + null, + "Salon permanent" + ], + "Public": [ + null, + "Public" + ], + "Semi-anonymous": [ + null, + "Semi-anonyme" + ], + "Temporary room": [ + null, + "Salon temporaire" + ], + "Unmoderated": [ + null, + "Non modéré" + ], + "This user is a moderator": [ + null, + "Cet utilisateur est modérateur" + ], + "This user can send messages in this room": [ + null, + "Cet utilisateur peut envoyer des messages dans ce salon" + ], + "This user can NOT send messages in this room": [ + null, + "Cet utilisateur ne peut PAS envoyer de messages dans ce salon" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Message" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Enregistrer" + ], + "Cancel": [ + null, + "Annuler" + ], + "An error occurred while trying to save the form.": [ + null, + "Une erreur est survenue lors de l'enregistrement du formulaire." + ], + "This chatroom requires a password": [ + null, + "Ce salon nécessite un mot de passe." + ], + "Password: ": [ + null, + "Mot de passe : " + ], + "Submit": [ + null, + "Soumettre" + ], + "This room is not anonymous": [ + null, + "Ce salon n'est pas anonyme" + ], + "This room now shows unavailable members": [ + null, + "Ce salon affiche maintenant des membres indisponibles" + ], + "This room does not show unavailable members": [ + null, + "Ce salon n'affiche pas les membres indisponibles" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Les paramètres du salon non liés à la confidentialité ont été modifiés" + ], + "Room logging is now enabled": [ + null, + "Le logging du salon est activé" + ], + "Room logging is now disabled": [ + null, + "Le logging du salon est désactivé" + ], + "This room is now non-anonymous": [ + null, + "Ce salon est maintenant non-anonyme" + ], + "This room is now semi-anonymous": [ + null, + "Ce salon est maintenant semi-anonyme" + ], + "This room is now fully-anonymous": [ + null, + "Ce salon est maintenant entièrement anonyme" + ], + "A new room has been created": [ + null, + "Un nouveau salon a été créé" + ], + "You have been banned from this room": [ + null, + "Vous avez été banni de ce salon" + ], + "You have been kicked from this room": [ + null, + "Vous avez été expulsé de ce salon" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Vous avez été retiré de ce salon du fait d'un changement d'affiliation" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Vous avez été retiré de ce salon parce que ce salon est devenu réservé aux membres et vous n'êtes pas membre" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Vous avez été retiré de ce salon parce que le service de chat multi-utilisateur a été désactivé." + ], + "%1$s has been banned": [ + null, + "%1$s a été banni" + ], + "%1$s has been kicked out": [ + null, + "%1$s a été expulsé" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s a été supprimé à cause d'un changement d'affiliation" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s a été supprimé car il n'est pas membre" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Vous n'êtes pas dans la liste des membres de ce salon" + ], + "No nickname was specified": [ + null, + "Aucun alias n'a été indiqué" + ], + "You are not allowed to create new rooms": [ + null, + "Vous n'êtes pas autorisé à créer des salons" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Votre alias n'est pas conforme à la politique de ce salon" + ], + "Your nickname is already taken": [ + null, + "Votre alias est déjà utilisé" + ], + "This room does not (yet) exist": [ + null, + "Ce salon n'existe pas encore" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Ce salon a atteint la limite maximale d'occupants" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Le sujet '%1$s' a été défini par %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Cliquez pour supprimer ce contact" + ], + "Click to chat with this contact": [ + null, + "Cliquez pour discuter avec ce contact" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Je suis %1$s" + ], + "Click here to write a custom status message": [ + null, + "Cliquez ici pour indiquer votre statut personnel" + ], + "Click to change your chat status": [ + null, + "Cliquez pour changer votre statut" + ], + "Custom status": [ + null, + "Statut personnel" + ], + "online": [ + null, + "en ligne" + ], + "busy": [ + null, + "occupé" + ], + "away for long": [ + null, + "absent pour une longue durée" + ], + "away": [ + null, + "absent" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Mot de passe :" + ], + "Log In": [ + null, + "Se connecter" + ], + "Sign in": [ + null, + "S'inscrire" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["he"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "he" + }, + "unencrypted": [ + null, + "לא מוצפנת" + ], + "unverified": [ + null, + "לא מאומתת" + ], + "verified": [ + null, + "מאומתת" + ], + "finished": [ + null, + "מוגמרת" + ], + "This contact is busy": [ + null, + "איש קשר זה עסוק" + ], + "This contact is online": [ + null, + "איש קשר זה מקוון" + ], + "This contact is offline": [ + null, + "איש קשר זה לא מקוון" + ], + "This contact is unavailable": [ + null, + "איש קשר זה לא זמין" + ], + "This contact is away for an extended period": [ + null, + "איש קשר זה נעדר למשך זמן ממושך" + ], + "This contact is away": [ + null, + "איש קשר זה הינו נעדר" + ], + "Click to hide these contacts": [ + null, + "לחץ כדי להסתיר את אנשי קשר אלה" + ], + "My contacts": [ + null, + "אנשי הקשר שלי" + ], + "Pending contacts": [ + null, + "אנשי קשר ממתינים" + ], + "Contact requests": [ + null, + "בקשות איש קשר" + ], + "Ungrouped": [ + null, + "ללא קבוצה" + ], + "Contacts": [ + null, + "אנשי קשר" + ], + "Groups": [ + null, + "קבוצות" + ], + "Reconnecting": [ + null, + "כעת מתחבר" + ], + "Error": [ + null, + "שגיאה" + ], + "Connecting": [ + null, + "כעת מתחבר" + ], + "Authenticating": [ + null, + "כעת מאמת" + ], + "Authentication Failed": [ + null, + "אימות נכשל" + ], + "Online Contacts": [ + null, + "אנשי קשר מקוונים" + ], + "Re-establishing encrypted session": [ + null, + "בסס מחדש ישיבה מוצפנת" + ], + "Generating private key.": [ + null, + "כעת מפיק מפתח פרטי." + ], + "Your browser might become unresponsive.": [ + null, + "הדפדפן שלך עשוי שלא להגיב." + ], + "Could not verify this user's identify.": [ + null, + "לא היתה אפשרות לאמת את זהות משתמש זה." + ], + "Personal message": [ + null, + "הודעה אישית" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך חדר זה?" + ], + "me": [ + null, + "אני" + ], + "is typing": [ + null, + "מקליד/ה כעת" + ], + "has stopped typing": [ + null, + "חדל/ה מלהקליד" + ], + "Show this menu": [ + null, + "הצג את תפריט זה" + ], + "Write in the third person": [ + null, + "כתוב בגוף השלישי" + ], + "Remove messages": [ + null, + "הסר הודעות" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "האם אתה בטוח כי ברצונך לטהר את ההודעות מתוך תיבת שיחה זה?" + ], + "Your message could not be sent": [ + null, + "ההודעה שלך לא היתה יכולה להישלח" + ], + "We received an unencrypted message": [ + null, + "אנחנו קיבלנו הודעה לא מוצפנת" + ], + "We received an unreadable encrypted message": [ + null, + "אנחנו קיבלנו הודעה מוצפנת לא קריאה" + ], + "This user has requested an encrypted session.": [ + null, + "משתמש זה ביקש ישיבה מוצפנת." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "הרי טביעות האצבע, אנא אמת אותן עם %1$s, מחוץ לשיחה זו.\n\nטביעת אצבע עבורך, %2$s: %3$s\n\nטביעת אצבע עבור %1$s: %4$s\n\nהיה ואימתת כי טביעות האצבע תואמות, לחץ אישור (OK), אחרת לחץ ביטול (Cancel)." + ], + "What is your security question?": [ + null, + "מהי שאלת האבטחה שלך?" + ], + "What is the answer to the security question?": [ + null, + "מהי התשובה לשאלת האבטחה?" + ], + "Invalid authentication scheme provided": [ + null, + "סופקה סכימת אימות שגויה" + ], + "Your messages are not encrypted anymore": [ + null, + "ההודעות שלך אינן מוצפנות עוד" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "ההודעות שלך אינן מוצפנות. לחץ כאן כדי לאפשר OTR." + ], + "End encrypted conversation": [ + null, + "סיים ישיבה מוצפנת" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "רענן ישיבה מוצפנת" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "התחל ישיבה מוצפנת" + ], + "Verify with fingerprints": [ + null, + "אמת בעזרת טביעות אצבע" + ], + "Verify with SMP": [ + null, + "אמת בעזרת SMP" + ], + "What's this?": [ + null, + "מה זה?" + ], + "Online": [ + null, + "מקוון" + ], + "Busy": [ + null, + "עסוק" + ], + "Away": [ + null, + "נעדר" + ], + "Offline": [ + null, + "בלתי מקוון" + ], + "Contact name": [ + null, + "שם איש קשר" + ], + "Search": [ + null, + "חיפוש" + ], + "Contact username": [ + null, + "שם משתמש איש קשר" + ], + "Add": [ + null, + "הוסף" + ], + "Click to add new chat contacts": [ + null, + "לחץ כדי להוסיף אנשי קשר שיחה חדשים" + ], + "Add a contact": [ + null, + "הוסף איש קשר" + ], + "No users found": [ + null, + "לא נמצאו משתמשים" + ], + "Click to add as a chat contact": [ + null, + "לחץ כדי להוסיף בתור איש קשר שיחה" + ], + "Room name": [ + null, + "שם חדר" + ], + "Nickname": [ + null, + "שם כינוי" + ], + "Server": [ + null, + "שרת" + ], + "Join": [ + null, + "הצטרף" + ], + "Show rooms": [ + null, + "הצג חדרים" + ], + "Rooms": [ + null, + "חדרים" + ], + "No rooms on %1$s": [ + null, + "אין חדרים על %1$s" + ], + "Rooms on %1$s": [ + null, + "חדרים על %1$s" + ], + "Click to open this room": [ + null, + "לחץ כדי לפתוח את חדר זה" + ], + "Show more information on this room": [ + null, + "הצג עוד מידע אודות חדר זה" + ], + "Description:": [ + null, + "תיאור:" + ], + "Occupants:": [ + null, + "נוכחים:" + ], + "Features:": [ + null, + "תכונות:" + ], + "Requires authentication": [ + null, + "מצריך אישור" + ], + "Hidden": [ + null, + "נסתר" + ], + "Requires an invitation": [ + null, + "מצריך הזמנה" + ], + "Moderated": [ + null, + "מבוקר" + ], + "Non-anonymous": [ + null, + "לא אנונימי" + ], + "Open room": [ + null, + "חדר פתוח" + ], + "Permanent room": [ + null, + "חדר צמיתה" + ], + "Public": [ + null, + "פומבי" + ], + "Semi-anonymous": [ + null, + "אנונימי למחצה" + ], + "Temporary room": [ + null, + "חדר זמני" + ], + "Unmoderated": [ + null, + "לא מבוקר" + ], + "This user is a moderator": [ + null, + "משתמש זה הינו אחראי" + ], + "This user can send messages in this room": [ + null, + "משתמש זה מסוגל לשלוח הודעות בתוך חדר זה" + ], + "This user can NOT send messages in this room": [ + null, + "משתמש זה ﬥﬡ מסוגל לשלוח הודעות בתוך חדר זה" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "הודעה" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "שמור" + ], + "Cancel": [ + null, + "ביטול" + ], + "An error occurred while trying to save the form.": [ + null, + "אירעה שגיאה במהלך ניסיון שמירת הטופס." + ], + "This chatroom requires a password": [ + null, + "חדר שיחה זה מצריך סיסמה" + ], + "Password: ": [ + null, + "סיסמה: " + ], + "Submit": [ + null, + "שלח" + ], + "This room is not anonymous": [ + null, + "חדר זה אינו אנונימי" + ], + "This room now shows unavailable members": [ + null, + "חדר זה כעת מציג חברים לא זמינים" + ], + "This room does not show unavailable members": [ + null, + "חדר זה לא מציג חברים לא זמינים" + ], + "Non-privacy-related room configuration has changed": [ + null, + "תצורת חדר אשר לא-קשורה-בפרטיות שונתה" + ], + "Room logging is now enabled": [ + null, + "יומן חדר הינו מופעל כעת" + ], + "Room logging is now disabled": [ + null, + "יומן חדר הינו מנוטרל כעת" + ], + "This room is now non-anonymous": [ + null, + "חדר זה אינו אנונימי כעת" + ], + "This room is now semi-anonymous": [ + null, + "חדר זה הינו אנונימי למחצה כעת" + ], + "This room is now fully-anonymous": [ + null, + "חדר זה הינו אנונימי לחלוטין כעת" + ], + "A new room has been created": [ + null, + "חדר חדש נוצר" + ], + "You have been banned from this room": [ + null, + "נאסרת מתוך חדר זה" + ], + "You have been kicked from this room": [ + null, + "נבעטת מתוך חדר זה" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "הוסרת מתוך חדר זה משום שינוי שיוך" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "הוסרת מתוך חדר זה משום שהחדר שונה לחברים-בלבד ואינך במעמד של חבר" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "הוסרת מתוך חדר זה משום ששירות שמ״מ (שיחה מרובת משתמשים) זה כעת מצוי בהליכי סגירה." + ], + "%1$s has been banned": [ + null, + "%1$s נאסר(ה)" + ], + "%1$s has been kicked out": [ + null, + "%1$s נבעט(ה)" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s הוסרה(ה) משום שינוי שיוך" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s הוסר(ה) משום אי הימצאות במסגרת מעמד של חבר" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "אינך ברשימת החברים של חדר זה" + ], + "No nickname was specified": [ + null, + "לא צוין שום שם כינוי" + ], + "You are not allowed to create new rooms": [ + null, + "אין לך רשות ליצור חדרים חדשים" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "שם הכינוי שלך לא תואם את המדינויות של חדר זה" + ], + "Your nickname is already taken": [ + null, + "שם הכינוי שלך הינו תפוס" + ], + "This room does not (yet) exist": [ + null, + "חדר זה (עדיין) לא קיים" + ], + "This room has reached it's maximum number of occupants": [ + null, + "חדר זה הגיע לסף הנוכחים המרבי שלו" + ], + "Topic set by %1$s to: %2$s": [ + null, + "נושא חדר זה נקבע על ידי %1$s אל: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Click to restore this chat": [ + null, + "לחץ כדי לשחזר את שיחה זו" + ], + "Minimized": [ + null, + "ממוזער" + ], + "Click to remove this contact": [ + null, + "לחץ כדי להסיר את איש קשר זה" + ], + "Click to accept this contact request": [ + null, + "לחץ כדי לקבל את בקשת איש קשר זה" + ], + "Click to decline this contact request": [ + null, + "לחץ כדי לסרב את בקשת איש קשר זה" + ], + "Click to chat with this contact": [ + null, + "לחץ כדי לשוחח עם איש קשר זה" + ], + "Are you sure you want to remove this contact?": [ + null, + "האם אתה בטוח כי ברצונך להסיר את איש קשר זה?" + ], + "Are you sure you want to decline this contact request?": [ + null, + "האם אתה בטוח כי ברצונך לסרב את בקשת איש קשר זה?" + ], + "Type to filter": [ + null, + "הקלד כדי לסנן" + ], + "I am %1$s": [ + null, + "מצבי כעת הינו %1$s" + ], + "Click here to write a custom status message": [ + null, + "לחץ כאן כדי לכתוב הודעת מצב מותאמת" + ], + "Click to change your chat status": [ + null, + "לחץ כדי לשנות את הודעת השיחה שלך" + ], + "Custom status": [ + null, + "מצב מותאם" + ], + "online": [ + null, + "מקוון" + ], + "busy": [ + null, + "עסוק" + ], + "away for long": [ + null, + "נעדר לזמן מה" + ], + "away": [ + null, + "נעדר" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "סיסמה:" + ], + "Log In": [ + null, + "כניסה" + ], + "Sign in": [ + null, + "התחברות" + ], + "Toggle chat": [ + null, + "הפעל שיח" + ] + } + } +}; +locales["hu"] = { + "domain": "converse", + "locale_data": { + "converse": { + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "Elfoglalt" + ], + "This contact is online": [ + null, + "Online" + ], + "This contact is offline": [ + null, + "Nincs bejelentkezve" + ], + "This contact is unavailable": [ + null, + "Elérhetetlen" + ], + "This contact is away for an extended period": [ + null, + "Hosszabb ideje távol" + ], + "This contact is away": [ + null, + "Távol" + ], + "My contacts": [ + null, + "Kapcsolatok:" + ], + "Pending contacts": [ + null, + "Függőben levő kapcsolatok" + ], + "Contact requests": [ + null, + "Kapcsolat felvételi kérés" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Kapcsolatok" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Hiba" + ], + "Connecting": [ + null, + "Kapcsolódás" + ], + "Authenticating": [ + null, + "Azonosítás" + ], + "Authentication Failed": [ + null, + "Azonosítási hiba" + ], + "Online Contacts": [ + null, + "Online kapcsolatok" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Saját üzenet" + ], + "me": [ + null, + "én" + ], + "Show this menu": [ + null, + "Mutasd ezt a menüt" + ], + "Write in the third person": [ + null, + "" + ], + "Remove messages": [ + null, + "Üzenet törlése" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "Elérhető" + ], + "Busy": [ + null, + "Foglalt" + ], + "Away": [ + null, + "Távol" + ], + "Offline": [ + null, + "Nem elérhető" + ], + "Contact name": [ + null, + "Kapcsolat neve" + ], + "Search": [ + null, + "Keresés" + ], + "Contact username": [ + null, + "Felhasználónév" + ], + "Add": [ + null, + "Hozzáadás" + ], + "Click to add new chat contacts": [ + null, + "Új kapcsolatok hozzáadása" + ], + "Add a contact": [ + null, + "Új kapcsolat" + ], + "No users found": [ + null, + "Nincs találat" + ], + "Click to add as a chat contact": [ + null, + "Csevegő kapcsolatként hozzáad" + ], + "Room name": [ + null, + "A szoba neve" + ], + "Nickname": [ + null, + "Becenév" + ], + "Server": [ + null, + "Szerver" + ], + "Join": [ + null, + "Csatlakozás" + ], + "Show rooms": [ + null, + "Létező szobák" + ], + "Rooms": [ + null, + "Szobák" + ], + "No rooms on %1$s": [ + null, + "Nincs csevegő szoba a(z) %1$s szerveren" + ], + "Rooms on %1$s": [ + null, + "Csevegő szobák a(z) %1$s szerveren" + ], + "Click to open this room": [ + null, + "Belépés a csevegő szobába" + ], + "Show more information on this room": [ + null, + "További információk a csevegő szobáról" + ], + "Description:": [ + null, + "Leírás:" + ], + "Occupants:": [ + null, + "Jelenlevők:" + ], + "Features:": [ + null, + "Tulajdonságok" + ], + "Requires authentication": [ + null, + "Azonosítás szükséges" + ], + "Hidden": [ + null, + "Rejtett" + ], + "Requires an invitation": [ + null, + "Meghívás szükséges" + ], + "Moderated": [ + null, + "Moderált" + ], + "Non-anonymous": [ + null, + "NEM névtelen" + ], + "Open room": [ + null, + "Nyitott szoba" + ], + "Permanent room": [ + null, + "Állandó szoba" + ], + "Public": [ + null, + "Nyílvános" + ], + "Semi-anonymous": [ + null, + "Félig névtelen" + ], + "Temporary room": [ + null, + "Ideiglenes szoba" + ], + "Unmoderated": [ + null, + "Moderálatlan" + ], + "This user is a moderator": [ + null, + "Ez a felhasználó egy moderátor" + ], + "This user can send messages in this room": [ + null, + "Ez a felhasználó küldhet üzenetet ebbe a szobába" + ], + "This user can NOT send messages in this room": [ + null, + "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Üzenet" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Write in 3rd person": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Mentés" + ], + "Cancel": [ + null, + "Mégsem" + ], + "An error occurred while trying to save the form.": [ + null, + "Hiba történt az adatok mentése közben." + ], + "This chatroom requires a password": [ + null, + "A csevegő szoba belépéshez jelszó szükséges" + ], + "Password: ": [ + null, + "Jelszó:" + ], + "Submit": [ + null, + "Küldés" + ], + "This room is not anonymous": [ + null, + "Ez a szoba NEM névtelen" + ], + "This room now shows unavailable members": [ + null, + "Ez a szoba mutatja az elérhetetlen tagokat" + ], + "This room does not show unavailable members": [ + null, + "Ez a szoba nem mutatja az elérhetetlen tagokat" + ], + "Non-privacy-related room configuration has changed": [ + null, + "A szoba általános konfigurációja módosult" + ], + "Room logging is now enabled": [ + null, + "A szobába a belépés lehetséges" + ], + "Room logging is now disabled": [ + null, + "A szobába a belépés szünetel" + ], + "This room is now non-anonymous": [ + null, + "Ez a szoba most NEM névtelen" + ], + "This room is now semi-anonymous": [ + null, + "Ez a szoba most félig névtelen" + ], + "This room is now fully-anonymous": [ + null, + "Ez a szoba most teljesen névtelen" + ], + "A new room has been created": [ + null, + "Létrejött egy új csevegő szoba" + ], + "You have been banned from this room": [ + null, + "Ki lettél tíltva ebből a szobából" + ], + "You have been kicked from this room": [ + null, + "Ki lettél dobva ebből a szobából" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Taglista módosítás miatt kiléptettünk a csevegő szobából" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők lehetnek jelen." + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás leállításra került." + ], + "%1$s has been banned": [ + null, + "A szobából kitíltva: %1$s" + ], + "%1$s has been kicked out": [ + null, + "A szobából kidobva: %1$s" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "Taglista módosítás miatt a szobából kiléptetve: %1$s" + ], + "%1$s has been removed for not being a member": [ + null, + "A taglistán nem szerepel így a szobából kiléptetve: %1$s" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Nem szerepelsz a csevegő szoba taglistáján" + ], + "No nickname was specified": [ + null, + "Nem lett megadva becenév" + ], + "You are not allowed to create new rooms": [ + null, + "Nem lehet új csevegő szobát létrehozni" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "A beceneved ütközik a csevegő szoba szabályzataival" + ], + "Your nickname is already taken": [ + null, + "A becenevedet már valaki használja" + ], + "This room does not (yet) exist": [ + null, + "Ez a szoba (még) nem létezik" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Ez a csevegő szoba elérte a maximális jelenlevők számát" + ], + "Topic set by %1$s to: %2$s": [ + null, + "A következő témát állította be %1$s: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "A kapcsolat törlése" + ], + "Click to chat with this contact": [ + null, + "Csevegés indítása ezzel a kapcsolatunkkal" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "%1$s vagyok" + ], + "Click here to write a custom status message": [ + null, + "Egyedi státusz üzenet írása" + ], + "Click to change your chat status": [ + null, + "Saját státusz beállítása" + ], + "Custom status": [ + null, + "Egyedi státusz" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "elfoglalt" + ], + "away for long": [ + null, + "hosszú ideje távol" + ], + "away": [ + null, + "távol" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Jelszó:" + ], + "Log In": [ + null, + "Belépés" + ], + "Sign in": [ + null, + "Belépés" + ], + "Toggle chat": [ + null, + "" + ], + "": { + "domain": "converse", + "lang": "hu" + } + } + } +}; +locales["id"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "id" + }, + "unencrypted": [ + null, + "tak dienkripsi" + ], + "unverified": [ + null, + "tak diverifikasi" + ], + "verified": [ + null, + "diverifikasi" + ], + "finished": [ + null, + "selesai" + ], + "This contact is busy": [ + null, + "Teman ini sedang sibuk" + ], + "This contact is online": [ + null, + "Teman ini terhubung" + ], + "This contact is offline": [ + null, + "Teman ini tidak terhubung" + ], + "This contact is unavailable": [ + null, + "Teman ini tidak tersedia" + ], + "This contact is away for an extended period": [ + null, + "Teman ini tidak di tempat untuk waktu yang lama" + ], + "This contact is away": [ + null, + "Teman ini tidak di tempat" + ], + "My contacts": [ + null, + "Teman saya" + ], + "Pending contacts": [ + null, + "Teman yang menunggu" + ], + "Contact requests": [ + null, + "Permintaan pertemanan" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Teman" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Kesalahan" + ], + "Connecting": [ + null, + "Menyambung" + ], + "Authenticating": [ + null, + "Melakukan otentikasi" + ], + "Authentication Failed": [ + null, + "Otentikasi gagal" + ], + "Online Contacts": [ + null, + "Teman yang Terhubung" + ], + "Re-establishing encrypted session": [ + null, + "Menyambung kembali sesi terenkripsi" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "Tak dapat melakukan verifikasi identitas pengguna ini." + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Pesan pribadi" + ], + "me": [ + null, + "saya" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Tampilkan menu ini" + ], + "Write in the third person": [ + null, + "Tulis ini menggunakan bahasa pihak ketiga" + ], + "Remove messages": [ + null, + "Hapus pesan" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "Pesan anda tak dapat dikirim" + ], + "We received an unencrypted message": [ + null, + "Kami menerima pesan terenkripsi" + ], + "We received an unreadable encrypted message": [ + null, + "Kami menerima pesan terenkripsi yang gagal dibaca" + ], + "This user has requested an encrypted session.": [ + null, + "Pengguna ini meminta sesi terenkripsi" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Ini adalah sidik jari anda, konfirmasikan bersama mereka dengan %1$s, di luar percakapan ini.\n\nSidik jari untuk anda, %2$s: %3$s\n\nSidik jari untuk %1$s: %4$s\n\nJika anda bisa mengkonfirmasi sidik jadi cocok, klik Lanjutkan, jika tidak klik Batal." + ], + "What is your security question?": [ + null, + "Apakah pertanyaan keamanan anda?" + ], + "What is the answer to the security question?": [ + null, + "Apa jawaban dari pertanyaan keamanan tersebut?" + ], + "Invalid authentication scheme provided": [ + null, + "Skema otentikasi salah" + ], + "Your messages are not encrypted anymore": [ + null, + "Pesan anda tidak lagi terenkripsi" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Pesan anda tak terenkripsi. Klik di sini untuk menyalakan enkripsi OTR." + ], + "End encrypted conversation": [ + null, + "Sudahi percakapan terenkripsi" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Setel ulang percakapan terenkripsi" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Mulai sesi terenkripsi" + ], + "Verify with fingerprints": [ + null, + "Verifikasi menggunakan sidik jari" + ], + "Verify with SMP": [ + null, + "Verifikasi menggunakan SMP" + ], + "What's this?": [ + null, + "Apakah ini?" + ], + "Online": [ + null, + "Terhubung" + ], + "Busy": [ + null, + "Sibuk" + ], + "Away": [ + null, + "Pergi" + ], + "Offline": [ + null, + "Tak Terhubung" + ], + "Contact name": [ + null, + "Nama teman" + ], + "Search": [ + null, + "Cari" + ], + "Contact username": [ + null, + "Username teman" + ], + "Add": [ + null, + "Tambah" + ], + "Click to add new chat contacts": [ + null, + "Klik untuk menambahkan teman baru" + ], + "Add a contact": [ + null, + "Tambah teman" + ], + "No users found": [ + null, + "Pengguna tak ditemukan" + ], + "Click to add as a chat contact": [ + null, + "Klik untuk menambahkan sebagai teman" + ], + "Room name": [ + null, + "Nama ruangan" + ], + "Nickname": [ + null, + "Nama panggilan" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Ikuti" + ], + "Show rooms": [ + null, + "Perlihatkan ruangan" + ], + "Rooms": [ + null, + "Ruangan" + ], + "No rooms on %1$s": [ + null, + "Tak ada ruangan di %1$s" + ], + "Rooms on %1$s": [ + null, + "Ruangan di %1$s" + ], + "Click to open this room": [ + null, + "Klik untuk membuka ruangan ini" + ], + "Show more information on this room": [ + null, + "Tampilkan informasi ruangan ini" + ], + "Description:": [ + null, + "Keterangan:" + ], + "Occupants:": [ + null, + "Penghuni:" + ], + "Features:": [ + null, + "Fitur:" + ], + "Requires authentication": [ + null, + "Membutuhkan otentikasi" + ], + "Hidden": [ + null, + "Tersembunyi" + ], + "Requires an invitation": [ + null, + "Membutuhkan undangan" + ], + "Moderated": [ + null, + "Dimoderasi" + ], + "Non-anonymous": [ + null, + "Tidak anonim" + ], + "Open room": [ + null, + "Ruangan terbuka" + ], + "Permanent room": [ + null, + "Ruangan permanen" + ], + "Public": [ + null, + "Umum" + ], + "Semi-anonymous": [ + null, + "Semi-anonim" + ], + "Temporary room": [ + null, + "Ruangan sementara" + ], + "Unmoderated": [ + null, + "Tak dimoderasi" + ], + "This user is a moderator": [ + null, + "Pengguna ini adalah moderator" + ], + "This user can send messages in this room": [ + null, + "Pengguna ini dapat mengirim pesan di ruangan ini" + ], + "This user can NOT send messages in this room": [ + null, + "Pengguna ini tak dapat mengirim pesan di ruangan ini" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Pesan" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Simpan" + ], + "Cancel": [ + null, + "Batal" + ], + "An error occurred while trying to save the form.": [ + null, + "Kesalahan terjadi saat menyimpan formulir ini." + ], + "This chatroom requires a password": [ + null, + "Ruangan ini membutuhkan kata sandi" + ], + "Password: ": [ + null, + "Kata sandi: " + ], + "Submit": [ + null, + "Kirim" + ], + "This room is not anonymous": [ + null, + "Ruangan ini tidak anonim" + ], + "This room now shows unavailable members": [ + null, + "Ruangan ini menampilkan anggota yang tak tersedia" + ], + "This room does not show unavailable members": [ + null, + "Ruangan ini tidak menampilkan anggota yang tak tersedia" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Konfigurasi ruangan yang tak berhubungan dengan privasi telah diubah" + ], + "Room logging is now enabled": [ + null, + "Pencatatan di ruangan ini sekarang dinyalakan" + ], + "Room logging is now disabled": [ + null, + "Pencatatan di ruangan ini sekarang dimatikan" + ], + "This room is now non-anonymous": [ + null, + "Ruangan ini sekarang tak-anonim" + ], + "This room is now semi-anonymous": [ + null, + "Ruangan ini sekarang semi-anonim" + ], + "This room is now fully-anonymous": [ + null, + "Ruangan ini sekarang anonim" + ], + "A new room has been created": [ + null, + "Ruangan baru telah dibuat" + ], + "You have been banned from this room": [ + null, + "Anda telah dicekal dari ruangan ini" + ], + "You have been kicked from this room": [ + null, + "Anda telah ditendang dari ruangan ini" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Anda telah dihapus dari ruangan ini karena perubahan afiliasi" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Anda telah dihapus dari ruangan ini karena ruangan ini hanya terbuka untuk anggota dan anda bukan anggota" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Anda telah dihapus dari ruangan ini karena layanan MUC (Multi-user chat) telah dimatikan." + ], + "%1$s has been banned": [ + null, + "%1$s telah dicekal" + ], + "%1$s has been kicked out": [ + null, + "%1$s telah ditendang keluar" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s telah dihapus karena perubahan afiliasi" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s telah dihapus karena bukan anggota" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Anda bukan anggota dari ruangan ini" + ], + "No nickname was specified": [ + null, + "Nama panggilan belum ditentukan" + ], + "You are not allowed to create new rooms": [ + null, + "Anda tak diizinkan untuk membuat ruangan baru" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Nama panggilan anda tidak sesuai aturan ruangan ini" + ], + "Your nickname is already taken": [ + null, + "Nama panggilan anda telah digunakan orang lain" + ], + "This room does not (yet) exist": [ + null, + "Ruangan ini belum dibuat" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Ruangan ini telah mencapai jumlah penghuni maksimum" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topik diganti oleh %1$s menjadi: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Klik untuk menghapus teman ini" + ], + "Click to chat with this contact": [ + null, + "Klik untuk mulai perbinjangan dengan teman ini" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Saya %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klik untuk menulis status kustom" + ], + "Click to change your chat status": [ + null, + "Klik untuk mengganti status" + ], + "Custom status": [ + null, + "Status kustom" + ], + "online": [ + null, + "terhubung" + ], + "busy": [ + null, + "sibuk" + ], + "away for long": [ + null, + "lama tak di tempat" + ], + "away": [ + null, + "tak di tempat" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Kata sandi:" + ], + "Log In": [ + null, + "Masuk" + ], + "Sign in": [ + null, + "Masuk" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["it"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "it" + }, + "unencrypted": [ + null, + "" + ], + "unverified": [ + null, + "" + ], + "verified": [ + null, + "" + ], + "finished": [ + null, + "" + ], + "This contact is busy": [ + null, + "" + ], + "This contact is online": [ + null, + "" + ], + "This contact is offline": [ + null, + "" + ], + "This contact is away for an extended period": [ + null, + "" + ], + "This contact is away": [ + null, + "" + ], + "My contacts": [ + null, + "I miei contatti" + ], + "Pending contacts": [ + null, + "Contatti in attesa" + ], + "Contact requests": [ + null, + "Richieste dei contatti" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contatti" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Errore" + ], + "Connecting": [ + null, + "Connessione in corso" + ], + "Authenticating": [ + null, + "Autenticazione in corso" + ], + "Authentication Failed": [ + null, + "Autenticazione fallita" + ], + "Online Contacts": [ + null, + "Contatti in linea" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Messaggio personale" + ], + "me": [ + null, + "" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Mostra questo menu" + ], + "Write in the third person": [ + null, + "Scrivi in terza persona" + ], + "Remove messages": [ + null, + "Rimuovi messaggi" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "" + ], + "Your contact's identify has been verified.": [ + null, + "" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "" + ], + "Your messages are encrypted and your contact verified.": [ + null, + "" + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "" + ], + "Online": [ + null, + "In linea" + ], + "Busy": [ + null, + "Occupato" + ], + "Away": [ + null, + "Assente" + ], + "Offline": [ + null, + "Non in linea" + ], + "Contact name": [ + null, + "Nome del contatto" + ], + "Search": [ + null, + "Cerca" + ], + "Contact username": [ + null, + "Nome utente del contatto" + ], + "Add": [ + null, + "Aggiungi" + ], + "Click to add new chat contacts": [ + null, + "Clicca per aggiungere nuovi contatti alla chat" + ], + "Add a contact": [ + null, + "Aggiungi contatti" + ], + "No users found": [ + null, + "Nessun utente trovato" + ], + "Click to add as a chat contact": [ + null, + "Clicca per aggiungere il contatto alla chat" + ], + "Room name": [ + null, + "Nome stanza" + ], + "Nickname": [ + null, + "Soprannome" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Entra" + ], + "Show rooms": [ + null, + "Mostra stanze" + ], + "Rooms": [ + null, + "Stanze" + ], + "No rooms on %1$s": [ + null, + "Nessuna stanza su %1$s" + ], + "Rooms on %1$s": [ + null, + "Stanze su %1$s" + ], + "Click to open this room": [ + null, + "Clicca per aprire questa stanza" + ], + "Show more information on this room": [ + null, + "Mostra più informazioni su questa stanza" + ], + "Description:": [ + null, + "Descrizione:" + ], + "Occupants:": [ + null, + "Utenti presenti:" + ], + "Features:": [ + null, + "Funzionalità:" + ], + "Requires authentication": [ + null, + "Richiede autenticazione" + ], + "Hidden": [ + null, + "Nascosta" + ], + "Requires an invitation": [ + null, + "Richiede un invito" + ], + "Moderated": [ + null, + "Moderata" + ], + "Non-anonymous": [ + null, + "Non-anonima" + ], + "Open room": [ + null, + "Stanza aperta" + ], + "Permanent room": [ + null, + "Stanza permanente" + ], + "Public": [ + null, + "Pubblica" + ], + "Semi-anonymous": [ + null, + "Semi-anonima" + ], + "Temporary room": [ + null, + "Stanza temporanea" + ], + "Unmoderated": [ + null, + "Non moderata" + ], + "This user is a moderator": [ + null, + "Questo utente è un moderatore" + ], + "This user can send messages in this room": [ + null, + "Questo utente può inviare messaggi in questa stanza" + ], + "This user can NOT send messages in this room": [ + null, + "Questo utente NON può inviare messaggi in questa stanza" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Messaggio" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Salva" + ], + "Cancel": [ + null, + "Annulla" + ], + "An error occurred while trying to save the form.": [ + null, + "Errore durante il salvataggio del modulo" + ], + "This chatroom requires a password": [ + null, + "Questa stanza richiede una password" + ], + "Password: ": [ + null, + "Password: " + ], + "Submit": [ + null, + "Invia" + ], + "This room is not anonymous": [ + null, + "Questa stanza non è anonima" + ], + "This room now shows unavailable members": [ + null, + "Questa stanza mostra i membri non disponibili al momento" + ], + "This room does not show unavailable members": [ + null, + "Questa stanza non mostra i membri non disponibili" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Una configurazione della stanza non legata alla privacy è stata modificata" + ], + "Room logging is now enabled": [ + null, + "La registrazione è abilitata nella stanza" + ], + "Room logging is now disabled": [ + null, + "La registrazione è disabilitata nella stanza" + ], + "This room is now non-anonymous": [ + null, + "Questa stanza è non-anonima" + ], + "This room is now semi-anonymous": [ + null, + "Questa stanza è semi-anonima" + ], + "This room is now fully-anonymous": [ + null, + "Questa stanza è completamente-anonima" + ], + "A new room has been created": [ + null, + "Una nuova stanza è stata creata" + ], + "You have been banned from this room": [ + null, + "Sei stato bandito da questa stanza" + ], + "You have been kicked from this room": [ + null, + "Sei stato espulso da questa stanza" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Sei stato rimosso da questa stanza a causa di un cambio di affiliazione" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Sei stato rimosso da questa stanza poiché ora la stanza accetta solo membri" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Sei stato rimosso da questa stanza poiché il servizio MUC (Chat multi utente) è in fase di spegnimento" + ], + "%1$s has been banned": [ + null, + "%1$s è stato bandito" + ], + "%1$s has been kicked out": [ + null, + "%1$s è stato espulso" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s è stato rimosso a causa di un cambio di affiliazione" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s è stato rimosso in quanto non membro" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Non sei nella lista dei membri di questa stanza" + ], + "No nickname was specified": [ + null, + "Nessun soprannome specificato" + ], + "You are not allowed to create new rooms": [ + null, + "Non ti è permesso creare nuove stanze" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Il tuo soprannome non è conforme alle regole di questa stanza" + ], + "Your nickname is already taken": [ + null, + "Il tuo soprannome è già utilizzato" + ], + "This room does not (yet) exist": [ + null, + "Questa stanza non esiste (per ora)" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Questa stanza ha raggiunto il limite massimo di utenti" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topic impostato da %1$s a: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Clicca per rimuovere questo contatto" + ], + "Click to chat with this contact": [ + null, + "Clicca per parlare con questo contatto" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Sono %1$s" + ], + "Click here to write a custom status message": [ + null, + "Clicca qui per scrivere un messaggio di stato personalizzato" + ], + "Click to change your chat status": [ + null, + "Clicca per cambiare il tuo stato" + ], + "Custom status": [ + null, + "Stato personalizzato" + ], + "online": [ + null, + "in linea" + ], + "busy": [ + null, + "occupato" + ], + "away for long": [ + null, + "assente da molto" + ], + "away": [ + null, + "assente" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Password:" + ], + "Log In": [ + null, + "Entra" + ], + "Sign in": [ + null, + "Accesso" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["ja"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=1; plural=0;", + "lang": "JA" + }, + "unencrypted": [ + null, + "暗号化されていません" + ], + "unverified": [ + null, + "検証されていません" + ], + "verified": [ + null, + "検証されました" + ], + "finished": [ + null, + "完了" + ], + "This contact is busy": [ + null, + "この相手先は取り込み中です" + ], + "This contact is online": [ + null, + "この相手先は在席しています" + ], + "This contact is offline": [ + null, + "この相手先はオフラインです" + ], + "This contact is unavailable": [ + null, + "この相手先は不通です" + ], + "This contact is away for an extended period": [ + null, + "この相手先は不在です" + ], + "This contact is away": [ + null, + "この相手先は離席中です" + ], + "My contacts": [ + null, + "相手先一覧" + ], + "Pending contacts": [ + null, + "保留中の相手先" + ], + "Contact requests": [ + null, + "会話に呼び出し" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "相手先" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "エラー" + ], + "Connecting": [ + null, + "接続中です" + ], + "Authenticating": [ + null, + "認証中" + ], + "Authentication Failed": [ + null, + "認証に失敗" + ], + "Online Contacts": [ + null, + "オンラインの相手先" + ], + "Re-establishing encrypted session": [ + null, + "暗号化セッションの再接続" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "このユーザーの本人性を検証できませんでした。" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "私信" + ], + "me": [ + null, + "私" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "このメニューを表示" + ], + "Write in the third person": [ + null, + "第三者に書く" + ], + "Remove messages": [ + null, + "メッセージを削除" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "メッセージを送信できませんでした" + ], + "We received an unencrypted message": [ + null, + "暗号化されていないメッセージを受信しました" + ], + "We received an unreadable encrypted message": [ + null, + "読めない暗号化メッセージを受信しました" + ], + "This user has requested an encrypted session.": [ + null, + "このユーザーは暗号化セッションを求めています。" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "これは鍵指紋です。チャット以外の方法でこれらを %1$s と確認してください。\n\nあなた %2$s の鍵指紋: %3$s\n\n%1$s の鍵指紋: %4$s\n\n確認して、鍵指紋が正しければ「OK」を、正しくなければ「キャンセル」をクリックしてください。" + ], + "What is your security question?": [ + null, + "秘密の質問はなんですか?" + ], + "What is the answer to the security question?": [ + null, + "秘密の質問の答はなんですか?" + ], + "Invalid authentication scheme provided": [ + null, + "認証の方式が正しくありません" + ], + "Your messages are not encrypted anymore": [ + null, + "メッセージはもう暗号化されません" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "メッセージは暗号化されません。OTR 暗号化を有効にするにはここをクリックしてください。" + ], + "End encrypted conversation": [ + null, + "暗号化された会話を終了" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "暗号化された会話をリフレッシュ" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "暗号化された会話を開始" + ], + "Verify with fingerprints": [ + null, + "鍵指紋で検証" + ], + "Verify with SMP": [ + null, + "SMP で検証" + ], + "What's this?": [ + null, + "これは何ですか?" + ], + "Online": [ + null, + "オンライン" + ], + "Busy": [ + null, + "取り込み中" + ], + "Away": [ + null, + "離席中" + ], + "Offline": [ + null, + "オフライン" + ], + "Contact name": [ + null, + "名前" + ], + "Search": [ + null, + "検索" + ], + "Contact username": [ + null, + "相手先の名前" + ], + "Add": [ + null, + "追加" + ], + "Click to add new chat contacts": [ + null, + "クリックして新しいチャットの相手先を追加" + ], + "Add a contact": [ + null, + "相手先を追加" + ], + "No users found": [ + null, + "ユーザーが見つかりません" + ], + "Click to add as a chat contact": [ + null, + "クリックしてチャットの相手先として追加" + ], + "Room name": [ + null, + "談話室の名前" + ], + "Nickname": [ + null, + "ニックネーム" + ], + "Server": [ + null, + "サーバー" + ], + "Join": [ + null, + "入室" + ], + "Show rooms": [ + null, + "談話室一覧を見る" + ], + "Rooms": [ + null, + "談話室" + ], + "No rooms on %1$s": [ + null, + "%1$s に談話室はありません" + ], + "Rooms on %1$s": [ + null, + "%1$s の談話室一覧" + ], + "Click to open this room": [ + null, + "クリックしてこの談話室を開く" + ], + "Show more information on this room": [ + null, + "この談話室についての詳細を見る" + ], + "Description:": [ + null, + "説明: " + ], + "Occupants:": [ + null, + "入室者:" + ], + "Features:": [ + null, + "特徴:" + ], + "Requires authentication": [ + null, + "認証の要求" + ], + "Hidden": [ + null, + "非表示" + ], + "Requires an invitation": [ + null, + "招待の要求" + ], + "Moderated": [ + null, + "発言制限" + ], + "Non-anonymous": [ + null, + "非匿名" + ], + "Open room": [ + null, + "開放談話室" + ], + "Permanent room": [ + null, + "常設談話室" + ], + "Public": [ + null, + "公開談話室" + ], + "Semi-anonymous": [ + null, + "半匿名" + ], + "Temporary room": [ + null, + "臨時談話室" + ], + "Unmoderated": [ + null, + "発言制限なし" + ], + "This user is a moderator": [ + null, + "このユーザーは司会者です" + ], + "This user can send messages in this room": [ + null, + "このユーザーはこの談話室で発言できます" + ], + "This user can NOT send messages in this room": [ + null, + "このユーザーはこの談話室で発言できません" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "メッセージ" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "保存" + ], + "Cancel": [ + null, + "キャンセル" + ], + "An error occurred while trying to save the form.": [ + null, + "フォームを保存する際にエラーが発生しました。" + ], + "This chatroom requires a password": [ + null, + "この談話室にはパスワードが必要です" + ], + "Password: ": [ + null, + "パスワード:" + ], + "Submit": [ + null, + "送信" + ], + "This room is not anonymous": [ + null, + "この談話室は非匿名です" + ], + "This room now shows unavailable members": [ + null, + "この談話室はメンバー以外にも見えます" + ], + "This room does not show unavailable members": [ + null, + "この談話室はメンバー以外には見えません" + ], + "Non-privacy-related room configuration has changed": [ + null, + "談話室の設定(プライバシーに無関係)が変更されました" + ], + "Room logging is now enabled": [ + null, + "談話室の記録を取りはじめます" + ], + "Room logging is now disabled": [ + null, + "談話室の記録を止めます" + ], + "This room is now non-anonymous": [ + null, + "この談話室はただいま非匿名です" + ], + "This room is now semi-anonymous": [ + null, + "この談話室はただいま半匿名です" + ], + "This room is now fully-anonymous": [ + null, + "この談話室はただいま匿名です" + ], + "A new room has been created": [ + null, + "新しい談話室が作成されました" + ], + "You have been banned from this room": [ + null, + "この談話室から締め出されました" + ], + "You have been kicked from this room": [ + null, + "この談話室から蹴り出されました" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "分掌の変更のため、この談話室から削除されました" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "談話室がメンバー制に変更されました。メンバーではないため、この談話室から削除されました" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "MUC(グループチャット)のサービスが停止したため、この談話室から削除されました。" + ], + "%1$s has been banned": [ + null, + "%1$s を締め出しました" + ], + "%1$s has been kicked out": [ + null, + "%1$s を蹴り出しました" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "分掌の変更のため、%1$s を削除しました" + ], + "%1$s has been removed for not being a member": [ + null, + "メンバーでなくなったため、%1$s を削除しました" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "この談話室のメンバー一覧にいません" + ], + "No nickname was specified": [ + null, + "ニックネームがありません" + ], + "You are not allowed to create new rooms": [ + null, + "新しい談話室を作成する権限がありません" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "ニックネームがこの談話室のポリシーに従っていません" + ], + "Your nickname is already taken": [ + null, + "ニックネームは既に使われています" + ], + "This room does not (yet) exist": [ + null, + "この談話室は存在しません" + ], + "This room has reached it's maximum number of occupants": [ + null, + "この談話室は入室者数の上限に達しています" + ], + "Topic set by %1$s to: %2$s": [ + null, + "%1$s が話題を設定しました: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "クリックしてこの相手先を削除" + ], + "Click to chat with this contact": [ + null, + "クリックしてこの相手先とチャット" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "私はいま %1$s" + ], + "Click here to write a custom status message": [ + null, + "状況メッセージを入力するには、ここをクリック" + ], + "Click to change your chat status": [ + null, + "クリックして、在席状況を変更" + ], + "Custom status": [ + null, + "独自の在席状況" + ], + "online": [ + null, + "在席" + ], + "busy": [ + null, + "取り込み中" + ], + "away for long": [ + null, + "不在" + ], + "away": [ + null, + "離席中" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "パスワード:" + ], + "Log In": [ + null, + "ログイン" + ], + "Sign in": [ + null, + "サインイン" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["nb"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "nb" + }, + "unencrypted": [ + null, + "ukryptertß" + ], + "unverified": [ + null, + "uverifisert" + ], + "verified": [ + null, + "verifisert" + ], + "finished": [ + null, + "ferdig" + ], + "This contact is busy": [ + null, + "Denne kontakten er opptatt" + ], + "This contact is online": [ + null, + "Kontakten er pålogget" + ], + "This contact is offline": [ + null, + "Kontakten er avlogget" + ], + "This contact is unavailable": [ + null, + "Kontakten er utilgjengelig" + ], + "This contact is away for an extended period": [ + null, + "Kontakten er borte for en lengre periode" + ], + "This contact is away": [ + null, + "Kontakten er borte" + ], + "Click to hide these contacts": [ + null, + "Klikk for å skjule disse kontaktene" + ], + "My contacts": [ + null, + "Mine Kontakter" + ], + "Pending contacts": [ + null, + "Kontakter som venter på godkjenning" + ], + "Contact requests": [ + null, + "Kontaktforespørsler" + ], + "Ungrouped": [ + null, + "Ugrupperte" + ], + "Contacts": [ + null, + "Kontakter" + ], + "Groups": [ + null, + "Grupper" + ], + "Reconnecting": [ + null, + "Kobler til igjen" + ], + "Error": [ + null, + "Feil" + ], + "Connecting": [ + null, + "Kobler til" + ], + "Authenticating": [ + null, + "Godkjenner" + ], + "Authentication Failed": [ + null, + "Godkjenning mislyktes" + ], + "Online Contacts": [ + null, + "Påloggede Kontakter" + ], + "Re-establishing encrypted session": [ + null, + "Gjenopptar kryptert økt" + ], + "Generating private key.": [ + null, + "Genererer privat nøkkel" + ], + "Your browser might become unresponsive.": [ + null, + "Din nettleser kan bli uresponsiv" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "Godkjenningsforespørsel fra %1$s\n\nDin nettpratkontakt forsøker å bekrefte din identitet, ved å spørre deg spørsmålet under.\n\n%2$s" + ], + "Could not verify this user's identify.": [ + null, + "Kunne ikke bekrefte denne brukerens identitet" + ], + "Exchanging private key with contact.": [ + null, + "Bytter private nøkler med kontakt" + ], + "Personal message": [ + null, + "Personlig melding" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "Er du sikker på at du vil fjerne meldingene fra dette rommet?" + ], + "me": [ + null, + "meg" + ], + "is typing": [ + null, + "skriver" + ], + "has stopped typing": [ + null, + "har stoppet å skrive" + ], + "Show this menu": [ + null, + "Viser denne menyen" + ], + "Write in the third person": [ + null, + "Skriv i tredjeperson" + ], + "Remove messages": [ + null, + "Fjern meldinger" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "Er du sikker på at du vil fjerne meldingene fra denne meldingsboksen?" + ], + "Your message could not be sent": [ + null, + "Beskjeden din kunne ikke sendes" + ], + "We received an unencrypted message": [ + null, + "Vi mottok en ukryptert beskjed" + ], + "We received an unreadable encrypted message": [ + null, + "Vi mottok en uleselig melding" + ], + "This user has requested an encrypted session.": [ + null, + "Denne brukeren har ønsket en kryptert økt" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nOm du har bekreftet at avtrykkene matcher, klikk OK. I motsatt fall, trykk Avbryt." + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "Du vil bli spurt etter å tilby et sikkerhetsspørsmål og siden svare på dette.\n\nDin kontakt vil så bli spurt om det samme spørsmålet, og om de svarer det nøyaktig samme svaret (det er forskjell på små og store bokstaver), vil identiteten verifiseres." + ], + "What is your security question?": [ + null, + "Hva er ditt Sikkerhetsspørsmål?" + ], + "What is the answer to the security question?": [ + null, + "Hva er svaret på ditt Sikkerhetsspørsmål?" + ], + "Invalid authentication scheme provided": [ + null, + "Du har vedlagt en ugyldig godkjenningsplan." + ], + "Your messages are not encrypted anymore": [ + null, + "Dine meldinger er ikke kryptert lenger." + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "Dine meldinger er nå krypterte, men identiteten til din kontakt har ikke blitt verifisert." + ], + "Your contact's identify has been verified.": [ + null, + "Din kontakts identitet har blitt verifisert." + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "Din kontakt har avsluttet kryptering i sin ende, dette burde du også gjøre." + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Dine meldinger er ikke krypterte. Klikk her for å aktivere OTR-kryptering." + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "Dine meldinger er krypterte, men din kontakt har ikke blitt verifisert." + ], + "Your messages are encrypted and your contact verified.": [ + null, + "Dine meldinger er krypterte og din kontakt er verifisert." + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "Din kontakt har avsluttet økten i sin ende, dette burde du også gjøre." + ], + "Clear all messages": [ + null, + "Fjern alle meldinger" + ], + "End encrypted conversation": [ + null, + "Avslutt kryptert økt" + ], + "Hide the list of participants": [ + null, + "Skjul deltakerlisten" + ], + "Refresh encrypted conversation": [ + null, + "Last inn kryptert samtale på nytt" + ], + "Start a call": [ + null, + "Start en samtale" + ], + "Start encrypted conversation": [ + null, + "Start en kryptert samtale" + ], + "Verify with fingerprints": [ + null, + "Verifiser med Avtrykk" + ], + "Verify with SMP": [ + null, + "Verifiser med SMP" + ], + "What's this?": [ + null, + "Hva er dette?" + ], + "Online": [ + null, + "Pålogget" + ], + "Busy": [ + null, + "Opptatt" + ], + "Away": [ + null, + "Borte" + ], + "Offline": [ + null, + "Avlogget" + ], + "Log out": [ + null, + "Logg Av" + ], + "Contact name": [ + null, + "Kontaktnavn" + ], + "Search": [ + null, + "Søk" + ], + "Contact username": [ + null, + "Brukernavnet til Kontakt" + ], + "Add": [ + null, + "Legg Til" + ], + "Click to add new chat contacts": [ + null, + "Klikk for å legge til nye meldingskontakter" + ], + "Add a contact": [ + null, + "Legg til en Kontakt" + ], + "No users found": [ + null, + "Ingen brukere funnet" + ], + "Click to add as a chat contact": [ + null, + "Klikk for å legge til som meldingskontakt" + ], + "Room name": [ + null, + "Romnavn" + ], + "Nickname": [ + null, + "Kallenavn" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Koble til" + ], + "Show rooms": [ + null, + "Vis Rom" + ], + "Rooms": [ + null, + "Rom" + ], + "No rooms on %1$s": [ + null, + "Ingen rom på %1$s" + ], + "Rooms on %1$s": [ + null, + "Rom på %1$s" + ], + "Click to open this room": [ + null, + "Klikk for å åpne dette rommet" + ], + "Show more information on this room": [ + null, + "Vis mer informasjon om dette rommet" + ], + "Description:": [ + null, + "Beskrivelse:" + ], + "Occupants:": [ + null, + "Brukere her:" + ], + "Features:": [ + null, + "Egenskaper:" + ], + "Requires authentication": [ + null, + "Krever Godkjenning" + ], + "Hidden": [ + null, + "Skjult" + ], + "Requires an invitation": [ + null, + "Krever en invitasjon" + ], + "Moderated": [ + null, + "Moderert" + ], + "Non-anonymous": [ + null, + "Ikke-Anonym" + ], + "Open room": [ + null, + "Åpent Rom" + ], + "Permanent room": [ + null, + "Permanent Rom" + ], + "Public": [ + null, + "Alle" + ], + "Semi-anonymous": [ + null, + "Semi-anonymt" + ], + "Temporary room": [ + null, + "Midlertidig Rom" + ], + "Unmoderated": [ + null, + "Umoderert" + ], + "This user is a moderator": [ + null, + "Denne brukeren er moderator" + ], + "This user can send messages in this room": [ + null, + "Denne brukeren kan skrive meldinger i dette rommet" + ], + "This user can NOT send messages in this room": [ + null, + "Denne brukeren kan IKKE sende meldinger i dette rommet" + ], + "Invite...": [ + null, + "Invitér..." + ], + "Occupants": [ + null, + "Brukere her:" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "Du er i ferd med å invitere %1$s til samtalerommet \"%2$s\". " + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "Du kan eventuelt inkludere en melding og forklare årsaken til invitasjonen." + ], + "Message": [ + null, + "Melding" + ], + "Error: could not execute the command": [ + null, + "Feil: kunne ikke utføre kommandoen" + ], + "Ban user from room": [ + null, + "Utesteng bruker fra rommet" + ], + "Kick user from room": [ + null, + "Kast ut bruker fra rommet" + ], + "Write in 3rd person": [ + null, + "Skriv i tredjeperson" + ], + "Remove user's ability to post messages": [ + null, + "Fjern brukerens muligheter til å skrive meldinger" + ], + "Change your nickname": [ + null, + "Endre ditt kallenavn" + ], + "Set room topic": [ + null, + "Endre rommets emne" + ], + "Allow muted user to post messages": [ + null, + "Tillat stumme brukere å skrive meldinger" + ], + "Save": [ + null, + "Lagre" + ], + "Cancel": [ + null, + "Avbryt" + ], + "An error occurred while trying to save the form.": [ + null, + "En feil skjedde under lagring av skjemaet." + ], + "This chatroom requires a password": [ + null, + "Dette rommet krever et passord" + ], + "Password: ": [ + null, + "Passord:" + ], + "Submit": [ + null, + "Send" + ], + "This room is not anonymous": [ + null, + "Dette rommet er ikke anonymt" + ], + "This room now shows unavailable members": [ + null, + "Dette rommet viser nå utilgjengelige medlemmer" + ], + "This room does not show unavailable members": [ + null, + "Dette rommet viser ikke utilgjengelige medlemmer" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Ikke-personvernsrelatert romkonfigurasjon har blitt endret" + ], + "Room logging is now enabled": [ + null, + "Romlogging er nå aktivert" + ], + "Room logging is now disabled": [ + null, + "Romlogging er nå deaktivert" + ], + "This room is now non-anonymous": [ + null, + "Dette rommet er nå ikke-anonymt" + ], + "This room is now semi-anonymous": [ + null, + "Dette rommet er nå semi-anonymt" + ], + "This room is now fully-anonymous": [ + null, + "Dette rommet er nå totalt anonymt" + ], + "A new room has been created": [ + null, + "Et nytt rom har blitt opprettet" + ], + "You have been banned from this room": [ + null, + "Du har blitt utestengt fra dette rommet" + ], + "You have been kicked from this room": [ + null, + "Du ble kastet ut av dette rommet" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Du har blitt fjernet fra dette rommet på grunn av en holdningsendring" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Du har blitt fjernet fra dette rommet fordi rommet nå kun tillater medlemmer, noe du ikke er." + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Du har blitt fjernet fra dette rommet fordi MBC (Multi-Bruker-Chat)-tjenesten er stengt ned." + ], + "%1$s has been banned": [ + null, + "%1$s har blitt utestengt" + ], + "%1$s's nickname has changed": [ + null, + "%1$s sitt kallenavn er endret" + ], + "%1$s has been kicked out": [ + null, + "%1$s ble kastet ut" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s har blitt fjernet på grunn av en holdningsendring" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s har blitt fjernet på grunn av at han/hun ikke er medlem" + ], + "Your nickname has been automatically changed to: %1$s": [ + null, + "Ditt kallenavn har blitt automatisk endret til %1$s " + ], + "Your nickname has been changed to: %1$s": [ + null, + "Ditt kallenavn har blitt endret til %1$s " + ], + "The reason given is: \"": [ + null, + "Årsaken som er oppgitt er: \"" + ], + "You are not on the member list of this room": [ + null, + "Du er ikke på medlemslisten til dette rommet" + ], + "No nickname was specified": [ + null, + "Ingen kallenavn var spesifisert" + ], + "You are not allowed to create new rooms": [ + null, + "Du har ikke tillatelse til å opprette nye rom" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Ditt kallenavn er ikke i samsvar med rommets regler" + ], + "Your nickname is already taken": [ + null, + "Kallenavnet er allerede tatt" + ], + "This room does not (yet) exist": [ + null, + "Dette rommet eksisterer ikke (enda)" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Dette rommet har nådd maksimalt antall brukere" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Emnet ble endret den %1$s til: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "%1$s har invitert deg til å bli med i chatterommet: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "%1$s har invitert deg til å bli med i chatterommet: %2$s, og forlot selv av følgende grunn: \"%3$s\"" + ], + "Click to restore this chat": [ + null, + "Klikk for å gjenopprette denne samtalen" + ], + "Minimized": [ + null, + "Minimert" + ], + "Click to remove this contact": [ + null, + "Klikk for å fjerne denne kontakten" + ], + "Click to accept this contact request": [ + null, + "Klikk for å Godta denne kontaktforespørselen" + ], + "Click to decline this contact request": [ + null, + "Klikk for å avslå denne kontaktforespørselen" + ], + "Click to chat with this contact": [ + null, + "Klikk for å chatte med denne kontakten" + ], + "Are you sure you want to remove this contact?": [ + null, + "Er du sikker på at du vil fjerne denne kontakten?" + ], + "Are you sure you want to decline this contact request?": [ + null, + "Er du sikker på at du vil avslå denne kontaktforespørselen?" + ], + "Type to filter": [ + null, + "Skriv til filter" + ], + "I am %1$s": [ + null, + "Jeg er %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klikk her for å skrive en personlig statusmelding" + ], + "Click to change your chat status": [ + null, + "Klikk for å endre din meldingsstatus" + ], + "Custom status": [ + null, + "Personlig status" + ], + "online": [ + null, + "pålogget" + ], + "busy": [ + null, + "opptatt" + ], + "away for long": [ + null, + "borte lenge" + ], + "away": [ + null, + "borte" + ], + "Your XMPP provider's domain name:": [ + null, + "Din XMPP-tilbyders domenenavn:" + ], + "Fetch registration form": [ + null, + "Hent registreringsskjema" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "Tips: En liste med offentlige XMPP-tilbydere er tilgjengelig" + ], + "here": [ + null, + "her" + ], + "Register": [ + null, + "Registrér deg" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "Beklager, den valgte tilbyderen støtter ikke in band kontoregistrering. Vennligst prøv igjen med en annen tilbyder. " + ], + "Requesting a registration form from the XMPP server": [ + null, + "Spør etter registreringsskjema fra XMPP-tjeneren" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "Noe gikk galt under etablering av forbindelse med \"%1$s\". Er du sikker på at denne eksisterer?" + ], + "Now logging you in": [ + null, + "Logger deg inn" + ], + "Registered successfully": [ + null, + "Registrering var vellykket" + ], + "Return": [ + null, + "Tilbake" + ], + "The provider rejected your registration attempt. ": [ + null, + "Tilbyderen avviste ditt registreringsforsøk." + ], + "XMPP Username:": [ + null, + "XMPP Brukernavn:" + ], + "Password:": [ + null, + "Passord:" + ], + "Log In": [ + null, + "Logg inn" + ], + "Sign in": [ + null, + "Innlogging" + ], + "Toggle chat": [ + null, + "Endre chatten" + ] + } + } +}; +locales["nl"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n != 1);", + "lang": "nl" + }, + "unencrypted": [ + null, + "ongecodeerde" + ], + "unverified": [ + null, + "niet geverifieerd" + ], + "verified": [ + null, + "geverifieerd" + ], + "finished": [ + null, + "klaar" + ], + "This contact is busy": [ + null, + "Contact is bezet" + ], + "This contact is online": [ + null, + "Contact is online" + ], + "This contact is offline": [ + null, + "Contact is offline" + ], + "This contact is unavailable": [ + null, + "Contact is niet beschikbaar" + ], + "This contact is away for an extended period": [ + null, + "Contact is afwezig voor lange periode" + ], + "This contact is away": [ + null, + "Conact is afwezig" + ], + "My contacts": [ + null, + "Mijn contacts" + ], + "Pending contacts": [ + null, + "Conacten in afwachting van" + ], + "Contact requests": [ + null, + "Contact uitnodiging" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contacten" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Error" + ], + "Connecting": [ + null, + "Verbinden" + ], + "Authenticating": [ + null, + "Authenticeren" + ], + "Authentication Failed": [ + null, + "Authenticeren mislukt" + ], + "Online Contacts": [ + null, + "Online Contacten" + ], + "Re-establishing encrypted session": [ + null, + "Bezig versleutelde sessie te herstellen" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "Niet kon de identiteit van deze gebruiker niet identificeren." + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Persoonlijk bericht" + ], + "me": [ + null, + "ikzelf" + ], + "Show this menu": [ + null, + "Toon dit menu" + ], + "Write in the third person": [ + null, + "Schrijf in de 3de persoon" + ], + "Remove messages": [ + null, + "Verwijder bericht" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "Je bericht kon niet worden verzonden" + ], + "We received an unencrypted message": [ + null, + "We ontvingen een unencrypted bericht " + ], + "We received an unreadable encrypted message": [ + null, + "We ontvangen een onleesbaar unencrypted bericht" + ], + "This user has requested an encrypted session.": [ + null, + "Deze gebruiker heeft een encrypted sessie aangevraagd." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "Wat is jou sericury vraag?" + ], + "What is the answer to the security question?": [ + null, + "Wat is het antwoord op de security vraag?" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "Je berichten zijn niet meer encrypted" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Jou bericht is niet encrypted. KLik hier om ORC encrytion aan te zetten." + ], + "End encrypted conversation": [ + null, + "Beeindig encrypted gesprek" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Ververs encrypted gesprek" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Start encrypted gesprek" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "Wat is dit?" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Bezet" + ], + "Away": [ + null, + "Afwezig" + ], + "Offline": [ + null, + "" + ], + "Contact name": [ + null, + "Contact naam" + ], + "Search": [ + null, + "Zoeken" + ], + "Contact username": [ + null, + "Contact gebruikernaam" + ], + "Add": [ + null, + "Toevoegen" + ], + "Click to add new chat contacts": [ + null, + "Klik om nieuwe contacten toe te voegen" + ], + "Add a contact": [ + null, + "Voeg contact toe" + ], + "No users found": [ + null, + "Geen gebruikers gevonden" + ], + "Click to add as a chat contact": [ + null, + "Klik om contact toe te voegen" + ], + "Room name": [ + null, + "Room naam" + ], + "Nickname": [ + null, + "Nickname" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Deelnemen" + ], + "Show rooms": [ + null, + "Toon rooms" + ], + "Rooms": [ + null, + "Rooms" + ], + "No rooms on %1$s": [ + null, + "Geen room op %1$s" + ], + "Rooms on %1$s": [ + null, + "Room op %1$s" + ], + "Click to open this room": [ + null, + "Klik om room te openen" + ], + "Show more information on this room": [ + null, + "Toon meer informatie over deze room" + ], + "Description:": [ + null, + "Beschrijving" + ], + "Occupants:": [ + null, + "Deelnemers:" + ], + "Features:": [ + null, + "Functies:" + ], + "Requires authentication": [ + null, + "Verificatie vereist" + ], + "Hidden": [ + null, + "Verborgen" + ], + "Requires an invitation": [ + null, + "Veriest een uitnodiging" + ], + "Moderated": [ + null, + "Gemodereerd" + ], + "Non-anonymous": [ + null, + "Niet annoniem" + ], + "Open room": [ + null, + "Open room" + ], + "Permanent room": [ + null, + "Blijvend room" + ], + "Public": [ + null, + "Publiek" + ], + "Semi-anonymous": [ + null, + "Semi annoniem" + ], + "Temporary room": [ + null, + "Tijdelijke room" + ], + "Unmoderated": [ + null, + "Niet gemodereerd" + ], + "This user is a moderator": [ + null, + "Dit is een moderator" + ], + "This user can send messages in this room": [ + null, + "Deze gebruiker kan berichten sturen in deze room" + ], + "This user can NOT send messages in this room": [ + null, + "Deze gebruiker kan NIET een bericht sturen in deze room" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Bericht" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Opslaan" + ], + "Cancel": [ + null, + "Annuleren" + ], + "An error occurred while trying to save the form.": [ + null, + "Een error tijdens het opslaan van het formulier." + ], + "This chatroom requires a password": [ + null, + "Chatroom heeft een wachtwoord" + ], + "Password: ": [ + null, + "Wachtwoord: " + ], + "Submit": [ + null, + "Indienen" + ], + "This room is not anonymous": [ + null, + "Deze room is niet annoniem" + ], + "This room now shows unavailable members": [ + null, + "" + ], + "This room does not show unavailable members": [ + null, + "" + ], + "Non-privacy-related room configuration has changed": [ + null, + "" + ], + "Room logging is now enabled": [ + null, + "" + ], + "Room logging is now disabled": [ + null, + "" + ], + "This room is now non-anonymous": [ + null, + "Deze room is nu niet annoniem" + ], + "This room is now semi-anonymous": [ + null, + "Deze room is nu semie annoniem" + ], + "This room is now fully-anonymous": [ + null, + "Deze room is nu volledig annoniem" + ], + "A new room has been created": [ + null, + "Een nieuwe room is gemaakt" + ], + "You have been banned from this room": [ + null, + "Je bent verbannen uit deze room" + ], + "You have been kicked from this room": [ + null, + "Je bent uit de room gegooid" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "" + ], + "%1$s has been banned": [ + null, + "%1$s is verbannen" + ], + "%1$s has been kicked out": [ + null, + "%1$s has been kicked out" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "" + ], + "%1$s has been removed for not being a member": [ + null, + "" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Je bent niet een gebruiker van deze room" + ], + "No nickname was specified": [ + null, + "Geen nickname ingegeven" + ], + "You are not allowed to create new rooms": [ + null, + "Je bent niet toegestaan nieuwe rooms te maken" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Je nickname is niet conform policy" + ], + "Your nickname is already taken": [ + null, + "Je nickname bestaat al" + ], + "This room does not (yet) exist": [ + null, + "Deze room bestaat niet" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Deze room heeft het maximale aantal gebruikers" + ], + "Topic set by %1$s to: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Klik om contact te verwijderen" + ], + "Click to chat with this contact": [ + null, + "Klik om te chatten met contact" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Ik ben %1$s" + ], + "Click here to write a custom status message": [ + null, + "Klik hier om custom status bericht te maken" + ], + "Click to change your chat status": [ + null, + "Klik hier om status te wijzigen" + ], + "Custom status": [ + null, + "" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "bezet" + ], + "away for long": [ + null, + "afwezig lange tijd" + ], + "away": [ + null, + "afwezig" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Wachtwoord:" + ], + "Log In": [ + null, + "Aanmelden" + ], + "Sign in": [ + null, + "Aanmelden" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["pl"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);", + "lang": "pl" + }, + "unencrypted": [ + null, + "nieszyfrowane" + ], + "unverified": [ + null, + "niezweryfikowane" + ], + "verified": [ + null, + "zweryfikowane" + ], + "finished": [ + null, + "zakończone" + ], + "This contact is busy": [ + null, + "Kontakt jest zajęty" + ], + "This contact is online": [ + null, + "Kontakt jest połączony" + ], + "This contact is offline": [ + null, + "Kontakt jest niepołączony" + ], + "This contact is unavailable": [ + null, + "Kontakt jest niedostępny" + ], + "This contact is away for an extended period": [ + null, + "Kontakt jest nieobecny przez dłuższą chwilę" + ], + "This contact is away": [ + null, + "Kontakt jest nieobecny" + ], + "Click to hide these contacts": [ + null, + "Kliknij aby schować te kontakty" + ], + "My contacts": [ + null, + "Moje kontakty" + ], + "Pending contacts": [ + null, + "Kontakty oczekujące" + ], + "Contact requests": [ + null, + "Zaproszenia do kontaktu" + ], + "Ungrouped": [ + null, + "Niezgrupowane" + ], + "Contacts": [ + null, + "Kontakty" + ], + "Groups": [ + null, + "Grupy" + ], + "Reconnecting": [ + null, + "Przywracam połączenie" + ], + "Error": [ + null, + "Błąd" + ], + "Connecting": [ + null, + "Łączę się" + ], + "Authenticating": [ + null, + "Autoryzacja" + ], + "Authentication Failed": [ + null, + "Autoryzacja nie powiodła się" + ], + "Online Contacts": [ + null, + "Dostępne kontakty" + ], + "Re-establishing encrypted session": [ + null, + "Przywrócenie sesji szyfrowanej" + ], + "Generating private key.": [ + null, + "Generuję klucz prywatny." + ], + "Your browser might become unresponsive.": [ + null, + "Twoja przeglądarka może nieco zwolnić." + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "Prośba o autoryzację od %1$s\n\nKontakt próbuje zweryfikować twoją tożsamość, zadając ci pytanie poniżej.\n\n%2$s" + ], + "Could not verify this user's identify.": [ + null, + "Nie jestem w stanie zweryfikować tożsamości kontaktu." + ], + "Exchanging private key with contact.": [ + null, + "Wymieniam klucze szyfrujące z kontaktem." + ], + "Personal message": [ + null, + "Wiadomość osobista" + ], + "Are you sure you want to clear the messages from this room?": [ + null, + "Potwierdź czy rzeczywiście chcesz wyczyścić wiadomości z tego pokoju?" + ], + "me": [ + null, + "ja" + ], + "is typing": [ + null, + "pisze" + ], + "has stopped typing": [ + null, + "przestał pisać" + ], + "Show this menu": [ + null, + "Pokaż menu" + ], + "Write in the third person": [ + null, + "Pisz w trzeciej osobie" + ], + "Remove messages": [ + null, + "Usuń wiadomość" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "Potwierdź czy rzeczywiście chcesz wyczyścić wiadomości z okienka rozmowy?" + ], + "Your message could not be sent": [ + null, + "Twoja wiadomość nie została wysłana" + ], + "We received an unencrypted message": [ + null, + "Otrzymaliśmy niezaszyfrowaną wiadomość" + ], + "We received an unreadable encrypted message": [ + null, + "Otrzymaliśmy nieczytelną zaszyfrowaną wiadomość" + ], + "This user has requested an encrypted session.": [ + null, + "Kontakt prosi o sesję szyfrowaną." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Oto odciski palców, potwiedź je proszę z %1$s używając innego sposobuwymiany informacji niż ta rozmowa.\n\nOdcisk palca dla ciebie, %2$s: %3$s\n\nOdcisk palca dla %1$s: %4$s\n\nJeśli odciski palców zostały potwierdzone, kliknij OK, w inny wypadku kliknij Anuluj." + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "Poprosimy cię o podanie pytania sprawdzającego i odpowiedzi na nie.\n\nTwój kontakt zostanie poproszony później o odpowiedź na to samo pytanie i jeśli udzieli tej samej odpowiedzi (ważna jest wielkość liter), tożsamość zostanie zwerfikowana." + ], + "What is your security question?": [ + null, + "Jakie jest pytanie bezpieczeństwa?" + ], + "What is the answer to the security question?": [ + null, + "Jaka jest odpowiedź na pytanie bezpieczeństwa?" + ], + "Invalid authentication scheme provided": [ + null, + "Niewłaściwy schemat autoryzacji" + ], + "Your messages are not encrypted anymore": [ + null, + "Twoje wiadomości nie są już szyfrowane" + ], + "Your messages are now encrypted but your contact's identity has not been verified.": [ + null, + "Wiadomości są teraz szyfrowane, ale tożsamość kontaktu nie została zweryfikowana." + ], + "Your contact's identify has been verified.": [ + null, + "Tożsamość kontaktu została zweryfikowana" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "Kontakt zakończył sesję szyfrowaną, powinieneś zrobić to samo." + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Twoje wiadomości nie są szyfrowane. Kliknij, aby uruchomić szyfrowanie OTR" + ], + "Your messages are encrypted, but your contact has not been verified.": [ + null, + "Wiadomości są szyfrowane, ale tożsamość kontaktu nie została zweryfikowana." + ], + "Your messages are encrypted and your contact verified.": [ + null, + "Wiadomości są szyfrowane i tożsamość kontaktu została zweryfikowana." + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "Kontakt zakończył prywatną rozmowę i ty zrób to samo" + ], + "Clear all messages": [ + null, + "Wyczyść wszystkie wiadomości" + ], + "End encrypted conversation": [ + null, + "Zakończ szyfrowaną rozmowę" + ], + "Hide the list of participants": [ + null, + "Ukryj listę rozmówców" + ], + "Refresh encrypted conversation": [ + null, + "Odśwież szyfrowaną rozmowę" + ], + "Start a call": [ + null, + "Zadzwoń" + ], + "Start encrypted conversation": [ + null, + "Rozpocznij szyfrowaną rozmowę" + ], + "Verify with fingerprints": [ + null, + "Zweryfikuj za pomocą odcisków palców" + ], + "Verify with SMP": [ + null, + "Zweryfikuj za pomocą SMP" + ], + "What's this?": [ + null, + "Co to jest?" + ], + "Online": [ + null, + "Dostępny" + ], + "Busy": [ + null, + "Zajęty" + ], + "Away": [ + null, + "Nieobecny" + ], + "Offline": [ + null, + "Rozłączony" + ], + "Log out": [ + null, + "Wyloguj" + ], + "Contact name": [ + null, + "Nazwa kontaktu" + ], + "Search": [ + null, + "Szukaj" + ], + "Contact username": [ + null, + "Ksywka kontaktu" + ], + "Add": [ + null, + "Dodaj" + ], + "Click to add new chat contacts": [ + null, + "Kliknij aby dodać nowe kontakty" + ], + "Add a contact": [ + null, + "Dodaj kontakt" + ], + "No users found": [ + null, + "Nie znaleziono użytkowników" + ], + "Click to add as a chat contact": [ + null, + "Kliknij aby dodać jako kontakt" + ], + "Room name": [ + null, + "Nazwa pokoju" + ], + "Nickname": [ + null, + "Ksywka" + ], + "Server": [ + null, + "Serwer" + ], + "Join": [ + null, + "Dołącz" + ], + "Show rooms": [ + null, + "Pokaż pokoje" + ], + "Rooms": [ + null, + "Pokoje" + ], + "No rooms on %1$s": [ + null, + "Brak jest pokojów na %1$s" + ], + "Rooms on %1$s": [ + null, + "Pokoje na %1$s" + ], + "Click to open this room": [ + null, + "Kliknij aby wejść do pokoju" + ], + "Show more information on this room": [ + null, + "Pokaż więcej informacji o pokoju" + ], + "Description:": [ + null, + "Opis:" + ], + "Occupants:": [ + null, + "Uczestnicy:" + ], + "Features:": [ + null, + "Możliwości:" + ], + "Requires authentication": [ + null, + "Wymaga autoryzacji" + ], + "Hidden": [ + null, + "Ukryty" + ], + "Requires an invitation": [ + null, + "Wymaga zaproszenia" + ], + "Moderated": [ + null, + "Moderowany" + ], + "Non-anonymous": [ + null, + "Nieanonimowy" + ], + "Open room": [ + null, + "Otwarty pokój" + ], + "Permanent room": [ + null, + "Stały pokój" + ], + "Public": [ + null, + "Publiczny" + ], + "Semi-anonymous": [ + null, + "Półanonimowy" + ], + "Temporary room": [ + null, + "Pokój tymczasowy" + ], + "Unmoderated": [ + null, + "Niemoderowany" + ], + "This user is a moderator": [ + null, + "Ten człowiek jest moderatorem" + ], + "This user can send messages in this room": [ + null, + "Ten człowiek może rozmawiać w niejszym pokoju" + ], + "This user can NOT send messages in this room": [ + null, + "Ten człowiek nie może rozmawiać w niniejszym pokoju" + ], + "Invite...": [ + null, + "Zaproś..." + ], + "Occupants": [ + null, + "Uczestników" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "Zamierzasz zaprosić %1$s do pokoju rozmów \"%2$s\". " + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "Masz opcjonalną możliwość dołączenia wiadomości, która wyjaśni przyczynę zaproszenia." + ], + "Message": [ + null, + "Wiadomość:" + ], + "Error: could not execute the command": [ + null, + "Błąd: nie potrafię uruchomić polecenia" + ], + "Ban user from room": [ + null, + "Zablokuj dostępu do pokoju" + ], + "Kick user from room": [ + null, + "Wykop z pokoju" + ], + "Write in 3rd person": [ + null, + "Pisz w trzeciej osobie" + ], + "Remove user's ability to post messages": [ + null, + "Zablokuj człowiekowi możliwość rozmowy" + ], + "Change your nickname": [ + null, + "Zmień ksywkę" + ], + "Set room topic": [ + null, + "Ustaw temat pokoju" + ], + "Allow muted user to post messages": [ + null, + "Pozwól uciszonemu człowiekowi na rozmowę" + ], + "Save": [ + null, + "Zachowaj" + ], + "Cancel": [ + null, + "Anuluj" + ], + "An error occurred while trying to save the form.": [ + null, + "Wystąpił błąd w czasie próby zachowania formularza." + ], + "This chatroom requires a password": [ + null, + "Pokój rozmów wymaga podania hasła" + ], + "Password: ": [ + null, + "Hasło:" + ], + "Submit": [ + null, + "Wyślij" + ], + "This room is not anonymous": [ + null, + "Pokój nie jest anonimowy" + ], + "This room now shows unavailable members": [ + null, + "Pokój pokazuje niedostępnych rozmówców" + ], + "This room does not show unavailable members": [ + null, + "Ten pokój nie wyświetla niedostępnych członków" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Ustawienia pokoju nie związane z prywatnością zostały zmienione" + ], + "Room logging is now enabled": [ + null, + "Zostało włączone zapisywanie rozmów w pokoju" + ], + "Room logging is now disabled": [ + null, + "Zostało wyłączone zapisywanie rozmów w pokoju" + ], + "This room is now non-anonymous": [ + null, + "Pokój stał się nieanonimowy" + ], + "This room is now semi-anonymous": [ + null, + "Pokój stał się półanonimowy" + ], + "This room is now fully-anonymous": [ + null, + "Pokój jest teraz w pełni anonimowy" + ], + "A new room has been created": [ + null, + "Został utworzony nowy pokój" + ], + "You have been banned from this room": [ + null, + "Jesteś niemile widziany w tym pokoju" + ], + "You have been kicked from this room": [ + null, + "Zostałeś wykopany z pokoju" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Zostałeś usunięty z pokoju ze względu na zmianę przynależności" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Zostałeś usunięty z pokoju ze względu na to, że pokój zmienił się na wymagający członkowstwa, a ty nie jesteś członkiem" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Zostałeś usunięty z pokoju ze względu na to, że serwis MUC(Multi-user chat) został wyłączony." + ], + "%1$s has been banned": [ + null, + "%1$s został zbanowany" + ], + "%1$s's nickname has changed": [ + null, + "%1$s zmienił ksywkę" + ], + "%1$s has been kicked out": [ + null, + "%1$s został wykopany" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s został usunięty z powodu zmiany przynależności" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s został usunięty ze względu na to, że nie jest członkiem" + ], + "Your nickname has been automatically changed to: %1$s": [ + null, + "Twoja ksywka została automatycznie zmieniona na: %1$s" + ], + "Your nickname has been changed to: %1$s": [ + null, + "Twoja ksywka została zmieniona na: %1$s" + ], + "The reason given is: \"": [ + null, + "Podana przyczyna to: \"" + ], + "You are not on the member list of this room": [ + null, + "Nie jesteś członkiem tego pokoju rozmów" + ], + "No nickname was specified": [ + null, + "Nie podałeś ksywki" + ], + "You are not allowed to create new rooms": [ + null, + "Nie masz uprawnień do tworzenia nowych pokojów rozmów" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Twoja ksywka nie jest zgodna z regulaminem pokoju" + ], + "Your nickname is already taken": [ + null, + "Twoja ksywka jest już w użyciu" + ], + "This room does not (yet) exist": [ + null, + "Ten pokój (jeszcze) nie istnieje" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Pokój przekroczył dozwoloną ilość rozmówców" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Temat ustawiony przez %1$s na: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "%1$s zaprosił(a) cię do wejścia do pokoju rozmów %2$s" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "%1$s zaprosił cię do pokoju: %2$s, podając następujący powód: \"%3$s\"" + ], + "Click to restore this chat": [ + null, + "Kliknij aby powrócić do rozmowy" + ], + "Minimized": [ + null, + "Zminimalizowany" + ], + "Click to remove this contact": [ + null, + "Kliknij aby usunąć kontakt" + ], + "Click to accept this contact request": [ + null, + "Klknij aby zaakceptować życzenie nawiązania kontaktu" + ], + "Click to decline this contact request": [ + null, + "Kliknij aby odrzucić życzenie nawiązania kontaktu" + ], + "Click to chat with this contact": [ + null, + "Kliknij aby porozmawiać z kontaktem" + ], + "Are you sure you want to remove this contact?": [ + null, + "Czy potwierdzasz zamiar usnunięcia tego kontaktu?" + ], + "Are you sure you want to decline this contact request?": [ + null, + "Czy potwierdzasz odrzucenie chęci nawiązania kontaktu?" + ], + "Type to filter": [ + null, + "Zacznij pisać, aby odfiltrować" + ], + "I am %1$s": [ + null, + "Jestem %1$s" + ], + "Click here to write a custom status message": [ + null, + "Kliknij aby wpisać nowy status" + ], + "Click to change your chat status": [ + null, + "Kliknij aby zmienić status rozmowy" + ], + "Custom status": [ + null, + "Własny status" + ], + "online": [ + null, + "dostępny" + ], + "busy": [ + null, + "zajęty" + ], + "away for long": [ + null, + "dłużej nieobecny" + ], + "away": [ + null, + "nieobecny" + ], + "Your XMPP provider's domain name:": [ + null, + "Domena twojego dostawcy XMPP:" + ], + "Fetch registration form": [ + null, + "Pobierz formularz rejestracyjny" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "Wskazówka: dostępna jest lista publicznych dostawców XMPP" + ], + "here": [ + null, + "tutaj" + ], + "Register": [ + null, + "Zarejestruj" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "Przepraszamy, ale podany dostawca nie obsługuje rejestracji. Spróbuj wskazać innego dostawcę." + ], + "Requesting a registration form from the XMPP server": [ + null, + "Pobieranie formularza rejestracyjnego z serwera XMPP" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "Coś nie zadziałało przy próbie połączenia z \"%1$s\". Jesteś pewien że istnieje?" + ], + "Now logging you in": [ + null, + "Teraz jesteś logowany" + ], + "Registered successfully": [ + null, + "Szczęśliwie zarejestrowany" + ], + "Return": [ + null, + "Powrót" + ], + "The provider rejected your registration attempt. ": [ + null, + "Dostawca odrzucił twoją próbę rejestracji. " + ], + "XMPP Username:": [ + null, + "Nazwa użytkownika XMPP:" + ], + "Password:": [ + null, + "Hasło:" + ], + "Log In": [ + null, + "Zaloguj się" + ], + "Sign in": [ + null, + "Zarejestruj się" + ], + "Toggle chat": [ + null, + "Przełącz rozmowę" + ] + } + } +}; +locales["pt_br"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "plural_forms": "nplurals=2; plural=(n > 1);", + "lang": "pt_BR" + }, + "unencrypted": [ + null, + "não-criptografado" + ], + "unverified": [ + null, + "não-verificado" + ], + "verified": [ + null, + "verificado" + ], + "finished": [ + null, + "finalizado" + ], + "This contact is busy": [ + null, + "Este contato está ocupado" + ], + "This contact is online": [ + null, + "Este contato está online" + ], + "This contact is offline": [ + null, + "Este contato está offline" + ], + "This contact is unavailable": [ + null, + "Este contato está indisponível" + ], + "This contact is away for an extended period": [ + null, + "Este contato está ausente por um longo período" + ], + "This contact is away": [ + null, + "Este contato está ausente" + ], + "My contacts": [ + null, + "Meus contatos" + ], + "Pending contacts": [ + null, + "Contados pendentes" + ], + "Contact requests": [ + null, + "Solicitação de contatos" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Contatos" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Erro" + ], + "Connecting": [ + null, + "Conectando" + ], + "Authenticating": [ + null, + "Autenticando" + ], + "Authentication Failed": [ + null, + "Falha de autenticação" + ], + "Online Contacts": [ + null, + "Contatos online" + ], + "Re-establishing encrypted session": [ + null, + "Reestabelecendo sessão criptografada" + ], + "Generating private key.": [ + null, + "Gerando chave-privada." + ], + "Your browser might become unresponsive.": [ + null, + "Seu navegador pode parar de responder." + ], + "Could not verify this user's identify.": [ + null, + "Não foi possível verificar a identidade deste usuário." + ], + "Personal message": [ + null, + "Mensagem pessoal" + ], + "me": [ + null, + "eu" + ], + "Show this menu": [ + null, + "Mostrar o menu" + ], + "Write in the third person": [ + null, + "Escrever em terceira pessoa" + ], + "Remove messages": [ + null, + "Remover mensagens" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "Tem certeza que deseja limpar as mensagens dessa caixa?" + ], + "Your message could not be sent": [ + null, + "Sua mensagem não pode ser enviada" + ], + "We received an unencrypted message": [ + null, + "Recebemos uma mensagem não-criptografada" + ], + "We received an unreadable encrypted message": [ + null, + "Recebemos uma mensagem não-criptografada ilegível" + ], + "This user has requested an encrypted session.": [ + null, + "Usuário pediu uma sessão criptografada." + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "Aqui estão as assinaturas digitais, por favor confirme elas com %1$s, fora deste chat.\n\nAssinatura para você, %2$s: %3$s\n\nAssinatura para %1$s: %4$s\n\nSe você tiver confirmado que as assinaturas conferem, clique OK, caso contrário, clique Cancelar." + ], + "What is your security question?": [ + null, + "Qual é a sua pergunta de segurança?" + ], + "What is the answer to the security question?": [ + null, + "Qual é a resposta para a pergunta de segurança?" + ], + "Invalid authentication scheme provided": [ + null, + "Schema de autenticação fornecido é inválido" + ], + "Your messages are not encrypted anymore": [ + null, + "Suas mensagens não estão mais criptografadas" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Suas mensagens não estão criptografadas. Clique aqui para habilitar criptografia OTR." + ], + "End encrypted conversation": [ + null, + "Finalizar conversa criptografada" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "Atualizar conversa criptografada" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "Iniciar conversa criptografada" + ], + "Verify with fingerprints": [ + null, + "Verificar com assinatura digital" + ], + "Verify with SMP": [ + null, + "Verificar com SMP" + ], + "What's this?": [ + null, + "O que é isso?" + ], + "Online": [ + null, + "Online" + ], + "Busy": [ + null, + "Ocupado" + ], + "Away": [ + null, + "Ausente" + ], + "Offline": [ + null, + "Offline" + ], + "Contact name": [ + null, + "Nome do contato" + ], + "Search": [ + null, + "Procurar" + ], + "Contact username": [ + null, + "Usuário do contatt" + ], + "Add": [ + null, + "Adicionar" + ], + "Click to add new chat contacts": [ + null, + "Clique para adicionar novos contatos ao chat" + ], + "Add a contact": [ + null, + "Adicionar contato" + ], + "No users found": [ + null, + "Não foram encontrados usuários" + ], + "Click to add as a chat contact": [ + null, + "Clique para adicionar como um contato do chat" + ], + "Room name": [ + null, + "Nome da sala" + ], + "Nickname": [ + null, + "Apelido" + ], + "Server": [ + null, + "Server" + ], + "Join": [ + null, + "Entrar" + ], + "Show rooms": [ + null, + "Mostar salas" + ], + "Rooms": [ + null, + "Salas" + ], + "No rooms on %1$s": [ + null, + "Sem salas em %1$s" + ], + "Rooms on %1$s": [ + null, + "Salas em %1$s" + ], + "Click to open this room": [ + null, + "CLique para abrir a sala" + ], + "Show more information on this room": [ + null, + "Mostrar mais informações nessa sala" + ], + "Description:": [ + null, + "Descrição:" + ], + "Occupants:": [ + null, + "Ocupantes:" + ], + "Features:": [ + null, + "Recursos:" + ], + "Requires authentication": [ + null, + "Requer autenticação" + ], + "Hidden": [ + null, + "Escondido" + ], + "Requires an invitation": [ + null, + "Requer um convite" + ], + "Moderated": [ + null, + "Moderado" + ], + "Non-anonymous": [ + null, + "Não anônimo" + ], + "Open room": [ + null, + "Sala aberta" + ], + "Permanent room": [ + null, + "Sala permanente" + ], + "Public": [ + null, + "Público" + ], + "Semi-anonymous": [ + null, + "Semi anônimo" + ], + "Temporary room": [ + null, + "Sala temporária" + ], + "Unmoderated": [ + null, + "Sem moderação" + ], + "This user is a moderator": [ + null, + "Esse usuário é o moderador" + ], + "This user can send messages in this room": [ + null, + "Esse usuário pode enviar mensagens nessa sala" + ], + "This user can NOT send messages in this room": [ + null, + "Esse usuário NÃO pode enviar mensagens nessa sala" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Mensagem" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Salvar" + ], + "Cancel": [ + null, + "Cancelar" + ], + "An error occurred while trying to save the form.": [ + null, + "Ocorreu um erro enquanto tentava salvar o formulário" + ], + "This chatroom requires a password": [ + null, + "Esse chat precisa de senha" + ], + "Password: ": [ + null, + "Senha: " + ], + "Submit": [ + null, + "Enviar" + ], + "This room is not anonymous": [ + null, + "Essa sala não é anônima" + ], + "This room now shows unavailable members": [ + null, + "Agora esta sala mostra membros indisponíveis" + ], + "This room does not show unavailable members": [ + null, + "Essa sala não mostra membros indisponíveis" + ], + "Non-privacy-related room configuration has changed": [ + null, + "Configuraçõs não relacionadas à privacidade mudaram" + ], + "Room logging is now enabled": [ + null, + "O log da sala está ativado" + ], + "Room logging is now disabled": [ + null, + "O log da sala está desativado" + ], + "This room is now non-anonymous": [ + null, + "Esse sala é não anônima" + ], + "This room is now semi-anonymous": [ + null, + "Essa sala agora é semi anônima" + ], + "This room is now fully-anonymous": [ + null, + "Essa sala agora é totalmente anônima" + ], + "A new room has been created": [ + null, + "Uma nova sala foi criada" + ], + "You have been banned from this room": [ + null, + "Você foi banido dessa sala" + ], + "You have been kicked from this room": [ + null, + "Você foi expulso dessa sala" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "Você foi removido da sala devido a uma mudança de associação" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Você foi removido da sala porque ela foi mudada para somente membrose você não é um membro" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Você foi removido da sala devido a MUC (Multi-user chat)o serviço está sendo desligado" + ], + "%1$s has been banned": [ + null, + "%1$s foi banido" + ], + "%1$s has been kicked out": [ + null, + "%1$s foi expulso" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s foi removido por causa de troca de associação" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s foi removido por não ser um membro" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Você não é membro dessa sala" + ], + "No nickname was specified": [ + null, + "Você não escolheu um apelido " + ], + "You are not allowed to create new rooms": [ + null, + "Você não tem permitição de criar novas salas" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Seu apelido não está de acordo com as regras da sala" + ], + "Your nickname is already taken": [ + null, + "Seu apelido já foi escolhido" + ], + "This room does not (yet) exist": [ + null, + "A sala não existe (ainda)" + ], + "This room has reached it's maximum number of occupants": [ + null, + "A sala atingiu o número máximo de ocupantes" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Topico definido por %1$s para: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "Minimizado" + ], + "Click to remove this contact": [ + null, + "Clique para remover o contato" + ], + "Click to chat with this contact": [ + null, + "Clique para conversar com o contato" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "Estou %1$s" + ], + "Click here to write a custom status message": [ + null, + "Clique aqui para customizar a mensagem de status" + ], + "Click to change your chat status": [ + null, + "Clique para mudar seu status no chat" + ], + "Custom status": [ + null, + "Status customizado" + ], + "online": [ + null, + "online" + ], + "busy": [ + null, + "ocupado" + ], + "away for long": [ + null, + "ausente a bastante tempo" + ], + "away": [ + null, + "ausente" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Senha:" + ], + "Log In": [ + null, + "Entrar" + ], + "Sign in": [ + null, + "Conectar-se" + ], + "Toggle chat": [ + null, + "Alternar bate-papo" + ] + } + } +}; +locales["ru"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "ru" + }, + "unencrypted": [ + null, + "не зашифровано" + ], + "unverified": [ + null, + "непроверено" + ], + "verified": [ + null, + "проверено" + ], + "finished": [ + null, + "закончено" + ], + "This contact is busy": [ + null, + "Занят" + ], + "This contact is online": [ + null, + "В сети" + ], + "This contact is offline": [ + null, + "Не в сети" + ], + "This contact is unavailable": [ + null, + "Не доступен" + ], + "This contact is away for an extended period": [ + null, + "На долго отошёл" + ], + "This contact is away": [ + null, + "Отошёл" + ], + "My contacts": [ + null, + "Контакты" + ], + "Pending contacts": [ + null, + "Собеседники ожидающие авторизации" + ], + "Contact requests": [ + null, + "Запросы на авторизацию" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "Контакты" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "Ошибка" + ], + "Connecting": [ + null, + "Соединение" + ], + "Authenticating": [ + null, + "Авторизация" + ], + "Authentication Failed": [ + null, + "Не удалось авторизоваться" + ], + "Online Contacts": [ + null, + "Cписок собеседников" + ], + "Re-establishing encrypted session": [ + null, + "" + ], + "Generating private key.": [ + null, + "" + ], + "Your browser might become unresponsive.": [ + null, + "" + ], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ + null, + "" + ], + "Could not verify this user's identify.": [ + null, + "" + ], + "Exchanging private key with contact.": [ + null, + "" + ], + "Personal message": [ + null, + "Введите сообщение" + ], + "me": [ + null, + "Я" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "Показать это меню" + ], + "Write in the third person": [ + null, + "" + ], + "Remove messages": [ + null, + "Удалить сообщения" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "" + ], + "Your message could not be sent": [ + null, + "Ваше сообщение не послано" + ], + "We received an unencrypted message": [ + null, + "" + ], + "We received an unreadable encrypted message": [ + null, + "" + ], + "This user has requested an encrypted session.": [ + null, + "" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "" + ], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ + null, + "" + ], + "What is your security question?": [ + null, + "" + ], + "What is the answer to the security question?": [ + null, + "" + ], + "Invalid authentication scheme provided": [ + null, + "" + ], + "Your messages are not encrypted anymore": [ + null, + "Ваши сообщения больше не шифруются" + ], + "Your contact has ended encryption on their end, you should do the same.": [ + null, + "" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "Ваши сообщения не шифруются. Нажмите здесь чтобы настроить шифрование." + ], + "Your contact has closed their end of the private session, you should do the same": [ + null, + "" + ], + "End encrypted conversation": [ + null, + "" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "" + ], + "Verify with fingerprints": [ + null, + "" + ], + "Verify with SMP": [ + null, + "" + ], + "What's this?": [ + null, + "Что это?" + ], + "Online": [ + null, + "В сети" + ], + "Busy": [ + null, + "Занят" + ], + "Away": [ + null, + "Отошёл" + ], + "Offline": [ + null, + "Не в сети" + ], + "Contact name": [ + null, + "Имя контакта" + ], + "Search": [ + null, + "Поиск" + ], + "Contact username": [ + null, + "Имя пользователя" + ], + "Add": [ + null, + "Добавить" + ], + "Click to add new chat contacts": [ + null, + "Добавить новую конференцию" + ], + "Add a contact": [ + null, + "Добавть контакт" + ], + "No users found": [ + null, + "Пользователи не найдены" + ], + "Click to add as a chat contact": [ + null, + "Добавить контакт" + ], + "Room name": [ + null, + "Имя конференции" + ], + "Nickname": [ + null, + "Псевдоним" + ], + "Server": [ + null, + "Сервер" + ], + "Join": [ + null, + "Подключиться" + ], + "Show rooms": [ + null, + "Обновить" + ], + "Rooms": [ + null, + "Конфер." + ], + "No rooms on %1$s": [ + null, + "Нет доступных конференций %1$s" + ], + "Rooms on %1$s": [ + null, + "Конференции %1$s:" + ], + "Click to open this room": [ + null, + "Зайти в конференцию" + ], + "Show more information on this room": [ + null, + "Показать больше информации об этой конференции" + ], + "Description:": [ + null, + "Описание:" + ], + "Occupants:": [ + null, + "Участники:" + ], + "Features:": [ + null, + "Свойства:" + ], + "Requires authentication": [ + null, + "Требуется авторизация" + ], + "Hidden": [ + null, + "Скрыто" + ], + "Requires an invitation": [ + null, + "Требуется приглашение" + ], + "Moderated": [ + null, + "Модерируемая" + ], + "Non-anonymous": [ + null, + "Не анонимная" + ], + "Open room": [ + null, + "Открыть конференцию" + ], + "Permanent room": [ + null, + "Перманентная конференция" + ], + "Public": [ + null, + "Публичный" + ], + "Semi-anonymous": [ + null, + "Частично анонимная" + ], + "Temporary room": [ + null, + "Временная конференция" + ], + "Unmoderated": [ + null, + "Немодерируемая" + ], + "This user is a moderator": [ + null, + "Модератор" + ], + "This user can send messages in this room": [ + null, + "Собеседник" + ], + "This user can NOT send messages in this room": [ + null, + "Пользователь не может посылать сообщения в эту комнату" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "Сообщение" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Write in 3rd person": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "Сохранить" + ], + "Cancel": [ + null, + "Отменить" + ], + "An error occurred while trying to save the form.": [ + null, + "При сохранение формы произошла ошибка." + ], + "This chatroom requires a password": [ + null, + "Для доступа в конфер. необходим пароль." + ], + "Password: ": [ + null, + "Пароль: " + ], + "Submit": [ + null, + "Отправить" + ], + "This room is not anonymous": [ + null, + "Эта комната не анонимная" + ], + "This room now shows unavailable members": [ + null, + "Эта комната показывает доступных собеседников" + ], + "This room does not show unavailable members": [ + null, + "Эта комната не показывает недоступных собеседников" + ], + "Non-privacy-related room configuration has changed": [ + null, + "" + ], + "Room logging is now enabled": [ + null, + "" + ], + "Room logging is now disabled": [ + null, + "" + ], + "This room is now non-anonymous": [ + null, + "Эта комната не анонимная" + ], + "This room is now semi-anonymous": [ + null, + "Эта комната частично анонимная" + ], + "This room is now fully-anonymous": [ + null, + "Эта комната стала полностью анонимной" + ], + "A new room has been created": [ + null, + "Новая комната была создана" + ], + "You have been banned from this room": [ + null, + "Вам запрещено подключатся к этой конференции" + ], + "You have been kicked from this room": [ + null, + "Вам запрещено подключатся к этой конференции" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "%1$s удалён потому что изменились права" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "Вы отключены от этой конференции потому что режим изменился: только-участники" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "Вы отключены от этой конференции потому что сервись конференций выключен." + ], + "%1$s has been banned": [ + null, + "%1$s забанен" + ], + "%1$s has been kicked out": [ + null, + "%1$s выдворен" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "%1$s has been removed because of an affiliation change" + ], + "%1$s has been removed for not being a member": [ + null, + "%1$s удалён потому что не участник" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "Вас нет в списке этой конференции" + ], + "No nickname was specified": [ + null, + "Вы не указали псевдоним" + ], + "You are not allowed to create new rooms": [ + null, + "Вы не имеете права создавать конфер." + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "Псевдоним не согласуется с правилами конфер." + ], + "Your nickname is already taken": [ + null, + "Ваш ник уже используется другим пользователем" + ], + "This room does not (yet) exist": [ + null, + "Эта комната не существует" + ], + "This room has reached it's maximum number of occupants": [ + null, + "Конференция достигла максимального количества участников" + ], + "Topic set by %1$s to: %2$s": [ + null, + "Тема %2$s устатновлена %1$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "" + ], + "Click to remove this contact": [ + null, + "Удалить контакт" + ], + "Click to chat with this contact": [ + null, + "Начать общение" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "%1$s" + ], + "Click here to write a custom status message": [ + null, + "Редактировать произвольный статус" + ], + "Click to change your chat status": [ + null, + "Изменить ваш статус" + ], + "Custom status": [ + null, + "Произвольный статус" + ], + "online": [ + null, + "на связи" + ], + "busy": [ + null, + "занят" + ], + "away for long": [ + null, + "отошёл на долго" + ], + "away": [ + null, + "отошёл" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "Пароль:" + ], + "Log In": [ + null, + "Войти" + ], + "Sign in": [ + null, + "Подписать" + ], + "Toggle chat": [ + null, + "" + ] + } + } +}; +locales["zh"] = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "zh" + }, + "unencrypted": [ + null, + "未加密" + ], + "unverified": [ + null, + "未验证" + ], + "verified": [ + null, + "已验证" + ], + "finished": [ + null, + "结束了" + ], + "This contact is busy": [ + null, + "对方忙碌中" + ], + "This contact is online": [ + null, + "对方在线中" + ], + "This contact is offline": [ + null, + "对方已下线" + ], + "This contact is unavailable": [ + null, + "对方免打扰" + ], + "This contact is away for an extended period": [ + null, + "对方暂时离开" + ], + "This contact is away": [ + null, + "对方离开" + ], + "My contacts": [ + null, + "我的好友列表" + ], + "Pending contacts": [ + null, + "保留中的联系人" + ], + "Contact requests": [ + null, + "来自好友的请求" + ], + "Ungrouped": [ + null, + "" + ], + "Contacts": [ + null, + "联系人" + ], + "Groups": [ + null, + "" + ], + "Error": [ + null, + "错误" + ], + "Connecting": [ + null, + "连接中" + ], + "Authenticating": [ + null, + "验证中" + ], + "Authentication Failed": [ + null, + "验证失败" + ], + "Online Contacts": [ + null, + "在线好友" + ], + "Re-establishing encrypted session": [ + null, + "重新建立加密会话" + ], + "Generating private key.": [ + null, + "正在生成私钥" + ], + "Your browser might become unresponsive.": [ + null, + "您的浏览器可能会暂时无响应" + ], + "Could not verify this user's identify.": [ + null, + "无法验证对方信息。" + ], + "Personal message": [ + null, + "私信" + ], + "me": [ + null, + "我" + ], + "is typing": [ + null, + "" + ], + "has stopped typing": [ + null, + "" + ], + "Show this menu": [ + null, + "显示此项菜单" + ], + "Write in the third person": [ + null, + "以第三者身份写" + ], + "Remove messages": [ + null, + "移除消息" + ], + "Are you sure you want to clear the messages from this chat box?": [ + null, + "你确定清除此次的聊天记录吗?" + ], + "Your message could not be sent": [ + null, + "您的消息无法送出" + ], + "We received an unencrypted message": [ + null, + "我们收到了一条未加密的信息" + ], + "We received an unreadable encrypted message": [ + null, + "我们收到一条无法读取的信息" + ], + "This user has requested an encrypted session.": [ + null, + "此用户请求了一个加密会话。" + ], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ + null, + "这里是指纹。请与 %1$s 确认。\n\n您的 %2$s 指纹: %3$s\n\n%1$s 的指纹: %4$s\n\n如果确认符合,请点击OK,否则点击取消" + ], + "What is your security question?": [ + null, + "您的安全问题是?" + ], + "What is the answer to the security question?": [ + null, + "此安全问题的答案是?" + ], + "Invalid authentication scheme provided": [ + null, + "非法的认证方式" + ], + "Your messages are not encrypted anymore": [ + null, + "您的消息将不再被加密" + ], + "Your messages are not encrypted. Click here to enable OTR encryption.": [ + null, + "您的消息未加密。点击这里来启用OTR加密" + ], + "End encrypted conversation": [ + null, + "结束加密的会话" + ], + "Hide the list of participants": [ + null, + "" + ], + "Refresh encrypted conversation": [ + null, + "刷新加密的会话" + ], + "Start a call": [ + null, + "" + ], + "Start encrypted conversation": [ + null, + "开始加密的会话" + ], + "Verify with fingerprints": [ + null, + "验证指纹" + ], + "Verify with SMP": [ + null, + "验证SMP" + ], + "What's this?": [ + null, + "这是什么?" + ], + "Online": [ + null, + "在线" + ], + "Busy": [ + null, + "忙碌中" + ], + "Away": [ + null, + "离开" + ], + "Offline": [ + null, + "离线" + ], + "Contact name": [ + null, + "联系人名称" + ], + "Search": [ + null, + "搜索" + ], + "Contact username": [ + null, + "联系人姓名" + ], + "Add": [ + null, + "添加" + ], + "Click to add new chat contacts": [ + null, + "点击添加新联系人" + ], + "Add a contact": [ + null, + "添加联系人" + ], + "No users found": [ + null, + "未找到用户" + ], + "Click to add as a chat contact": [ + null, + "点击添加为好友" + ], + "Room name": [ + null, + "聊天室名称" + ], + "Nickname": [ + null, + "昵称" + ], + "Server": [ + null, + "服务器" + ], + "Join": [ + null, + "加入" + ], + "Show rooms": [ + null, + "显示所有聊天室" + ], + "Rooms": [ + null, + "聊天室" + ], + "No rooms on %1$s": [ + null, + "%1$s 上没有聊天室" + ], + "Rooms on %1$s": [ + null, + "%1$s 上的聊天室" + ], + "Click to open this room": [ + null, + "打开聊天室" + ], + "Show more information on this room": [ + null, + "显示次聊天室的更多信息" + ], + "Description:": [ + null, + "描述: " + ], + "Occupants:": [ + null, + "成员:" + ], + "Features:": [ + null, + "特性:" + ], + "Requires authentication": [ + null, + "需要验证" + ], + "Hidden": [ + null, + "隐藏的" + ], + "Requires an invitation": [ + null, + "需要被邀请" + ], + "Moderated": [ + null, + "发言受限" + ], + "Non-anonymous": [ + null, + "非匿名" + ], + "Open room": [ + null, + "打开聊天室" + ], + "Permanent room": [ + null, + "永久聊天室" + ], + "Public": [ + null, + "公开的" + ], + "Semi-anonymous": [ + null, + "半匿名" + ], + "Temporary room": [ + null, + "临时聊天室" + ], + "Unmoderated": [ + null, + "无发言限制" + ], + "This user is a moderator": [ + null, + "此用户是主持人" + ], + "This user can send messages in this room": [ + null, + "此用户在这房间里可发消息" + ], + "This user can NOT send messages in this room": [ + null, + "此用户不可在此房间发消息" + ], + "Invite...": [ + null, + "" + ], + "You are about to invite %1$s to the chat room \"%2$s\". ": [ + null, + "" + ], + "You may optionally include a message, explaining the reason for the invitation.": [ + null, + "" + ], + "Message": [ + null, + "信息" + ], + "Error: could not execute the command": [ + null, + "" + ], + "Remove user's ability to post messages": [ + null, + "" + ], + "Change your nickname": [ + null, + "" + ], + "Allow muted user to post messages": [ + null, + "" + ], + "Save": [ + null, + "保存" + ], + "Cancel": [ + null, + "取消" + ], + "An error occurred while trying to save the form.": [ + null, + "保存表单是出错。" + ], + "This chatroom requires a password": [ + null, + "此聊天室需要密码" + ], + "Password: ": [ + null, + "密码:" + ], + "Submit": [ + null, + "发送" + ], + "This room is not anonymous": [ + null, + "此为非匿名聊天室" + ], + "This room now shows unavailable members": [ + null, + "此聊天室显示不可用用户" + ], + "This room does not show unavailable members": [ + null, + "此聊天室不显示不可用用户" + ], + "Non-privacy-related room configuration has changed": [ + null, + "此聊天室设置(非私密性)已改变" + ], + "Room logging is now enabled": [ + null, + "聊天室聊天记录已启用" + ], + "Room logging is now disabled": [ + null, + "聊天室聊天记录已禁用" + ], + "This room is now non-anonymous": [ + null, + "此聊天室非匿名" + ], + "This room is now semi-anonymous": [ + null, + "此聊天室半匿名" + ], + "This room is now fully-anonymous": [ + null, + "此聊天室完全匿名" + ], + "A new room has been created": [ + null, + "新聊天室已创建" + ], + "You have been banned from this room": [ + null, + "您已被此聊天室禁止入内" + ], + "You have been kicked from this room": [ + null, + "您已被踢出次房间" + ], + "You have been removed from this room because of an affiliation change": [ + null, + "由于关系变化,您已被移除此房间" + ], + "You have been removed from this room because the room has changed to members-only and you're not a member": [ + null, + "您已被移除此房间因为此房间更改为只允许成员加入,而您非成员" + ], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ + null, + "由于服务不可用,您已被移除此房间。" + ], + "%1$s has been banned": [ + null, + "%1$s 已被禁止" + ], + "%1$s has been kicked out": [ + null, + "%1$s 已被踢出" + ], + "%1$s has been removed because of an affiliation change": [ + null, + "由于关系解除、%1$s 已被移除" + ], + "%1$s has been removed for not being a member": [ + null, + "由于不是成员、%1$s 已被移除" + ], + "The reason given is: \"": [ + null, + "" + ], + "You are not on the member list of this room": [ + null, + "您并非此房间成员" + ], + "No nickname was specified": [ + null, + "未指定昵称" + ], + "You are not allowed to create new rooms": [ + null, + "您可此创建新房间了" + ], + "Your nickname doesn't conform to this room's policies": [ + null, + "您的昵称不符合此房间标准" + ], + "Your nickname is already taken": [ + null, + "您的昵称已被占用" + ], + "This room does not (yet) exist": [ + null, + "此房间不存在" + ], + "This room has reached it's maximum number of occupants": [ + null, + "此房间人数已达上线" + ], + "Topic set by %1$s to: %2$s": [ + null, + "%1$s 设置话题为: %2$s" + ], + "%1$s has invited you to join a chat room: %2$s": [ + null, + "" + ], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ + null, + "" + ], + "Minimized": [ + null, + "最小化的" + ], + "Click to remove this contact": [ + null, + "点击移除联系人" + ], + "Click to chat with this contact": [ + null, + "点击与对方交谈" + ], + "Type to filter": [ + null, + "" + ], + "I am %1$s": [ + null, + "我现在%1$s" + ], + "Click here to write a custom status message": [ + null, + "点击这里,填写状态信息" + ], + "Click to change your chat status": [ + null, + "点击这里改变聊天状态" + ], + "Custom status": [ + null, + "DIY状态" + ], + "online": [ + null, + "在线" + ], + "busy": [ + null, + "忙碌" + ], + "away for long": [ + null, + "长时间离开" + ], + "away": [ + null, + "离开" + ], + "Your XMPP provider's domain name:": [ + null, + "" + ], + "Fetch registration form": [ + null, + "" + ], + "Tip: A list of public XMPP providers is available": [ + null, + "" + ], + "here": [ + null, + "" + ], + "Register": [ + null, + "" + ], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ + null, + "" + ], + "Requesting a registration form from the XMPP server": [ + null, + "" + ], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ + null, + "" + ], + "Now logging you in": [ + null, + "" + ], + "Registered successfully": [ + null, + "" + ], + "Return": [ + null, + "" + ], + "The provider rejected your registration attempt. ": [ + null, + "" + ], + "Password:": [ + null, + "密码:" + ], + "Log In": [ + null, + "登录" + ], + "Sign in": [ + null, + "登录" + ], + "Toggle chat": [ + null, + "折叠聊天窗口" + ] + } + } +}; \ No newline at end of file diff --git a/builds/templates.js b/builds/templates.js index 725f6e035..8304adbbf 100644 --- a/builds/templates.js +++ b/builds/templates.js @@ -1,6 +1,6 @@ -this["JST"] = this["JST"] || {}; +this["templates"] = this["templates"] || {}; -this["JST"]["action"] = function(obj) { +this["templates"]["action"] = function(obj) { obj || (obj = {}); var __t, __p = '', __e = _.escape; with (obj) { @@ -20,7 +20,7 @@ __p += '
\n \n \n \n \n
\n'; @@ -169,7 +169,7 @@ __p += '
\n
\ return __p }; -this["JST"]["chatroom_sidebar"] = function(obj) { +this["templates"]["chatroom_sidebar"] = function(obj) { obj || (obj = {}); var __t, __p = '', __e = _.escape; with (obj) { @@ -183,7 +183,7 @@ __p += '\n\n ' + ((__t = (fullname)) == null ? '' : __t) + ' ' + return __p }; -this["JST"]["pending_contacts"] = function(obj) { +this["templates"]["pending_contacts"] = function(obj) { obj || (obj = {}); var __t, __p = '', __e = _.escape; with (obj) { @@ -602,7 +606,7 @@ __p += '
' + ((__t = (fullname)) == null ? '' : __t) + '\n\n ' + return __p }; -this["JST"]["requesting_contacts"] = function(obj) { +this["templates"]["requesting_contacts"] = function(obj) { obj || (obj = {}); var __t, __p = '', __e = _.escape; with (obj) { @@ -702,7 +710,7 @@ __p += '
\n \n - diff --git a/locale/locales.js b/locale/locales.js index 95f8aac69..86f9b6f60 100644 --- a/locale/locales.js +++ b/locale/locales.js @@ -7,40 +7,6 @@ (function (root, factory) { define("locales", ['jquery', 'jed', - 'text!af', - 'text!de', - 'text!en', - 'text!es', - 'text!fr', - 'text!he', - 'text!hu', - 'text!id', - 'text!it', - 'text!ja', - 'text!nb', - 'text!nl', - 'text!pl', - 'text!pt_BR', - 'text!ru', - 'text!zh' ], function ($, Jed, af, de, en, es, fr, he, hu, id, it, ja, nb, nl, pl, pt_BR, ru, zh) { - root.locales = { - 'af': new Jed($.parseJSON(af)), - 'de': new Jed($.parseJSON(de)), - 'en': new Jed($.parseJSON(en)), - 'es': new Jed($.parseJSON(es)), - 'fr': new Jed($.parseJSON(fr)), - 'he': new Jed($.parseJSON(he)), - 'hu': new Jed($.parseJSON(hu)), - 'id': new Jed($.parseJSON(id)), - 'it': new Jed($.parseJSON(it)), - 'ja': new Jed($.parseJSON(ja)), - 'nb': new Jed($.parseJSON(nb)), - 'nl': new Jed($.parseJSON(nl)), - 'pl': new Jed($.parseJSON(pl)), - 'pt-br': new Jed($.parseJSON(pt_BR)), - 'ru': new Jed($.parseJSON(ru)), - 'zh': new Jed($.parseJSON(zh)) - }; }); })(this); diff --git a/non_amd.html b/non_amd.html index dccda54a6..027f68960 100644 --- a/non_amd.html +++ b/non_amd.html @@ -1,9 +1,15 @@ + Converse.js (Non-AMD Example) - + + + + + + @@ -26,175 +32,43 @@ - + - - + + - - + + - + - Converse.js - - - - - - -
-
- -

Converse.js is an open source, webchat client, that - runs in the browser and can be integrated into any website.

- -

It's similar to Facebook chat, but also supports multi-user chatrooms.

- -

Converse.js can connect to any accessible XMPP/Jabber server, either from a public provider such as - jabber.org, or to one you have set up - yourself. - -

It's possible to enable single-site login, whereby users already authenticated in your website will also automatically be logged in on the chat server, - but you will have to pre-authenticate them on your server. You can refer to the documentation for more - info.

- -

An add-on product that does exactly this, - already exists for the Plone CMS. Hopefully in the future more such add-ons will - be created for other platforms. -

- -

If you have integrated Converse.js into any other CMS or framework, - please let me know and I'll mention it on this page.

- -

Features

-
    -
  • Single-user chat
  • -
  • Multi-user chat in chatrooms (XEP 45)
  • -
  • vCard support (XEP 54)
  • -
  • Service discovery (XEP 30)
  • -
  • Contact rosters
  • -
  • Manually or automically subscribe to other contacts
  • -
  • Accept or decline contact requests
  • -
  • Roster item exchange (XEP 144)
  • -
  • Chat statuses (online, busy, away, offline)
  • -
  • Custom status messages
  • -
  • Typing notifications
  • -
  • Third person messages (/me )
  • -
  • i18n aware
  • -
- -

Screencasts

-
    -
  • Screencast 1: - Integrated into a Plone site via collective.xmpp.chat. -
  • -
  • Screencast 2: - A static HTML page with Converse.js. Here we chat to external XMPP accounts on Jabber.org and Gmail. -
  • -
- -

Demo

-

You can log in with any existing XMPP account. There is also a list of public XMPP providers on xmpp.net.

-

Note: currently the demo doesn't work in Internet Explorer older - than 10. This is due to lacking support for CORS, - a standard which enables cross-domain XmlHttpRequests. There are ways - around this, but it hasn't been a priority for me to implement them for - this demo. -

-

- See here for more information. -

-
- -

Is it secure?

-

Yes. In this demo Converse.js makes an - SSL encrypted connection to a secure connection manager. - The connection manager then uses SSL and TLS to connect to an XMPP server.

- That said, the developers don't assume any liability for any loss or damages as a result of using this software or demo. Use this demo at your own risk. - -

Session support

-

- The chat client will disconnect whenever you reload the page. If you - want the user's session to persist across page reloads, you can - establish an authenticated connection on the server side and then attach to - this connection in your browser. -

-

Converse.js already supports this usecase, but you'll have to do some integration work yourself.

- - -

Documentation

-

- The documentation is still a bit sparse and a work in progress. - Nevertheless, you can read what's already written here. -

- -

Tests

-

- We use the Jasmine testing framework to write tests. - The tests can be run in the browser and can be viewed here. -

- -

Credits and Dependencies

-

Converse.js depends on a few third party libraries, including: -

-

-

Some images were taken from Plone and the - Open Icon Library. - -

Licence

-

Converse.js is released under both the MIT - and GPL licenses.

- -

Contact

-

You can follow me on Twitter and Identica

-

My XMPP username is jc@opkode.im.

-

Send me an email via this contact form.

-
- -
- - - - -
- - - + +
+
+
+
+
+

Converse.js

+

Example page without require.js and AMD module loading.

+
+
+
+
+
+
+
+ - + From fe03940f53260a6cdbca787ac7d8b40446021a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Bonveh=C3=AD?= Date: Fri, 23 Jan 2015 11:16:16 -0300 Subject: [PATCH 28/81] Fix issue #305, show=online presence sent setStatusMessage was modified to send the presence using sendPresence method which skips show tag when type is 'online' Added getStatus helper method --- converse.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/converse.js b/converse.js index a6a8b2446..e777c3c2e 100644 --- a/converse.js +++ b/converse.js @@ -4250,7 +4250,7 @@ this.XMPPStatus = Backbone.Model.extend({ initialize: function () { this.set({ - 'status' : this.get('status') || 'online' + 'status' : this.getStatus() }); this.on('change', $.proxy(function (item) { if (this.get('fullname') === undefined) { @@ -4270,12 +4270,14 @@ }, this)); }, - sendPresence: function (type) { - if (type === undefined) { + sendPresence: function (type, status_message) { + if (typeof type === 'undefined') { type = this.get('status') || 'online'; } - var status_message = this.get('status_message'), - presence; + if (typeof status_message === 'undefined') { + status_message = this.get('status_message'); + } + var presence; // Most of these presence types are actually not explicitly sent, // but I add all of them here fore reference and future proofing. if ((type === 'unavailable') || @@ -4309,8 +4311,12 @@ this.save({'status': value}); }, + getStatus: function() { + return this.get('status') || 'online'; + }, + setStatusMessage: function (status_message) { - converse.connection.send($pres().c('show').t(this.get('status')).up().c('status').t(status_message)); + this.sendPresence(this.getStatus(), status_message); this.save({'status_message': status_message}); if (this.xhr_custom_status) { $.ajax({ From fc0a1d9dbd79267754b28478cb81ac1e239f975d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Bonveh=C3=AD?= Date: Fri, 23 Jan 2015 12:06:10 -0300 Subject: [PATCH 29/81] Added test case for #305 and updated CHANGES.rst --- docs/CHANGES.rst | 1 + spec/xmppstatus.js | 29 +++++++++++++++++++++++++++++ tests/main.js | 3 ++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 spec/xmppstatus.js diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 630b11d30..cd264d389 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -14,6 +14,7 @@ Changelog * #304 Added Polish translations. [ser] * New Makefile.win to build in Windows environments. [gbonvehi] * Strophe.log and Strophe.error now uses converse.log to output messages. [gbonvehi] +* #305 presence/show text in XMPP request isn't allowed by specification. [gbonvehi] 0.8.6 (2014-12-07) ------------------ diff --git a/spec/xmppstatus.js b/spec/xmppstatus.js new file mode 100644 index 000000000..560489af9 --- /dev/null +++ b/spec/xmppstatus.js @@ -0,0 +1,29 @@ +(function (root, factory) { + define([ + "jquery", + "mock", + "test_utils" + ], function ($, mock, test_utils) { + return factory($, mock, test_utils); + } + ); +} (this, function ($, mock, test_utils) { + return describe("The XMPPStatus model", $.proxy(function(mock, test_utils) { + beforeEach($.proxy(function () { + window.localStorage.clear(); + window.sessionStorage.clear(); + }, converse)); + it("won't send online when setting a custom status message", $.proxy(function () { + this.xmppstatus.save({'status': 'online'}); + spyOn(this.xmppstatus, 'setStatusMessage').andCallThrough(); + spyOn(converse.connection, 'send'); + this.xmppstatus.setStatusMessage("I'm also happy!"); + runs (function () { + expect(converse.connection.send).toHaveBeenCalled(); + var $stanza = $(converse.connection.send.argsForCall[0][0].tree()); + expect($stanza.children().length).toBe(1); + expect($stanza.children('show').length).toBe(0); + }); + }, converse)); + }, converse, mock, test_utils)); +})); diff --git a/tests/main.js b/tests/main.js index 4a47fcb29..daca682cc 100644 --- a/tests/main.js +++ b/tests/main.js @@ -67,7 +67,8 @@ require([ "spec/chatroom", "spec/minchats", "spec/profiling", - "spec/register" + "spec/register", + "spec/xmppstatus" ], function () { // Make sure this callback is only called once. delete converse.callback; From 12f3431df71c8248c2758ccbc7fdd70346597cd2 Mon Sep 17 00:00:00 2001 From: w3host Date: Sun, 25 Jan 2015 23:54:56 +0100 Subject: [PATCH 30/81] Updated hungarian translation (0.8.8) --- locale/hu/LC_MESSAGES/converse.json | 874 ++++++---------------------- locale/hu/LC_MESSAGES/converse.po | 262 +++++---- 2 files changed, 322 insertions(+), 814 deletions(-) diff --git a/locale/hu/LC_MESSAGES/converse.json b/locale/hu/LC_MESSAGES/converse.json index 8da7c689b..6180254f7 100644 --- a/locale/hu/LC_MESSAGES/converse.json +++ b/locale/hu/LC_MESSAGES/converse.json @@ -2,690 +2,200 @@ "domain": "converse", "locale_data": { "converse": { - "unencrypted": [ - null, - "" - ], - "unverified": [ - null, - "" - ], - "verified": [ - null, - "" - ], - "finished": [ - null, - "" - ], - "This contact is busy": [ - null, - "Elfoglalt" - ], - "This contact is online": [ - null, - "Online" - ], - "This contact is offline": [ - null, - "Nincs bejelentkezve" - ], - "This contact is unavailable": [ - null, - "Elérhetetlen" - ], - "This contact is away for an extended period": [ - null, - "Hosszabb ideje távol" - ], - "This contact is away": [ - null, - "Távol" - ], - "My contacts": [ - null, - "Kapcsolatok:" - ], - "Pending contacts": [ - null, - "Függőben levő kapcsolatok" - ], - "Contact requests": [ - null, - "Kapcsolat felvételi kérés" - ], - "Ungrouped": [ - null, - "" - ], - "Contacts": [ - null, - "Kapcsolatok" - ], - "Groups": [ - null, - "" - ], - "Error": [ - null, - "Hiba" - ], - "Connecting": [ - null, - "Kapcsolódás" - ], - "Authenticating": [ - null, - "Azonosítás" - ], - "Authentication Failed": [ - null, - "Azonosítási hiba" - ], - "Online Contacts": [ - null, - "Online kapcsolatok" - ], - "Re-establishing encrypted session": [ - null, - "" - ], - "Generating private key.": [ - null, - "" - ], - "Your browser might become unresponsive.": [ - null, - "" - ], - "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [ - null, - "" - ], - "Could not verify this user's identify.": [ - null, - "" - ], - "Exchanging private key with contact.": [ - null, - "" - ], - "Personal message": [ - null, - "Saját üzenet" - ], - "me": [ - null, - "én" - ], - "Show this menu": [ - null, - "Mutasd ezt a menüt" - ], - "Write in the third person": [ - null, - "" - ], - "Remove messages": [ - null, - "Üzenet törlése" - ], - "Are you sure you want to clear the messages from this chat box?": [ - null, - "" - ], - "Your message could not be sent": [ - null, - "" - ], - "We received an unencrypted message": [ - null, - "" - ], - "We received an unreadable encrypted message": [ - null, - "" - ], - "This user has requested an encrypted session.": [ - null, - "" - ], - "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [ - null, - "" - ], - "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [ - null, - "" - ], - "What is your security question?": [ - null, - "" - ], - "What is the answer to the security question?": [ - null, - "" - ], - "Invalid authentication scheme provided": [ - null, - "" - ], - "Your messages are not encrypted anymore": [ - null, - "" - ], - "Your messages are now encrypted but your contact's identity has not been verified.": [ - null, - "" - ], - "Your contact's identify has been verified.": [ - null, - "" - ], - "Your contact has ended encryption on their end, you should do the same.": [ - null, - "" - ], - "Your messages are not encrypted. Click here to enable OTR encryption.": [ - null, - "" - ], - "Your messages are encrypted, but your contact has not been verified.": [ - null, - "" - ], - "Your messages are encrypted and your contact verified.": [ - null, - "" - ], - "Your contact has closed their end of the private session, you should do the same": [ - null, - "" - ], - "End encrypted conversation": [ - null, - "" - ], - "Hide the list of participants": [ - null, - "" - ], - "Refresh encrypted conversation": [ - null, - "" - ], - "Start a call": [ - null, - "" - ], - "Start encrypted conversation": [ - null, - "" - ], - "Verify with fingerprints": [ - null, - "" - ], - "Verify with SMP": [ - null, - "" - ], - "What's this?": [ - null, - "" - ], - "Online": [ - null, - "Elérhető" - ], - "Busy": [ - null, - "Foglalt" - ], - "Away": [ - null, - "Távol" - ], - "Offline": [ - null, - "Nem elérhető" - ], - "Contact name": [ - null, - "Kapcsolat neve" - ], - "Search": [ - null, - "Keresés" - ], - "Contact username": [ - null, - "Felhasználónév" - ], - "Add": [ - null, - "Hozzáadás" - ], - "Click to add new chat contacts": [ - null, - "Új kapcsolatok hozzáadása" - ], - "Add a contact": [ - null, - "Új kapcsolat" - ], - "No users found": [ - null, - "Nincs találat" - ], - "Click to add as a chat contact": [ - null, - "Csevegő kapcsolatként hozzáad" - ], - "Room name": [ - null, - "A szoba neve" - ], - "Nickname": [ - null, - "Becenév" - ], - "Server": [ - null, - "Szerver" - ], - "Join": [ - null, - "Csatlakozás" - ], - "Show rooms": [ - null, - "Létező szobák" - ], - "Rooms": [ - null, - "Szobák" - ], - "No rooms on %1$s": [ - null, - "Nincs csevegő szoba a(z) %1$s szerveren" - ], - "Rooms on %1$s": [ - null, - "Csevegő szobák a(z) %1$s szerveren" - ], - "Click to open this room": [ - null, - "Belépés a csevegő szobába" - ], - "Show more information on this room": [ - null, - "További információk a csevegő szobáról" - ], - "Description:": [ - null, - "Leírás:" - ], - "Occupants:": [ - null, - "Jelenlevők:" - ], - "Features:": [ - null, - "Tulajdonságok" - ], - "Requires authentication": [ - null, - "Azonosítás szükséges" - ], - "Hidden": [ - null, - "Rejtett" - ], - "Requires an invitation": [ - null, - "Meghívás szükséges" - ], - "Moderated": [ - null, - "Moderált" - ], - "Non-anonymous": [ - null, - "NEM névtelen" - ], - "Open room": [ - null, - "Nyitott szoba" - ], - "Permanent room": [ - null, - "Állandó szoba" - ], - "Public": [ - null, - "Nyílvános" - ], - "Semi-anonymous": [ - null, - "Félig névtelen" - ], - "Temporary room": [ - null, - "Ideiglenes szoba" - ], - "Unmoderated": [ - null, - "Moderálatlan" - ], - "This user is a moderator": [ - null, - "Ez a felhasználó egy moderátor" - ], - "This user can send messages in this room": [ - null, - "Ez a felhasználó küldhet üzenetet ebbe a szobába" - ], - "This user can NOT send messages in this room": [ - null, - "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába" - ], - "Invite...": [ - null, - "" - ], - "You are about to invite %1$s to the chat room \"%2$s\". ": [ - null, - "" - ], - "You may optionally include a message, explaining the reason for the invitation.": [ - null, - "" - ], - "Message": [ - null, - "Üzenet" - ], - "Error: could not execute the command": [ - null, - "" - ], - "Write in 3rd person": [ - null, - "" - ], - "Remove user's ability to post messages": [ - null, - "" - ], - "Change your nickname": [ - null, - "" - ], - "Allow muted user to post messages": [ - null, - "" - ], - "Save": [ - null, - "Mentés" - ], - "Cancel": [ - null, - "Mégsem" - ], - "An error occurred while trying to save the form.": [ - null, - "Hiba történt az adatok mentése közben." - ], - "This chatroom requires a password": [ - null, - "A csevegő szoba belépéshez jelszó szükséges" - ], - "Password: ": [ - null, - "Jelszó:" - ], - "Submit": [ - null, - "Küldés" - ], - "This room is not anonymous": [ - null, - "Ez a szoba NEM névtelen" - ], - "This room now shows unavailable members": [ - null, - "Ez a szoba mutatja az elérhetetlen tagokat" - ], - "This room does not show unavailable members": [ - null, - "Ez a szoba nem mutatja az elérhetetlen tagokat" - ], - "Non-privacy-related room configuration has changed": [ - null, - "A szoba általános konfigurációja módosult" - ], - "Room logging is now enabled": [ - null, - "A szobába a belépés lehetséges" - ], - "Room logging is now disabled": [ - null, - "A szobába a belépés szünetel" - ], - "This room is now non-anonymous": [ - null, - "Ez a szoba most NEM névtelen" - ], - "This room is now semi-anonymous": [ - null, - "Ez a szoba most félig névtelen" - ], - "This room is now fully-anonymous": [ - null, - "Ez a szoba most teljesen névtelen" - ], - "A new room has been created": [ - null, - "Létrejött egy új csevegő szoba" - ], - "You have been banned from this room": [ - null, - "Ki lettél tíltva ebből a szobából" - ], - "You have been kicked from this room": [ - null, - "Ki lettél dobva ebből a szobából" - ], - "You have been removed from this room because of an affiliation change": [ - null, - "Taglista módosítás miatt kiléptettünk a csevegő szobából" - ], - "You have been removed from this room because the room has changed to members-only and you're not a member": [ - null, - "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők lehetnek jelen." - ], - "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [ - null, - "Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás leállításra került." - ], - "%1$s has been banned": [ - null, - "A szobából kitíltva: %1$s" - ], - "%1$s has been kicked out": [ - null, - "A szobából kidobva: %1$s" - ], - "%1$s has been removed because of an affiliation change": [ - null, - "Taglista módosítás miatt a szobából kiléptetve: %1$s" - ], - "%1$s has been removed for not being a member": [ - null, - "A taglistán nem szerepel így a szobából kiléptetve: %1$s" - ], - "The reason given is: \"": [ - null, - "" - ], - "You are not on the member list of this room": [ - null, - "Nem szerepelsz a csevegő szoba taglistáján" - ], - "No nickname was specified": [ - null, - "Nem lett megadva becenév" - ], - "You are not allowed to create new rooms": [ - null, - "Nem lehet új csevegő szobát létrehozni" - ], - "Your nickname doesn't conform to this room's policies": [ - null, - "A beceneved ütközik a csevegő szoba szabályzataival" - ], - "Your nickname is already taken": [ - null, - "A becenevedet már valaki használja" - ], - "This room does not (yet) exist": [ - null, - "Ez a szoba (még) nem létezik" - ], - "This room has reached it's maximum number of occupants": [ - null, - "Ez a csevegő szoba elérte a maximális jelenlevők számát" - ], - "Topic set by %1$s to: %2$s": [ - null, - "A következő témát állította be %1$s: %2$s" - ], - "%1$s has invited you to join a chat room: %2$s": [ - null, - "" - ], - "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [ - null, - "" - ], - "Minimized": [ - null, - "" - ], - "Click to remove this contact": [ - null, - "A kapcsolat törlése" - ], - "Click to chat with this contact": [ - null, - "Csevegés indítása ezzel a kapcsolatunkkal" - ], - "Type to filter": [ - null, - "" - ], - "I am %1$s": [ - null, - "%1$s vagyok" - ], - "Click here to write a custom status message": [ - null, - "Egyedi státusz üzenet írása" - ], - "Click to change your chat status": [ - null, - "Saját státusz beállítása" - ], - "Custom status": [ - null, - "Egyedi státusz" - ], - "online": [ - null, - "online" - ], - "busy": [ - null, - "elfoglalt" - ], - "away for long": [ - null, - "hosszú ideje távol" - ], - "away": [ - null, - "távol" - ], - "Your XMPP provider's domain name:": [ - null, - "" - ], - "Fetch registration form": [ - null, - "" - ], - "Tip: A list of public XMPP providers is available": [ - null, - "" - ], - "here": [ - null, - "" - ], - "Register": [ - null, - "" - ], - "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [ - null, - "" - ], - "Requesting a registration form from the XMPP server": [ - null, - "" - ], - "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [ - null, - "" - ], - "Now logging you in": [ - null, - "" - ], - "Registered successfully": [ - null, - "" - ], - "Return": [ - null, - "" - ], - "The provider rejected your registration attempt. ": [ - null, - "" - ], - "Password:": [ - null, - "Jelszó:" - ], - "Log In": [ - null, - "Belépés" - ], - "Sign in": [ - null, - "Belépés" - ], - "Toggle chat": [ - null, - "" - ], - "": { + "unencrypted": [null, "titkosítatlan"], + "unverified": [null, "nem hitelesített"], + "verified": [null, "hitelesített"], + "finished": [null, "befejezett"], + "This contact is busy": [null, "Elfoglalt"], + "This contact is online": [null, "Elérhető"], + "This contact is offline": [null, "Nincs bejelentkezve"], + "This contact is unavailable": [null, "Elérhetetlen"], + "This contact is away for an extended period": [null, "Hosszabb ideje távol"], + "This contact is away": [null, "Távol"], + "Click to hide these contacts": [null, "A csevegő partnerek elrejtése"], + "My contacts": [null, "Kapcsolataim"], + "Pending contacts": [null, "Függőben levő kapcsolatok"], + "Contact requests": [null, "Kapcsolatnak jelölés"], + "Ungrouped": [null, "Nincs csoportosítva"], + "Contacts": [null, "Kapcsolatok"], + "Groups": [null, "Csoportok"], + "Reconnecting": [null, "Kapcsolódás"], + "Error": [null, "Hiba"], + "Connecting": [null, "Kapcsolódás"], + "Authenticating": [null, "Azonosítás"], + "Authentication Failed": [null, "Azonosítási hiba"], + "Online Contacts": [null, "Elérhető partnerek"], + "Re-establishing encrypted session": [null, "Titkosított kapcsolat újraépítése"], + "Generating private key.": [null, "Privát kulcs generálása"], + "Your browser might become unresponsive.": [null, "Előfordulhat, hogy a böngésző futása megáll."], + "Authentication request from %1$s\n\nYour chat contact is attempting to verify your identity, by asking you the question below.\n\n%2$s": [null, "Azonosítási kérés érkezett: %1$s\n\nA csevegő partnere hitelesítést kér a következő kérdés megválaszolásával:\n\n%2$s"], + "Could not verify this user's identify.": [null, "A felhasználó ellenőrzése sikertelen."], + "Exchanging private key with contact.": [null, "Privát kulcs cseréje..."], + "Personal message": [null, "Személyes üzenet"], + "Are you sure you want to clear the messages from this room?": [null, "Törölni szeretné az üzeneteket ebből a szobából?"], + "me": [null, "Én"], + "is typing": [null, "gépel..."], + "has stopped typing": [null, "már nem gépel"], + "Show this menu": [null, "Mutasd a menüt"], + "Write in the third person": [null, "Írjon egyes szám harmadik személyben"], + "Remove messages": [null, "Üzenetek törlése"], + "Are you sure you want to clear the messages from this chat box?": [null, "Törölni szeretné az eddigi üzeneteket?"], + "Your message could not be sent": [null, "Az üzenet elküldése nem sikerült"], + "We received an unencrypted message": [null, "Titkosítatlan üzenet érkezett"], + "We received an unreadable encrypted message": [null, "Visszafejthetetlen titkosított üzenet érkezett"], + "This user has requested an encrypted session.": [null, "Felkérés érkezett titkosított kapcsolatra."], + "Here are the fingerprints, please confirm them with %1$s, outside of this chat.\n\nFingerprint for you, %2$s: %3$s\n\nFingerprint for %1$s: %4$s\n\nIf you have confirmed that the fingerprints match, click OK, otherwise click Cancel.": [null, "Újjlenyomatok megerősítése.\n\nAz Ön újjlenyomata, %2$s: %3$s\n\nA csevegő partnere újjlenyomata, %1$s: %4$s\n\nAmennyiben az újjlenyomatok biztosan egyeznek, klikkeljen az OK, ellenkező esetben a Mégsem gombra."], + "You will be prompted to provide a security question and then an answer to that question.\n\nYour contact will then be prompted the same question and if they type the exact same answer (case sensitive), their identity will be verified.": [null, "Elsőként egy biztonsági kérdést kell majd feltennie és megválaszolnia.\n\nMajd a csevegő partnerének is megjelenik ez a kérdés. Végül ha a válaszok azonosak lesznek (kis- nagybetű érzékeny), a partner hitelesítetté válik."], + "What is your security question?": [null, "Mi legyen a biztonsági kérdés?"], + "What is the answer to the security question?": [null, "Mi a válasz a biztonsági kérdésre?"], + "Invalid authentication scheme provided": [null, "Érvénytelen hitelesítési séma."], + "Your messages are not encrypted anymore": [null, "Az üzenetek mostantól már nem titkosítottak"], + "Your messages are now encrypted but your contact's identity has not been verified.": [null, "Az üzenetek titikosítva vannak, de a csevegő partnerét még nem hitelesítette."], + "Your contact's identify has been verified.": [null, "A csevegő partnere hitelesítve lett."], + "Your contact has ended encryption on their end, you should do the same.": [null, "A csevegő partnere kikapcsolta a titkosítást, így Önnek is ezt kellene tennie."], + "Your messages are not encrypted. Click here to enable OTR encryption.": [null, "Az üzenetek titkosítatlanok. OTR titkosítás aktiválása."], + "Your messages are encrypted, but your contact has not been verified.": [null, "Az üzenetek titikosítottak, de a csevegő partnere még nem hitelesített."], + "Your messages are encrypted and your contact verified.": [null, "Az üzenetek titikosítottak és a csevegő partnere hitelesített."], + "Your contact has closed their end of the private session, you should do the same": [null, "A csevegő partnere lezárta a magán beszélgetést"], + "Clear all messages": [null, "Üzenetek törlése"], + "End encrypted conversation": [null, "Titkosított kapcsolat vége"], + "Hide the list of participants": [null, "A jelenlevők listájának elrejtése"], + "Refresh encrypted conversation": [null, "A titkosított kapcsolat frissítése"], + "Start a call": [null, "Hívás indítása"], + "Start encrypted conversation": [null, "Titkosított beszélgetés indítása"], + "Verify with fingerprints": [null, "Ellenőrzés újjlenyomattal"], + "Verify with SMP": [null, "Ellenőrzés SMP-vel"], + "What's this?": [null, "Mi ez?"], + "Online": [null, "Elérhető"], + "Busy": [null, "Foglalt"], + "Away": [null, "Távol"], + "Offline": [null, "Nem elérhető"], + "Log out": [null, "Kilépés"], + "Contact name": [null, "Partner neve"], + "Search": [null, "Keresés"], + "Contact username": [null, "Felhasználónév"], + "Add": [null, "Hozzáad"], + "Click to add new chat contacts": [null, "Új csevegő partner hozzáadása"], + "Add a contact": [null, "Új partner felvétele"], + "No users found": [null, "Nincs felhasználó"], + "Click to add as a chat contact": [null, "Felvétel a csevegő partnerek közé"], + "Room name": [null, "Szoba neve"], + "Nickname": [null, "Becenév"], + "Server": [null, "Szerver"], + "Join": [null, "Csatlakozás"], + "Show rooms": [null, "Létező szobák"], + "Rooms": [null, "Szobák"], + "No rooms on %1$s": [null, "Nincs csevegő szoba a(z) %1$s szerveren"], + "Rooms on %1$s": [null, "Csevegő szobák a(z) %1$s szerveren:"], + "Click to open this room": [null, "Belépés a csevegő szobába"], + "Show more information on this room": [null, "További információk a csevegő szobáról"], + "Description:": [null, "Leírás:"], + "Occupants:": [null, "Jelenlevők:"], + "Features:": [null, "Tulajdonságok:"], + "Requires authentication": [null, "Azonosítás szükséges"], + "Hidden": [null, "Rejtett"], + "Requires an invitation": [null, "Meghívás szükséges"], + "Moderated": [null, "Moderált"], + "Non-anonymous": [null, "NEM névtelen"], + "Open room": [null, "Nyitott szoba"], + "Permanent room": [null, "Állandó szoba"], + "Public": [null, "Nyílvános"], + "Semi-anonymous": [null, "Félig névtelen"], + "Temporary room": [null, "Ideiglenes szoba"], + "Unmoderated": [null, "Moderálatlan"], + "This user is a moderator": [null, "Ez a felhasználó egy moderátor"], + "This user can send messages in this room": [null, "Ez a felhasználó küldhet üzenetet ebbe a szobába"], + "This user can NOT send messages in this room": [null, "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába"], + "Invite...": [null, "Meghívás..."], + "Occupants": [null, "Jelenlevők"], + "You are about to invite %1$s to the chat room \"%2$s\". ": [null, "%1$s meghívott a \"%2$s\" csevegő szobába. "], + "You may optionally include a message, explaining the reason for the invitation. ": [null, "A meghívás okaként üzenet csatolható. "], + "Message": [null, "Üzenet"], + "Error: could not execute the command": [null, "Hiba: A parancs nem értelmezett"], + "Ban user from room": [null, "Felhasználó kitíltása a csevegő szobából"], + "Kick user from room": [null, "Felhasználó kiléptetése a csevegő szobából"], + "Write in 3rd person": [null, "Írjon egyes szám harmadik személyben"], + "Remove user's ability to post messages": [null, "A felhasználó nem küldhet üzeneteket"], + "Change your nickname": [null, "Becenév módosítása"], + "Set room topic": [null, "Csevegőszoba téma beállítás"], + "Allow muted user to post messages": [null, "Elnémított felhasználók is küldhetnek üzeneteket"], + "Save": [null, "Ment"], + "Cancel": [null, "Mégsem"], + "An error occurred while trying to save the form.": [null, "Hiba történt az adatok mentése közben."], + "This chatroom requires a password": [null, "A csevegő szoba belépéshez jelszó szükséges"], + "Password: ": [null, "Jelszó: "], + "Submit": [null, "Küldés"], + "This room is not anonymous": [null, "Ez a szoba NEM névtelen"], + "This room now shows unavailable members": [null, "Ez a szoba mutatja az elérhetetlen tagokat"], + "This room does not show unavailable members": [null, "Ez a szoba nem mutatja az elérhetetlen tagokat"], + "Non-privacy-related room configuration has changed": [null, "A szoba általános konfigurációja módosult"], + "Room logging is now enabled": [null, "A szobába a belépés lehetséges"], + "Room logging is now disabled": [null, "A szobába a belépés szünetel"], + "This room is now non-anonymous": [null, "Ez a szoba most NEM névtelen"], + "This room is now semi-anonymous": [null, "Ez a szoba most félig névtelen"], + "This room is now fully-anonymous": [null, "Ez a szoba most teljesen névtelen"], + "A new room has been created": [null, "Létrejött egy új csevegő szoba"], + "You have been banned from this room": [null, "Ki lettél tíltva ebből a szobából"], + "You have been kicked from this room": [null, "Ki lettél dobva ebből a szobából"], + "You have been removed from this room because of an affiliation change": [null, "Taglista módosítás miatt kiléptettünk a csevegő szobából"], + "You have been removed from this room because the room has changed to members-only and you're not a member": [null, "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők lehetnek jelen"], + "You have been removed from this room because the MUC (Multi-user chat) service is being shut down.": [null, "Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás leállításra került."], + "%1$s has been banned": [null, "A szobából kitíltva: %1$s"], + "%1$s's nickname has changed": [null, "%1$s beceneve módosult"], + "%1$s has been kicked out": [null, "A szobából kidobva: %1$s"], + "%1$s has been removed because of an affiliation change": [null, "Taglista módosítás miatt a szobából kiléptetve: %1$s"], + "%1$s has been removed for not being a member": [null, "A taglistán nem szerepel így a szobából kiléptetve: %1$s"], + "Your nickname has been automatically changed to: %1$s": [null, "A beceneved módosításra került a következőre: %1$s"], + "Your nickname has been changed to: %1$s": [null, "A beceneved a következőre módosult: %1$s"], + "The reason given is: \"": [null, "Az indok: \""], + "You are not on the member list of this room": [null, "Nem szerepelsz a csevegő szoba taglistáján"], + "No nickname was specified": [null, "Nem lett megadva becenév"], + "You are not allowed to create new rooms": [null, "Nem lehet új csevegő szobát létrehozni"], + "Your nickname doesn't conform to this room's policies": [null, "A beceneved ütközik a csevegő szoba szabályzataival"], + "Your nickname is already taken": [null, "A becenevedet már valaki használja"], + "This room does not (yet) exist": [null, "Ez a szoba (még) nem létezik"], + "This room has reached it's maximum number of occupants": [null, "Ez a csevegő szoba elérte a maximális jelenlévők számát"], + "Topic set by %1$s to: %2$s": [null, "A következő témát állította be %1$s: %2$s"], + "%1$s has invited you to join a chat room: %2$s": [null, "%1$s meghívott a(z) %2$s csevegő szobába"], + "%1$s has invited you to join a chat room: %2$s, and left the following reason: \"%3$s\"": [null, "%1$s meghívott a(z) %2$s csevegő szobába. Indok: \"%3$s\""], + "Click to restore this chat": [null, "A csevegés visszaállítása"], + "Minimized": [null, "Lezárva"], + "Click to remove this contact": [null, "Partner törlése"], + "Click to accept this contact request": [null, "Elogadása a partnerlistába történő felvételnek"], + "Click to decline this contact request": [null, "Megtagadása a partnerlistába történő felvételnek"], + "Click to chat with this contact": [null, "Csevegés indítása ezzel a partnerünkkel"], + "Are you sure you want to remove this contact?": [null, "Valóban törölni szeretné a csevegő partnerét?"], + "Are you sure you want to decline this contact request?": [null, "Valóban elutasítja ezt a kapcsolat felvételi kérést?"], + "Type to filter": [null, "Írjon be pár betűt"], + "I am %1$s": [null, "%1$s vagyok"], + "Click here to write a custom status message": [null, "Egyedi státusz üzenet írása"], + "Click to change your chat status": [null, "Saját státusz beállítása"], + "Custom status": [null, "Egyedi státusz"], + "online": [null, "Elérhető"], + "busy": [null, "Elfoglalt"], + "away for long": [null, "Hosszú ideje távol"], + "away": [null, "Távol"], + "Your XMPP provider's domain name:": [null, "Az XMPP szolgáltató domain neve:"], + "Fetch registration form": [null, "Regisztrációs űrlap"], + "Tip: A list of public XMPP providers is available": [null, "Tipp: A nyílvános XMPP szolgáltatókról egy lista elérhető"], + "here": [null, "itt"], + "Register": [null, "Regisztráció"], + "Sorry, the given provider does not support in band account registration. Please try with a different provider.": [null, "A megadott szolgáltató nem támogatja a csevegőn keresztüli regisztrációt. Próbáljon meg egy másikat."], + "Requesting a registration form from the XMPP server": [null, "Regisztrációs űrlap lekérése az XMPP szervertől"], + "Something went wrong while establishing a connection with \"%1$s\". Are you sure it exists?": [null, "Hiba történt a(z) \"%1$s\" kapcsolódásakor. Biztos benne, hogy ez létező kiszolgáló?"], + "Now logging you in": [null, "Belépés..."], + "Registered successfully": [null, "Sikeres regisztráció"], + "Return": [null, "Visza"], + "The provider rejected your registration attempt. ": [null, "A szolgáltató visszautasította a regisztrációs kérelmet."], + "XMPP Username:": [null, "XMPP/Jabber azonosító:"], + "Password:": [null, "Jelszó:"], + "Log In": [null, "Belépés"], + "Sign in": [null, "Belépés"], + "Toggle chat": [null, "Csevegő ablak"], +"": { "domain": "converse", "lang": "hu" } } } -} \ No newline at end of file +} diff --git a/locale/hu/LC_MESSAGES/converse.po b/locale/hu/LC_MESSAGES/converse.po index 5eaf65525..8b3dd61f6 100644 --- a/locale/hu/LC_MESSAGES/converse.po +++ b/locale/hu/LC_MESSAGES/converse.po @@ -3,13 +3,12 @@ # This file is distributed under the same license as the Converse.js package. # JC Brand , 2013. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: Converse.js 0.4\n" +"Project-Id-Version: Converse.js 0.8.8\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2014-12-07 13:45+0100\n" -"PO-Revision-Date: 2013-09-25 22:42+0200\n" +"PO-Revision-Date: 2015-01-25 17:28+0100\n" "Last-Translator: Krisztian Kompar \n" "Language-Team: Hungarian\n" "Language: hu\n" @@ -22,19 +21,19 @@ msgstr "" #: converse.js:302 msgid "unencrypted" -msgstr "" +msgstr "titkosítatlan" #: converse.js:303 msgid "unverified" -msgstr "" +msgstr "nem hitelesített" #: converse.js:304 msgid "verified" -msgstr "" +msgstr "hitelesített" #: converse.js:305 msgid "finished" -msgstr "" +msgstr "befejezett" #: converse.js:308 msgid "This contact is busy" @@ -42,7 +41,7 @@ msgstr "Elfoglalt" #: converse.js:309 msgid "This contact is online" -msgstr "Online" +msgstr "Elérhető" #: converse.js:310 msgid "This contact is offline" @@ -61,13 +60,12 @@ msgid "This contact is away" msgstr "Távol" #: converse.js:315 -#, fuzzy msgid "Click to hide these contacts" -msgstr "A kapcsolat törlése" +msgstr "A csevegő partnerek elrejtése" #: converse.js:317 msgid "My contacts" -msgstr "Kapcsolatok:" +msgstr "Kapcsolataim" #: converse.js:318 msgid "Pending contacts" @@ -75,11 +73,11 @@ msgstr "Függőben levő kapcsolatok" #: converse.js:319 msgid "Contact requests" -msgstr "Kapcsolat felvételi kérés" +msgstr "Kapcsolatnak jelölés" #: converse.js:320 msgid "Ungrouped" -msgstr "" +msgstr "Nincs csoportosítva" #: converse.js:322 msgid "Contacts" @@ -87,10 +85,9 @@ msgstr "Kapcsolatok" #: converse.js:323 msgid "Groups" -msgstr "" +msgstr "Csoportok" #: converse.js:410 -#, fuzzy msgid "Reconnecting" msgstr "Kapcsolódás" @@ -112,19 +109,19 @@ msgstr "Azonosítási hiba" #: converse.js:602 converse.js:644 msgid "Online Contacts" -msgstr "Online kapcsolatok" +msgstr "Elérhető partnerek" #: converse.js:762 msgid "Re-establishing encrypted session" -msgstr "" +msgstr "Titkosított kapcsolat újraépítése" #: converse.js:774 msgid "Generating private key." -msgstr "" +msgstr "Privát kulcs generálása" #: converse.js:775 msgid "Your browser might become unresponsive." -msgstr "" +msgstr "Előfordulhat, hogy a böngésző futása megáll." #: converse.js:810 msgid "" @@ -135,69 +132,71 @@ msgid "" "\n" "%2$s" msgstr "" +"Azonosítási kérés érkezett: %1$s\n" +"\n" +"A csevegő partnere hitelesítést kér a következő kérdés megválaszolásával:\n" +"\n" +"%2$s" #: converse.js:819 msgid "Could not verify this user's identify." -msgstr "" +msgstr "A felhasználó ellenőrzése sikertelen." #: converse.js:858 msgid "Exchanging private key with contact." -msgstr "" +msgstr "Privát kulcs cseréje..." #: converse.js:1011 msgid "Personal message" -msgstr "Saját üzenet" +msgstr "Személyes üzenet" #: converse.js:1043 -#, fuzzy msgid "Are you sure you want to clear the messages from this room?" -msgstr "Nem szerepelsz a csevegő szoba taglistáján" +msgstr "Törölni szeretné az üzeneteket ebből a szobából?" #: converse.js:1065 msgid "me" -msgstr "én" +msgstr "Én" #: converse.js:1119 -#, fuzzy msgid "is typing" -msgstr "%1$s gépel" +msgstr "gépel..." #: converse.js:1122 -#, fuzzy msgid "has stopped typing" -msgstr "%1$s gépel" +msgstr "már nem gépel" #: converse.js:1164 converse.js:2351 msgid "Show this menu" -msgstr "Mutasd ezt a menüt" +msgstr "Mutasd a menüt" #: converse.js:1165 msgid "Write in the third person" -msgstr "" +msgstr "Írjon egyes szám harmadik személyben" #: converse.js:1166 converse.js:2350 msgid "Remove messages" -msgstr "Üzenet törlése" +msgstr "Üzenetek törlése" #: converse.js:1250 msgid "Are you sure you want to clear the messages from this chat box?" -msgstr "" +msgstr "Törölni szeretné az eddigi üzeneteket?" #: converse.js:1285 msgid "Your message could not be sent" -msgstr "" +msgstr "Az üzenet elküldése nem sikerült" #: converse.js:1288 msgid "We received an unencrypted message" -msgstr "" +msgstr "Titkosítatlan üzenet érkezett" #: converse.js:1291 msgid "We received an unreadable encrypted message" -msgstr "" +msgstr "Visszafejthetetlen titkosított üzenet érkezett" #: converse.js:1300 msgid "This user has requested an encrypted session." -msgstr "" +msgstr "Felkérés érkezett titkosított kapcsolatra." #: converse.js:1322 msgid "" @@ -211,6 +210,14 @@ msgid "" "If you have confirmed that the fingerprints match, click OK, otherwise click " "Cancel." msgstr "" +"Újjlenyomatok megerősítése.\n" +"\n" +"Az Ön újjlenyomata, %2$s: %3$s\n" +"\n" +"A csevegő partnere újjlenyomata, %1$s: %4$s\n" +"\n" +"Amennyiben az újjlenyomatok biztosan egyeznek, klikkeljen az OK, ellenkező " +"esetben a Mégsem gombra." #: converse.js:1335 msgid "" @@ -220,91 +227,94 @@ msgid "" "Your contact will then be prompted the same question and if they type the " "exact same answer (case sensitive), their identity will be verified." msgstr "" +"Elsőként egy biztonsági kérdést kell majd feltennie és megválaszolnia.\n" +"\n" +"Majd a csevegő partnerének is megjelenik ez a kérdés. Végül ha a válaszok " +"azonosak lesznek (kis- nagybetű érzékeny), a partner hitelesítetté válik." #: converse.js:1336 msgid "What is your security question?" -msgstr "" +msgstr "Mi legyen a biztonsági kérdés?" #: converse.js:1338 msgid "What is the answer to the security question?" -msgstr "" +msgstr "Mi a válasz a biztonsági kérdésre?" #: converse.js:1342 msgid "Invalid authentication scheme provided" -msgstr "" +msgstr "Érvénytelen hitelesítési séma." #: converse.js:1457 msgid "Your messages are not encrypted anymore" -msgstr "" +msgstr "Az üzenetek mostantól már nem titkosítottak" #: converse.js:1459 msgid "" "Your messages are now encrypted but your contact's identity has not been " "verified." -msgstr "" +msgstr "Az üzenetek titikosítva vannak, de a csevegő partnerét még nem hitelesítette." #: converse.js:1461 msgid "Your contact's identify has been verified." -msgstr "" +msgstr "A csevegő partnere hitelesítve lett." #: converse.js:1463 msgid "Your contact has ended encryption on their end, you should do the same." -msgstr "" +msgstr "A csevegő partnere kikapcsolta a titkosítást, így Önnek is ezt kellene tennie." #: converse.js:1472 msgid "Your messages are not encrypted. Click here to enable OTR encryption." -msgstr "" +msgstr "Az üzenetek titkosítatlanok. OTR titkosítás aktiválása." #: converse.js:1474 msgid "Your messages are encrypted, but your contact has not been verified." -msgstr "" +msgstr "Az üzenetek titikosítottak, de a csevegő partnere még nem hitelesített." #: converse.js:1476 msgid "Your messages are encrypted and your contact verified." -msgstr "" +msgstr "Az üzenetek titikosítottak és a csevegő partnere hitelesített." #: converse.js:1478 msgid "" "Your contact has closed their end of the private session, you should do the " "same" -msgstr "" +msgstr "A csevegő partnere lezárta a magán beszélgetést" #: converse.js:1488 -#, fuzzy msgid "Clear all messages" -msgstr "Saját üzenet" +msgstr "Üzenetek törlése" #: converse.js:1489 msgid "End encrypted conversation" -msgstr "" +msgstr "Titkosított kapcsolat vége" #: converse.js:1490 msgid "Hide the list of participants" -msgstr "" +msgstr "A jelenlevők listájának elrejtése" #: converse.js:1491 msgid "Refresh encrypted conversation" -msgstr "" +msgstr "A titkosított kapcsolat frissítése" #: converse.js:1492 msgid "Start a call" -msgstr "" +msgstr "Hívás indítása" #: converse.js:1493 msgid "Start encrypted conversation" -msgstr "" +msgstr "Titkosított beszélgetés indítása" #: converse.js:1494 msgid "Verify with fingerprints" -msgstr "" +msgstr "Ellenőrzés újjlenyomattal" #: converse.js:1495 msgid "Verify with SMP" -msgstr "" +msgstr "Ellenőrzés SMP-vel" #: converse.js:1496 msgid "What's this?" -msgstr "" +msgstr "Mi ez?" #: converse.js:1587 msgid "Online" @@ -323,13 +333,12 @@ msgid "Offline" msgstr "Nem elérhető" #: converse.js:1591 -#, fuzzy msgid "Log out" -msgstr "Belépés" +msgstr "Kilépés" #: converse.js:1597 msgid "Contact name" -msgstr "Kapcsolat neve" +msgstr "Partner neve" #: converse.js:1598 msgid "Search" @@ -341,27 +350,27 @@ msgstr "Felhasználónév" #: converse.js:1603 msgid "Add" -msgstr "Hozzáadás" +msgstr "Hozzáad" #: converse.js:1608 msgid "Click to add new chat contacts" -msgstr "Új kapcsolatok hozzáadása" +msgstr "Új csevegő partner hozzáadása" #: converse.js:1609 msgid "Add a contact" -msgstr "Új kapcsolat" +msgstr "Új partner felvétele" #: converse.js:1633 msgid "No users found" -msgstr "Nincs találat" +msgstr "Nincs felhasználó" #: converse.js:1639 msgid "Click to add as a chat contact" -msgstr "Csevegő kapcsolatként hozzáad" +msgstr "Felvétel a csevegő partnerek közé" #: converse.js:1703 msgid "Room name" -msgstr "A szoba neve" +msgstr "Szoba neve" #: converse.js:1704 msgid "Nickname" @@ -392,7 +401,7 @@ msgstr "Nincs csevegő szoba a(z) %1$s szerveren" #. replaced with the XMPP server name #: converse.js:1746 msgid "Rooms on %1$s" -msgstr "Csevegő szobák a(z) %1$s szerveren" +msgstr "Csevegő szobák a(z) %1$s szerveren:" #: converse.js:1755 msgid "Click to open this room" @@ -412,7 +421,7 @@ msgstr "Jelenlevők:" #: converse.js:1820 msgid "Features:" -msgstr "Tulajdonságok" +msgstr "Tulajdonságok:" #: converse.js:1821 msgid "Requires authentication" @@ -472,22 +481,22 @@ msgstr "Ez a felhasználó NEM küldhet üzenetet ebbe a szobába" #: converse.js:2133 msgid "Invite..." -msgstr "" +msgstr "Meghívás..." #: converse.js:2134 -#, fuzzy msgid "Occupants" -msgstr "Jelenlevők:" +msgstr "Jelenlevők" #: converse.js:2199 msgid "You are about to invite %1$s to the chat room \"%2$s\". " -msgstr "" +msgstr "%1$s meghívott a \"%2$s\" csevegő szobába. " #: converse.js:2200 msgid "" "You may optionally include a message, explaining the reason for the " -"invitation." +"invitation. " msgstr "" +"A meghívás okaként üzenet csatolható. " #: converse.js:2283 msgid "Message" @@ -495,42 +504,39 @@ msgstr "Üzenet" #: converse.js:2319 msgid "Error: could not execute the command" -msgstr "" +msgstr "Hiba: A parancs nem értelmezett" #: converse.js:2349 -#, fuzzy msgid "Ban user from room" msgstr "Felhasználó kitíltása a csevegő szobából" #: converse.js:2352 -#, fuzzy msgid "Kick user from room" msgstr "Felhasználó kiléptetése a csevegő szobából" #: converse.js:2353 msgid "Write in 3rd person" -msgstr "" +msgstr "Írjon egyes szám harmadik személyben" #: converse.js:2354 msgid "Remove user's ability to post messages" -msgstr "" +msgstr "A felhasználó nem küldhet üzeneteket" #: converse.js:2355 msgid "Change your nickname" -msgstr "" +msgstr "Becenév módosítása" #: converse.js:2356 -#, fuzzy msgid "Set room topic" msgstr "Csevegőszoba téma beállítás" #: converse.js:2357 msgid "Allow muted user to post messages" -msgstr "" +msgstr "Elnémított felhasználók is küldhetnek üzeneteket" #: converse.js:2423 converse.js:4334 msgid "Save" -msgstr "Mentés" +msgstr "Ment" #: converse.js:2424 converse.js:4603 converse.js:4707 msgid "Cancel" @@ -546,7 +552,7 @@ msgstr "A csevegő szoba belépéshez jelszó szükséges" #: converse.js:2504 msgid "Password: " -msgstr "Jelszó:" +msgstr "Jelszó: " #: converse.js:2505 msgid "Submit" @@ -610,24 +616,23 @@ msgid "" "only and you're not a member" msgstr "" "Kiléptettünk a csevegő szobából, mert mostantól csak a taglistán szereplők " -"lehetnek jelen." +"lehetnek jelen" #: converse.js:2557 msgid "" "You have been removed from this room because the MUC (Multi-user chat) " "service is being shut down." msgstr "" -"Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) szolgáltatás " -"leállításra került." +"Kiléptettünk a csevegő szobából, mert a MUC (Multi-User Chat) " +"szolgáltatás leállításra került." #: converse.js:2571 msgid "%1$s has been banned" msgstr "A szobából kitíltva: %1$s" #: converse.js:2572 -#, fuzzy msgid "%1$s's nickname has changed" -msgstr "A szobából kitíltva: %1$s" +msgstr "%1$s beceneve módosult" #: converse.js:2573 msgid "%1$s has been kicked out" @@ -639,22 +644,19 @@ msgstr "Taglista módosítás miatt a szobából kiléptetve: %1$s%1$s has been removed for not being a member" -msgstr "" -"A taglistán nem szerepel így a szobából kiléptetve: %1$s" +msgstr "A taglistán nem szerepel így a szobából kiléptetve: %1$s" #: converse.js:2579 -#, fuzzy msgid "Your nickname has been automatically changed to: %1$s" -msgstr "A beceneved módosításra került" +msgstr "A beceneved módosításra került a következőre: %1$s" #: converse.js:2580 -#, fuzzy msgid "Your nickname has been changed to: %1$s" -msgstr "A beceneved módosításra került" +msgstr "A beceneved a következőre módosult: %1$s" #: converse.js:2628 converse.js:2638 msgid "The reason given is: \"" -msgstr "" +msgstr "Az indok: \"" #: converse.js:2651 msgid "You are not on the member list of this room" @@ -682,7 +684,7 @@ msgstr "Ez a szoba (még) nem létezik" #: converse.js:2671 msgid "This room has reached it's maximum number of occupants" -msgstr "Ez a csevegő szoba elérte a maximális jelenlevők számát" +msgstr "Ez a csevegő szoba elérte a maximális jelenlévők számát" #: converse.js:2713 msgid "Topic set by %1$s to: %2$s" @@ -690,54 +692,49 @@ msgstr "A következő témát állította be %1$s: %2$s" #: converse.js:2795 msgid "%1$s has invited you to join a chat room: %2$s" -msgstr "" +msgstr "%1$s meghívott a(z) %2$s csevegő szobába" #: converse.js:2799 msgid "" "%1$s has invited you to join a chat room: %2$s, and left the following " "reason: \"%3$s\"" -msgstr "" +msgstr "%1$s meghívott a(z) %2$s csevegő szobába. Indok: \"%3$s\"" #: converse.js:3057 -#, fuzzy msgid "Click to restore this chat" -msgstr "A kapcsolat törlése" +msgstr "A csevegés visszaállítása" #: converse.js:3202 msgid "Minimized" -msgstr "" +msgstr "Lezárva" #: converse.js:3298 converse.js:3316 msgid "Click to remove this contact" -msgstr "A kapcsolat törlése" +msgstr "Partner törlése" #: converse.js:3305 -#, fuzzy msgid "Click to accept this contact request" -msgstr "A kapcsolat törlése" +msgstr "Elogadása a partnerlistába történő felvételnek" #: converse.js:3306 -#, fuzzy msgid "Click to decline this contact request" -msgstr "A kapcsolat törlése" +msgstr "Megtagadása a partnerlistába történő felvételnek" #: converse.js:3315 msgid "Click to chat with this contact" -msgstr "Csevegés indítása ezzel a kapcsolatunkkal" +msgstr "Csevegés indítása ezzel a partnerünkkel" #: converse.js:3340 -#, fuzzy msgid "Are you sure you want to remove this contact?" -msgstr "A kapcsolat törlése" +msgstr "Valóban törölni szeretné a csevegő partnerét?" #: converse.js:3363 -#, fuzzy msgid "Are you sure you want to decline this contact request?" -msgstr "A kapcsolat törlése" +msgstr "Valóban elutasítja ezt a kapcsolat felvételi kérést?" #: converse.js:3889 msgid "Type to filter" -msgstr "" +msgstr "Írjon be pár betűt" #. For translators: the %1$s part gets replaced with the status #. Example, I am online @@ -759,74 +756,76 @@ msgstr "Egyedi státusz" #: converse.js:4362 converse.js:4370 msgid "online" -msgstr "online" +msgstr "Elérhető" #: converse.js:4364 msgid "busy" -msgstr "elfoglalt" +msgstr "Elfoglalt" #: converse.js:4366 msgid "away for long" -msgstr "hosszú ideje távol" +msgstr "Hosszú ideje távol" #: converse.js:4368 msgid "away" -msgstr "távol" +msgstr "Távol" #: converse.js:4488 msgid "Your XMPP provider's domain name:" -msgstr "" +msgstr "Az XMPP szolgáltató domain neve:" #: converse.js:4489 msgid "Fetch registration form" -msgstr "" +msgstr "Regisztrációs űrlap" #: converse.js:4490 msgid "Tip: A list of public XMPP providers is available" -msgstr "" +msgstr "Tipp: A nyílvános XMPP szolgáltatókról egy lista elérhető" #: converse.js:4491 msgid "here" -msgstr "" +msgstr "itt" #: converse.js:4496 converse.js:4705 msgid "Register" -msgstr "" +msgstr "Regisztráció" #: converse.js:4543 msgid "" "Sorry, the given provider does not support in band account registration. " "Please try with a different provider." msgstr "" +"A megadott szolgáltató nem támogatja a csevegőn keresztüli regisztrációt. " +"Próbáljon meg egy másikat." #: converse.js:4604 msgid "Requesting a registration form from the XMPP server" -msgstr "" +msgstr "Regisztrációs űrlap lekérése az XMPP szervertől" #: converse.js:4639 msgid "" "Something went wrong while establishing a connection with \"%1$s\". Are you " "sure it exists?" msgstr "" +"Hiba történt a(z) \"%1$s\" kapcsolódásakor. Biztos benne, hogy ez létező kiszolgáló?" #: converse.js:4658 msgid "Now logging you in" -msgstr "" +msgstr "Belépés..." #: converse.js:4662 msgid "Registered successfully" -msgstr "" +msgstr "Sikeres regisztráció" #: converse.js:4710 msgid "Return" -msgstr "" +msgstr "Visza" #: converse.js:4742 msgid "The provider rejected your registration attempt. " -msgstr "" +msgstr "A szolgáltató visszautasította a regisztrációs kérelmet." #: converse.js:4887 -#, fuzzy msgid "XMPP Username:" msgstr "XMPP/Jabber azonosító:" @@ -844,7 +843,7 @@ msgstr "Belépés" #: converse.js:4970 msgid "Toggle chat" -msgstr "" +msgstr "Csevegő ablak" #~ msgid "Disconnected" #~ msgstr "Szétkapcsolva" @@ -855,9 +854,8 @@ msgstr "" #~ msgid "Disconnecting" #~ msgstr "Szétkapcsolás" -#, fuzzy #~ msgid "Decline" -#~ msgstr "Elérhető" +#~ msgstr "Elutasít" #~ msgid "BOSH Service URL:" -#~ msgstr "BOSH szerver URL" +#~ msgstr "BOSH szerver URL:" From b7643eaba0b1dfa4c5b979c3685f1a07860054ba Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 27 Jan 2015 15:10:58 +0100 Subject: [PATCH 31/81] Initial work on letting converse.js use the AMD version of strophe.js --- converse.js | 41 ++++++++++++++++------------------------- dev.html | 3 ++- main.js | 26 ++++++++++++++++---------- src/deps-website.js | 20 +++++++++++--------- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/converse.js b/converse.js index f9bf4a1d7..6cf7b1fbe 100644 --- a/converse.js +++ b/converse.js @@ -12,34 +12,25 @@ define("converse", ["converse-dependencies", "converse-templates"], function (dependencies, templates) { - var otr = dependencies.otr; - if (typeof otr !== "undefined") { - return factory( - dependencies.jQuery, - _, - otr.OTR, - otr.DSA, - templates, - dependencies.moment, - dependencies.utils - ); - } else { - return factory( - dependencies.jQuery, - _, - undefined, - undefined, - templates, - dependencies.moment, - dependencies.utils - ); - } + return factory(dependencies, templates); } ); } else { - root.converse = factory(jQuery, _, OTR, DSA, templates, moment, utils); + root.converse = factory(dependencies, templates); } -}(this, function ($, _, OTR, DSA, templates, moment, utils) { +}(this, function (dependencies, templates) { + var $ = dependencies.jQuery; + var $iq = dependencies.$iq; + var $msg = dependencies.$msg; + var $pres = dependencies.$pres; + var DSA = dependencies.otr ? dependencies.otr.DSA : undefined; + var OTR = dependencies.otr ? dependencies.otr.OTR : undefined; + var Strophe = dependencies.Strophe; + var _ = dependencies.underscore; + var moment = dependencies.moment; + var utils = dependencies.utils; + var b64_sha1 = depencencies.SHA1.b64_sha1; + // "use strict"; // Cannot use this due to Safari bug. // See https://github.com/jcbrand/converse.js/issues/196 @@ -5288,7 +5279,7 @@ }, 'env': { 'jQuery': $, - 'Strophe': Strophe, + 'Strophe': Strophe, // TODO: this must be wrapped '_': _ }, diff --git a/dev.html b/dev.html index 90e790907..8e554f223 100644 --- a/dev.html +++ b/dev.html @@ -248,7 +248,8 @@ play_sounds: true, roster_groups: true, show_controlbox_by_default: true, - xhr_user_search: false + xhr_user_search: false, + debug: true }); }); diff --git a/main.js b/main.js index bb41f070c..8fd73be86 100644 --- a/main.js +++ b/main.js @@ -1,9 +1,9 @@ var config; if (typeof(require) === 'undefined') { /* XXX: Hack to work around r.js's stupid parsing. - * We want to save the configuration in a variable so that we can reuse it in - * tests/main.js. - */ + * We want to save the configuration in a variable so that we can reuse it in + * tests/main.js. + */ require = { config: function (c) { config = c; @@ -27,7 +27,14 @@ require.config({ "jquery.browser": "components/jquery.browser/index", "jquery.easing": "components/jquery-easing-original/index", // XXX: Only required for https://conversejs.org website "moment": "components/momentjs/moment", - "strophe": "components/strophe/strophe", + "strophe-base64": "components/strophe/src/base64", + "strophe-bosh": "components/strophe/src/bosh", + "strophe-core": "components/strophe/src/core", + "strophe-full": "components/strophe/src/wrapper", + "strophe-md5": "components/strophe/src/md5", + "strophe-sha1": "components/strophe/src/sha1", + "strophe-websocket": "components/strophe/src/websocket", + "strophe-polyfill": "components/strophe/src/polyfill", "strophe.disco": "components/strophejs-plugins/disco/strophe.disco", "strophe.muc": "components/strophe.muc/index", "strophe.roster": "src/strophe.roster", @@ -161,12 +168,11 @@ require.config({ 'crypto.sha1': { deps: ['crypto.core'] }, 'crypto.sha256': { deps: ['crypto.core'] }, 'bigint': { deps: ['crypto'] }, - 'strophe': { exports: 'Strophe' }, - 'strophe.disco': { deps: ['strophe'] }, - 'strophe.muc': { deps: ['strophe'] }, - 'strophe.register': { deps: ['strophe'] }, - 'strophe.roster': { deps: ['strophe'] }, - 'strophe.vcard': { deps: ['strophe'] } + 'strophe.disco': { deps: ['strophe-full'] }, + 'strophe.muc': { deps: ['strophe-full'] }, + 'strophe.register': { deps: ['strophe-full'] }, + 'strophe.roster': { deps: ['strophe-full'] }, + 'strophe.vcard': { deps: ['strophe-full'] } } }); diff --git a/src/deps-website.js b/src/deps-website.js index f43366f9f..8c159dece 100644 --- a/src/deps-website.js +++ b/src/deps-website.js @@ -1,24 +1,26 @@ define("converse-dependencies", [ "jquery", + "underscore", "utils", "otr", "moment", + "strophe-full", + "strophe.muc", + "strophe.roster", + "strophe.vcard", + "strophe.disco", "bootstrapJS", // XXX: Only for https://conversejs.org "backbone.browserStorage", "backbone.overview", "jquery.browser", "jquery.easing", // XXX: Only for https://conversejs.org - "typeahead", - "strophe", - "strophe.muc", - "strophe.roster", - "strophe.vcard", - "strophe.disco" -], function($, utils, otr, moment) { - return { + "typeahead" +], function($, _, utils, otr, moment, Strophe) { + return _.extend({ + 'underscore': _, 'jQuery': $, 'otr': otr, 'moment': moment, 'utils': utils - }; + }, Strophe); }); From 8eabf93cecb93e0eeb19e71da69401a127b2968b Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 30 Jan 2015 15:54:59 +0100 Subject: [PATCH 32/81] Fix typo --- converse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converse.js b/converse.js index 6cf7b1fbe..afd5b1153 100644 --- a/converse.js +++ b/converse.js @@ -29,7 +29,7 @@ var _ = dependencies.underscore; var moment = dependencies.moment; var utils = dependencies.utils; - var b64_sha1 = depencencies.SHA1.b64_sha1; + var b64_sha1 = dependencies.SHA1.b64_sha1; // "use strict"; // Cannot use this due to Safari bug. From 0121914cda37263e515302aa7f69b2321d132569 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 30 Jan 2015 15:55:46 +0100 Subject: [PATCH 33/81] Make strophe.roster.js an AMD module. --- src/strophe.roster.js | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/strophe.roster.js b/src/strophe.roster.js index b3a6f5aeb..38affe19d 100644 --- a/src/strophe.roster.js +++ b/src/strophe.roster.js @@ -13,8 +13,33 @@ * * authorize/unauthorize * * roster versioning (xep 237) */ -Strophe.addConnectionPlugin('roster', -{ +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define([ + "strophe-full" + ], function (Strophe) { + factory( + Strophe.Strophe, + Strophe.$build, + Strophe.$iq , + Strophe.$msg, + Strophe.$pres + ); + }); + } else { + // Browser globals + factory( + root.Strophe, + root.$build, + root.$iq , + root.$msg, + root.$pres + ); + } +}(this, function (Strophe, $build, $iq, $msg, $pres) { + +Strophe.addConnectionPlugin('roster', { /** Function: init * Plugin init * @@ -445,3 +470,4 @@ Strophe.addConnectionPlugin('roster', } } }); +})); From 3b0a3b788c8f782ad5c0b4176897f1cbcf102cb0 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 30 Jan 2015 15:56:41 +0100 Subject: [PATCH 34/81] Indented code. --- src/strophe.roster.js | 814 +++++++++++++++++++++--------------------- 1 file changed, 407 insertions(+), 407 deletions(-) diff --git a/src/strophe.roster.js b/src/strophe.roster.js index 38affe19d..c15bc70fa 100644 --- a/src/strophe.roster.js +++ b/src/strophe.roster.js @@ -39,435 +39,435 @@ } }(this, function (Strophe, $build, $iq, $msg, $pres) { -Strophe.addConnectionPlugin('roster', { - /** Function: init - * Plugin init - * - * Parameters: - * (Strophe.Connection) conn - Strophe connection - */ - init: function(conn) - { - this._connection = conn; - this._callbacks = []; - /** Property: items - * Roster items - * [ - * { - * name : "", - * jid : "", - * subscription : "", - * ask : "", - * groups : ["", ""], - * resources : { - * myresource : { - * show : "", - * status : "", - * priority : "" - * } - * } - * } - * ] - */ - this.items = []; - /** Property: ver - * current roster revision - * always null if server doesn't support xep 237 + Strophe.addConnectionPlugin('roster', { + /** Function: init + * Plugin init + * + * Parameters: + * (Strophe.Connection) conn - Strophe connection */ - this.ver = null; - // Override the connect and attach methods to always add presence and roster handlers. - // They are removed when the connection disconnects, so must be added on connection. - var oldCallback, roster = this, _connect = conn.connect, _attach = conn.attach; - var newCallback = function(status) + init: function(conn) { - if (status == Strophe.Status.ATTACHED || status == Strophe.Status.CONNECTED) + this._connection = conn; + this._callbacks = []; + /** Property: items + * Roster items + * [ + * { + * name : "", + * jid : "", + * subscription : "", + * ask : "", + * groups : ["", ""], + * resources : { + * myresource : { + * show : "", + * status : "", + * priority : "" + * } + * } + * } + * ] + */ + this.items = []; + /** Property: ver + * current roster revision + * always null if server doesn't support xep 237 + */ + this.ver = null; + // Override the connect and attach methods to always add presence and roster handlers. + // They are removed when the connection disconnects, so must be added on connection. + var oldCallback, roster = this, _connect = conn.connect, _attach = conn.attach; + var newCallback = function(status) { - try + if (status == Strophe.Status.ATTACHED || status == Strophe.Status.CONNECTED) { - // Presence subscription - conn.addHandler(roster._onReceivePresence.bind(roster), null, 'presence', null, null, null); - conn.addHandler(roster._onReceiveIQ.bind(roster), Strophe.NS.ROSTER, 'iq', "set", null, null); + try + { + // Presence subscription + conn.addHandler(roster._onReceivePresence.bind(roster), null, 'presence', null, null, null); + conn.addHandler(roster._onReceiveIQ.bind(roster), Strophe.NS.ROSTER, 'iq', "set", null, null); + } + catch (e) + { + Strophe.error(e); + } } - catch (e) - { - Strophe.error(e); + if (typeof oldCallback === "function") { + oldCallback.apply(this, arguments); } - } - if (typeof oldCallback === "function") { - oldCallback.apply(this, arguments); - } - }; - conn.connect = function(jid, pass, callback, wait, hold, route) - { - oldCallback = callback; - if (typeof jid == "undefined") - jid = null; - if (typeof pass == "undefined") - pass = null; - callback = newCallback; - _connect.apply(conn, [jid, pass, callback, wait, hold, route]); - }; - conn.attach = function(jid, sid, rid, callback, wait, hold, wind) - { - oldCallback = callback; - if (typeof jid == "undefined") - jid = null; - if (typeof sid == "undefined") - sid = null; - if (typeof rid == "undefined") - rid = null; - callback = newCallback; - _attach.apply(conn, [jid, sid, rid, callback, wait, hold, wind]); - }; + }; + conn.connect = function(jid, pass, callback, wait, hold, route) + { + oldCallback = callback; + if (typeof jid == "undefined") + jid = null; + if (typeof pass == "undefined") + pass = null; + callback = newCallback; + _connect.apply(conn, [jid, pass, callback, wait, hold, route]); + }; + conn.attach = function(jid, sid, rid, callback, wait, hold, wind) + { + oldCallback = callback; + if (typeof jid == "undefined") + jid = null; + if (typeof sid == "undefined") + sid = null; + if (typeof rid == "undefined") + rid = null; + callback = newCallback; + _attach.apply(conn, [jid, sid, rid, callback, wait, hold, wind]); + }; - Strophe.addNamespace('ROSTER_VER', 'urn:xmpp:features:rosterver'); - Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick'); - }, - /** Function: supportVersioning - * return true if roster versioning is enabled on server - */ - supportVersioning: function() - { - return (this._connection.features && this._connection.features.getElementsByTagName('ver').length > 0); - }, - /** Function: get - * Get Roster on server - * - * Parameters: - * (Function) userCallback - callback on roster result - * (String) ver - current rev of roster - * (only used if roster versioning is enabled) - * (Array) items - initial items of ver - * (only used if roster versioning is enabled) - * In browser context you can use sessionStorage - * to store your roster in json (JSON.stringify()) - */ - get: function(userCallback, ver, items) - { - var attrs = {xmlns: Strophe.NS.ROSTER}; - if (this.supportVersioning()) + Strophe.addNamespace('ROSTER_VER', 'urn:xmpp:features:rosterver'); + Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick'); + }, + /** Function: supportVersioning + * return true if roster versioning is enabled on server + */ + supportVersioning: function() + { + return (this._connection.features && this._connection.features.getElementsByTagName('ver').length > 0); + }, + /** Function: get + * Get Roster on server + * + * Parameters: + * (Function) userCallback - callback on roster result + * (String) ver - current rev of roster + * (only used if roster versioning is enabled) + * (Array) items - initial items of ver + * (only used if roster versioning is enabled) + * In browser context you can use sessionStorage + * to store your roster in json (JSON.stringify()) + */ + get: function(userCallback, ver, items) + { + var attrs = {xmlns: Strophe.NS.ROSTER}; + if (this.supportVersioning()) + { + // empty rev because i want an rev attribute in the result + attrs.ver = ver || ''; + this.items = items || []; + } + var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs); + return this._connection.sendIQ(iq, + this._onReceiveRosterSuccess.bind(this, userCallback), + this._onReceiveRosterError.bind(this, userCallback)); + }, + /** Function: registerCallback + * register callback on roster (presence and iq) + * + * Parameters: + * (Function) call_back + */ + registerCallback: function(call_back) + { + this._callbacks.push(call_back); + }, + /** Function: findItem + * Find item by JID + * + * Parameters: + * (String) jid + */ + findItem : function(jid) + { + try { + for (var i = 0; i < this.items.length; i++) + { + if (this.items[i] && this.items[i].jid == jid) + { + return this.items[i]; + } + } + } catch (e) + { + Strophe.error(e); + } + return false; + }, + /** Function: removeItem + * Remove item by JID + * + * Parameters: + * (String) jid + */ + removeItem : function(jid) { - // empty rev because i want an rev attribute in the result - attrs.ver = ver || ''; - this.items = items || []; - } - var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs); - return this._connection.sendIQ(iq, - this._onReceiveRosterSuccess.bind(this, userCallback), - this._onReceiveRosterError.bind(this, userCallback)); - }, - /** Function: registerCallback - * register callback on roster (presence and iq) - * - * Parameters: - * (Function) call_back - */ - registerCallback: function(call_back) - { - this._callbacks.push(call_back); - }, - /** Function: findItem - * Find item by JID - * - * Parameters: - * (String) jid - */ - findItem : function(jid) - { - try { for (var i = 0; i < this.items.length; i++) { if (this.items[i] && this.items[i].jid == jid) { - return this.items[i]; + this.items.splice(i, 1); + return true; } } - } catch (e) + return false; + }, + /** Function: subscribe + * Subscribe presence + * + * Parameters: + * (String) jid + * (String) message (optional) + * (String) nick (optional) + */ + subscribe: function(jid, message, nick) { + var pres = $pres({to: jid, type: "subscribe"}); + if (message && message !== "") { + pres.c("status").t(message).up(); + } + if (nick && nick !== "") { + pres.c('nick', {'xmlns': Strophe.NS.NICK}).t(nick).up(); + } + this._connection.send(pres); + }, + /** Function: unsubscribe + * Unsubscribe presence + * + * Parameters: + * (String) jid + * (String) message + */ + unsubscribe: function(jid, message) { - Strophe.error(e); - } - return false; - }, - /** Function: removeItem - * Remove item by JID - * - * Parameters: - * (String) jid - */ - removeItem : function(jid) - { - for (var i = 0; i < this.items.length; i++) + var pres = $pres({to: jid, type: "unsubscribe"}); + if (message && message !== "") + pres.c("status").t(message); + this._connection.send(pres); + }, + /** Function: authorize + * Authorize presence subscription + * + * Parameters: + * (String) jid + * (String) message + */ + authorize: function(jid, message) { - if (this.items[i] && this.items[i].jid == jid) + var pres = $pres({to: jid, type: "subscribed"}); + if (message && message !== "") + pres.c("status").t(message); + this._connection.send(pres); + }, + /** Function: unauthorize + * Unauthorize presence subscription + * + * Parameters: + * (String) jid + * (String) message + */ + unauthorize: function(jid, message) + { + var pres = $pres({to: jid, type: "unsubscribed"}); + if (message && message !== "") + pres.c("status").t(message); + this._connection.send(pres); + }, + /** Function: add + * Add roster item + * + * Parameters: + * (String) jid - item jid + * (String) name - name + * (Array) groups + * (Function) call_back + */ + add: function(jid, name, groups, call_back) + { + var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: jid, + name: name}); + for (var i = 0; i < groups.length; i++) + { + iq.c('group').t(groups[i]).up(); + } + this._connection.sendIQ(iq, call_back, call_back); + }, + /** Function: update + * Update roster item + * + * Parameters: + * (String) jid - item jid + * (String) name - name + * (Array) groups + * (Function) call_back + */ + update: function(jid, name, groups, call_back) + { + var item = this.findItem(jid); + if (!item) + { + throw "item not found"; + } + var newName = name || item.name; + var newGroups = groups || item.groups; + var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, + name: newName}); + for (var i = 0; i < newGroups.length; i++) + { + iq.c('group').t(newGroups[i]).up(); + } + return this._connection.sendIQ(iq, call_back, call_back); + }, + /** Function: remove + * Remove roster item + * + * Parameters: + * (String) jid - item jid + * (Function) call_back + */ + remove: function(jid, call_back) + { + var item = this.findItem(jid); + if (!item) + { + throw "item not found"; + } + var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, + subscription: "remove"}); + this._connection.sendIQ(iq, call_back, call_back); + }, + /** PrivateFunction: _onReceiveRosterSuccess + * + */ + _onReceiveRosterSuccess: function(userCallback, stanza) + { + this._updateItems(stanza); + if (typeof userCallback === "function") { + userCallback(this.items); + } + }, + /** PrivateFunction: _onReceiveRosterError + * + */ + _onReceiveRosterError: function(userCallback, stanza) + { + userCallback(this.items); + }, + /** PrivateFunction: _onReceivePresence + * Handle presence + */ + _onReceivePresence : function(presence) + { + // TODO: from is optional + var jid = presence.getAttribute('from'); + var from = Strophe.getBareJidFromJid(jid); + var item = this.findItem(from); + // not in roster + if (!item) { - this.items.splice(i, 1); return true; } - } - return false; - }, - /** Function: subscribe - * Subscribe presence - * - * Parameters: - * (String) jid - * (String) message (optional) - * (String) nick (optional) - */ - subscribe: function(jid, message, nick) { - var pres = $pres({to: jid, type: "subscribe"}); - if (message && message !== "") { - pres.c("status").t(message).up(); - } - if (nick && nick !== "") { - pres.c('nick', {'xmlns': Strophe.NS.NICK}).t(nick).up(); - } - this._connection.send(pres); - }, - /** Function: unsubscribe - * Unsubscribe presence - * - * Parameters: - * (String) jid - * (String) message - */ - unsubscribe: function(jid, message) - { - var pres = $pres({to: jid, type: "unsubscribe"}); - if (message && message !== "") - pres.c("status").t(message); - this._connection.send(pres); - }, - /** Function: authorize - * Authorize presence subscription - * - * Parameters: - * (String) jid - * (String) message - */ - authorize: function(jid, message) - { - var pres = $pres({to: jid, type: "subscribed"}); - if (message && message !== "") - pres.c("status").t(message); - this._connection.send(pres); - }, - /** Function: unauthorize - * Unauthorize presence subscription - * - * Parameters: - * (String) jid - * (String) message - */ - unauthorize: function(jid, message) - { - var pres = $pres({to: jid, type: "unsubscribed"}); - if (message && message !== "") - pres.c("status").t(message); - this._connection.send(pres); - }, - /** Function: add - * Add roster item - * - * Parameters: - * (String) jid - item jid - * (String) name - name - * (Array) groups - * (Function) call_back - */ - add: function(jid, name, groups, call_back) - { - var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: jid, - name: name}); - for (var i = 0; i < groups.length; i++) - { - iq.c('group').t(groups[i]).up(); - } - this._connection.sendIQ(iq, call_back, call_back); - }, - /** Function: update - * Update roster item - * - * Parameters: - * (String) jid - item jid - * (String) name - name - * (Array) groups - * (Function) call_back - */ - update: function(jid, name, groups, call_back) - { - var item = this.findItem(jid); - if (!item) - { - throw "item not found"; - } - var newName = name || item.name; - var newGroups = groups || item.groups; - var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, - name: newName}); - for (var i = 0; i < newGroups.length; i++) - { - iq.c('group').t(newGroups[i]).up(); - } - return this._connection.sendIQ(iq, call_back, call_back); - }, - /** Function: remove - * Remove roster item - * - * Parameters: - * (String) jid - item jid - * (Function) call_back - */ - remove: function(jid, call_back) - { - var item = this.findItem(jid); - if (!item) - { - throw "item not found"; - } - var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, - subscription: "remove"}); - this._connection.sendIQ(iq, call_back, call_back); - }, - /** PrivateFunction: _onReceiveRosterSuccess - * - */ - _onReceiveRosterSuccess: function(userCallback, stanza) - { - this._updateItems(stanza); - if (typeof userCallback === "function") { - userCallback(this.items); - } - }, - /** PrivateFunction: _onReceiveRosterError - * - */ - _onReceiveRosterError: function(userCallback, stanza) - { - userCallback(this.items); - }, - /** PrivateFunction: _onReceivePresence - * Handle presence - */ - _onReceivePresence : function(presence) - { - // TODO: from is optional - var jid = presence.getAttribute('from'); - var from = Strophe.getBareJidFromJid(jid); - var item = this.findItem(from); - // not in roster - if (!item) - { - return true; - } - var type = presence.getAttribute('type'); - if (type == 'unavailable') - { - delete item.resources[Strophe.getResourceFromJid(jid)]; - } - else if (!type) - { - // TODO: add timestamp - item.resources[Strophe.getResourceFromJid(jid)] = { - show : (presence.getElementsByTagName('show').length !== 0) ? Strophe.getText(presence.getElementsByTagName('show')[0]) : "", - status : (presence.getElementsByTagName('status').length !== 0) ? Strophe.getText(presence.getElementsByTagName('status')[0]) : "", - priority : (presence.getElementsByTagName('priority').length !== 0) ? Strophe.getText(presence.getElementsByTagName('priority')[0]) : "" - }; - } - else - { - // Stanza is not a presence notification. (It's probably a subscription type stanza.) - return true; - } - this._call_backs(this.items, item); - return true; - }, - /** PrivateFunction: _call_backs - * - */ - _call_backs : function(items, item) - { - for (var i = 0; i < this._callbacks.length; i++) // [].forEach my love ... - { - this._callbacks[i](items, item); - } - }, - /** PrivateFunction: _onReceiveIQ - * Handle roster push. - */ - _onReceiveIQ : function(iq) - { - var id = iq.getAttribute('id'); - var from = iq.getAttribute('from'); - // Receiving client MUST ignore stanza unless it has no from or from = user's JID. - if (from && from !== "" && from != this._connection.jid && from != Strophe.getBareJidFromJid(this._connection.jid)) - return true; - var iqresult = $iq({type: 'result', id: id, from: this._connection.jid}); - this._connection.send(iqresult); - this._updateItems(iq); - return true; - }, - /** PrivateFunction: _updateItems - * Update items from iq - */ - _updateItems : function(iq) - { - var query = iq.getElementsByTagName('query'); - if (query.length !== 0) - { - this.ver = query.item(0).getAttribute('ver'); - var self = this; - Strophe.forEachChild(query.item(0), 'item', - function (item) - { - self._updateItem(item); - } - ); - } - this._call_backs(this.items); - }, - /** PrivateFunction: _updateItem - * Update internal representation of roster item - */ - _updateItem : function(item) - { - var jid = item.getAttribute("jid"); - var name = item.getAttribute("name"); - var subscription = item.getAttribute("subscription"); - var ask = item.getAttribute("ask"); - var groups = []; - Strophe.forEachChild(item, 'group', - function(group) + var type = presence.getAttribute('type'); + if (type == 'unavailable') { - groups.push(Strophe.getText(group)); + delete item.resources[Strophe.getResourceFromJid(jid)]; } - ); + else if (!type) + { + // TODO: add timestamp + item.resources[Strophe.getResourceFromJid(jid)] = { + show : (presence.getElementsByTagName('show').length !== 0) ? Strophe.getText(presence.getElementsByTagName('show')[0]) : "", + status : (presence.getElementsByTagName('status').length !== 0) ? Strophe.getText(presence.getElementsByTagName('status')[0]) : "", + priority : (presence.getElementsByTagName('priority').length !== 0) ? Strophe.getText(presence.getElementsByTagName('priority')[0]) : "" + }; + } + else + { + // Stanza is not a presence notification. (It's probably a subscription type stanza.) + return true; + } + this._call_backs(this.items, item); + return true; + }, + /** PrivateFunction: _call_backs + * + */ + _call_backs : function(items, item) + { + for (var i = 0; i < this._callbacks.length; i++) // [].forEach my love ... + { + this._callbacks[i](items, item); + } + }, + /** PrivateFunction: _onReceiveIQ + * Handle roster push. + */ + _onReceiveIQ : function(iq) + { + var id = iq.getAttribute('id'); + var from = iq.getAttribute('from'); + // Receiving client MUST ignore stanza unless it has no from or from = user's JID. + if (from && from !== "" && from != this._connection.jid && from != Strophe.getBareJidFromJid(this._connection.jid)) + return true; + var iqresult = $iq({type: 'result', id: id, from: this._connection.jid}); + this._connection.send(iqresult); + this._updateItems(iq); + return true; + }, + /** PrivateFunction: _updateItems + * Update items from iq + */ + _updateItems : function(iq) + { + var query = iq.getElementsByTagName('query'); + if (query.length !== 0) + { + this.ver = query.item(0).getAttribute('ver'); + var self = this; + Strophe.forEachChild(query.item(0), 'item', + function (item) + { + self._updateItem(item); + } + ); + } + this._call_backs(this.items); + }, + /** PrivateFunction: _updateItem + * Update internal representation of roster item + */ + _updateItem : function(item) + { + var jid = item.getAttribute("jid"); + var name = item.getAttribute("name"); + var subscription = item.getAttribute("subscription"); + var ask = item.getAttribute("ask"); + var groups = []; + Strophe.forEachChild(item, 'group', + function(group) + { + groups.push(Strophe.getText(group)); + } + ); - if (subscription == "remove") - { - this.removeItem(jid); - return; - } + if (subscription == "remove") + { + this.removeItem(jid); + return; + } - item = this.findItem(jid); - if (!item) - { - this.items.push({ - name : name, - jid : jid, - subscription : subscription, - ask : ask, - groups : groups, - resources : {} - }); + item = this.findItem(jid); + if (!item) + { + this.items.push({ + name : name, + jid : jid, + subscription : subscription, + ask : ask, + groups : groups, + resources : {} + }); + } + else + { + item.name = name; + item.subscription = subscription; + item.ask = ask; + item.groups = groups; + } } - else - { - item.name = name; - item.subscription = subscription; - item.ask = ask; - item.groups = groups; - } - } -}); + }); })); From eb272c39e05edf6c192d5ebbfeae20b67fcf6d0f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 30 Jan 2015 16:01:00 +0100 Subject: [PATCH 35/81] Formatting changes. --- src/strophe.roster.js | 162 +++++++++++++++++------------------------- 1 file changed, 66 insertions(+), 96 deletions(-) diff --git a/src/strophe.roster.js b/src/strophe.roster.js index c15bc70fa..949a477a2 100644 --- a/src/strophe.roster.js +++ b/src/strophe.roster.js @@ -46,8 +46,7 @@ * Parameters: * (Strophe.Connection) conn - Strophe connection */ - init: function(conn) - { + init: function(conn) { this._connection = conn; this._callbacks = []; /** Property: items @@ -78,18 +77,14 @@ // Override the connect and attach methods to always add presence and roster handlers. // They are removed when the connection disconnects, so must be added on connection. var oldCallback, roster = this, _connect = conn.connect, _attach = conn.attach; - var newCallback = function(status) - { - if (status == Strophe.Status.ATTACHED || status == Strophe.Status.CONNECTED) - { - try - { + var newCallback = function(status) { + if (status == Strophe.Status.ATTACHED || status == Strophe.Status.CONNECTED) { + try { // Presence subscription conn.addHandler(roster._onReceivePresence.bind(roster), null, 'presence', null, null, null); conn.addHandler(roster._onReceiveIQ.bind(roster), Strophe.NS.ROSTER, 'iq', "set", null, null); } - catch (e) - { + catch (e) { Strophe.error(e); } } @@ -97,8 +92,8 @@ oldCallback.apply(this, arguments); } }; - conn.connect = function(jid, pass, callback, wait, hold, route) - { + + conn.connect = function(jid, pass, callback, wait, hold, route) { oldCallback = callback; if (typeof jid == "undefined") jid = null; @@ -107,8 +102,8 @@ callback = newCallback; _connect.apply(conn, [jid, pass, callback, wait, hold, route]); }; - conn.attach = function(jid, sid, rid, callback, wait, hold, wind) - { + + conn.attach = function(jid, sid, rid, callback, wait, hold, wind) { oldCallback = callback; if (typeof jid == "undefined") jid = null; @@ -123,13 +118,14 @@ Strophe.addNamespace('ROSTER_VER', 'urn:xmpp:features:rosterver'); Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick'); }, + /** Function: supportVersioning * return true if roster versioning is enabled on server */ - supportVersioning: function() - { + supportVersioning: function() { return (this._connection.features && this._connection.features.getElementsByTagName('ver').length > 0); }, + /** Function: get * Get Roster on server * @@ -142,11 +138,9 @@ * In browser context you can use sessionStorage * to store your roster in json (JSON.stringify()) */ - get: function(userCallback, ver, items) - { + get: function(userCallback, ver, items) { var attrs = {xmlns: Strophe.NS.ROSTER}; - if (this.supportVersioning()) - { + if (this.supportVersioning()) { // empty rev because i want an rev attribute in the result attrs.ver = ver || ''; this.items = items || []; @@ -156,56 +150,52 @@ this._onReceiveRosterSuccess.bind(this, userCallback), this._onReceiveRosterError.bind(this, userCallback)); }, + /** Function: registerCallback * register callback on roster (presence and iq) * * Parameters: * (Function) call_back */ - registerCallback: function(call_back) - { + registerCallback: function(call_back) { this._callbacks.push(call_back); }, + /** Function: findItem * Find item by JID * * Parameters: * (String) jid */ - findItem : function(jid) - { + findItem : function(jid) { try { - for (var i = 0; i < this.items.length; i++) - { - if (this.items[i] && this.items[i].jid == jid) - { + for (var i = 0; i < this.items.length; i++) { + if (this.items[i] && this.items[i].jid == jid) { return this.items[i]; } } - } catch (e) - { + } catch (e) { Strophe.error(e); } return false; }, + /** Function: removeItem * Remove item by JID * * Parameters: * (String) jid */ - removeItem : function(jid) - { - for (var i = 0; i < this.items.length; i++) - { - if (this.items[i] && this.items[i].jid == jid) - { + removeItem : function(jid) { + for (var i = 0; i < this.items.length; i++) { + if (this.items[i] && this.items[i].jid == jid) { this.items.splice(i, 1); return true; } } return false; }, + /** Function: subscribe * Subscribe presence * @@ -224,6 +214,7 @@ } this._connection.send(pres); }, + /** Function: unsubscribe * Unsubscribe presence * @@ -231,13 +222,13 @@ * (String) jid * (String) message */ - unsubscribe: function(jid, message) - { + unsubscribe: function(jid, message) { var pres = $pres({to: jid, type: "unsubscribe"}); if (message && message !== "") pres.c("status").t(message); this._connection.send(pres); }, + /** Function: authorize * Authorize presence subscription * @@ -245,13 +236,13 @@ * (String) jid * (String) message */ - authorize: function(jid, message) - { + authorize: function(jid, message) { var pres = $pres({to: jid, type: "subscribed"}); if (message && message !== "") pres.c("status").t(message); this._connection.send(pres); }, + /** Function: unauthorize * Unauthorize presence subscription * @@ -259,13 +250,13 @@ * (String) jid * (String) message */ - unauthorize: function(jid, message) - { + unauthorize: function(jid, message) { var pres = $pres({to: jid, type: "unsubscribed"}); if (message && message !== "") pres.c("status").t(message); this._connection.send(pres); }, + /** Function: add * Add roster item * @@ -275,16 +266,15 @@ * (Array) groups * (Function) call_back */ - add: function(jid, name, groups, call_back) - { + add: function(jid, name, groups, call_back) { var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: jid, name: name}); - for (var i = 0; i < groups.length; i++) - { + for (var i = 0; i < groups.length; i++) { iq.c('group').t(groups[i]).up(); } this._connection.sendIQ(iq, call_back, call_back); }, + /** Function: update * Update roster item * @@ -294,23 +284,21 @@ * (Array) groups * (Function) call_back */ - update: function(jid, name, groups, call_back) - { + update: function(jid, name, groups, call_back) { var item = this.findItem(jid); - if (!item) - { + if (!item) { throw "item not found"; } var newName = name || item.name; var newGroups = groups || item.groups; var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, name: newName}); - for (var i = 0; i < newGroups.length; i++) - { + for (var i = 0; i < newGroups.length; i++) { iq.c('group').t(newGroups[i]).up(); } return this._connection.sendIQ(iq, call_back, call_back); }, + /** Function: remove * Remove roster item * @@ -318,85 +306,76 @@ * (String) jid - item jid * (Function) call_back */ - remove: function(jid, call_back) - { + remove: function(jid, call_back) { var item = this.findItem(jid); - if (!item) - { + if (!item) { throw "item not found"; } var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, subscription: "remove"}); this._connection.sendIQ(iq, call_back, call_back); }, + /** PrivateFunction: _onReceiveRosterSuccess * */ - _onReceiveRosterSuccess: function(userCallback, stanza) - { + _onReceiveRosterSuccess: function(userCallback, stanza) { this._updateItems(stanza); if (typeof userCallback === "function") { userCallback(this.items); } }, + /** PrivateFunction: _onReceiveRosterError * */ - _onReceiveRosterError: function(userCallback, stanza) - { + _onReceiveRosterError: function(userCallback, stanza) { userCallback(this.items); }, + /** PrivateFunction: _onReceivePresence * Handle presence */ - _onReceivePresence : function(presence) - { + _onReceivePresence : function(presence) { // TODO: from is optional var jid = presence.getAttribute('from'); var from = Strophe.getBareJidFromJid(jid); var item = this.findItem(from); // not in roster - if (!item) - { + if (!item) { return true; } var type = presence.getAttribute('type'); - if (type == 'unavailable') - { + if (type == 'unavailable') { delete item.resources[Strophe.getResourceFromJid(jid)]; - } - else if (!type) - { + } else if (!type) { // TODO: add timestamp item.resources[Strophe.getResourceFromJid(jid)] = { show : (presence.getElementsByTagName('show').length !== 0) ? Strophe.getText(presence.getElementsByTagName('show')[0]) : "", status : (presence.getElementsByTagName('status').length !== 0) ? Strophe.getText(presence.getElementsByTagName('status')[0]) : "", priority : (presence.getElementsByTagName('priority').length !== 0) ? Strophe.getText(presence.getElementsByTagName('priority')[0]) : "" }; - } - else - { + } else { // Stanza is not a presence notification. (It's probably a subscription type stanza.) return true; } this._call_backs(this.items, item); return true; }, + /** PrivateFunction: _call_backs * */ - _call_backs : function(items, item) - { - for (var i = 0; i < this._callbacks.length; i++) // [].forEach my love ... - { + _call_backs : function(items, item) { + for (var i = 0; i < this._callbacks.length; i++) { this._callbacks[i](items, item); } }, + /** PrivateFunction: _onReceiveIQ * Handle roster push. */ - _onReceiveIQ : function(iq) - { + _onReceiveIQ : function(iq) { var id = iq.getAttribute('id'); var from = iq.getAttribute('from'); // Receiving client MUST ignore stanza unless it has no from or from = user's JID. @@ -410,49 +389,42 @@ /** PrivateFunction: _updateItems * Update items from iq */ - _updateItems : function(iq) - { + _updateItems : function(iq) { var query = iq.getElementsByTagName('query'); - if (query.length !== 0) - { + if (query.length !== 0) { this.ver = query.item(0).getAttribute('ver'); var self = this; Strophe.forEachChild(query.item(0), 'item', - function (item) - { + function (item) { self._updateItem(item); } ); } this._call_backs(this.items); }, + /** PrivateFunction: _updateItem * Update internal representation of roster item */ - _updateItem : function(item) - { + _updateItem : function(item) { var jid = item.getAttribute("jid"); var name = item.getAttribute("name"); var subscription = item.getAttribute("subscription"); var ask = item.getAttribute("ask"); var groups = []; Strophe.forEachChild(item, 'group', - function(group) - { + function(group) { groups.push(Strophe.getText(group)); } ); - if (subscription == "remove") - { + if (subscription == "remove") { this.removeItem(jid); return; } item = this.findItem(jid); - if (!item) - { - this.items.push({ + if (!item) { this.items.push({ name : name, jid : jid, subscription : subscription, @@ -460,9 +432,7 @@ groups : groups, resources : {} }); - } - else - { + } else { item.name = name; item.subscription = subscription; item.ask = ask; From 5a253e32e19c18ee4dd0bdade6259565ae719122 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 1 Feb 2015 00:50:57 +0100 Subject: [PATCH 36/81] Add AMD support for strophe.muc and strophe.vcard. --- bower.json | 1 - main.js | 4 +- src/strophe.muc.js | 1168 +++++++++++++++++++++++++++++++++++++++++ src/strophe.roster.js | 1 + src/strophe.vcard.js | 71 +++ 5 files changed, 1242 insertions(+), 3 deletions(-) create mode 100644 src/strophe.muc.js create mode 100644 src/strophe.vcard.js diff --git a/bower.json b/bower.json index b2323bdd9..477d417c4 100644 --- a/bower.json +++ b/bower.json @@ -16,7 +16,6 @@ "backbone.browserStorage": "*", "backbone.overview": "*", "strophe": "~1.1.3", - "strophe.muc": "https://raw.githubusercontent.com/strophe/strophejs-plugins/master/muc/strophe.muc.js", "otr": "0.2.12", "crypto-js-evanvosberg": "~3.1.2", "almond": "~0.2.9", diff --git a/main.js b/main.js index 8fd73be86..1368541b1 100644 --- a/main.js +++ b/main.js @@ -36,9 +36,9 @@ require.config({ "strophe-websocket": "components/strophe/src/websocket", "strophe-polyfill": "components/strophe/src/polyfill", "strophe.disco": "components/strophejs-plugins/disco/strophe.disco", - "strophe.muc": "components/strophe.muc/index", + "strophe.muc": "src/strophe.muc", "strophe.roster": "src/strophe.roster", - "strophe.vcard": "components/strophejs-plugins/vcard/strophe.vcard", + "strophe.vcard": "src/strophe.vcard", "text": 'components/requirejs-text/text', "tpl": 'components/requirejs-tpl-jcbrand/tpl', "typeahead": "components/typeahead.js/index", diff --git a/src/strophe.muc.js b/src/strophe.muc.js new file mode 100644 index 000000000..69854dad3 --- /dev/null +++ b/src/strophe.muc.js @@ -0,0 +1,1168 @@ +/* + *Plugin to implement the MUC extension. + http://xmpp.org/extensions/xep-0045.html + *Previous Author: + Nathan Zorn + *Complete CoffeeScript rewrite: + Andreas Guth + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define([ + "strophe-full" + ], function (Strophe) { + factory( + Strophe.Strophe, + Strophe.$build, + Strophe.$iq , + Strophe.$msg, + Strophe.$pres + ); + }); + } else { + // Browser globals + factory( + root.Strophe, + root.$build, + root.$iq , + root.$msg, + root.$pres + ); + } +}(this, function (Strophe, $build, $iq, $msg, $pres) { + + var Occupant, RoomConfig, XmppRoom, + __hasProp = {}.hasOwnProperty, + __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; + + Strophe.addConnectionPlugin('muc', { + _connection: null, + rooms: {}, + roomNames: [], + + /*Function + Initialize the MUC plugin. Sets the correct connection object and + extends the namesace. + */ + init: function(conn) { + this._connection = conn; + this._muc_handler = null; + Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + "#owner"); + Strophe.addNamespace('MUC_ADMIN', Strophe.NS.MUC + "#admin"); + Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + "#user"); + Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + "#roomconfig"); + return Strophe.addNamespace('MUC_REGISTER', "jabber:iq:register"); + }, + + /*Function + Join a multi-user chat room + Parameters: + (String) room - The multi-user chat room to join. + (String) nick - The nickname to use in the chat room. Optional + (Function) msg_handler_cb - The function call to handle messages from the + specified chat room. + (Function) pres_handler_cb - The function call back to handle presence + in the chat room. + (Function) roster_cb - The function call to handle roster info in the chat room + (String) password - The optional password to use. (password protected + rooms only) + (Object) history_attrs - Optional attributes for retrieving history + (XML DOM Element) extended_presence - Optional XML for extending presence + */ + join: function(room, nick, msg_handler_cb, pres_handler_cb, roster_cb, password, history_attrs) { + var msg, room_nick; + room_nick = this.test_append_nick(room, nick); + msg = $pres({ + from: this._connection.jid, + to: room_nick + }).c("x", { + xmlns: Strophe.NS.MUC + }); + if (history_attrs !== null) { + msg = msg.c("history", history_attrs).up(); + } + if (password !== null) { + msg.cnode(Strophe.xmlElement("password", [], password)); + } + if (typeof extended_presence !== "undefined" && extended_presence !== null) { + msg.up.cnode(extended_presence); + } + if (this._muc_handler === null) { + this._muc_handler = this._connection.addHandler((function(_this) { + return function(stanza) { + var from, handler, handlers, id, roomname, x, xmlns, xquery, _i, _len; + from = stanza.getAttribute('from'); + if (!from) { + return true; + } + roomname = from.split("/")[0]; + if (!_this.rooms[roomname]) { + return true; + } + room = _this.rooms[roomname]; + handlers = {}; + if (stanza.nodeName === "message") { + handlers = room._message_handlers; + } else if (stanza.nodeName === "presence") { + xquery = stanza.getElementsByTagName("x"); + if (xquery.length > 0) { + for (_i = 0, _len = xquery.length; _i < _len; _i++) { + x = xquery[_i]; + xmlns = x.getAttribute("xmlns"); + if (xmlns && xmlns.match(Strophe.NS.MUC)) { + handlers = room._presence_handlers; + break; + } + } + } + } + for (id in handlers) { + handler = handlers[id]; + if (!handler(stanza, room)) { + delete handlers[id]; + } + } + return true; + }; + })(this)); + } + if (!this.rooms.hasOwnProperty(room)) { + this.rooms[room] = new XmppRoom(this, room, nick, password); + this.roomNames.push(room); + } + if (pres_handler_cb) { + this.rooms[room].addHandler('presence', pres_handler_cb); + } + if (msg_handler_cb) { + this.rooms[room].addHandler('message', msg_handler_cb); + } + if (roster_cb) { + this.rooms[room].addHandler('roster', roster_cb); + } + return this._connection.send(msg); + }, + + /*Function + Leave a multi-user chat room + Parameters: + (String) room - The multi-user chat room to leave. + (String) nick - The nick name used in the room. + (Function) handler_cb - Optional function to handle the successful leave. + (String) exit_msg - optional exit message. + Returns: + iqid - The unique id for the room leave. + */ + leave: function(room, nick, handler_cb, exit_msg) { + var id, presence, presenceid, room_nick; + id = this.roomNames.indexOf(room); + delete this.rooms[room]; + if (id >= 0) { + this.roomNames.splice(id, 1); + if (this.roomNames.length === 0) { + this._connection.deleteHandler(this._muc_handler); + this._muc_handler = null; + } + } + room_nick = this.test_append_nick(room, nick); + presenceid = this._connection.getUniqueId(); + presence = $pres({ + type: "unavailable", + id: presenceid, + from: this._connection.jid, + to: room_nick + }); + if (exit_msg !== null) { + presence.c("status", exit_msg); + } + if (handler_cb !== null) { + this._connection.addHandler(handler_cb, null, "presence", null, presenceid); + } + this._connection.send(presence); + return presenceid; + }, + + /*Function + Parameters: + (String) room - The multi-user chat room name. + (String) nick - The nick name used in the chat room. + (String) message - The plaintext message to send to the room. + (String) html_message - The message to send to the room with html markup. + (String) type - "groupchat" for group chat messages o + "chat" for private chat messages + Returns: + msgiq - the unique id used to send the message + */ + message: function(room, nick, message, html_message, type, msgid) { + var msg, parent, room_nick; + room_nick = this.test_append_nick(room, nick); + type = type || (nick !== null ? "chat" : "groupchat"); + msgid = msgid || this._connection.getUniqueId(); + msg = $msg({ + to: room_nick, + from: this._connection.jid, + type: type, + id: msgid + }).c("body").t(message); + msg.up(); + if (html_message !== null) { + msg.c("html", { + xmlns: Strophe.NS.XHTML_IM + }).c("body", { + xmlns: Strophe.NS.XHTML + }).h(html_message); + if (msg.node.childNodes.length === 0) { + parent = msg.node.parentNode; + msg.up().up(); + msg.node.removeChild(parent); + } else { + msg.up().up(); + } + } + msg.c("x", { + xmlns: "jabber:x:event" + }).c("composing"); + this._connection.send(msg); + return msgid; + }, + + /*Function + Convenience Function to send a Message to all Occupants + Parameters: + (String) room - The multi-user chat room name. + (String) message - The plaintext message to send to the room. + (String) html_message - The message to send to the room with html markup. + (String) msgid - Optional unique ID which will be set as the 'id' attribute of the stanza + Returns: + msgiq - the unique id used to send the message + */ + groupchat: function(room, message, html_message, msgid) { + return this.message(room, null, message, html_message, void 0, msgid); + }, + + /*Function + Send a mediated invitation. + Parameters: + (String) room - The multi-user chat room name. + (String) receiver - The invitation's receiver. + (String) reason - Optional reason for joining the room. + Returns: + msgiq - the unique id used to send the invitation + */ + invite: function(room, receiver, reason) { + var invitation, msgid; + msgid = this._connection.getUniqueId(); + invitation = $msg({ + from: this._connection.jid, + to: room, + id: msgid + }).c('x', { + xmlns: Strophe.NS.MUC_USER + }).c('invite', { + to: receiver + }); + if (reason !== null) { + invitation.c('reason', reason); + } + this._connection.send(invitation); + return msgid; + }, + + /*Function + Send a mediated multiple invitation. + Parameters: + (String) room - The multi-user chat room name. + (Array) receivers - The invitation's receivers. + (String) reason - Optional reason for joining the room. + Returns: + msgiq - the unique id used to send the invitation + */ + multipleInvites: function(room, receivers, reason) { + var invitation, msgid, receiver, _i, _len; + msgid = this._connection.getUniqueId(); + invitation = $msg({ + from: this._connection.jid, + to: room, + id: msgid + }).c('x', { + xmlns: Strophe.NS.MUC_USER + }); + for (_i = 0, _len = receivers.length; _i < _len; _i++) { + receiver = receivers[_i]; + invitation.c('invite', { + to: receiver + }); + if (reason !== null) { + invitation.c('reason', reason); + invitation.up(); + } + invitation.up(); + } + this._connection.send(invitation); + return msgid; + }, + + /*Function + Send a direct invitation. + Parameters: + (String) room - The multi-user chat room name. + (String) receiver - The invitation's receiver. + (String) reason - Optional reason for joining the room. + (String) password - Optional password for the room. + Returns: + msgiq - the unique id used to send the invitation + */ + directInvite: function(room, receiver, reason, password) { + var attrs, invitation, msgid; + msgid = this._connection.getUniqueId(); + attrs = { + xmlns: 'jabber:x:conference', + jid: room + }; + if (reason !== null) { + attrs.reason = reason; + } + if (password !== null) { + attrs.password = password; + } + invitation = $msg({ + from: this._connection.jid, + to: receiver, + id: msgid + }).c('x', attrs); + this._connection.send(invitation); + return msgid; + }, + + /*Function + Queries a room for a list of occupants + (String) room - The multi-user chat room name. + (Function) success_cb - Optional function to handle the info. + (Function) error_cb - Optional function to handle an error. + Returns: + id - the unique id used to send the info request + */ + queryOccupants: function(room, success_cb, error_cb) { + var attrs, info; + attrs = { + xmlns: Strophe.NS.DISCO_ITEMS + }; + info = $iq({ + from: this._connection.jid, + to: room, + type: 'get' + }).c('query', attrs); + return this._connection.sendIQ(info, success_cb, error_cb); + }, + + /*Function + Start a room configuration. + Parameters: + (String) room - The multi-user chat room name. + (Function) handler_cb - Optional function to handle the config form. + Returns: + id - the unique id used to send the configuration request + */ + configure: function(room, handler_cb, error_cb) { + var config, stanza; + config = $iq({ + to: room, + type: "get" + }).c("query", { + xmlns: Strophe.NS.MUC_OWNER + }); + stanza = config.tree(); + return this._connection.sendIQ(stanza, handler_cb, error_cb); + }, + + /*Function + Cancel the room configuration + Parameters: + (String) room - The multi-user chat room name. + Returns: + id - the unique id used to cancel the configuration. + */ + cancelConfigure: function(room) { + var config, stanza; + config = $iq({ + to: room, + type: "set" + }).c("query", { + xmlns: Strophe.NS.MUC_OWNER + }).c("x", { + xmlns: "jabber:x:data", + type: "cancel" + }); + stanza = config.tree(); + return this._connection.sendIQ(stanza); + }, + + /*Function + Save a room configuration. + Parameters: + (String) room - The multi-user chat room name. + (Array) config- Form Object or an array of form elements used to configure the room. + Returns: + id - the unique id used to save the configuration. + */ + saveConfiguration: function(room, config, success_cb, error_cb) { + var conf, iq, stanza, _i, _len; + iq = $iq({ + to: room, + type: "set" + }).c("query", { + xmlns: Strophe.NS.MUC_OWNER + }); + if (typeof Form !== "undefined" && config instanceof Form) { + config.type = "submit"; + iq.cnode(config.toXML()); + } else { + iq.c("x", { + xmlns: "jabber:x:data", + type: "submit" + }); + for (_i = 0, _len = config.length; _i < _len; _i++) { + conf = config[_i]; + iq.cnode(conf).up(); + } + } + stanza = iq.tree(); + return this._connection.sendIQ(stanza, success_cb, error_cb); + }, + + /*Function + Parameters: + (String) room - The multi-user chat room name. + Returns: + id - the unique id used to create the chat room. + */ + createInstantRoom: function(room, success_cb, error_cb) { + var roomiq; + roomiq = $iq({ + to: room, + type: "set" + }).c("query", { + xmlns: Strophe.NS.MUC_OWNER + }).c("x", { + xmlns: "jabber:x:data", + type: "submit" + }); + return this._connection.sendIQ(roomiq.tree(), success_cb, error_cb); + }, + + /*Function + Parameters: + (String) room - The multi-user chat room name. + (Object) config - the configuration. ex: {"muc#roomconfig_publicroom": "0", "muc#roomconfig_persistentroom": "1"} + Returns: + id - the unique id used to create the chat room. + */ + createConfiguredRoom: function(room, config, success_cb, error_cb) { + var k, roomiq, v; + roomiq = $iq({ + to: room, + type: "set" + }).c("query", { + xmlns: Strophe.NS.MUC_OWNER + }).c("x", { + xmlns: "jabber:x:data", + type: "submit" + }); + roomiq.c('field', { + 'var': 'FORM_TYPE' + }).c('value').t('http://jabber.org/protocol/muc#roomconfig').up().up(); + for (k in config) { + if (!__hasProp.call(config, k)) continue; + v = config[k]; + roomiq.c('field', { + 'var': k + }).c('value').t(v).up().up(); + } + return this._connection.sendIQ(roomiq.tree(), success_cb, error_cb); + }, + + /*Function + Set the topic of the chat room. + Parameters: + (String) room - The multi-user chat room name. + (String) topic - Topic message. + */ + setTopic: function(room, topic) { + var msg; + msg = $msg({ + to: room, + from: this._connection.jid, + type: "groupchat" + }).c("subject", { + xmlns: "jabber:client" + }).t(topic); + return this._connection.send(msg.tree()); + }, + + /*Function + Internal Function that Changes the role or affiliation of a member + of a MUC room. This function is used by modifyRole and modifyAffiliation. + The modification can only be done by a room moderator. An error will be + returned if the user doesn't have permission. + Parameters: + (String) room - The multi-user chat room name. + (Object) item - Object with nick and role or jid and affiliation attribute + (String) reason - Optional reason for the change. + (Function) handler_cb - Optional callback for success + (Function) error_cb - Optional callback for error + Returns: + iq - the id of the mode change request. + */ + _modifyPrivilege: function(room, item, reason, handler_cb, error_cb) { + var iq; + iq = $iq({ + to: room, + type: "set" + }).c("query", { + xmlns: Strophe.NS.MUC_ADMIN + }).cnode(item.node); + if (reason !== null) { + iq.c("reason", reason); + } + return this._connection.sendIQ(iq.tree(), handler_cb, error_cb); + }, + + /*Function + Changes the role of a member of a MUC room. + The modification can only be done by a room moderator. An error will be + returned if the user doesn't have permission. + Parameters: + (String) room - The multi-user chat room name. + (String) nick - The nick name of the user to modify. + (String) role - The new role of the user. + (String) affiliation - The new affiliation of the user. + (String) reason - Optional reason for the change. + (Function) handler_cb - Optional callback for success + (Function) error_cb - Optional callback for error + Returns: + iq - the id of the mode change request. + */ + modifyRole: function(room, nick, role, reason, handler_cb, error_cb) { + var item; + item = $build("item", { + nick: nick, + role: role + }); + return this._modifyPrivilege(room, item, reason, handler_cb, error_cb); + }, + kick: function(room, nick, reason, handler_cb, error_cb) { + return this.modifyRole(room, nick, 'none', reason, handler_cb, error_cb); + }, + voice: function(room, nick, reason, handler_cb, error_cb) { + return this.modifyRole(room, nick, 'participant', reason, handler_cb, error_cb); + }, + mute: function(room, nick, reason, handler_cb, error_cb) { + return this.modifyRole(room, nick, 'visitor', reason, handler_cb, error_cb); + }, + op: function(room, nick, reason, handler_cb, error_cb) { + return this.modifyRole(room, nick, 'moderator', reason, handler_cb, error_cb); + }, + deop: function(room, nick, reason, handler_cb, error_cb) { + return this.modifyRole(room, nick, 'participant', reason, handler_cb, error_cb); + }, + + /*Function + Changes the affiliation of a member of a MUC room. + The modification can only be done by a room moderator. An error will be + returned if the user doesn't have permission. + Parameters: + (String) room - The multi-user chat room name. + (String) jid - The jid of the user to modify. + (String) affiliation - The new affiliation of the user. + (String) reason - Optional reason for the change. + (Function) handler_cb - Optional callback for success + (Function) error_cb - Optional callback for error + Returns: + iq - the id of the mode change request. + */ + modifyAffiliation: function(room, jid, affiliation, reason, handler_cb, error_cb) { + var item; + item = $build("item", { + jid: jid, + affiliation: affiliation + }); + return this._modifyPrivilege(room, item, reason, handler_cb, error_cb); + }, + ban: function(room, jid, reason, handler_cb, error_cb) { + return this.modifyAffiliation(room, jid, 'outcast', reason, handler_cb, error_cb); + }, + member: function(room, jid, reason, handler_cb, error_cb) { + return this.modifyAffiliation(room, jid, 'member', reason, handler_cb, error_cb); + }, + revoke: function(room, jid, reason, handler_cb, error_cb) { + return this.modifyAffiliation(room, jid, 'none', reason, handler_cb, error_cb); + }, + owner: function(room, jid, reason, handler_cb, error_cb) { + return this.modifyAffiliation(room, jid, 'owner', reason, handler_cb, error_cb); + }, + admin: function(room, jid, reason, handler_cb, error_cb) { + return this.modifyAffiliation(room, jid, 'admin', reason, handler_cb, error_cb); + }, + + /*Function + Change the current users nick name. + Parameters: + (String) room - The multi-user chat room name. + (String) user - The new nick name. + */ + changeNick: function(room, user) { + var presence, room_nick; + room_nick = this.test_append_nick(room, user); + presence = $pres({ + from: this._connection.jid, + to: room_nick, + id: this._connection.getUniqueId() + }); + return this._connection.send(presence.tree()); + }, + + /*Function + Change the current users status. + Parameters: + (String) room - The multi-user chat room name. + (String) user - The current nick. + (String) show - The new show-text. + (String) status - The new status-text. + */ + setStatus: function(room, user, show, status) { + var presence, room_nick; + room_nick = this.test_append_nick(room, user); + presence = $pres({ + from: this._connection.jid, + to: room_nick + }); + if (show !== null) { + presence.c('show', show).up(); + } + if (status !== null) { + presence.c('status', status); + } + return this._connection.send(presence.tree()); + }, + + /*Function + Registering with a room. + @see http://xmpp.org/extensions/xep-0045.html#register + Parameters: + (String) room - The multi-user chat room name. + (Function) handle_cb - Function to call for room list return. + (Function) error_cb - Function to call on error. + */ + registrationRequest: function(room, handle_cb, error_cb) { + var iq; + iq = $iq({ + to: room, + from: this._connection.jid, + type: "get" + }).c("query", { + xmlns: Strophe.NS.MUC_REGISTER + }); + return this._connection.sendIQ(iq, function(stanza) { + var $field, $fields, field, fields, length, _i, _len; + $fields = stanza.getElementsByTagName('field'); + length = $fields.length; + fields = { + required: [], + optional: [] + }; + for (_i = 0, _len = $fields.length; _i < _len; _i++) { + $field = $fields[_i]; + field = { + "var": $field.getAttribute('var'), + label: $field.getAttribute('label'), + type: $field.getAttribute('type') + }; + if ($field.getElementsByTagName('required').length > 0) { + fields.required.push(field); + } else { + fields.optional.push(field); + } + } + return handle_cb(fields); + }, error_cb); + }, + + /*Function + Submits registration form. + Parameters: + (String) room - The multi-user chat room name. + (Function) handle_cb - Function to call for room list return. + (Function) error_cb - Function to call on error. + */ + submitRegistrationForm: function(room, fields, handle_cb, error_cb) { + var iq, key, val; + iq = $iq({ + to: room, + type: "set" + }).c("query", { + xmlns: Strophe.NS.MUC_REGISTER + }); + iq.c("x", { + xmlns: "jabber:x:data", + type: "submit" + }); + iq.c('field', { + 'var': 'FORM_TYPE' + }).c('value').t('http://jabber.org/protocol/muc#register').up().up(); + for (key in fields) { + val = fields[key]; + iq.c('field', { + 'var': key + }).c('value').t(val).up().up(); + } + return this._connection.sendIQ(iq, handle_cb, error_cb); + }, + + /*Function + List all chat room available on a server. + Parameters: + (String) server - name of chat server. + (String) handle_cb - Function to call for room list return. + (String) error_cb - Function to call on error. + */ + listRooms: function(server, handle_cb, error_cb) { + var iq; + iq = $iq({ + to: server, + from: this._connection.jid, + type: "get" + }).c("query", { + xmlns: Strophe.NS.DISCO_ITEMS + }); + return this._connection.sendIQ(iq, handle_cb, error_cb); + }, + test_append_nick: function(room, nick) { + var domain, node; + node = Strophe.escapeNode(Strophe.getNodeFromJid(room)); + domain = Strophe.getDomainFromJid(room); + return node + "@" + domain + (nick !== null ? "/" + nick : ""); + } + }); + + XmppRoom = (function() { + function XmppRoom(client, name, nick, password) { + this.client = client; + this.name = name; + this.nick = nick; + this.password = password; + this._roomRosterHandler = __bind(this._roomRosterHandler, this); + this._addOccupant = __bind(this._addOccupant, this); + this.roster = {}; + this._message_handlers = {}; + this._presence_handlers = {}; + this._roster_handlers = {}; + this._handler_ids = 0; + if (client.muc) { + this.client = client.muc; + } + this.name = Strophe.getBareJidFromJid(name); + this.addHandler('presence', this._roomRosterHandler); + } + + XmppRoom.prototype.join = function(msg_handler_cb, pres_handler_cb, roster_cb) { + return this.client.join(this.name, this.nick, msg_handler_cb, pres_handler_cb, roster_cb, this.password); + }; + + XmppRoom.prototype.leave = function(handler_cb, message) { + this.client.leave(this.name, this.nick, handler_cb, message); + return delete this.client.rooms[this.name]; + }; + + XmppRoom.prototype.message = function(nick, message, html_message, type) { + return this.client.message(this.name, nick, message, html_message, type); + }; + + XmppRoom.prototype.groupchat = function(message, html_message) { + return this.client.groupchat(this.name, message, html_message); + }; + + XmppRoom.prototype.invite = function(receiver, reason) { + return this.client.invite(this.name, receiver, reason); + }; + + XmppRoom.prototype.multipleInvites = function(receivers, reason) { + return this.client.invite(this.name, receivers, reason); + }; + + XmppRoom.prototype.directInvite = function(receiver, reason) { + return this.client.directInvite(this.name, receiver, reason, this.password); + }; + + XmppRoom.prototype.configure = function(handler_cb) { + return this.client.configure(this.name, handler_cb); + }; + + XmppRoom.prototype.cancelConfigure = function() { + return this.client.cancelConfigure(this.name); + }; + + XmppRoom.prototype.saveConfiguration = function(config) { + return this.client.saveConfiguration(this.name, config); + }; + + XmppRoom.prototype.queryOccupants = function(success_cb, error_cb) { + return this.client.queryOccupants(this.name, success_cb, error_cb); + }; + + XmppRoom.prototype.setTopic = function(topic) { + return this.client.setTopic(this.name, topic); + }; + + XmppRoom.prototype.modifyRole = function(nick, role, reason, success_cb, error_cb) { + return this.client.modifyRole(this.name, nick, role, reason, success_cb, error_cb); + }; + + XmppRoom.prototype.kick = function(nick, reason, handler_cb, error_cb) { + return this.client.kick(this.name, nick, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.voice = function(nick, reason, handler_cb, error_cb) { + return this.client.voice(this.name, nick, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.mute = function(nick, reason, handler_cb, error_cb) { + return this.client.mute(this.name, nick, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.op = function(nick, reason, handler_cb, error_cb) { + return this.client.op(this.name, nick, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.deop = function(nick, reason, handler_cb, error_cb) { + return this.client.deop(this.name, nick, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.modifyAffiliation = function(jid, affiliation, reason, success_cb, error_cb) { + return this.client.modifyAffiliation(this.name, jid, affiliation, reason, success_cb, error_cb); + }; + + XmppRoom.prototype.ban = function(jid, reason, handler_cb, error_cb) { + return this.client.ban(this.name, jid, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.member = function(jid, reason, handler_cb, error_cb) { + return this.client.member(this.name, jid, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.revoke = function(jid, reason, handler_cb, error_cb) { + return this.client.revoke(this.name, jid, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.owner = function(jid, reason, handler_cb, error_cb) { + return this.client.owner(this.name, jid, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.admin = function(jid, reason, handler_cb, error_cb) { + return this.client.admin(this.name, jid, reason, handler_cb, error_cb); + }; + + XmppRoom.prototype.changeNick = function(nick) { + this.nick = nick; + return this.client.changeNick(this.name, nick); + }; + + XmppRoom.prototype.setStatus = function(show, status) { + return this.client.setStatus(this.name, this.nick, show, status); + }; + + + /*Function + Adds a handler to the MUC room. + Parameters: + (String) handler_type - 'message', 'presence' or 'roster'. + (Function) handler - The handler function. + Returns: + id - the id of handler. + */ + + XmppRoom.prototype.addHandler = function(handler_type, handler) { + var id; + id = this._handler_ids++; + switch (handler_type) { + case 'presence': + this._presence_handlers[id] = handler; + break; + case 'message': + this._message_handlers[id] = handler; + break; + case 'roster': + this._roster_handlers[id] = handler; + break; + default: + this._handler_ids--; + return null; + } + return id; + }; + + + /*Function + Removes a handler from the MUC room. + This function takes ONLY ids returned by the addHandler function + of this room. passing handler ids returned by connection.addHandler + may brake things! + Parameters: + (number) id - the id of the handler + */ + + XmppRoom.prototype.removeHandler = function(id) { + delete this._presence_handlers[id]; + delete this._message_handlers[id]; + return delete this._roster_handlers[id]; + }; + + + /*Function + Creates and adds an Occupant to the Room Roster. + Parameters: + (Object) data - the data the Occupant is filled with + Returns: + occ - the created Occupant. + */ + + XmppRoom.prototype._addOccupant = function(data) { + var occ; + occ = new Occupant(data, this); + this.roster[occ.nick] = occ; + return occ; + }; + + + /*Function + The standard handler that managed the Room Roster. + Parameters: + (Object) pres - the presence stanza containing user information + */ + + XmppRoom.prototype._roomRosterHandler = function(pres) { + var data, handler, id, newnick, nick, _ref; + data = XmppRoom._parsePresence(pres); + nick = data.nick; + newnick = data.newnick || null; + switch (data.type) { + case 'error': + return true; + case 'unavailable': + if (newnick) { + data.nick = newnick; + if (this.roster[nick] && this.roster[newnick]) { + this.roster[nick].update(this.roster[newnick]); + this.roster[newnick] = this.roster[nick]; + } + if (this.roster[nick] && !this.roster[newnick]) { + this.roster[newnick] = this.roster[nick].update(data); + } + } + delete this.roster[nick]; + break; + default: + if (this.roster[nick]) { + this.roster[nick].update(data); + } else { + this._addOccupant(data); + } + } + _ref = this._roster_handlers; + for (id in _ref) { + handler = _ref[id]; + if (!handler(this.roster, this)) { + delete this._roster_handlers[id]; + } + } + return true; + }; + + + /*Function + Parses a presence stanza + Parameters: + (Object) data - the data extracted from the presence stanza + */ + + XmppRoom._parsePresence = function(pres) { + var c, c2, data, _i, _j, _len, _len1, _ref, _ref1; + data = {}; + data.nick = Strophe.getResourceFromJid(pres.getAttribute("from")); + data.type = pres.getAttribute("type"); + data.states = []; + _ref = pres.childNodes; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + c = _ref[_i]; + switch (c.nodeName) { + case "status": + data.status = c.textContent || null; + break; + case "show": + data.show = c.textContent || null; + break; + case "x": + if (c.getAttribute("xmlns") === Strophe.NS.MUC_USER) { + _ref1 = c.childNodes; + for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { + c2 = _ref1[_j]; + switch (c2.nodeName) { + case "item": + data.affiliation = c2.getAttribute("affiliation"); + data.role = c2.getAttribute("role"); + data.jid = c2.getAttribute("jid"); + data.newnick = c2.getAttribute("nick"); + break; + case "status": + if (c2.getAttribute("code")) { + data.states.push(c2.getAttribute("code")); + } + } + } + } + } + } + return data; + }; + + return XmppRoom; + + })(); + + RoomConfig = (function() { + function RoomConfig(info) { + this.parse = __bind(this.parse, this); + if (info !== null) { + this.parse(info); + } + } + + RoomConfig.prototype.parse = function(result) { + var attr, attrs, child, field, identity, query, _i, _j, _k, _len, _len1, _len2, _ref; + query = result.getElementsByTagName("query")[0].childNodes; + this.identities = []; + this.features = []; + this.x = []; + for (_i = 0, _len = query.length; _i < _len; _i++) { + child = query[_i]; + attrs = child.attributes; + switch (child.nodeName) { + case "identity": + identity = {}; + for (_j = 0, _len1 = attrs.length; _j < _len1; _j++) { + attr = attrs[_j]; + identity[attr.name] = attr.textContent; + } + this.identities.push(identity); + break; + case "feature": + this.features.push(child.getAttribute("var")); + break; + case "x": + if ((child.childNodes[0].getAttribute("var") !== 'FORM_TYPE') || (child.childNodes[0].getAttribute("type") !== 'hidden')) { + break; + } + _ref = child.childNodes; + for (_k = 0, _len2 = _ref.length; _k < _len2; _k++) { + field = _ref[_k]; + if (!field.attributes.type) { + this.x.push({ + "var": field.getAttribute("var"), + label: field.getAttribute("label") || "", + value: field.firstChild.textContent || "" + }); + } + } + } + } + return { + "identities": this.identities, + "features": this.features, + "x": this.x + }; + }; + + return RoomConfig; + + })(); + + Occupant = (function() { + function Occupant(data, room) { + this.room = room; + this.update = __bind(this.update, this); + this.admin = __bind(this.admin, this); + this.owner = __bind(this.owner, this); + this.revoke = __bind(this.revoke, this); + this.member = __bind(this.member, this); + this.ban = __bind(this.ban, this); + this.modifyAffiliation = __bind(this.modifyAffiliation, this); + this.deop = __bind(this.deop, this); + this.op = __bind(this.op, this); + this.mute = __bind(this.mute, this); + this.voice = __bind(this.voice, this); + this.kick = __bind(this.kick, this); + this.modifyRole = __bind(this.modifyRole, this); + this.update(data); + } + + Occupant.prototype.modifyRole = function(role, reason, success_cb, error_cb) { + return this.room.modifyRole(this.nick, role, reason, success_cb, error_cb); + }; + + Occupant.prototype.kick = function(reason, handler_cb, error_cb) { + return this.room.kick(this.nick, reason, handler_cb, error_cb); + }; + + Occupant.prototype.voice = function(reason, handler_cb, error_cb) { + return this.room.voice(this.nick, reason, handler_cb, error_cb); + }; + + Occupant.prototype.mute = function(reason, handler_cb, error_cb) { + return this.room.mute(this.nick, reason, handler_cb, error_cb); + }; + + Occupant.prototype.op = function(reason, handler_cb, error_cb) { + return this.room.op(this.nick, reason, handler_cb, error_cb); + }; + + Occupant.prototype.deop = function(reason, handler_cb, error_cb) { + return this.room.deop(this.nick, reason, handler_cb, error_cb); + }; + + Occupant.prototype.modifyAffiliation = function(affiliation, reason, success_cb, error_cb) { + return this.room.modifyAffiliation(this.jid, affiliation, reason, success_cb, error_cb); + }; + + Occupant.prototype.ban = function(reason, handler_cb, error_cb) { + return this.room.ban(this.jid, reason, handler_cb, error_cb); + }; + + Occupant.prototype.member = function(reason, handler_cb, error_cb) { + return this.room.member(this.jid, reason, handler_cb, error_cb); + }; + + Occupant.prototype.revoke = function(reason, handler_cb, error_cb) { + return this.room.revoke(this.jid, reason, handler_cb, error_cb); + }; + + Occupant.prototype.owner = function(reason, handler_cb, error_cb) { + return this.room.owner(this.jid, reason, handler_cb, error_cb); + }; + + Occupant.prototype.admin = function(reason, handler_cb, error_cb) { + return this.room.admin(this.jid, reason, handler_cb, error_cb); + }; + + Occupant.prototype.update = function(data) { + this.nick = data.nick || null; + this.affiliation = data.affiliation || null; + this.role = data.role || null; + this.jid = data.jid || null; + this.status = data.status || null; + this.show = data.show || null; + return this; + }; + + return Occupant; + })(); +})); diff --git a/src/strophe.roster.js b/src/strophe.roster.js index 949a477a2..c8fd9682c 100644 --- a/src/strophe.roster.js +++ b/src/strophe.roster.js @@ -26,6 +26,7 @@ Strophe.$msg, Strophe.$pres ); + return Strophe; }); } else { // Browser globals diff --git a/src/strophe.vcard.js b/src/strophe.vcard.js new file mode 100644 index 000000000..6a12c7054 --- /dev/null +++ b/src/strophe.vcard.js @@ -0,0 +1,71 @@ +/* Plugin to implement the vCard extension. + * http://xmpp.org/extensions/xep-0054.html + * + * Author: Nathan Zorn (nathan.zorn@gmail.com) + * AMD support by JC Brand + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define([ + "strophe-full" + ], function (Strophe) { + factory( + Strophe.Strophe, + Strophe.$build, + Strophe.$iq , + Strophe.$msg, + Strophe.$pres + ); + return Strophe; + }); + } else { + // Browser globals + factory( + root.Strophe, + root.$build, + root.$iq , + root.$msg, + root.$pres + ); + } +}(this, function (Strophe, $build, $iq, $msg, $pres) { + + var buildIq = function(type, jid, vCardEl) { + var iq = $iq(jid ? {type: type, to: jid} : {type: type}); + iq.c("vCard", {xmlns: Strophe.NS.VCARD}); + if (vCardEl) { + iq.cnode(vCardEl); + } + return iq; + }; + + Strophe.addConnectionPlugin('vcard', { + _connection: null, + init: function(conn) { + this._connection = conn; + return Strophe.addNamespace('VCARD', 'vcard-temp'); + }, + + /*Function + Retrieve a vCard for a JID/Entity + Parameters: + (Function) handler_cb - The callback function used to handle the request. + (String) jid - optional - The name of the entity to request the vCard + If no jid is given, this function retrieves the current user's vcard. + */ + get: function(handler_cb, jid, error_cb) { + var iq = buildIq("get", jid); + return this._connection.sendIQ(iq, handler_cb, error_cb); + }, + + /* Function + Set an entity's vCard. + */ + set: function(handler_cb, vCardEl, jid, error_cb) { + var iq = buildIq("set", jid, vCardEl); + return this._connection.sendIQ(iq, handler_cb, error_cb); + } + }); +})); From f283f6bce5bbec6ee5a328b4263939d3be88938b Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 1 Feb 2015 16:15:34 +0100 Subject: [PATCH 37/81] Fix failing tests after introducing AMD version of Strophe --- converse.js | 8 ++++++- spec/chatbox.js | 3 +++ spec/chatroom.js | 3 +++ spec/controlbox.js | 2 ++ spec/converse.js | 3 ++- spec/minchats.js | 2 ++ spec/otr.js | 2 ++ spec/profiling.js | 2 ++ spec/register.js | 2 ++ tests/mock.js | 55 ++++------------------------------------------ tests/utils.js | 1 + 11 files changed, 30 insertions(+), 53 deletions(-) diff --git a/converse.js b/converse.js index afd5b1153..1507b4ef6 100644 --- a/converse.js +++ b/converse.js @@ -23,6 +23,7 @@ var $iq = dependencies.$iq; var $msg = dependencies.$msg; var $pres = dependencies.$pres; + var $build = dependencies.$build; var DSA = dependencies.otr ? dependencies.otr.DSA : undefined; var OTR = dependencies.otr ? dependencies.otr.OTR : undefined; var Strophe = dependencies.Strophe; @@ -5280,7 +5281,12 @@ 'env': { 'jQuery': $, 'Strophe': Strophe, // TODO: this must be wrapped - '_': _ + '$build': $build, + '$iq': $iq, + '$pres': $pres, + '$msg': $msg, + '_': _, + 'b64_sha1': b64_sha1 }, // Deprecated API methods diff --git a/spec/chatbox.js b/spec/chatbox.js index ae9ed7329..0ff225a90 100644 --- a/spec/chatbox.js +++ b/spec/chatbox.js @@ -8,6 +8,9 @@ } ); } (this, function ($, mock, test_utils) { + var $msg = converse_api.env.$msg; + var Strophe = converse_api.env.Strophe; + return describe("Chatboxes", $.proxy(function(mock, test_utils) { describe("A Chatbox", $.proxy(function () { beforeEach(function () { diff --git a/spec/chatroom.js b/spec/chatroom.js index d9562b114..f277825d8 100644 --- a/spec/chatroom.js +++ b/spec/chatroom.js @@ -8,6 +8,9 @@ } ); } (this, function ($, mock, test_utils) { + var $pres = converse_api.env.$pres; + var $msg = converse_api.env.$msg; + return describe("ChatRooms", $.proxy(function (mock, test_utils) { describe("A Chat Room", $.proxy(function () { beforeEach(function () { diff --git a/spec/controlbox.js b/spec/controlbox.js index e7f90283d..0cce4b318 100644 --- a/spec/controlbox.js +++ b/spec/controlbox.js @@ -8,6 +8,8 @@ } ); } (this, function ($, mock, test_utils) { + var $pres = converse_api.env.$pres; + var $iq = converse_api.env.$iq; var checkHeaderToggling = function ($header) { var $toggle = $header.find('a.group-toggle'); diff --git a/spec/converse.js b/spec/converse.js index 46a6e1c25..5b81bc87a 100644 --- a/spec/converse.js +++ b/spec/converse.js @@ -8,8 +8,9 @@ } ); } (this, function ($, mock, test_utils) { - return describe("Converse", $.proxy(function(mock, test_utils) { + var b64_sha1 = converse_api.env.b64_sha1; + return describe("Converse", $.proxy(function(mock, test_utils) { describe("The \"tokens\" API", $.proxy(function () { beforeEach($.proxy(function () { test_utils.closeAllChatBoxes(); diff --git a/spec/minchats.js b/spec/minchats.js index 2449f4b59..2de8bb0f9 100644 --- a/spec/minchats.js +++ b/spec/minchats.js @@ -8,6 +8,8 @@ } ); } (this, function ($, mock, test_utils) { + var $msg = converse_api.env.$msg; + return describe("The Minimized Chats Widget", $.proxy(function(mock, test_utils) { beforeEach(function () { runs(function () { diff --git a/spec/otr.js b/spec/otr.js index 8c18734f9..bd7d1fa7c 100644 --- a/spec/otr.js +++ b/spec/otr.js @@ -8,6 +8,8 @@ } ); } (this, function ($, mock, test_utils) { + var b64_sha1 = converse_api.env.b64_sha1; + return describe("The OTR module", $.proxy(function(mock, test_utils) { beforeEach($.proxy(function () { diff --git a/spec/profiling.js b/spec/profiling.js index 39e570f99..6075ec0a6 100644 --- a/spec/profiling.js +++ b/spec/profiling.js @@ -8,6 +8,8 @@ } ); } (this, function ($, mock, test_utils) { + var Strophe = converse_api.env.Strophe; + describe("Profiling", function() { beforeEach(function() { converse.connection.roster.items = []; diff --git a/spec/register.js b/spec/register.js index 907cfc252..2e8b11d75 100644 --- a/spec/register.js +++ b/spec/register.js @@ -8,6 +8,8 @@ } ); } (this, function ($, mock, test_utils) { + var Strophe = converse_api.env.Strophe; + var $iq = converse_api.env.$iq; describe("The Registration Panel", $.proxy(function (mock, test_utils) { beforeEach(function () { diff --git a/tests/mock.js b/tests/mock.js index 8e4dc5dab..e6685c344 100644 --- a/tests/mock.js +++ b/tests/mock.js @@ -1,10 +1,12 @@ (function (root, factory) { define("mock", ['converse'], - function() { - return factory(); + function(converse) { + return factory(converse); }); }(this, function (converse) { + var Strophe = converse.env.Strophe; + var $iq = converse.env.$iq; var mock = {}; // Names from http://www.fakenamegenerator.com/ mock.req_names = [ @@ -64,54 +66,5 @@ c.attach(c.jid); return c; }(); - - /* - { - 'muc': { - 'listRooms': function () {}, - 'join': function () {}, - 'leave': function () {}, - 'rooms': {}, - 'groupchat': function () {return String((new Date()).getTime()); } - }, - 'service': 'jasmine tests', - 'addHandler': function (handler, ns, name, type, id, from, options) { - return function () {}; - }, - 'send': function () {}, - 'roster': { - 'add': function () {}, - 'authorize': function () {}, - 'unauthorize': function () {}, - 'get': function () {}, - 'subscribe': function () {}, - 'registerCallback': function () {}, - 'remove': function (jid, callback) { callback(); } - }, - 'vcard': { - 'get': function (callback, jid) { - var fullname; - if (!jid) { - jid = 'dummy@localhost'; - fullname = 'Max Mustermann' ; - } else { - var name = jid.split('@')[0].replace(/\./g, ' ').split(' '); - var last = name.length-1; - name[0] = name[0].charAt(0).toUpperCase()+name[0].slice(1); - name[last] = name[last].charAt(0).toUpperCase()+name[last].slice(1); - fullname = name.join(' '); - } - var vcard = $iq().c('vCard').c('FN').t(fullname); - callback(vcard.tree()); - } - }, - 'disco': { - 'addFeature': function () {}, - 'addIdentity': function () {}, - 'info': function () {}, - 'items': function () {} - } - }; - */ return mock; })); diff --git a/tests/utils.js b/tests/utils.js index 98576072c..60c1a5446 100644 --- a/tests/utils.js +++ b/tests/utils.js @@ -7,6 +7,7 @@ return factory($, mock); }); }(this, function ($, mock) { + var Strophe = converse_api.env.Strophe; var utils = {}; utils.createRequest = function (iq) { From 66bfdbd4c8f03d1af836913447e8c7f4107501c8 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sun, 1 Feb 2015 18:56:05 +0100 Subject: [PATCH 38/81] strophe-full wrapper has been renamed to strophe. --- main.js | 12 ++++++------ src/deps-website.js | 2 +- src/strophe.muc.js | 2 +- src/strophe.roster.js | 2 +- src/strophe.vcard.js | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index 1368541b1..cd3a97fb3 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,7 @@ require.config({ "strophe-base64": "components/strophe/src/base64", "strophe-bosh": "components/strophe/src/bosh", "strophe-core": "components/strophe/src/core", - "strophe-full": "components/strophe/src/wrapper", + "strophe": "components/strophe/src/wrapper", "strophe-md5": "components/strophe/src/md5", "strophe-sha1": "components/strophe/src/sha1", "strophe-websocket": "components/strophe/src/websocket", @@ -168,11 +168,11 @@ require.config({ 'crypto.sha1': { deps: ['crypto.core'] }, 'crypto.sha256': { deps: ['crypto.core'] }, 'bigint': { deps: ['crypto'] }, - 'strophe.disco': { deps: ['strophe-full'] }, - 'strophe.muc': { deps: ['strophe-full'] }, - 'strophe.register': { deps: ['strophe-full'] }, - 'strophe.roster': { deps: ['strophe-full'] }, - 'strophe.vcard': { deps: ['strophe-full'] } + 'strophe.disco': { deps: ['strophe'] }, + 'strophe.muc': { deps: ['strophe'] }, + 'strophe.register': { deps: ['strophe'] }, + 'strophe.roster': { deps: ['strophe'] }, + 'strophe.vcard': { deps: ['strophe'] } } }); diff --git a/src/deps-website.js b/src/deps-website.js index 8c159dece..3908b7ca3 100644 --- a/src/deps-website.js +++ b/src/deps-website.js @@ -4,7 +4,7 @@ define("converse-dependencies", [ "utils", "otr", "moment", - "strophe-full", + "strophe", "strophe.muc", "strophe.roster", "strophe.vcard", diff --git a/src/strophe.muc.js b/src/strophe.muc.js index 69854dad3..815ab5b3c 100644 --- a/src/strophe.muc.js +++ b/src/strophe.muc.js @@ -11,7 +11,7 @@ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([ - "strophe-full" + "strophe" ], function (Strophe) { factory( Strophe.Strophe, diff --git a/src/strophe.roster.js b/src/strophe.roster.js index c8fd9682c..5fe454d67 100644 --- a/src/strophe.roster.js +++ b/src/strophe.roster.js @@ -17,7 +17,7 @@ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([ - "strophe-full" + "strophe" ], function (Strophe) { factory( Strophe.Strophe, diff --git a/src/strophe.vcard.js b/src/strophe.vcard.js index 6a12c7054..17c31f625 100644 --- a/src/strophe.vcard.js +++ b/src/strophe.vcard.js @@ -9,7 +9,7 @@ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([ - "strophe-full" + "strophe" ], function (Strophe) { factory( Strophe.Strophe, From e5e8539f2b4312edf2e17d0f702ed98fcc9a846b Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 3 Feb 2015 22:39:03 +0100 Subject: [PATCH 39/81] Fix the non-AMD usecase. --- converse.js | 47 +++++++++++++++++++++++++++++++---------------- non_amd.html | 4 ++-- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/converse.js b/converse.js index 1507b4ef6..6b1ed2b45 100644 --- a/converse.js +++ b/converse.js @@ -12,26 +12,41 @@ define("converse", ["converse-dependencies", "converse-templates"], function (dependencies, templates) { - return factory(dependencies, templates); + return factory( + templates, + dependencies.jQuery, + dependencies.$iq, + dependencies.$msg, + dependencies.$pres, + dependencies.$build, + dependencies.otr ? dependencies.otr.DSA : undefined, + dependencies.otr ? dependencies.otr.OTR : undefined, + dependencies.Strophe, + dependencies.underscore, + dependencies.moment, + dependencies.utils, + dependencies.SHA1.b64_sha1 + ); } ); } else { - root.converse = factory(dependencies, templates); + root.converse = factory( + templates, + jQuery, + $iq, + $msg, + $pres, + $build, + DSA, + OTR, + Strophe, + _, + moment, + utils, + b64_sha1 + ); } -}(this, function (dependencies, templates) { - var $ = dependencies.jQuery; - var $iq = dependencies.$iq; - var $msg = dependencies.$msg; - var $pres = dependencies.$pres; - var $build = dependencies.$build; - var DSA = dependencies.otr ? dependencies.otr.DSA : undefined; - var OTR = dependencies.otr ? dependencies.otr.OTR : undefined; - var Strophe = dependencies.Strophe; - var _ = dependencies.underscore; - var moment = dependencies.moment; - var utils = dependencies.utils; - var b64_sha1 = dependencies.SHA1.b64_sha1; - +}(this, function (templates, $, $iq, $msg, $pres, $build, DSA, OTR, Strophe, _, moment, utils, b64_sha1) { // "use strict"; // Cannot use this due to Safari bug. // See https://github.com/jcbrand/converse.js/issues/196 diff --git a/non_amd.html b/non_amd.html index 027f68960..2aab8a2d7 100644 --- a/non_amd.html +++ b/non_amd.html @@ -13,7 +13,7 @@ - + @@ -31,7 +31,7 @@ - + From d20a8a65e49422feaa68281adb31d0564013df44 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Feb 2015 15:57:39 +0100 Subject: [PATCH 40/81] Add a webserver for serving files during development. --- Makefile | 56 +++++++++++++++++++++++++++++++--------------------- Makefile.win | 16 +++++++++++---- package.json | 1 + 3 files changed, 46 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 70f87a7ce..3ce775767 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ # You can set these variables from the command line. BOWER ?= node_modules/.bin/bower -BUILDDIR = ./docs -PAPER = +BUILDDIR = ./docs +PAPER = PHANTOMJS ?= ./node_modules/.bin/phantomjs -SPHINXBUILD ?= ./bin/sphinx-build -SPHINXOPTS = -PO2JSON ?= ./node_modules/.bin/po2json -SASS ?= sass +SPHINXBUILD ?= ./bin/sphinx-build +SPHINXOPTS = +PO2JSON ?= ./node_modules/.bin/po2json +SASS ?= sass GRUNT ?= ./node_modules/.bin/grunt +HTTPSERVE ?= ./node_modules/.bin/http-server # Internal variables. ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./docs/source @@ -19,18 +20,27 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./docs/source all: dev help: - @echo "Please use \`make ' where is one of" - @echo " dev to set up the development environment" + @echo "Please use \`make ' where is one of the following" @echo " build create minified builds containing converse.js and all its dependencies" - @echo " gettext to make PO message catalogs of the documentation" - @echo " html to make standalone HTML files of the documentation" - @echo " pot to generate a gettext POT file to be used for translations" - @echo " po to generate gettext PO files for each i18n language" - @echo " po2json to generate JSON files from the language PO files" - @echo " release to make a new minified release" - @echo " linkcheck to check all documentation external links for integrity" - @echo " epub to export the documentation to epub" - @echo " changes to make an overview of all changed/added/deprecated items added to the documentation" + @echo " changes make an overview of all changed/added/deprecated items added to the documentation" + @echo " css generate CSS from the Sass files" + @echo " dev set up the development environment" + @echo " epub export the documentation to epub" + @echo " gettext make PO message catalogs of the documentation" + @echo " html make standalone HTML files of the documentation" + @echo " linkcheck check all documentation external links for integrity" + @echo " cssmin minify the CSS files" + @echo " po generate gettext PO files for each i18n language" + @echo " po2json generate JSON files from the language PO files" + @echo " pot generate a gettext POT file to be used for translations" + @echo " release make a new minified release" + @echo " serve serve this directory via a webserver on port 8000" + +######################################################################## +## Miscellaneous + +serve: dev + $(HTTPSERVE) -p 8000 ######################################################################## ## Translation machinery @@ -49,12 +59,6 @@ po2json: ######################################################################## ## Release management -jsmin: - ./node_modules/requirejs/bin/r.js -o src/build.js && ./node_modules/requirejs/bin/r.js -o src/build-no-locales-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-website.js - -cssmin: - $(GRUNT) cssmin - release: sed -i s/Project-Id-Version:\ Converse\.js\ [0-9]\.[0-9]\.[0-9]/Project-Id-Version:\ Converse.js\ $(VERSION)/ locale/converse.pot sed -i s/\"version\":\ \"[0-9]\.[0-9]\.[0-9]\"/\"version\":\ \"$(VERSION)\"/ bower.json @@ -95,6 +99,12 @@ dev: clean css:: $(SASS) sass/converse.scss > css/converse.css +jsmin: + ./node_modules/requirejs/bin/r.js -o src/build.js && ./node_modules/requirejs/bin/r.js -o src/build-no-locales-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-no-otr.js && ./node_modules/requirejs/bin/r.js -o src/build-website.js + +cssmin: + $(GRUNT) cssmin + build:: $(GRUNT) jst $(GRUNT) minify diff --git a/Makefile.win b/Makefile.win index c929d7b37..1082d6842 100644 --- a/Makefile.win +++ b/Makefile.win @@ -1,19 +1,27 @@ # You can set these variables from the command line. -GRUNT ?= node_modules\.bin\grunt.cmd +GRUNT ?= node_modules\.bin\grunt.cmd BOWER ?= node_modules\.bin\bower PHANTOMJS ?= node_modules\.bin\phantomjs SASS ?= sass -RMRF ?= rmdir /q /s -RMF ?= del /q +RMRF ?= rmdir /q /s +RMF ?= del /q +HTTPSERVE ?= ./node_modules/.bin/http-server .PHONY: all help clean css minjs build all: dev help: - @echo "Please use \`make ' where is one of" + @echo "Please use \`make ' where is one of the following" @echo " dev to set up the development environment" @echo " build create minified builds containing converse.js and all its dependencies" + @echo " serve to serve this directory via a webserver on port 8000" + +######################################################################## +## Miscellaneous + +serve: + $(HTTPSERVE) -p 8000 ######################################################################## ## Install dependencies diff --git a/package.json b/package.json index 06262c101..ed22b5907 100755 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "grunt-contrib-requirejs": "~0.4.3", "grunt-json": "^0.1.3", "grunt-touch": "^0.1.0", + "http-server": "^0.7.4", "less": "~1.7.0", "phantom-jasmine": "0.1.8", "phantomjs": "~1.9.7-1", From ec51c3660a91d79a88b58cbacfd30d6fb3e63a0f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Feb 2015 15:58:51 +0100 Subject: [PATCH 41/81] Add theming documentation and extend the docs on creating builds. --- docs/source/builds.rst | 74 ++++++++++++++++++++++++------------- docs/source/development.rst | 3 +- docs/source/index.rst | 3 +- docs/source/theming.rst | 63 +++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+), 27 deletions(-) create mode 100644 docs/source/theming.rst diff --git a/docs/source/builds.rst b/docs/source/builds.rst index aff47468a..3892a35f9 100644 --- a/docs/source/builds.rst +++ b/docs/source/builds.rst @@ -1,6 +1,8 @@ -====================== -Creating custom builds -====================== +.. _builds: + +=============== +Creating builds +=============== .. contents:: Table of Contents :depth: 3 @@ -10,31 +12,53 @@ Creating custom builds .. warning:: There current documentation in this section does not adequately explain how to create custom builds. +.. note:: Please make sure to read the section :doc:`development` and that you have installed + all development dependencies (long story short, you should be able to just run ``make dev``) + +Creating builds +=============== + +We use `require.js `_ to keep track of *Converse.js* and +its dependencies and to to bundle them together in a single file fit for +deployment to a production site. + +To create the bundles, simply run:: + + make build + +This command does the following: + +* It creates different Javascript bundles of Converse.js. + The individual javascript files will be bundled and minified with `require.js`_'s + optimization tool, using `almond `_. + You can `read more about require.js's optimizer here `_. + +* It bundles the HTML templates in ``./src/templates/`` into a single file called ``templates.js``. + This file can then be included via the `` - diff --git a/src/deps-full.js b/src/deps-full.js index 5c0128477..79df2a088 100644 --- a/src/deps-full.js +++ b/src/deps-full.js @@ -8,7 +8,6 @@ define("converse-dependencies", [ "jquery.browser", "typeahead", "strophe", - "strophe.muc", "strophe.roster", "strophe.vcard", "strophe.disco" diff --git a/src/deps-no-otr.js b/src/deps-no-otr.js index 5f8d79626..3e139840c 100644 --- a/src/deps-no-otr.js +++ b/src/deps-no-otr.js @@ -7,7 +7,6 @@ define("converse-dependencies", [ "jquery.browser", "typeahead", "strophe", - "strophe.muc", "strophe.roster", "strophe.vcard", "strophe.disco" diff --git a/src/deps-website-no-otr.js b/src/deps-website-no-otr.js index 12c3af068..4046fb629 100644 --- a/src/deps-website-no-otr.js +++ b/src/deps-website-no-otr.js @@ -9,7 +9,6 @@ define("converse-dependencies", [ "jquery.easing", // XXX: Can be removed, only for https://conversejs.org "typeahead", "strophe", - "strophe.muc", "strophe.roster", "strophe.vcard", "strophe.disco" diff --git a/src/deps-website.js b/src/deps-website.js index 3908b7ca3..536eb4fcf 100644 --- a/src/deps-website.js +++ b/src/deps-website.js @@ -5,7 +5,6 @@ define("converse-dependencies", [ "otr", "moment", "strophe", - "strophe.muc", "strophe.roster", "strophe.vcard", "strophe.disco", diff --git a/src/strophe.muc.js b/src/strophe.muc.js deleted file mode 100644 index 815ab5b3c..000000000 --- a/src/strophe.muc.js +++ /dev/null @@ -1,1168 +0,0 @@ -/* - *Plugin to implement the MUC extension. - http://xmpp.org/extensions/xep-0045.html - *Previous Author: - Nathan Zorn - *Complete CoffeeScript rewrite: - Andreas Guth - */ - -(function (root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define([ - "strophe" - ], function (Strophe) { - factory( - Strophe.Strophe, - Strophe.$build, - Strophe.$iq , - Strophe.$msg, - Strophe.$pres - ); - }); - } else { - // Browser globals - factory( - root.Strophe, - root.$build, - root.$iq , - root.$msg, - root.$pres - ); - } -}(this, function (Strophe, $build, $iq, $msg, $pres) { - - var Occupant, RoomConfig, XmppRoom, - __hasProp = {}.hasOwnProperty, - __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; - - Strophe.addConnectionPlugin('muc', { - _connection: null, - rooms: {}, - roomNames: [], - - /*Function - Initialize the MUC plugin. Sets the correct connection object and - extends the namesace. - */ - init: function(conn) { - this._connection = conn; - this._muc_handler = null; - Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + "#owner"); - Strophe.addNamespace('MUC_ADMIN', Strophe.NS.MUC + "#admin"); - Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + "#user"); - Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + "#roomconfig"); - return Strophe.addNamespace('MUC_REGISTER', "jabber:iq:register"); - }, - - /*Function - Join a multi-user chat room - Parameters: - (String) room - The multi-user chat room to join. - (String) nick - The nickname to use in the chat room. Optional - (Function) msg_handler_cb - The function call to handle messages from the - specified chat room. - (Function) pres_handler_cb - The function call back to handle presence - in the chat room. - (Function) roster_cb - The function call to handle roster info in the chat room - (String) password - The optional password to use. (password protected - rooms only) - (Object) history_attrs - Optional attributes for retrieving history - (XML DOM Element) extended_presence - Optional XML for extending presence - */ - join: function(room, nick, msg_handler_cb, pres_handler_cb, roster_cb, password, history_attrs) { - var msg, room_nick; - room_nick = this.test_append_nick(room, nick); - msg = $pres({ - from: this._connection.jid, - to: room_nick - }).c("x", { - xmlns: Strophe.NS.MUC - }); - if (history_attrs !== null) { - msg = msg.c("history", history_attrs).up(); - } - if (password !== null) { - msg.cnode(Strophe.xmlElement("password", [], password)); - } - if (typeof extended_presence !== "undefined" && extended_presence !== null) { - msg.up.cnode(extended_presence); - } - if (this._muc_handler === null) { - this._muc_handler = this._connection.addHandler((function(_this) { - return function(stanza) { - var from, handler, handlers, id, roomname, x, xmlns, xquery, _i, _len; - from = stanza.getAttribute('from'); - if (!from) { - return true; - } - roomname = from.split("/")[0]; - if (!_this.rooms[roomname]) { - return true; - } - room = _this.rooms[roomname]; - handlers = {}; - if (stanza.nodeName === "message") { - handlers = room._message_handlers; - } else if (stanza.nodeName === "presence") { - xquery = stanza.getElementsByTagName("x"); - if (xquery.length > 0) { - for (_i = 0, _len = xquery.length; _i < _len; _i++) { - x = xquery[_i]; - xmlns = x.getAttribute("xmlns"); - if (xmlns && xmlns.match(Strophe.NS.MUC)) { - handlers = room._presence_handlers; - break; - } - } - } - } - for (id in handlers) { - handler = handlers[id]; - if (!handler(stanza, room)) { - delete handlers[id]; - } - } - return true; - }; - })(this)); - } - if (!this.rooms.hasOwnProperty(room)) { - this.rooms[room] = new XmppRoom(this, room, nick, password); - this.roomNames.push(room); - } - if (pres_handler_cb) { - this.rooms[room].addHandler('presence', pres_handler_cb); - } - if (msg_handler_cb) { - this.rooms[room].addHandler('message', msg_handler_cb); - } - if (roster_cb) { - this.rooms[room].addHandler('roster', roster_cb); - } - return this._connection.send(msg); - }, - - /*Function - Leave a multi-user chat room - Parameters: - (String) room - The multi-user chat room to leave. - (String) nick - The nick name used in the room. - (Function) handler_cb - Optional function to handle the successful leave. - (String) exit_msg - optional exit message. - Returns: - iqid - The unique id for the room leave. - */ - leave: function(room, nick, handler_cb, exit_msg) { - var id, presence, presenceid, room_nick; - id = this.roomNames.indexOf(room); - delete this.rooms[room]; - if (id >= 0) { - this.roomNames.splice(id, 1); - if (this.roomNames.length === 0) { - this._connection.deleteHandler(this._muc_handler); - this._muc_handler = null; - } - } - room_nick = this.test_append_nick(room, nick); - presenceid = this._connection.getUniqueId(); - presence = $pres({ - type: "unavailable", - id: presenceid, - from: this._connection.jid, - to: room_nick - }); - if (exit_msg !== null) { - presence.c("status", exit_msg); - } - if (handler_cb !== null) { - this._connection.addHandler(handler_cb, null, "presence", null, presenceid); - } - this._connection.send(presence); - return presenceid; - }, - - /*Function - Parameters: - (String) room - The multi-user chat room name. - (String) nick - The nick name used in the chat room. - (String) message - The plaintext message to send to the room. - (String) html_message - The message to send to the room with html markup. - (String) type - "groupchat" for group chat messages o - "chat" for private chat messages - Returns: - msgiq - the unique id used to send the message - */ - message: function(room, nick, message, html_message, type, msgid) { - var msg, parent, room_nick; - room_nick = this.test_append_nick(room, nick); - type = type || (nick !== null ? "chat" : "groupchat"); - msgid = msgid || this._connection.getUniqueId(); - msg = $msg({ - to: room_nick, - from: this._connection.jid, - type: type, - id: msgid - }).c("body").t(message); - msg.up(); - if (html_message !== null) { - msg.c("html", { - xmlns: Strophe.NS.XHTML_IM - }).c("body", { - xmlns: Strophe.NS.XHTML - }).h(html_message); - if (msg.node.childNodes.length === 0) { - parent = msg.node.parentNode; - msg.up().up(); - msg.node.removeChild(parent); - } else { - msg.up().up(); - } - } - msg.c("x", { - xmlns: "jabber:x:event" - }).c("composing"); - this._connection.send(msg); - return msgid; - }, - - /*Function - Convenience Function to send a Message to all Occupants - Parameters: - (String) room - The multi-user chat room name. - (String) message - The plaintext message to send to the room. - (String) html_message - The message to send to the room with html markup. - (String) msgid - Optional unique ID which will be set as the 'id' attribute of the stanza - Returns: - msgiq - the unique id used to send the message - */ - groupchat: function(room, message, html_message, msgid) { - return this.message(room, null, message, html_message, void 0, msgid); - }, - - /*Function - Send a mediated invitation. - Parameters: - (String) room - The multi-user chat room name. - (String) receiver - The invitation's receiver. - (String) reason - Optional reason for joining the room. - Returns: - msgiq - the unique id used to send the invitation - */ - invite: function(room, receiver, reason) { - var invitation, msgid; - msgid = this._connection.getUniqueId(); - invitation = $msg({ - from: this._connection.jid, - to: room, - id: msgid - }).c('x', { - xmlns: Strophe.NS.MUC_USER - }).c('invite', { - to: receiver - }); - if (reason !== null) { - invitation.c('reason', reason); - } - this._connection.send(invitation); - return msgid; - }, - - /*Function - Send a mediated multiple invitation. - Parameters: - (String) room - The multi-user chat room name. - (Array) receivers - The invitation's receivers. - (String) reason - Optional reason for joining the room. - Returns: - msgiq - the unique id used to send the invitation - */ - multipleInvites: function(room, receivers, reason) { - var invitation, msgid, receiver, _i, _len; - msgid = this._connection.getUniqueId(); - invitation = $msg({ - from: this._connection.jid, - to: room, - id: msgid - }).c('x', { - xmlns: Strophe.NS.MUC_USER - }); - for (_i = 0, _len = receivers.length; _i < _len; _i++) { - receiver = receivers[_i]; - invitation.c('invite', { - to: receiver - }); - if (reason !== null) { - invitation.c('reason', reason); - invitation.up(); - } - invitation.up(); - } - this._connection.send(invitation); - return msgid; - }, - - /*Function - Send a direct invitation. - Parameters: - (String) room - The multi-user chat room name. - (String) receiver - The invitation's receiver. - (String) reason - Optional reason for joining the room. - (String) password - Optional password for the room. - Returns: - msgiq - the unique id used to send the invitation - */ - directInvite: function(room, receiver, reason, password) { - var attrs, invitation, msgid; - msgid = this._connection.getUniqueId(); - attrs = { - xmlns: 'jabber:x:conference', - jid: room - }; - if (reason !== null) { - attrs.reason = reason; - } - if (password !== null) { - attrs.password = password; - } - invitation = $msg({ - from: this._connection.jid, - to: receiver, - id: msgid - }).c('x', attrs); - this._connection.send(invitation); - return msgid; - }, - - /*Function - Queries a room for a list of occupants - (String) room - The multi-user chat room name. - (Function) success_cb - Optional function to handle the info. - (Function) error_cb - Optional function to handle an error. - Returns: - id - the unique id used to send the info request - */ - queryOccupants: function(room, success_cb, error_cb) { - var attrs, info; - attrs = { - xmlns: Strophe.NS.DISCO_ITEMS - }; - info = $iq({ - from: this._connection.jid, - to: room, - type: 'get' - }).c('query', attrs); - return this._connection.sendIQ(info, success_cb, error_cb); - }, - - /*Function - Start a room configuration. - Parameters: - (String) room - The multi-user chat room name. - (Function) handler_cb - Optional function to handle the config form. - Returns: - id - the unique id used to send the configuration request - */ - configure: function(room, handler_cb, error_cb) { - var config, stanza; - config = $iq({ - to: room, - type: "get" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }); - stanza = config.tree(); - return this._connection.sendIQ(stanza, handler_cb, error_cb); - }, - - /*Function - Cancel the room configuration - Parameters: - (String) room - The multi-user chat room name. - Returns: - id - the unique id used to cancel the configuration. - */ - cancelConfigure: function(room) { - var config, stanza; - config = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }).c("x", { - xmlns: "jabber:x:data", - type: "cancel" - }); - stanza = config.tree(); - return this._connection.sendIQ(stanza); - }, - - /*Function - Save a room configuration. - Parameters: - (String) room - The multi-user chat room name. - (Array) config- Form Object or an array of form elements used to configure the room. - Returns: - id - the unique id used to save the configuration. - */ - saveConfiguration: function(room, config, success_cb, error_cb) { - var conf, iq, stanza, _i, _len; - iq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }); - if (typeof Form !== "undefined" && config instanceof Form) { - config.type = "submit"; - iq.cnode(config.toXML()); - } else { - iq.c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - for (_i = 0, _len = config.length; _i < _len; _i++) { - conf = config[_i]; - iq.cnode(conf).up(); - } - } - stanza = iq.tree(); - return this._connection.sendIQ(stanza, success_cb, error_cb); - }, - - /*Function - Parameters: - (String) room - The multi-user chat room name. - Returns: - id - the unique id used to create the chat room. - */ - createInstantRoom: function(room, success_cb, error_cb) { - var roomiq; - roomiq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }).c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - return this._connection.sendIQ(roomiq.tree(), success_cb, error_cb); - }, - - /*Function - Parameters: - (String) room - The multi-user chat room name. - (Object) config - the configuration. ex: {"muc#roomconfig_publicroom": "0", "muc#roomconfig_persistentroom": "1"} - Returns: - id - the unique id used to create the chat room. - */ - createConfiguredRoom: function(room, config, success_cb, error_cb) { - var k, roomiq, v; - roomiq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }).c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - roomiq.c('field', { - 'var': 'FORM_TYPE' - }).c('value').t('http://jabber.org/protocol/muc#roomconfig').up().up(); - for (k in config) { - if (!__hasProp.call(config, k)) continue; - v = config[k]; - roomiq.c('field', { - 'var': k - }).c('value').t(v).up().up(); - } - return this._connection.sendIQ(roomiq.tree(), success_cb, error_cb); - }, - - /*Function - Set the topic of the chat room. - Parameters: - (String) room - The multi-user chat room name. - (String) topic - Topic message. - */ - setTopic: function(room, topic) { - var msg; - msg = $msg({ - to: room, - from: this._connection.jid, - type: "groupchat" - }).c("subject", { - xmlns: "jabber:client" - }).t(topic); - return this._connection.send(msg.tree()); - }, - - /*Function - Internal Function that Changes the role or affiliation of a member - of a MUC room. This function is used by modifyRole and modifyAffiliation. - The modification can only be done by a room moderator. An error will be - returned if the user doesn't have permission. - Parameters: - (String) room - The multi-user chat room name. - (Object) item - Object with nick and role or jid and affiliation attribute - (String) reason - Optional reason for the change. - (Function) handler_cb - Optional callback for success - (Function) error_cb - Optional callback for error - Returns: - iq - the id of the mode change request. - */ - _modifyPrivilege: function(room, item, reason, handler_cb, error_cb) { - var iq; - iq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_ADMIN - }).cnode(item.node); - if (reason !== null) { - iq.c("reason", reason); - } - return this._connection.sendIQ(iq.tree(), handler_cb, error_cb); - }, - - /*Function - Changes the role of a member of a MUC room. - The modification can only be done by a room moderator. An error will be - returned if the user doesn't have permission. - Parameters: - (String) room - The multi-user chat room name. - (String) nick - The nick name of the user to modify. - (String) role - The new role of the user. - (String) affiliation - The new affiliation of the user. - (String) reason - Optional reason for the change. - (Function) handler_cb - Optional callback for success - (Function) error_cb - Optional callback for error - Returns: - iq - the id of the mode change request. - */ - modifyRole: function(room, nick, role, reason, handler_cb, error_cb) { - var item; - item = $build("item", { - nick: nick, - role: role - }); - return this._modifyPrivilege(room, item, reason, handler_cb, error_cb); - }, - kick: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'none', reason, handler_cb, error_cb); - }, - voice: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'participant', reason, handler_cb, error_cb); - }, - mute: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'visitor', reason, handler_cb, error_cb); - }, - op: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'moderator', reason, handler_cb, error_cb); - }, - deop: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'participant', reason, handler_cb, error_cb); - }, - - /*Function - Changes the affiliation of a member of a MUC room. - The modification can only be done by a room moderator. An error will be - returned if the user doesn't have permission. - Parameters: - (String) room - The multi-user chat room name. - (String) jid - The jid of the user to modify. - (String) affiliation - The new affiliation of the user. - (String) reason - Optional reason for the change. - (Function) handler_cb - Optional callback for success - (Function) error_cb - Optional callback for error - Returns: - iq - the id of the mode change request. - */ - modifyAffiliation: function(room, jid, affiliation, reason, handler_cb, error_cb) { - var item; - item = $build("item", { - jid: jid, - affiliation: affiliation - }); - return this._modifyPrivilege(room, item, reason, handler_cb, error_cb); - }, - ban: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'outcast', reason, handler_cb, error_cb); - }, - member: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'member', reason, handler_cb, error_cb); - }, - revoke: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'none', reason, handler_cb, error_cb); - }, - owner: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'owner', reason, handler_cb, error_cb); - }, - admin: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'admin', reason, handler_cb, error_cb); - }, - - /*Function - Change the current users nick name. - Parameters: - (String) room - The multi-user chat room name. - (String) user - The new nick name. - */ - changeNick: function(room, user) { - var presence, room_nick; - room_nick = this.test_append_nick(room, user); - presence = $pres({ - from: this._connection.jid, - to: room_nick, - id: this._connection.getUniqueId() - }); - return this._connection.send(presence.tree()); - }, - - /*Function - Change the current users status. - Parameters: - (String) room - The multi-user chat room name. - (String) user - The current nick. - (String) show - The new show-text. - (String) status - The new status-text. - */ - setStatus: function(room, user, show, status) { - var presence, room_nick; - room_nick = this.test_append_nick(room, user); - presence = $pres({ - from: this._connection.jid, - to: room_nick - }); - if (show !== null) { - presence.c('show', show).up(); - } - if (status !== null) { - presence.c('status', status); - } - return this._connection.send(presence.tree()); - }, - - /*Function - Registering with a room. - @see http://xmpp.org/extensions/xep-0045.html#register - Parameters: - (String) room - The multi-user chat room name. - (Function) handle_cb - Function to call for room list return. - (Function) error_cb - Function to call on error. - */ - registrationRequest: function(room, handle_cb, error_cb) { - var iq; - iq = $iq({ - to: room, - from: this._connection.jid, - type: "get" - }).c("query", { - xmlns: Strophe.NS.MUC_REGISTER - }); - return this._connection.sendIQ(iq, function(stanza) { - var $field, $fields, field, fields, length, _i, _len; - $fields = stanza.getElementsByTagName('field'); - length = $fields.length; - fields = { - required: [], - optional: [] - }; - for (_i = 0, _len = $fields.length; _i < _len; _i++) { - $field = $fields[_i]; - field = { - "var": $field.getAttribute('var'), - label: $field.getAttribute('label'), - type: $field.getAttribute('type') - }; - if ($field.getElementsByTagName('required').length > 0) { - fields.required.push(field); - } else { - fields.optional.push(field); - } - } - return handle_cb(fields); - }, error_cb); - }, - - /*Function - Submits registration form. - Parameters: - (String) room - The multi-user chat room name. - (Function) handle_cb - Function to call for room list return. - (Function) error_cb - Function to call on error. - */ - submitRegistrationForm: function(room, fields, handle_cb, error_cb) { - var iq, key, val; - iq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_REGISTER - }); - iq.c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - iq.c('field', { - 'var': 'FORM_TYPE' - }).c('value').t('http://jabber.org/protocol/muc#register').up().up(); - for (key in fields) { - val = fields[key]; - iq.c('field', { - 'var': key - }).c('value').t(val).up().up(); - } - return this._connection.sendIQ(iq, handle_cb, error_cb); - }, - - /*Function - List all chat room available on a server. - Parameters: - (String) server - name of chat server. - (String) handle_cb - Function to call for room list return. - (String) error_cb - Function to call on error. - */ - listRooms: function(server, handle_cb, error_cb) { - var iq; - iq = $iq({ - to: server, - from: this._connection.jid, - type: "get" - }).c("query", { - xmlns: Strophe.NS.DISCO_ITEMS - }); - return this._connection.sendIQ(iq, handle_cb, error_cb); - }, - test_append_nick: function(room, nick) { - var domain, node; - node = Strophe.escapeNode(Strophe.getNodeFromJid(room)); - domain = Strophe.getDomainFromJid(room); - return node + "@" + domain + (nick !== null ? "/" + nick : ""); - } - }); - - XmppRoom = (function() { - function XmppRoom(client, name, nick, password) { - this.client = client; - this.name = name; - this.nick = nick; - this.password = password; - this._roomRosterHandler = __bind(this._roomRosterHandler, this); - this._addOccupant = __bind(this._addOccupant, this); - this.roster = {}; - this._message_handlers = {}; - this._presence_handlers = {}; - this._roster_handlers = {}; - this._handler_ids = 0; - if (client.muc) { - this.client = client.muc; - } - this.name = Strophe.getBareJidFromJid(name); - this.addHandler('presence', this._roomRosterHandler); - } - - XmppRoom.prototype.join = function(msg_handler_cb, pres_handler_cb, roster_cb) { - return this.client.join(this.name, this.nick, msg_handler_cb, pres_handler_cb, roster_cb, this.password); - }; - - XmppRoom.prototype.leave = function(handler_cb, message) { - this.client.leave(this.name, this.nick, handler_cb, message); - return delete this.client.rooms[this.name]; - }; - - XmppRoom.prototype.message = function(nick, message, html_message, type) { - return this.client.message(this.name, nick, message, html_message, type); - }; - - XmppRoom.prototype.groupchat = function(message, html_message) { - return this.client.groupchat(this.name, message, html_message); - }; - - XmppRoom.prototype.invite = function(receiver, reason) { - return this.client.invite(this.name, receiver, reason); - }; - - XmppRoom.prototype.multipleInvites = function(receivers, reason) { - return this.client.invite(this.name, receivers, reason); - }; - - XmppRoom.prototype.directInvite = function(receiver, reason) { - return this.client.directInvite(this.name, receiver, reason, this.password); - }; - - XmppRoom.prototype.configure = function(handler_cb) { - return this.client.configure(this.name, handler_cb); - }; - - XmppRoom.prototype.cancelConfigure = function() { - return this.client.cancelConfigure(this.name); - }; - - XmppRoom.prototype.saveConfiguration = function(config) { - return this.client.saveConfiguration(this.name, config); - }; - - XmppRoom.prototype.queryOccupants = function(success_cb, error_cb) { - return this.client.queryOccupants(this.name, success_cb, error_cb); - }; - - XmppRoom.prototype.setTopic = function(topic) { - return this.client.setTopic(this.name, topic); - }; - - XmppRoom.prototype.modifyRole = function(nick, role, reason, success_cb, error_cb) { - return this.client.modifyRole(this.name, nick, role, reason, success_cb, error_cb); - }; - - XmppRoom.prototype.kick = function(nick, reason, handler_cb, error_cb) { - return this.client.kick(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.voice = function(nick, reason, handler_cb, error_cb) { - return this.client.voice(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.mute = function(nick, reason, handler_cb, error_cb) { - return this.client.mute(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.op = function(nick, reason, handler_cb, error_cb) { - return this.client.op(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.deop = function(nick, reason, handler_cb, error_cb) { - return this.client.deop(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.modifyAffiliation = function(jid, affiliation, reason, success_cb, error_cb) { - return this.client.modifyAffiliation(this.name, jid, affiliation, reason, success_cb, error_cb); - }; - - XmppRoom.prototype.ban = function(jid, reason, handler_cb, error_cb) { - return this.client.ban(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.member = function(jid, reason, handler_cb, error_cb) { - return this.client.member(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.revoke = function(jid, reason, handler_cb, error_cb) { - return this.client.revoke(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.owner = function(jid, reason, handler_cb, error_cb) { - return this.client.owner(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.admin = function(jid, reason, handler_cb, error_cb) { - return this.client.admin(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.changeNick = function(nick) { - this.nick = nick; - return this.client.changeNick(this.name, nick); - }; - - XmppRoom.prototype.setStatus = function(show, status) { - return this.client.setStatus(this.name, this.nick, show, status); - }; - - - /*Function - Adds a handler to the MUC room. - Parameters: - (String) handler_type - 'message', 'presence' or 'roster'. - (Function) handler - The handler function. - Returns: - id - the id of handler. - */ - - XmppRoom.prototype.addHandler = function(handler_type, handler) { - var id; - id = this._handler_ids++; - switch (handler_type) { - case 'presence': - this._presence_handlers[id] = handler; - break; - case 'message': - this._message_handlers[id] = handler; - break; - case 'roster': - this._roster_handlers[id] = handler; - break; - default: - this._handler_ids--; - return null; - } - return id; - }; - - - /*Function - Removes a handler from the MUC room. - This function takes ONLY ids returned by the addHandler function - of this room. passing handler ids returned by connection.addHandler - may brake things! - Parameters: - (number) id - the id of the handler - */ - - XmppRoom.prototype.removeHandler = function(id) { - delete this._presence_handlers[id]; - delete this._message_handlers[id]; - return delete this._roster_handlers[id]; - }; - - - /*Function - Creates and adds an Occupant to the Room Roster. - Parameters: - (Object) data - the data the Occupant is filled with - Returns: - occ - the created Occupant. - */ - - XmppRoom.prototype._addOccupant = function(data) { - var occ; - occ = new Occupant(data, this); - this.roster[occ.nick] = occ; - return occ; - }; - - - /*Function - The standard handler that managed the Room Roster. - Parameters: - (Object) pres - the presence stanza containing user information - */ - - XmppRoom.prototype._roomRosterHandler = function(pres) { - var data, handler, id, newnick, nick, _ref; - data = XmppRoom._parsePresence(pres); - nick = data.nick; - newnick = data.newnick || null; - switch (data.type) { - case 'error': - return true; - case 'unavailable': - if (newnick) { - data.nick = newnick; - if (this.roster[nick] && this.roster[newnick]) { - this.roster[nick].update(this.roster[newnick]); - this.roster[newnick] = this.roster[nick]; - } - if (this.roster[nick] && !this.roster[newnick]) { - this.roster[newnick] = this.roster[nick].update(data); - } - } - delete this.roster[nick]; - break; - default: - if (this.roster[nick]) { - this.roster[nick].update(data); - } else { - this._addOccupant(data); - } - } - _ref = this._roster_handlers; - for (id in _ref) { - handler = _ref[id]; - if (!handler(this.roster, this)) { - delete this._roster_handlers[id]; - } - } - return true; - }; - - - /*Function - Parses a presence stanza - Parameters: - (Object) data - the data extracted from the presence stanza - */ - - XmppRoom._parsePresence = function(pres) { - var c, c2, data, _i, _j, _len, _len1, _ref, _ref1; - data = {}; - data.nick = Strophe.getResourceFromJid(pres.getAttribute("from")); - data.type = pres.getAttribute("type"); - data.states = []; - _ref = pres.childNodes; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - c = _ref[_i]; - switch (c.nodeName) { - case "status": - data.status = c.textContent || null; - break; - case "show": - data.show = c.textContent || null; - break; - case "x": - if (c.getAttribute("xmlns") === Strophe.NS.MUC_USER) { - _ref1 = c.childNodes; - for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { - c2 = _ref1[_j]; - switch (c2.nodeName) { - case "item": - data.affiliation = c2.getAttribute("affiliation"); - data.role = c2.getAttribute("role"); - data.jid = c2.getAttribute("jid"); - data.newnick = c2.getAttribute("nick"); - break; - case "status": - if (c2.getAttribute("code")) { - data.states.push(c2.getAttribute("code")); - } - } - } - } - } - } - return data; - }; - - return XmppRoom; - - })(); - - RoomConfig = (function() { - function RoomConfig(info) { - this.parse = __bind(this.parse, this); - if (info !== null) { - this.parse(info); - } - } - - RoomConfig.prototype.parse = function(result) { - var attr, attrs, child, field, identity, query, _i, _j, _k, _len, _len1, _len2, _ref; - query = result.getElementsByTagName("query")[0].childNodes; - this.identities = []; - this.features = []; - this.x = []; - for (_i = 0, _len = query.length; _i < _len; _i++) { - child = query[_i]; - attrs = child.attributes; - switch (child.nodeName) { - case "identity": - identity = {}; - for (_j = 0, _len1 = attrs.length; _j < _len1; _j++) { - attr = attrs[_j]; - identity[attr.name] = attr.textContent; - } - this.identities.push(identity); - break; - case "feature": - this.features.push(child.getAttribute("var")); - break; - case "x": - if ((child.childNodes[0].getAttribute("var") !== 'FORM_TYPE') || (child.childNodes[0].getAttribute("type") !== 'hidden')) { - break; - } - _ref = child.childNodes; - for (_k = 0, _len2 = _ref.length; _k < _len2; _k++) { - field = _ref[_k]; - if (!field.attributes.type) { - this.x.push({ - "var": field.getAttribute("var"), - label: field.getAttribute("label") || "", - value: field.firstChild.textContent || "" - }); - } - } - } - } - return { - "identities": this.identities, - "features": this.features, - "x": this.x - }; - }; - - return RoomConfig; - - })(); - - Occupant = (function() { - function Occupant(data, room) { - this.room = room; - this.update = __bind(this.update, this); - this.admin = __bind(this.admin, this); - this.owner = __bind(this.owner, this); - this.revoke = __bind(this.revoke, this); - this.member = __bind(this.member, this); - this.ban = __bind(this.ban, this); - this.modifyAffiliation = __bind(this.modifyAffiliation, this); - this.deop = __bind(this.deop, this); - this.op = __bind(this.op, this); - this.mute = __bind(this.mute, this); - this.voice = __bind(this.voice, this); - this.kick = __bind(this.kick, this); - this.modifyRole = __bind(this.modifyRole, this); - this.update(data); - } - - Occupant.prototype.modifyRole = function(role, reason, success_cb, error_cb) { - return this.room.modifyRole(this.nick, role, reason, success_cb, error_cb); - }; - - Occupant.prototype.kick = function(reason, handler_cb, error_cb) { - return this.room.kick(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.voice = function(reason, handler_cb, error_cb) { - return this.room.voice(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.mute = function(reason, handler_cb, error_cb) { - return this.room.mute(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.op = function(reason, handler_cb, error_cb) { - return this.room.op(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.deop = function(reason, handler_cb, error_cb) { - return this.room.deop(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.modifyAffiliation = function(affiliation, reason, success_cb, error_cb) { - return this.room.modifyAffiliation(this.jid, affiliation, reason, success_cb, error_cb); - }; - - Occupant.prototype.ban = function(reason, handler_cb, error_cb) { - return this.room.ban(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.member = function(reason, handler_cb, error_cb) { - return this.room.member(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.revoke = function(reason, handler_cb, error_cb) { - return this.room.revoke(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.owner = function(reason, handler_cb, error_cb) { - return this.room.owner(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.admin = function(reason, handler_cb, error_cb) { - return this.room.admin(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.update = function(data) { - this.nick = data.nick || null; - this.affiliation = data.affiliation || null; - this.role = data.role || null; - this.jid = data.jid || null; - this.status = data.status || null; - this.show = data.show || null; - return this; - }; - - return Occupant; - })(); -})); From dac013b2d44f64984d674b79b1c39f0b01a13798 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 4 Mar 2015 23:24:58 +0100 Subject: [PATCH 70/81] Chat box textarea height fix. --- css/converse.css | 4 ++-- sass/converse.scss | 2 +- sass/variables.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/converse.css b/css/converse.css index b5af26f76..c075d602f 100644 --- a/css/converse.css +++ b/css/converse.css @@ -1073,12 +1073,12 @@ padding: 0; position: relative; width: 200px; - height: 84px; } + height: 82px; } #conversejs form.sendXMPPMessage .chat-textarea { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border: 0; - height: 64px; + height: 62px; padding: 0.5em; width: 100%; resize: none; } diff --git a/sass/converse.scss b/sass/converse.scss index 175e73a91..47a5f3ffc 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -419,7 +419,7 @@ background-color: #ffffff; line-height: 1.3em; height: 206px; - height: calc(100% - #{$toolbar-height + $chat-textarea-height}); + height: calc(100% - #{$toolbar-height + $chat-textarea-height + 2}); } .chat-info { diff --git a/sass/variables.scss b/sass/variables.scss index 3d74bdc1a..4f78eea54 100644 --- a/sass/variables.scss +++ b/sass/variables.scss @@ -16,7 +16,7 @@ $chat-head-inverse-text-color: white; $chat-head-height: 44px; $save-button-color: #436F64; - $chat-textarea-height: 64px; + $chat-textarea-height: 62px; $toolbar-height: 20px; $message-them-color: #4B7003; $roster-height: 194px; From 2e3eaa5d4129ebe09cdb4e8b90ba29a9567925b4 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 20:18:25 +0100 Subject: [PATCH 71/81] Bugfix. The stanza wasn't being passed into the handlers. --- converse.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converse.js b/converse.js index 750ce2c6f..2bce002b5 100644 --- a/converse.js +++ b/converse.js @@ -1832,8 +1832,8 @@ from: converse.connection.jid, type: "get" }).c("query", {xmlns: Strophe.NS.DISCO_ITEMS}), - $.proxy(function (iq) { this.onRoomsFound(); }, this), - $.proxy(function (iq) { this.informNoRoomsFound(); }, this) + this.onRoomsFound.bind(this), + this.informNoRoomsFound.bind(this) ); }, From 039904eb8c0b80373fb374739b40db03db8c6d5c Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 20:31:59 +0100 Subject: [PATCH 72/81] Some CSS fixes. * Make sure that minimized chats appear behind on mobile. * Enable highlighting text (which for some reason is transparent). --- css/converse.css | 13 ++++++++----- sass/converse.scss | 17 ++++++++++------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/css/converse.css b/css/converse.css index c075d602f..9a431b3d5 100644 --- a/css/converse.css +++ b/css/converse.css @@ -42,6 +42,8 @@ box-sizing: border-box; /* @group Tabs */ /* status dropdown styles */ } + #conversejs ::selection { + background-color: #E3C9C1; } #conversejs *, #conversejs *:before, #conversejs *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; @@ -460,9 +462,6 @@ background-color: #176679; border-right: 1px solid #176679; border-left: 1px solid #176679; } - #conversejs .chat-message span::selection, - #conversejs .chat-message::selection { - background-color: darkgrey; } #conversejs .chat-content { position: relative; padding: 8px; @@ -827,6 +826,7 @@ #conversejs .chatbox { width: 100%; } } #conversejs .chatbox .box-flyout { + z-index: 1; width: 200px; } @media screen and (max-width: 480px) { #conversejs .chatbox .box-flyout { @@ -1072,8 +1072,11 @@ margin: 0; padding: 0; position: relative; - width: 200px; - height: 82px; } + height: 82px; + width: 200px; } + @media screen and (max-width: 480px) { + #conversejs form.sendXMPPMessage { + width: 100%; } } #conversejs form.sendXMPPMessage .chat-textarea { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; diff --git a/sass/converse.scss b/sass/converse.scss index 47a5f3ffc..299c24e3c 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -33,7 +33,11 @@ #conversejs { @import "../bourbon/bourbon"; @import "variables"; - + + ::selection { + background-color: $highlight-color; + } + color: $text-color; font-size: $font-size; bottom: 0; @@ -404,11 +408,6 @@ border-left: 1px solid #176679; } - .chat-message span::selection, - .chat-message::selection { - background-color: darkgrey; - } - .chat-content { position: relative; padding: 8px; @@ -922,6 +921,7 @@ width: $mobile-chat-width; } .box-flyout { + z-index: 1; width: $chat-width; @media screen and (max-width: $mobile_landscape_length) { width: $mobile-chat-width; @@ -1253,8 +1253,11 @@ margin: 0; padding: 0; position: relative; - width: $chat-width; height: #{$chat-textarea-height + $toolbar-height}; + width: $chat-width; + @media screen and (max-width: $mobile_landscape_length) { + width: 100%; + } .chat-textarea { @include border-bottom-radius(4px); border: 0; From 61626873a3b689d252eb1167fb8009236a467527 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 20:42:50 +0100 Subject: [PATCH 73/81] Fix with of "add user" input. --- css/converse.css | 3 ++- sass/converse.scss | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/css/converse.css b/css/converse.css index 9a431b3d5..ba727fa1d 100644 --- a/css/converse.css +++ b/css/converse.css @@ -1186,7 +1186,8 @@ background: none; padding: 5px; } #conversejs .add-xmpp-contact input { - margin: 0 0 1rem; } + margin: 0 0 1rem; + width: 100%; } #conversejs .add-xmpp-contact button { width: 100%; } #conversejs .xmpp-status-menu { diff --git a/sass/converse.scss b/sass/converse.scss index 299c24e3c..48b46eae5 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -1422,9 +1422,10 @@ padding: 5px; input { margin: 0 0 1rem; + width: 100%; } button { - width: 100%; + width: 100%; } } From a359dc5e88b4ae58012bd10bef71fabe21fb676c Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 20:47:43 +0100 Subject: [PATCH 74/81] Add a drop-shadow for the user search box and fix widths. --- css/converse.css | 10 ++++++---- sass/converse.scss | 12 ++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/css/converse.css b/css/converse.css index ba727fa1d..b1f962b08 100644 --- a/css/converse.css +++ b/css/converse.css @@ -694,10 +694,10 @@ border: 1px solid #999; font-size: 14px; height: 25px; - margin: 0 0 0.5em 6px; + margin: 0 0 0.5em 7px; padding: 0; padding: 2px; - width: 104px; } + width: 103px; } #conversejs #converse-roster .roster-filter.x { background-position: right 3px center; } #conversejs #converse-roster .roster-filter.onX { @@ -850,8 +850,10 @@ background-color: #F1E2DD; } #conversejs .chatbox .dropdown dd ul li:hover { background-color: #E3C9C1; } - #conversejs .chatbox .dropdown dd.search-xmpp ul li:hover { - background-color: #F1E2DD; } + #conversejs .chatbox .dropdown dd.search-xmpp ul { + box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.4); } + #conversejs .chatbox .dropdown dd.search-xmpp ul li:hover { + background-color: #F1E2DD; } #conversejs .chatbox .dropdown dt a span { cursor: pointer; display: block; diff --git a/sass/converse.scss b/sass/converse.scss index 48b46eae5..7a469f0f9 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -735,10 +735,10 @@ border: 1px solid #999; font-size: $font-size; height: $controlbox-dropdown-height; - margin: 0 0 0.5em 6px; + margin: 0 0 0.5em 7px; padding: 0; padding: 2px; - width: 104px; + width: 103px; } /* (jQ addClass:) if input has value: */ .roster-filter.x { @@ -953,8 +953,12 @@ } } } - dd.search-xmpp ul li:hover { - background-color: $light-background-color; + dd.search-xmpp ul { + box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.4); + + li:hover { + background-color: $light-background-color; + } } dt a span { cursor: pointer; From e01f1ea59aaba1598c0e975e106c6908c0964958 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 21:33:48 +0100 Subject: [PATCH 75/81] Make sure Strophe is available for other dep configs as well. --- src/deps-full.js | 19 ++++++++++--------- src/deps-no-otr.js | 17 +++++++++-------- src/deps-website-no-otr.js | 19 ++++++++++--------- 3 files changed, 29 insertions(+), 26 deletions(-) diff --git a/src/deps-full.js b/src/deps-full.js index 79df2a088..3649163a8 100644 --- a/src/deps-full.js +++ b/src/deps-full.js @@ -3,19 +3,20 @@ define("converse-dependencies", [ "utils", "otr", "moment", - "backbone.browserStorage", - "backbone.overview", - "jquery.browser", - "typeahead", "strophe", "strophe.roster", "strophe.vcard", - "strophe.disco" -], function($, utils, otr, moment) { - return { + "strophe.disco", + "backbone.browserStorage", + "backbone.overview", + "jquery.browser", + "typeahead" +], function($, utils, otr, moment, Strophe) { + return _.extend({ + 'underscore': _, 'jQuery': $, - 'moment': moment, 'otr': otr, + 'moment': moment, 'utils': utils - }; + }, Strophe); }); diff --git a/src/deps-no-otr.js b/src/deps-no-otr.js index 3e139840c..542ea1c0e 100644 --- a/src/deps-no-otr.js +++ b/src/deps-no-otr.js @@ -2,19 +2,20 @@ define("converse-dependencies", [ "jquery", "utils", "moment", - "backbone.browserStorage", - "backbone.overview", - "jquery.browser", - "typeahead", "strophe", "strophe.roster", "strophe.vcard", - "strophe.disco" -], function($, utils, moment) { - return { + "strophe.disco", + "backbone.browserStorage", + "backbone.overview", + "jquery.browser", + "typeahead" +], function($, utils, moment, Strophe) { + return _.extend({ + 'underscore': _, 'jQuery': $, 'otr': undefined, 'moment': moment, 'utils': utils - }; + }, Strophe); }); diff --git a/src/deps-website-no-otr.js b/src/deps-website-no-otr.js index 4046fb629..fd6091045 100644 --- a/src/deps-website-no-otr.js +++ b/src/deps-website-no-otr.js @@ -2,21 +2,22 @@ define("converse-dependencies", [ "jquery", "utils", "moment", + "strophe", + "strophe.roster", + "strophe.vcard", + "strophe.disco", "bootstrapJS", // XXX: Can be removed, only for https://conversejs.org "backbone.browserStorage", "backbone.overview", "jquery.browser", "jquery.easing", // XXX: Can be removed, only for https://conversejs.org - "typeahead", - "strophe", - "strophe.roster", - "strophe.vcard", - "strophe.disco" -], function($, utils, moment) { - return { + "typeahead" +], function($, utils, moment, Strophe) { + return _.extend({ + 'underscore': _, 'jQuery': $, - 'otr': undefined, + 'otr': otr, 'moment': moment, 'utils': utils - }; + }, Strophe); }); From 9dd3440f86fc3d194163b4426c4e09d3ec091dbb Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 22:24:26 +0100 Subject: [PATCH 76/81] Add new config option prebind_url --- converse.js | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/converse.js b/converse.js index 2bce002b5..116061140 100644 --- a/converse.js +++ b/converse.js @@ -269,6 +269,7 @@ no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width) play_sounds: false, prebind: false, + prebind_url: null, providers_link: 'https://xmpp.net/directory.php', // Link to XMPP providers shown on registration page rid: undefined, roster_groups: false, @@ -5325,11 +5326,32 @@ sid = this.session.get('sid'); jid = this.session.get('jid'); if (rid && jid && sid) { - this.session.save({rid: rid}); // The RID needs to be increased with each request. + // The RID needs to be increased with each request. + this.session.save({rid: rid}); this.connection.attach(jid, sid, rid, this.onConnect); } else if (this.prebind) { - delete this.connection; - this.emit('noResumeableSession'); + if (this.prebind_url) { + $.ajax({ + url: this.prebind_url, + type: 'GET', + success: function (response) { + this.session.save({rid: rid}); + this.connection.attach( + response.jid, + response.sid, + response.rid, + this.onConnect + ); + }.bind(this), + error: function (response) { + delete this.connection; + this.emit('noResumeableSession'); + }.bind(this) + }); + } else { + delete this.connection; + this.emit('noResumeableSession'); + } } } } From d40eebc41ff7e874369d5311a8d94da2af29a575 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 23:11:07 +0100 Subject: [PATCH 77/81] Document the prebind_url option. --- docs/source/configuration.rst | 107 +++++++++++++++++----------------- docs/source/setup.rst | 46 ++------------- 2 files changed, 60 insertions(+), 93 deletions(-) diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index 10960e7d6..4c0028341 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -284,71 +284,74 @@ Default: ``false`` See also: :ref:`session-support` -Use this option when you want to attach to an existing XMPP connection that was -already authenticated (usually on the backend before page load). +Use this option when you want to attach to an existing XMPP +`BOSH `_ session. -This is useful when you don't want to render the login form on the chat control -box with each page load. +Usually a BOSH session is set up server-side in your web app. -For prebinding to work, you must set up a pre-authenticated BOSH session, -for which you will receive a JID (jabber ID), SID (session ID) and RID -(Request ID). +Attaching to an existing BOSH session that was set up server-side is useful +when you want to maintain a persistent single session for your users instead of +requiring them to log in manually. -These values (``rid``, ``sid`` and ``jid``) need to be passed into -``converse.initialize`` (with the exception of ``keepalive``, see below). +When a BOSH session is initially created, you'll receive three tokens. +A JID (jabber ID), SID (session ID) and RID (Request ID). -Additionally, you also have to specify a ``bosh_service_url``. +Converse.js needs these tokens in order to attach to that same session. -Using prebind in connection with keepalive -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +There are two complementary configuration settings to ``prebind``. +They are :ref:`keepalive` and :ref:`prebind_url`. -The ``prebind`` and `keepalive`_ options can be used together. +``keepalive`` can be used keep the session alive without having to pass in +new tokens to ``converse.initialize`` every time you reload the page. This +removes the need to set up a new BOSH session every time a page loads. -The ``keepalive`` option caches the ``rid``, ``sid`` and ``jid`` values -(henceforth referred to as *session tokens*) one receives from a prebinded -BOSH session, in order to re-use them when the page reloads. +``prebind_url`` lets you specify a URL which converse.js will call whenever a +new BOSH session needs to be set up. -However, if besides setting ``keepalive`` to ``true``, you also set ``prebind`` -to ``true``, and you pass in valid session tokens to ``converse.initialize``, -then those passed in session tokens will be used instead of any tokens cached by -``keepalive``. -If you set ``prebind`` to ``true`` and don't pass in the session tokens to -``converse.initialize``, then converse.js will look for tokens cached by -``keepalive``. - -If you've set ``keepalive`` and ``prebind`` to ``true``, don't pass in session -tokens and converse.js doesn't find any cached session tokens, then -converse.js will emit an event ``noResumeableSession`` and exit. - -This allows you to start a prebinded session with valid tokens, and then fall -back to ``keepalive`` for maintaining that session across page reloads. When -for some reason ``keepalive`` doesn't have cached session tokens anymore, you -can listen for the ``noResumeableSession`` event and take that as a cue that -you should again prebind in order to get valid session tokens. - -Here is a code example: +Here's an example of converse.js being initialized with these three options: .. code-block:: javascript - converse.on('noResumeableSession', function () { - $.getJSON('/prebind', function (data) { - converse.initialize({ - prebind: true, - keepalive: true, - bosh_service_url: 'https://bind.example.com', - jid: data.jid, - sid: data.sid, - rid: data.rid - }); - }); - }); - converse.initialize({ - prebind: true, - keepalive: true, - bosh_service_url: 'https://bind.example.com' - })); + converse.initialize({ + bosh_service_url: 'https://bind.example.com', + keepalive: true, + prebind: true, + prebind_url: 'http://example.com/api/prebind', + allow_logout: false + }); +.. note:: The ``prebind_url`` configuration setting is new in version 0.9 and + simplifies the code needed to set up and maintain prebinded sessions. + + When using ``prebind_url`` and ``keepalive``, you don't need to manually pass in + the RID, SID and JID tokens anymore. + + +.. _`prebind_url`: + +prebind_url +----------- + +* Default: ``null`` +* Type: URL + +See also: :ref:`session-support` + +This setting should be used in conjunction with :ref:`prebind` and :ref:`keepalive`. + +It allows you to specify a URL which converse.js will call when it needs to get +the RID and SID (Request ID and Session ID) tokens of a BOSH connection, which +converse.js will then attach to. + +The server behind ``prebind_url`` should return a JSON encoded object with the +three tokens:: + + { + "jid": "me@example.com/resource", + "sid": "346234623462", + "rid": "876987608760" + } providers_link -------------- diff --git a/docs/source/setup.rst b/docs/source/setup.rst index d336779f6..d5bd4affb 100644 --- a/docs/source/setup.rst +++ b/docs/source/setup.rst @@ -126,7 +126,7 @@ Server-side authentication (prebind) It's possible to enable shared sessions whereby users already authenticated in your website will also automatically be logged in on the XMPP server, -This session can be made to persist across page loads. In other words, we want +This session can also be made to persist across page loads. In other words, we want a user to automatically be logged in to chat when they log in to the website, and we want their chat session to persist across page loads. @@ -158,47 +158,11 @@ page load). Each page load is a new request which requires a new unique RID. The best way to achieve this is to simply increment the RID with each page load. -When you initialize converse.js in your browser, you need to pass it these two -tokens. Converse.js will then use them to attach to the session you just -created. - -You can embed the RID and SID tokens in your HTML markup or you can do an -XMLHttpRequest call to your server and ask it to return them for you. - -Below is one example of how this could work. An Ajax call is made to the -relative URL **/prebind** and it expects to receive JSON data back. - -.. code-block:: javascript - - $.getJSON('/prebind', function (data) { - converse.initialize({ - prebind: true, - bosh_service_url: data.bosh_service_url, - jid: data.jid, - sid: data.sid, - rid: data.rid - }); - ); - -**Here's what's happening:** - -The JSON data returned from the Ajax call to example.com/prebind contains the user's JID (jabber ID), RID, SID and the URL to the -BOSH server (also called a *connection manager*). - -These values are then passed to converse.js's ``initialize`` method. - -.. note:: - If you want to enable single session support, you need to set **prebind: true** - when calling **converse.initialize** (see ./index.html). - Additionally you need to pass in valid **jid**, **sid**, **rid** and - **bosh_service_url** values. - - The :ref:`prebind` configuration setting can be used together with the - :ref:`keepalive` setting. This means you only have to prebind once for the - first page the user loads and not anymore for subsequent pages. - - For more info, please refer to the :ref:`configuration-variables` section. +You'll need to configure converse.js with the :ref:`prebind`, :ref:`keepalive` and +:ref:`prebind_url` settings. +Please read the documentation on those settings for a fuller picture of what +needs to be done. Example code for server-side prebinding ======================================= From 7473f458eb67eecbd4761e2c0c5039001d1e9ae6 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 5 Mar 2015 23:20:46 +0100 Subject: [PATCH 78/81] Mention prebind_url in changes and update links to docs for older settings. --- docs/CHANGES.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index e52843d89..9c2b3edad 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -22,6 +22,7 @@ Changelog * Strophe.log and Strophe.error now uses converse.log to output messages. [gbonvehi] * The API method ``chats.get`` now only returns already opened chat boxes. [jcbrand] * Updated Afrikaans translations. [jcbrand] +* Add new configuration setting `prebind_url `_ [jcbrand] 0.8.6 (2014-12-07) ------------------ @@ -76,7 +77,7 @@ Changelog * Converse.js now has the ability to maintain sessions across page loads. Previously, the session tokens had to be handled externally and passed in. - See the `keepalive `_ configuration setting. [jcbrand] + See the `keepalive `_ configuration setting. [jcbrand] * Allow changing of nickname in a chat room via /nick command. [jcbrand] * Allow a chat room user to be muted or unmuted with the /mute and /voice commands. [jcbrand] * Add a chat room toolbar button for toggling the list of participants. [jcbrand] @@ -107,7 +108,7 @@ Changelog .. note:: 1. Converse.js is now relicensed under the `Mozilla Public License `_. - 2. Configuration options for the chat toolbar have changed. Please refer to the `relevant documentation `_. + 2. Configuration options for the chat toolbar have changed. Please refer to the `relevant documentation `_. 3. This release has reduced support for IE8 (some features won't work). 4. Events have been renamed to remove "on" prefix (sorry for any inconvenience). @@ -116,7 +117,7 @@ Changelog * Add a new toolbar button for clearing chat messages. [jcbrand] * Chat boxes and rooms can now be resized vertically. [jcbrand] * Upgraded dependencies to their latest versions. [jcbrand] -* Add new configuration setting `forward_messages `_ +* Add new configuration setting `forwarded_messages `_ Message forwarding was before a default behavior but is now optional (and disabled by default). [jcbrand] * Newly opened chat boxes always appear immediately left of the controlbox. [jcbrand] * #71 Chat boxes and rooms can be minimized. [jcbrand] @@ -127,7 +128,7 @@ Changelog * #123 Show converse.js in the resource assigned to a user. [jcbrand] * #130 Fixed bootstrap conflicts. [jcbrand] * #132 Support for `XEP-0280: Message Carbons `_. - Configured via `message_carbons `_ [hejazee] + Configured via `message_carbons `_ [hejazee] * #176 Add support for caching in sessionStorage as opposed to localStorage. [jcbrand] * #180 RID and SID undefined [g8g3] * #191 No messages history [heban] From f73b74a8e37fd0419e9ef5e43c64db20158351be Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 6 Mar 2015 11:46:13 +0100 Subject: [PATCH 79/81] CSS tweaks. --- css/converse.css | 50 ++++++++++++++++++------------ sass/converse.scss | 58 ++++++++++++++++++++++------------- src/templates/room_panel.html | 6 ++-- 3 files changed, 70 insertions(+), 44 deletions(-) diff --git a/css/converse.css b/css/converse.css index b1f962b08..6250a9d69 100644 --- a/css/converse.css +++ b/css/converse.css @@ -73,7 +73,7 @@ #conversejs input[type=text], #conversejs input[type=password], #conversejs button { font-size: 14px; - padding: 0.5em; + padding: 0.25em; min-height: 0; } #conversejs strong { font-weight: 700; } @@ -296,6 +296,10 @@ user-select: none; } #conversejs .emoticon { font-size: 14px; } + #conversejs .left { + float: left; } + #conversejs .right { + float: right; } #conversejs .hidden { display: none; } #conversejs .locked { @@ -372,8 +376,11 @@ padding: 10px 8px 0 8px; } #conversejs .toggle-controlbox span { color: white; } + #conversejs .button-group, #conversejs .input-button-group { display: table; } + #conversejs .button-group { + width: 100%; } #conversejs .input-button-group button, #conversejs .input-button-group input { display: table-cell; } @@ -716,7 +723,9 @@ #conversejs #converse-roster dt { display: none; } #conversejs #converse-roster dd { - line-height: 16px; } + line-height: 16px; + padding: 4px 2px 0 4px; + height: 24px; } #conversejs #converse-roster dd a, #conversejs #converse-roster dd span { text-shadow: 0 1px 0 #FAFAFA; display: inline-block; @@ -750,13 +759,6 @@ #conversejs #converse-roster span.req-contact-name { width: 69%; padding: 0; } - #conversejs dd.available-chatroom { - display: inline-block; - overflow-x: hidden; - text-overflow: ellipsis; - white-space: nowrap; } - #conversejs dd.available-chatroom a.open-room { - width: 148px; } #conversejs #available-chatrooms { text-align: left; } #conversejs #available-chatrooms dt, @@ -764,7 +766,7 @@ font-weight: normal; color: #6C4C44; border: none; - padding: 5px; + padding: 0.5em; text-shadow: 0 1px 0 #FAFAFA; } #conversejs .room-info { font-size: 11px; @@ -781,9 +783,7 @@ display: block; white-space: normal; } #conversejs a.room-info { - width: 22px; - height: 22px; - float: right; + width: 15px; display: none; clear: right; } #conversejs a.open-room { @@ -791,20 +791,25 @@ white-space: nowrap; text-overflow: ellipsis; overflow-x: hidden; } + #conversejs dd.available-chatroom { + display: inline-block; + overflow-x: hidden; + text-overflow: ellipsis; + padding: 0.25em 0.5em; + white-space: nowrap; } + #conversejs dd.available-chatroom a.open-room { + width: 150px; } #conversejs dd.available-chatroom:hover a.room-info { display: inline-block; - margin-top: 3px; - font-size: 15px; } + font-size: 14px; } #conversejs dd.available-chatroom, #conversejs #converse-roster dd { font-weight: bold; border: none; display: block; - padding: 4px 2px 0 4px; color: #6C4C44; text-shadow: 0 1px 0 #FAFAFA; clear: both; - height: 24px; overflow-y: hidden; } #conversejs .roster-group:hover, #conversejs dd.available-chatroom:hover, @@ -991,15 +996,20 @@ margin: 1em 0; } #conversejs form.add-chatroom { background: none; - padding: 8px; } + padding: 0.5em; } #conversejs form.add-chatroom input[type=button], #conversejs form.add-chatroom input[type=submit], #conversejs form.add-chatroom input[type=text] { margin: 0; width: 100%; - padding: 5px; } + padding: 0.25em; } + #conversejs form.add-chatroom span.spinner, + #conversejs form.add-chatroom input[type=button], + #conversejs form.add-chatroom input[type=submit] { + margin-top: 0.5em; + display: table-cell; + width: auto; } #conversejs form.add-chatroom input[type=submit] { - margin: 5px 0; color: #436F64; } #conversejs select#select-xmpp-status { float: right; diff --git a/sass/converse.scss b/sass/converse.scss index 7a469f0f9..cbe29f6db 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -83,7 +83,7 @@ input[type=text], input[type=password], button { font-size: $font-size; - padding: 0.5em; + padding: 0.25em; min-height: 0; } @@ -232,6 +232,12 @@ font-size: $font-size; } + .left { + float: left; + } + .right { + float: right; + } .hidden { display: none; } @@ -293,9 +299,13 @@ } } + .button-group, .input-button-group { display: table; } + .button-group { + width: 100%; + } .input-button-group button, .input-button-group input { display: table-cell; @@ -766,6 +776,8 @@ } dd { line-height: 16px; + padding: 4px 2px 0 4px; + height: 24px; a, span { text-shadow: 0 1px 0 $link-shadow-color; display: inline-block; @@ -818,16 +830,6 @@ } } - dd.available-chatroom { - display: inline-block; - overflow-x: hidden; - text-overflow: ellipsis; - white-space: nowrap; - a.open-room { - width: 148px; - } - } - #available-chatrooms { text-align: left; } @@ -837,7 +839,7 @@ font-weight: normal; color: $text-color; border: none; - padding: 5px; + padding: 0.5em; text-shadow: 0 1px 0 $text-shadow-color; } @@ -865,9 +867,7 @@ a { &.room-info { - width: 22px; - height: 22px; - float: right; + width: 15px; display: none; clear: right; } @@ -879,10 +879,20 @@ } } + dd.available-chatroom { + display: inline-block; + overflow-x: hidden; + text-overflow: ellipsis; + padding: 0.25em 0.5em; + white-space: nowrap; + a.open-room { + width: 150px; + } + } + dd.available-chatroom:hover a.room-info { display: inline-block; - margin-top: 3px; - font-size: 15px; + font-size: 14px; } dd.available-chatroom, @@ -890,11 +900,9 @@ font-weight: bold; border: none; display: block; - padding: 4px 2px 0 4px; color: $text-color; text-shadow: 0 1px 0 $text-shadow-color; clear: both; - height: 24px; overflow-y: hidden; } @@ -1152,17 +1160,23 @@ form.add-chatroom { background: none; - padding: 8px; + padding: 0.5em; input[type=button], input[type=submit], input[type=text] { margin: 0; width: 100%; - padding: 5px; + padding: 0.25em; + } + span.spinner, + input[type=button], + input[type=submit] { + margin-top: 0.5em; + display: table-cell; + width: auto; } input[type=submit] { - margin: 5px 0; color: $save-button-color; } } diff --git a/src/templates/room_panel.html b/src/templates/room_panel.html index 646be6faa..65ef62b39 100644 --- a/src/templates/room_panel.html +++ b/src/templates/room_panel.html @@ -8,7 +8,9 @@ - - +
+ + +
From 9b0d2904b66ee849997b9e1b0fe7d845ff8c9034 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 6 Mar 2015 17:29:55 +0100 Subject: [PATCH 80/81] CSS Tweak for IE10. --- css/converse.css | 2 ++ sass/converse.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/css/converse.css b/css/converse.css index 6250a9d69..4b5179fa4 100644 --- a/css/converse.css +++ b/css/converse.css @@ -691,12 +691,14 @@ /* (jQ addClass:) if mouse is over the 'x' input area*/ } #conversejs #converse-roster .filter-type { display: table-cell; + float: right; font-size: 14px; height: 25px; margin: 0 0 0.5em -1px; padding: 0; width: 84px; } #conversejs #converse-roster .roster-filter { + float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABNSURBVHjaXI7BDcAwCAMvyQjMyQ6dAbZiKfqoUK34g2zJh1dENIC7M8pMAPYdzAVY3d0ajNz9aypS/b5R6o+ZPdqoKgCq6h80KH3xDgBqNR97p8oAGQAAAABJRU5ErkJggg==) no-repeat right -20px center; border: 1px solid #999; font-size: 14px; diff --git a/sass/converse.scss b/sass/converse.scss index cbe29f6db..9d8ead576 100644 --- a/sass/converse.scss +++ b/sass/converse.scss @@ -734,6 +734,7 @@ .filter-type { display: table-cell; + float: right; font-size: $font-size; height: $controlbox-dropdown-height; margin: 0 0 0.5em -1px; @@ -741,6 +742,7 @@ width: 84px; } .roster-filter { + float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABNSURBVHjaXI7BDcAwCAMvyQjMyQ6dAbZiKfqoUK34g2zJh1dENIC7M8pMAPYdzAVY3d0ajNz9aypS/b5R6o+ZPdqoKgCq6h80KH3xDgBqNR97p8oAGQAAAABJRU5ErkJggg== ) no-repeat right -20px center; border: 1px solid #999; font-size: $font-size; From 17da00d5c11a5b96ed71378c58e2188543ea9472 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 6 Mar 2015 18:49:31 +0100 Subject: [PATCH 81/81] Release version 0.9.0 --- bower.json | 2 +- builds/converse-no-locales-no-otr.js | 16590 +++++++-------- builds/converse-no-locales-no-otr.min.js | 82 +- builds/converse-no-otr.js | 23395 +++++++------------- builds/converse-no-otr.min.js | 82 +- builds/converse.js | 23397 +++++++-------------- builds/converse.min.js | 122 +- builds/converse.nojquery.js | 23397 +++++++-------------- builds/converse.nojquery.min.js | 122 +- builds/converse.website-no-otr.min.js | 82 +- builds/converse.website.min.js | 166 +- builds/templates.js | 6 +- css/converse.min.css | 2 +- docs/CHANGES.rst | 2 +- docs/source/conf.py | 4 +- locale/af/LC_MESSAGES/converse.json | 32 +- locale/af/LC_MESSAGES/converse.po | 473 +- locale/converse.pot | 428 +- locale/de/LC_MESSAGES/converse.json | 36 +- locale/de/LC_MESSAGES/converse.po | 436 +- locale/en/LC_MESSAGES/converse.json | 44 +- locale/en/LC_MESSAGES/converse.po | 434 +- locale/es/LC_MESSAGES/converse.json | 36 +- locale/es/LC_MESSAGES/converse.po | 439 +- locale/fr/LC_MESSAGES/converse.json | 44 +- locale/fr/LC_MESSAGES/converse.po | 434 +- locale/he/LC_MESSAGES/converse.json | 32 +- locale/he/LC_MESSAGES/converse.po | 462 +- locale/hu/LC_MESSAGES/converse.json | 36 +- locale/hu/LC_MESSAGES/converse.po | 466 +- locale/id/LC_MESSAGES/converse.json | 36 +- locale/id/LC_MESSAGES/converse.po | 439 +- locale/it/LC_MESSAGES/converse.json | 44 +- locale/it/LC_MESSAGES/converse.po | 434 +- locale/ja/LC_MESSAGES/converse.json | 36 +- locale/ja/LC_MESSAGES/converse.po | 439 +- locale/nb/LC_MESSAGES/converse.json | 32 +- locale/nb/LC_MESSAGES/converse.po | 440 +- locale/nl/LC_MESSAGES/converse.json | 36 +- locale/nl/LC_MESSAGES/converse.po | 439 +- locale/pl/LC_MESSAGES/converse.json | 32 +- locale/pl/LC_MESSAGES/converse.po | 497 +- locale/pt_BR/LC_MESSAGES/converse.json | 36 +- locale/pt_BR/LC_MESSAGES/converse.po | 439 +- locale/ru/LC_MESSAGES/converse.json | 36 +- locale/ru/LC_MESSAGES/converse.po | 436 +- locale/zh/LC_MESSAGES/converse.json | 36 +- locale/zh/LC_MESSAGES/converse.po | 439 +- package.json | 2 +- 49 files changed, 37052 insertions(+), 58559 deletions(-) diff --git a/bower.json b/bower.json index 1c99d0b16..4f2d91c6a 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "converse.js", "description": "Web-based XMPP/Jabber chat client written in javascript", - "version": "0.8.6", + "version": "0.9.0", "license": "MPL", "devDependencies": { "jasmine": "https://github.com/jcbrand/jasmine.git#1_3_x", diff --git a/builds/converse-no-locales-no-otr.js b/builds/converse-no-locales-no-otr.js index 8fe2473e6..21a431c4e 100644 --- a/builds/converse-no-locales-no-otr.js +++ b/builds/converse-no-locales-no-otr.js @@ -1,5 +1,5 @@ /** - * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. + * @license almond 0.3.0 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ @@ -150,7 +150,15 @@ var requirejs, require, define; //A version of a require function that passes a moduleName //value for items that may need to //look up paths relative to the moduleName - return req.apply(undef, aps.call(arguments, 0).concat([relName, forceSync])); + var args = aps.call(arguments, 0); + + //If first arg is not require('string'), and there is only + //one arg, it is the array form without a callback. Insert + //a null so that the following concat is correct. + if (typeof args[0] !== 'string' && args.length === 1) { + args.push(null); + } + return req.apply(undef, args.concat([relName, forceSync])); }; } @@ -10765,7 +10773,7 @@ define('jquery-private',['jquery'], function (jq) { }); /** - * @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. + * @license RequireJS text 2.0.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/requirejs/text for details */ @@ -10789,7 +10797,7 @@ define('text',['module'], function (module) { masterConfig = (module.config && module.config()) || {}; text = { - version: '2.0.12', + version: '2.0.14', strip: function (content) { //Strips declarations so that external SVG and XML @@ -10851,13 +10859,13 @@ define('text',['module'], function (module) { parseName: function (name) { var modName, ext, temp, strip = false, - index = name.indexOf("."), + index = name.lastIndexOf("."), isRelative = name.indexOf('./') === 0 || name.indexOf('../') === 0; if (index !== -1 && (!isRelative || index > 1)) { modName = name.substring(0, index); - ext = name.substring(index + 1, name.length); + ext = name.substring(index + 1); } else { modName = name; } @@ -11010,7 +11018,8 @@ define('text',['module'], function (module) { typeof process !== "undefined" && process.versions && !!process.versions.node && - !process.versions['node-webkit'])) { + !process.versions['node-webkit'] && + !process.versions['atom-shell'])) { //Using special require.nodeRequire, something added by r.js. fs = require.nodeRequire('fs'); @@ -11018,7 +11027,7 @@ define('text',['module'], function (module) { try { var file = fs.readFileSync(url, 'utf8'); //Remove BOM (Byte Mark Order) from utf8 files if it is there. - if (file.indexOf('\uFEFF') === 0) { + if (file[0] === '\uFEFF') { file = file.substring(1); } callback(file); @@ -12623,13 +12632,13 @@ return __p; define('tpl!change_status_message', [],function () { return function(obj){ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; with(obj||{}){ -__p+='
\n \n \n
\n'; +'\n \n\n'; } return __p; }; }); @@ -12724,7 +12733,7 @@ __p+='
\n
\n ((__t=(heading))==null?'':__t)+ '\n \n \n \n
\n
\n'; } @@ -13109,7 +13118,11 @@ return __p; define('tpl!pending_contact', [],function () { return function(obj){ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; with(obj||{}){ -__p+=''+ +__p+=''+ ((__t=(fullname))==null?'':__t)+ ' '+ +__p+=''+ ((__t=(fullname))==null?'':__t)+ '\n\n \n \n \n'; } return __p; }; }); @@ -13371,7 +13394,11 @@ return __p; define('tpl!roster_item', [],function () { return function(obj){ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; with(obj||{}){ -__p+='= val_list.length ) { + if (this.options.missing_key_callback) { + this.options.missing_key_callback(key); + } + res = [ null, singular_key, plural_key ]; + return res[ getPluralFormFunc(pluralForms)( val ) + 1 ]; + } + + res = val_list[ val_idx ]; + + // This includes empty strings on purpose + if ( ! res ) { + res = [ null, singular_key, plural_key ]; + return res[ getPluralFormFunc(pluralForms)( val ) + 1 ]; + } + return res; + } + }); + + + // We add in sprintf capabilities for post translation value interolation + // This is not internally used, so you can remove it if you have this + // available somewhere else, or want to use a different system. + + // We _slightly_ modify the normal sprintf behavior to more gracefully handle + // undefined values. + + /** + sprintf() for JavaScript 0.7-beta1 + http://www.diveintojavascript.com/projects/javascript-sprintf + + Copyright (c) Alexandru Marasteanu + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of sprintf() for JavaScript nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + var sprintf = (function() { + function get_type(variable) { + return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase(); + } + function str_repeat(input, multiplier) { + for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */} + return output.join(''); + } + + var str_format = function() { + if (!str_format.cache.hasOwnProperty(arguments[0])) { + str_format.cache[arguments[0]] = str_format.parse(arguments[0]); + } + return str_format.format.call(null, str_format.cache[arguments[0]], arguments); + }; + + str_format.format = function(parse_tree, argv) { + var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length; + for (i = 0; i < tree_length; i++) { + node_type = get_type(parse_tree[i]); + if (node_type === 'string') { + output.push(parse_tree[i]); + } + else if (node_type === 'array') { + match = parse_tree[i]; // convenience purposes only + if (match[2]) { // keyword argument + arg = argv[cursor]; + for (k = 0; k < match[2].length; k++) { + if (!arg.hasOwnProperty(match[2][k])) { + throw(sprintf('[sprintf] property "%s" does not exist', match[2][k])); + } + arg = arg[match[2][k]]; + } + } + else if (match[1]) { // positional argument (explicit) + arg = argv[match[1]]; + } + else { // positional argument (implicit) + arg = argv[cursor++]; + } + + if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) { + throw(sprintf('[sprintf] expecting number but found %s', get_type(arg))); + } + + // Jed EDIT + if ( typeof arg == 'undefined' || arg === null ) { + arg = ''; + } + // Jed EDIT + + switch (match[8]) { + case 'b': arg = arg.toString(2); break; + case 'c': arg = String.fromCharCode(arg); break; + case 'd': arg = parseInt(arg, 10); break; + case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break; + case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break; + case 'o': arg = arg.toString(8); break; + case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break; + case 'u': arg = Math.abs(arg); break; + case 'x': arg = arg.toString(16); break; + case 'X': arg = arg.toString(16).toUpperCase(); break; + } + arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg); + pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' '; + pad_length = match[6] - String(arg).length; + pad = match[6] ? str_repeat(pad_character, pad_length) : ''; + output.push(match[5] ? arg + pad : pad + arg); + } + } + return output.join(''); + }; + + str_format.cache = {}; + + str_format.parse = function(fmt) { + var _fmt = fmt, match = [], parse_tree = [], arg_names = 0; + while (_fmt) { + if ((match = /^[^\x25]+/.exec(_fmt)) !== null) { + parse_tree.push(match[0]); + } + else if ((match = /^\x25{2}/.exec(_fmt)) !== null) { + parse_tree.push('%'); + } + else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) { + if (match[2]) { + arg_names |= 1; + var field_list = [], replacement_field = match[2], field_match = []; + if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) { + field_list.push(field_match[1]); + while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') { + if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) { + field_list.push(field_match[1]); + } + else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) { + field_list.push(field_match[1]); + } + else { + throw('[sprintf] huh?'); + } + } + } + else { + throw('[sprintf] huh?'); + } + match[2] = field_list; + } + else { + arg_names |= 2; + } + if (arg_names === 3) { + throw('[sprintf] mixing positional and named placeholders is not (yet) supported'); + } + parse_tree.push(match); + } + else { + throw('[sprintf] huh?'); + } + _fmt = _fmt.substring(match[0].length); + } + return parse_tree; + }; + + return str_format; + })(); + + var vsprintf = function(fmt, argv) { + argv.unshift(fmt); + return sprintf.apply(null, argv); + }; + + Jed.parse_plural = function ( plural_forms, n ) { + plural_forms = plural_forms.replace(/n/g, n); + return Jed.parse_expression(plural_forms); + }; + + Jed.sprintf = function ( fmt, args ) { + if ( {}.toString.call( args ) == '[object Array]' ) { + return vsprintf( fmt, [].slice.call(args) ); + } + return sprintf.apply(this, [].slice.call(arguments) ); + }; + + Jed.prototype.sprintf = function () { + return Jed.sprintf.apply(this, arguments); + }; + // END sprintf Implementation + + // Start the Plural forms section + // This is a full plural form expression parser. It is used to avoid + // running 'eval' or 'new Function' directly against the plural + // forms. + // + // This can be important if you get translations done through a 3rd + // party vendor. I encourage you to use this instead, however, I + // also will provide a 'precompiler' that you can use at build time + // to output valid/safe function representations of the plural form + // expressions. This means you can build this code out for the most + // part. + Jed.PF = {}; + + Jed.PF.parse = function ( p ) { + var plural_str = Jed.PF.extractPluralExpr( p ); + return Jed.PF.parser.parse.call(Jed.PF.parser, plural_str); + }; + + Jed.PF.compile = function ( p ) { + // Handle trues and falses as 0 and 1 + function imply( val ) { + return (val === true ? 1 : val ? val : 0); + } + + var ast = Jed.PF.parse( p ); + return function ( n ) { + return imply( Jed.PF.interpreter( ast )( n ) ); + }; + }; + + Jed.PF.interpreter = function ( ast ) { + return function ( n ) { + var res; + switch ( ast.type ) { + case 'GROUP': + return Jed.PF.interpreter( ast.expr )( n ); + case 'TERNARY': + if ( Jed.PF.interpreter( ast.expr )( n ) ) { + return Jed.PF.interpreter( ast.truthy )( n ); + } + return Jed.PF.interpreter( ast.falsey )( n ); + case 'OR': + return Jed.PF.interpreter( ast.left )( n ) || Jed.PF.interpreter( ast.right )( n ); + case 'AND': + return Jed.PF.interpreter( ast.left )( n ) && Jed.PF.interpreter( ast.right )( n ); + case 'LT': + return Jed.PF.interpreter( ast.left )( n ) < Jed.PF.interpreter( ast.right )( n ); + case 'GT': + return Jed.PF.interpreter( ast.left )( n ) > Jed.PF.interpreter( ast.right )( n ); + case 'LTE': + return Jed.PF.interpreter( ast.left )( n ) <= Jed.PF.interpreter( ast.right )( n ); + case 'GTE': + return Jed.PF.interpreter( ast.left )( n ) >= Jed.PF.interpreter( ast.right )( n ); + case 'EQ': + return Jed.PF.interpreter( ast.left )( n ) == Jed.PF.interpreter( ast.right )( n ); + case 'NEQ': + return Jed.PF.interpreter( ast.left )( n ) != Jed.PF.interpreter( ast.right )( n ); + case 'MOD': + return Jed.PF.interpreter( ast.left )( n ) % Jed.PF.interpreter( ast.right )( n ); + case 'VAR': + return n; + case 'NUM': + return ast.val; + default: + throw new Error("Invalid Token found."); + } + }; + }; + + Jed.PF.extractPluralExpr = function ( p ) { + // trim first + p = p.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); + + if (! /;\s*$/.test(p)) { + p = p.concat(';'); + } + + var nplurals_re = /nplurals\=(\d+);/, + plural_re = /plural\=(.*);/, + nplurals_matches = p.match( nplurals_re ), + res = {}, + plural_matches; + + // Find the nplurals number + if ( nplurals_matches.length > 1 ) { + res.nplurals = nplurals_matches[1]; + } + else { + throw new Error('nplurals not found in plural_forms string: ' + p ); + } + + // remove that data to get to the formula + p = p.replace( nplurals_re, "" ); + plural_matches = p.match( plural_re ); + + if (!( plural_matches && plural_matches.length > 1 ) ) { + throw new Error('`plural` expression not found: ' + p); + } + return plural_matches[ 1 ]; + }; + + /* Jison generated parser */ + Jed.PF.parser = (function(){ + +var parser = {trace: function trace() { }, +yy: {}, +symbols_: {"error":2,"expressions":3,"e":4,"EOF":5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,"n":19,"NUMBER":20,"$accept":0,"$end":1}, +terminals_: {2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"}, +productions_: [0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]], +performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) { + +var $0 = $$.length - 1; +switch (yystate) { +case 1: return { type : 'GROUP', expr: $$[$0-1] }; +break; +case 2:this.$ = { type: 'TERNARY', expr: $$[$0-4], truthy : $$[$0-2], falsey: $$[$0] }; +break; +case 3:this.$ = { type: "OR", left: $$[$0-2], right: $$[$0] }; +break; +case 4:this.$ = { type: "AND", left: $$[$0-2], right: $$[$0] }; +break; +case 5:this.$ = { type: 'LT', left: $$[$0-2], right: $$[$0] }; +break; +case 6:this.$ = { type: 'LTE', left: $$[$0-2], right: $$[$0] }; +break; +case 7:this.$ = { type: 'GT', left: $$[$0-2], right: $$[$0] }; +break; +case 8:this.$ = { type: 'GTE', left: $$[$0-2], right: $$[$0] }; +break; +case 9:this.$ = { type: 'NEQ', left: $$[$0-2], right: $$[$0] }; +break; +case 10:this.$ = { type: 'EQ', left: $$[$0-2], right: $$[$0] }; +break; +case 11:this.$ = { type: 'MOD', left: $$[$0-2], right: $$[$0] }; +break; +case 12:this.$ = { type: 'GROUP', expr: $$[$0-1] }; +break; +case 13:this.$ = { type: 'VAR' }; +break; +case 14:this.$ = { type: 'NUM', val: Number(yytext) }; +break; +} +}, +table: [{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}], +defaultActions: {6:[2,1]}, +parseError: function parseError(str, hash) { + throw new Error(str); +}, +parse: function parse(input) { + var self = this, + stack = [0], + vstack = [null], // semantic value stack + lstack = [], // location stack + table = this.table, + yytext = '', + yylineno = 0, + yyleng = 0, + recovering = 0, + TERROR = 2, + EOF = 1; + + //this.reductionCount = this.shiftCount = 0; + + this.lexer.setInput(input); + this.lexer.yy = this.yy; + this.yy.lexer = this.lexer; + if (typeof this.lexer.yylloc == 'undefined') + this.lexer.yylloc = {}; + var yyloc = this.lexer.yylloc; + lstack.push(yyloc); + + if (typeof this.yy.parseError === 'function') + this.parseError = this.yy.parseError; + + function popStack (n) { + stack.length = stack.length - 2*n; + vstack.length = vstack.length - n; + lstack.length = lstack.length - n; + } + + function lex() { + var token; + token = self.lexer.lex() || 1; // $end = 1 + // if token isn't its numeric value, convert + if (typeof token !== 'number') { + token = self.symbols_[token] || token; + } + return token; + } + + var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; + while (true) { + // retreive state number from top of stack + state = stack[stack.length-1]; + + // use default actions if available + if (this.defaultActions[state]) { + action = this.defaultActions[state]; + } else { + if (symbol == null) + symbol = lex(); + // read action for current state and first input + action = table[state] && table[state][symbol]; + } + + // handle parse error + _handle_error: + if (typeof action === 'undefined' || !action.length || !action[0]) { + + if (!recovering) { + // Report error + expected = []; + for (p in table[state]) if (this.terminals_[p] && p > 2) { + expected.push("'"+this.terminals_[p]+"'"); + } + var errStr = ''; + if (this.lexer.showPosition) { + errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'"; + } else { + errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " + + (symbol == 1 /*EOF*/ ? "end of input" : + ("'"+(this.terminals_[symbol] || symbol)+"'")); + } + this.parseError(errStr, + {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected}); + } + + // just recovered from another error + if (recovering == 3) { + if (symbol == EOF) { + throw new Error(errStr || 'Parsing halted.'); + } + + // discard current lookahead and grab another + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + symbol = lex(); + } + + // try to recover from error + while (1) { + // check for error recovery rule in this state + if ((TERROR.toString()) in table[state]) { + break; + } + if (state == 0) { + throw new Error(errStr || 'Parsing halted.'); + } + popStack(1); + state = stack[stack.length-1]; + } + + preErrorSymbol = symbol; // save the lookahead token + symbol = TERROR; // insert generic error symbol as new lookahead + state = stack[stack.length-1]; + action = table[state] && table[state][TERROR]; + recovering = 3; // allow 3 real symbols to be shifted before reporting a new error + } + + // this shouldn't happen, unless resolve defaults are off + if (action[0] instanceof Array && action.length > 1) { + throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol); + } + + switch (action[0]) { + + case 1: // shift + //this.shiftCount++; + + stack.push(symbol); + vstack.push(this.lexer.yytext); + lstack.push(this.lexer.yylloc); + stack.push(action[1]); // push state + symbol = null; + if (!preErrorSymbol) { // normal execution/no error + yyleng = this.lexer.yyleng; + yytext = this.lexer.yytext; + yylineno = this.lexer.yylineno; + yyloc = this.lexer.yylloc; + if (recovering > 0) + recovering--; + } else { // error just occurred, resume old lookahead f/ before error + symbol = preErrorSymbol; + preErrorSymbol = null; + } + break; + + case 2: // reduce + //this.reductionCount++; + + len = this.productions_[action[1]][1]; + + // perform semantic action + yyval.$ = vstack[vstack.length-len]; // default to $$ = $1 + // default location, uses first token for firsts, last for lasts + yyval._$ = { + first_line: lstack[lstack.length-(len||1)].first_line, + last_line: lstack[lstack.length-1].last_line, + first_column: lstack[lstack.length-(len||1)].first_column, + last_column: lstack[lstack.length-1].last_column + }; + r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); + + if (typeof r !== 'undefined') { + return r; + } + + // pop off stack + if (len) { + stack = stack.slice(0,-1*len*2); + vstack = vstack.slice(0, -1*len); + lstack = lstack.slice(0, -1*len); + } + + stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce) + vstack.push(yyval.$); + lstack.push(yyval._$); + // goto new state = table[STATE][NONTERMINAL] + newState = table[stack[stack.length-2]][stack[stack.length-1]]; + stack.push(newState); + break; + + case 3: // accept + return true; + } + + } + + return true; +}};/* Jison generated lexer */ +var lexer = (function(){ + +var lexer = ({EOF:1, +parseError:function parseError(str, hash) { + if (this.yy.parseError) { + this.yy.parseError(str, hash); + } else { + throw new Error(str); + } + }, +setInput:function (input) { + this._input = input; + this._more = this._less = this.done = false; + this.yylineno = this.yyleng = 0; + this.yytext = this.matched = this.match = ''; + this.conditionStack = ['INITIAL']; + this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0}; + return this; + }, +input:function () { + var ch = this._input[0]; + this.yytext+=ch; + this.yyleng++; + this.match+=ch; + this.matched+=ch; + var lines = ch.match(/\n/); + if (lines) this.yylineno++; + this._input = this._input.slice(1); + return ch; + }, +unput:function (ch) { + this._input = ch + this._input; + return this; + }, +more:function () { + this._more = true; + return this; + }, +pastInput:function () { + var past = this.matched.substr(0, this.matched.length - this.match.length); + return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); + }, +upcomingInput:function () { + var next = this.match; + if (next.length < 20) { + next += this._input.substr(0, 20-next.length); + } + return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, ""); + }, +showPosition:function () { + var pre = this.pastInput(); + var c = new Array(pre.length + 1).join("-"); + return pre + this.upcomingInput() + "\n" + c+"^"; + }, +next:function () { + if (this.done) { + return this.EOF; + } + if (!this._input) this.done = true; + + var token, + match, + col, + lines; + if (!this._more) { + this.yytext = ''; + this.match = ''; + } + var rules = this._currentRules(); + for (var i=0;i < rules.length; i++) { + match = this._input.match(this.rules[rules[i]]); + if (match) { + lines = match[0].match(/\n.*/g); + if (lines) this.yylineno += lines.length; + this.yylloc = {first_line: this.yylloc.last_line, + last_line: this.yylineno+1, + first_column: this.yylloc.last_column, + last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length} + this.yytext += match[0]; + this.match += match[0]; + this.matches = match; + this.yyleng = this.yytext.length; + this._more = false; + this._input = this._input.slice(match[0].length); + this.matched += match[0]; + token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]); + if (token) return token; + else return; + } + } + if (this._input === "") { + return this.EOF; + } else { + this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), + {text: "", token: null, line: this.yylineno}); + } + }, +lex:function lex() { + var r = this.next(); + if (typeof r !== 'undefined') { + return r; + } else { + return this.lex(); + } + }, +begin:function begin(condition) { + this.conditionStack.push(condition); + }, +popState:function popState() { + return this.conditionStack.pop(); + }, +_currentRules:function _currentRules() { + return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules; + }, +topState:function () { + return this.conditionStack[this.conditionStack.length-2]; + }, +pushState:function begin(condition) { + this.begin(condition); + }}); +lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { + +var YYSTATE=YY_START; +switch($avoiding_name_collisions) { +case 0:/* skip whitespace */ +break; +case 1:return 20 +break; +case 2:return 19 +break; +case 3:return 8 +break; +case 4:return 9 +break; +case 5:return 6 +break; +case 6:return 7 +break; +case 7:return 11 +break; +case 8:return 13 +break; +case 9:return 10 +break; +case 10:return 12 +break; +case 11:return 14 +break; +case 12:return 15 +break; +case 13:return 16 +break; +case 14:return 17 +break; +case 15:return 18 +break; +case 16:return 5 +break; +case 17:return 'INVALID' +break; +} +}; +lexer.rules = [/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./]; +lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"inclusive":true}};return lexer;})() +parser.lexer = lexer; +return parser; +})(); +// End parser + + // Handle node, amd, and global systems + if (typeof exports !== 'undefined') { + if (typeof module !== 'undefined' && module.exports) { + exports = module.exports = Jed; + } + exports.Jed = Jed; + } + else { + if (typeof define === 'function' && define.amd) { + define('jed', [],function() { + return Jed; + }); + } + // Leak a global regardless of module system + root['Jed'] = Jed; + } + +})(this); + +/* + * This file can be used if no locale support is required. + */ +(function (root, factory) { + define("locales", ['jed'], function (Jed) { + var translations = { + "domain": "converse", + "locale_data": { + "converse": { + "": { + "domain": "converse", + "lang": "en", + "plural_forms": "nplurals=2; plural=(n != 1);" + } + } + } + }; + root.locales = { 'en': new Jed(translations) }; + }); +})(this); + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + define('utils',["jquery", "converse-templates", "locales"], factory); + } else { + root.utils = factory(jQuery, templates); + } +}(this, function ($, templates, locales) { var XFORM_TYPE_MAP = { @@ -13709,10 +14772,16 @@ define('utils',["jquery", "converse-templates"], function ($, templates) { // --------------------- __: function (str) { // Translation factory - if (this.i18n === undefined) { + if (typeof this.i18n === "undefined") { this.i18n = locales.en; } - var t = this.i18n.translate(str); + if (typeof this.i18n === "string") { + this.i18n = $.parseJSON(this.i18n); + } + if (typeof this.jed === "undefined") { + this.jed = new Jed(this.i18n); + } + var t = this.jed.translate(str); if (arguments.length>1) { return t.fetch.apply(t, [].slice.call(arguments,1)); } else { @@ -13733,10 +14802,10 @@ define('utils',["jquery", "converse-templates"], function ($, templates) { webForm2xForm: function (field) { /* Takes an HTML DOM and turns it into an XForm field. - * - * Parameters: - * (DOMElement) field - the field to convert - */ + * + * Parameters: + * (DOMElement) field - the field to convert + */ var $input = $(field), value; if ($input.is('[type=checkbox]')) { value = $input.is(':checked') && 1 || 0; @@ -13760,11 +14829,11 @@ define('utils',["jquery", "converse-templates"], function ($, templates) { xForm2webForm: function ($field, $stanza) { /* Takes a field in XMPP XForm (XEP-004: Data Forms) format - * and turns it into a HTML DOM field. - * - * Parameters: - * (XMLElement) field - the field to convert - */ + * and turns it into a HTML DOM field. + * + * Parameters: + * (XMLElement) field - the field to convert + */ // FIXME: take into consideration var options = [], j, $options, $values, value, values; @@ -13846,7 +14915,7 @@ define('utils',["jquery", "converse-templates"], function ($, templates) { } }; return utils; -}); +})); //! moment.js //! version : 2.6.0 @@ -16339,1034 +17408,6084 @@ define('utils',["jquery", "converse-templates"], function ($, templates) { }).call(this); /* -jed.js -v0.5.0beta + * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined + * in FIPS PUB 180-1 + * Version 2.1a Copyright Paul Johnston 2000 - 2002. + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * Distributed under the BSD License + * See http://pajhome.org.uk/crypt/md5 for details. + */ -https://github.com/SlexAxton/Jed ------------ -A gettext compatible i18n library for modern JavaScript Applications +/* jshint undef: true, unused: true:, noarg: true, latedef: true */ +/* global define */ -by Alex Sexton - AlexSexton [at] gmail - @SlexAxton -WTFPL license for use -Dojo CLA for contributions +/* Some functions and variables have been stripped for use with Strophe */ -Jed offers the entire applicable GNU gettext spec'd set of -functions, but also offers some nicer wrappers around them. -The api for gettext was written for a language with no function -overloading, so Jed allows a little more of that. - -Many thanks to Joshua I. Miller - unrtst@cpan.org - who wrote -gettext.js back in 2008. I was able to vet a lot of my ideas -against his. I also made sure Jed passed against his tests -in order to offer easy upgrades -- jsgettext.berlios.de -*/ -(function (root, undef) { - - // Set up some underscore-style functions, if you already have - // underscore, feel free to delete this section, and use it - // directly, however, the amount of functions used doesn't - // warrant having underscore as a full dependency. - // Underscore 1.3.0 was used to port and is licensed - // under the MIT License by Jeremy Ashkenas. - var ArrayProto = Array.prototype, - ObjProto = Object.prototype, - slice = ArrayProto.slice, - hasOwnProp = ObjProto.hasOwnProperty, - nativeForEach = ArrayProto.forEach, - breaker = {}; - - // We're not using the OOP style _ so we don't need the - // extra level of indirection. This still means that you - // sub out for real `_` though. - var _ = { - forEach : function( obj, iterator, context ) { - var i, l, key; - if ( obj === null ) { - return; - } - - if ( nativeForEach && obj.forEach === nativeForEach ) { - obj.forEach( iterator, context ); - } - else if ( obj.length === +obj.length ) { - for ( i = 0, l = obj.length; i < l; i++ ) { - if ( i in obj && iterator.call( context, obj[i], i, obj ) === breaker ) { - return; - } - } - } - else { - for ( key in obj) { - if ( hasOwnProp.call( obj, key ) ) { - if ( iterator.call (context, obj[key], key, obj ) === breaker ) { - return; - } - } - } - } - }, - extend : function( obj ) { - this.forEach( slice.call( arguments, 1 ), function ( source ) { - for ( var prop in source ) { - obj[prop] = source[prop]; - } - }); - return obj; - } - }; - // END Miniature underscore impl - - // Jed is a constructor function - var Jed = function ( options ) { - // Some minimal defaults - this.defaults = { - "locale_data" : { - "messages" : { - "" : { - "domain" : "messages", - "lang" : "en", - "plural_forms" : "nplurals=2; plural=(n != 1);" - } - // There are no default keys, though - } - }, - // The default domain if one is missing - "domain" : "messages" - }; - - // Mix in the sent options with the default options - this.options = _.extend( {}, this.defaults, options ); - this.textdomain( this.options.domain ); - - if ( options.domain && ! this.options.locale_data[ this.options.domain ] ) { - throw new Error('Text domain set to non-existent domain: `' + options.domain + '`'); - } - }; - - // The gettext spec sets this character as the default - // delimiter for context lookups. - // e.g.: context\u0004key - // If your translation company uses something different, - // just change this at any time and it will use that instead. - Jed.context_delimiter = String.fromCharCode( 4 ); - - function getPluralFormFunc ( plural_form_string ) { - return Jed.PF.compile( plural_form_string || "nplurals=2; plural=(n != 1);"); - } - - function Chain( key, i18n ){ - this._key = key; - this._i18n = i18n; - } - - // Create a chainable api for adding args prettily - _.extend( Chain.prototype, { - onDomain : function ( domain ) { - this._domain = domain; - return this; - }, - withContext : function ( context ) { - this._context = context; - return this; - }, - ifPlural : function ( num, pkey ) { - this._val = num; - this._pkey = pkey; - return this; - }, - fetch : function ( sArr ) { - if ( {}.toString.call( sArr ) != '[object Array]' ) { - sArr = [].slice.call(arguments); - } - return ( sArr && sArr.length ? Jed.sprintf : function(x){ return x; } )( - this._i18n.dcnpgettext(this._domain, this._context, this._key, this._pkey, this._val), - sArr - ); - } - }); - - // Add functions to the Jed prototype. - // These will be the functions on the object that's returned - // from creating a `new Jed()` - // These seem redundant, but they gzip pretty well. - _.extend( Jed.prototype, { - // The sexier api start point - translate : function ( key ) { - return new Chain( key, this ); - }, - - textdomain : function ( domain ) { - if ( ! domain ) { - return this._textdomain; - } - this._textdomain = domain; - }, - - gettext : function ( key ) { - return this.dcnpgettext.call( this, undef, undef, key ); - }, - - dgettext : function ( domain, key ) { - return this.dcnpgettext.call( this, domain, undef, key ); - }, - - dcgettext : function ( domain , key /*, category */ ) { - // Ignores the category anyways - return this.dcnpgettext.call( this, domain, undef, key ); - }, - - ngettext : function ( skey, pkey, val ) { - return this.dcnpgettext.call( this, undef, undef, skey, pkey, val ); - }, - - dngettext : function ( domain, skey, pkey, val ) { - return this.dcnpgettext.call( this, domain, undef, skey, pkey, val ); - }, - - dcngettext : function ( domain, skey, pkey, val/*, category */) { - return this.dcnpgettext.call( this, domain, undef, skey, pkey, val ); - }, - - pgettext : function ( context, key ) { - return this.dcnpgettext.call( this, undef, context, key ); - }, - - dpgettext : function ( domain, context, key ) { - return this.dcnpgettext.call( this, domain, context, key ); - }, - - dcpgettext : function ( domain, context, key/*, category */) { - return this.dcnpgettext.call( this, domain, context, key ); - }, - - npgettext : function ( context, skey, pkey, val ) { - return this.dcnpgettext.call( this, undef, context, skey, pkey, val ); - }, - - dnpgettext : function ( domain, context, skey, pkey, val ) { - return this.dcnpgettext.call( this, domain, context, skey, pkey, val ); - }, - - // The most fully qualified gettext function. It has every option. - // Since it has every option, we can use it from every other method. - // This is the bread and butter. - // Technically there should be one more argument in this function for 'Category', - // but since we never use it, we might as well not waste the bytes to define it. - dcnpgettext : function ( domain, context, singular_key, plural_key, val ) { - // Set some defaults - - plural_key = plural_key || singular_key; - - // Use the global domain default if one - // isn't explicitly passed in - domain = domain || this._textdomain; - - // Default the value to the singular case - val = typeof val == 'undefined' ? 1 : val; - - var fallback; - - // Handle special cases - - // No options found - if ( ! this.options ) { - // There's likely something wrong, but we'll return the correct key for english - // We do this by instantiating a brand new Jed instance with the default set - // for everything that could be broken. - fallback = new Jed(); - return fallback.dcnpgettext.call( fallback, undefined, undefined, singular_key, plural_key, val ); - } - - // No translation data provided - if ( ! this.options.locale_data ) { - throw new Error('No locale data provided.'); - } - - if ( ! this.options.locale_data[ domain ] ) { - throw new Error('Domain `' + domain + '` was not found.'); - } - - if ( ! this.options.locale_data[ domain ][ "" ] ) { - throw new Error('No locale meta information provided.'); - } - - // Make sure we have a truthy key. Otherwise we might start looking - // into the empty string key, which is the options for the locale - // data. - if ( ! singular_key ) { - throw new Error('No translation key found.'); - } - - // Handle invalid numbers, but try casting strings for good measure - if ( typeof val != 'number' ) { - val = parseInt( val, 10 ); - - if ( isNaN( val ) ) { - throw new Error('The number that was passed in is not a number.'); - } - } - - var key = context ? context + Jed.context_delimiter + singular_key : singular_key, - locale_data = this.options.locale_data, - dict = locale_data[ domain ], - pluralForms = dict[""].plural_forms || (locale_data.messages || this.defaults.locale_data.messages)[""].plural_forms, - val_idx = getPluralFormFunc(pluralForms)(val) + 1, - val_list, - res; - - // Throw an error if a domain isn't found - if ( ! dict ) { - throw new Error('No domain named `' + domain + '` could be found.'); - } - - val_list = dict[ key ]; - - // If there is no match, then revert back to - // english style singular/plural with the keys passed in. - if ( ! val_list || val_idx >= val_list.length ) { - if (this.options.missing_key_callback) { - this.options.missing_key_callback(key); - } - res = [ null, singular_key, plural_key ]; - return res[ getPluralFormFunc(pluralForms)( val ) + 1 ]; - } - - res = val_list[ val_idx ]; - - // This includes empty strings on purpose - if ( ! res ) { - res = [ null, singular_key, plural_key ]; - return res[ getPluralFormFunc(pluralForms)( val ) + 1 ]; - } - return res; - } - }); - - - // We add in sprintf capabilities for post translation value interolation - // This is not internally used, so you can remove it if you have this - // available somewhere else, or want to use a different system. - - // We _slightly_ modify the normal sprintf behavior to more gracefully handle - // undefined values. - - /** - sprintf() for JavaScript 0.7-beta1 - http://www.diveintojavascript.com/projects/javascript-sprintf - - Copyright (c) Alexandru Marasteanu - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of sprintf() for JavaScript nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - var sprintf = (function() { - function get_type(variable) { - return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase(); - } - function str_repeat(input, multiplier) { - for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */} - return output.join(''); - } - - var str_format = function() { - if (!str_format.cache.hasOwnProperty(arguments[0])) { - str_format.cache[arguments[0]] = str_format.parse(arguments[0]); - } - return str_format.format.call(null, str_format.cache[arguments[0]], arguments); - }; - - str_format.format = function(parse_tree, argv) { - var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length; - for (i = 0; i < tree_length; i++) { - node_type = get_type(parse_tree[i]); - if (node_type === 'string') { - output.push(parse_tree[i]); - } - else if (node_type === 'array') { - match = parse_tree[i]; // convenience purposes only - if (match[2]) { // keyword argument - arg = argv[cursor]; - for (k = 0; k < match[2].length; k++) { - if (!arg.hasOwnProperty(match[2][k])) { - throw(sprintf('[sprintf] property "%s" does not exist', match[2][k])); - } - arg = arg[match[2][k]]; - } - } - else if (match[1]) { // positional argument (explicit) - arg = argv[match[1]]; - } - else { // positional argument (implicit) - arg = argv[cursor++]; - } - - if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) { - throw(sprintf('[sprintf] expecting number but found %s', get_type(arg))); - } - - // Jed EDIT - if ( typeof arg == 'undefined' || arg === null ) { - arg = ''; - } - // Jed EDIT - - switch (match[8]) { - case 'b': arg = arg.toString(2); break; - case 'c': arg = String.fromCharCode(arg); break; - case 'd': arg = parseInt(arg, 10); break; - case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break; - case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break; - case 'o': arg = arg.toString(8); break; - case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break; - case 'u': arg = Math.abs(arg); break; - case 'x': arg = arg.toString(16); break; - case 'X': arg = arg.toString(16).toUpperCase(); break; - } - arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg); - pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' '; - pad_length = match[6] - String(arg).length; - pad = match[6] ? str_repeat(pad_character, pad_length) : ''; - output.push(match[5] ? arg + pad : pad + arg); - } - } - return output.join(''); - }; - - str_format.cache = {}; - - str_format.parse = function(fmt) { - var _fmt = fmt, match = [], parse_tree = [], arg_names = 0; - while (_fmt) { - if ((match = /^[^\x25]+/.exec(_fmt)) !== null) { - parse_tree.push(match[0]); - } - else if ((match = /^\x25{2}/.exec(_fmt)) !== null) { - parse_tree.push('%'); - } - else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) { - if (match[2]) { - arg_names |= 1; - var field_list = [], replacement_field = match[2], field_match = []; - if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) { - field_list.push(field_match[1]); - while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') { - if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) { - field_list.push(field_match[1]); - } - else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) { - field_list.push(field_match[1]); - } - else { - throw('[sprintf] huh?'); - } - } - } - else { - throw('[sprintf] huh?'); - } - match[2] = field_list; - } - else { - arg_names |= 2; - } - if (arg_names === 3) { - throw('[sprintf] mixing positional and named placeholders is not (yet) supported'); - } - parse_tree.push(match); - } - else { - throw('[sprintf] huh?'); - } - _fmt = _fmt.substring(match[0].length); - } - return parse_tree; - }; - - return str_format; - })(); - - var vsprintf = function(fmt, argv) { - argv.unshift(fmt); - return sprintf.apply(null, argv); - }; - - Jed.parse_plural = function ( plural_forms, n ) { - plural_forms = plural_forms.replace(/n/g, n); - return Jed.parse_expression(plural_forms); - }; - - Jed.sprintf = function ( fmt, args ) { - if ( {}.toString.call( args ) == '[object Array]' ) { - return vsprintf( fmt, [].slice.call(args) ); - } - return sprintf.apply(this, [].slice.call(arguments) ); - }; - - Jed.prototype.sprintf = function () { - return Jed.sprintf.apply(this, arguments); - }; - // END sprintf Implementation - - // Start the Plural forms section - // This is a full plural form expression parser. It is used to avoid - // running 'eval' or 'new Function' directly against the plural - // forms. - // - // This can be important if you get translations done through a 3rd - // party vendor. I encourage you to use this instead, however, I - // also will provide a 'precompiler' that you can use at build time - // to output valid/safe function representations of the plural form - // expressions. This means you can build this code out for the most - // part. - Jed.PF = {}; - - Jed.PF.parse = function ( p ) { - var plural_str = Jed.PF.extractPluralExpr( p ); - return Jed.PF.parser.parse.call(Jed.PF.parser, plural_str); - }; - - Jed.PF.compile = function ( p ) { - // Handle trues and falses as 0 and 1 - function imply( val ) { - return (val === true ? 1 : val ? val : 0); - } - - var ast = Jed.PF.parse( p ); - return function ( n ) { - return imply( Jed.PF.interpreter( ast )( n ) ); - }; - }; - - Jed.PF.interpreter = function ( ast ) { - return function ( n ) { - var res; - switch ( ast.type ) { - case 'GROUP': - return Jed.PF.interpreter( ast.expr )( n ); - case 'TERNARY': - if ( Jed.PF.interpreter( ast.expr )( n ) ) { - return Jed.PF.interpreter( ast.truthy )( n ); - } - return Jed.PF.interpreter( ast.falsey )( n ); - case 'OR': - return Jed.PF.interpreter( ast.left )( n ) || Jed.PF.interpreter( ast.right )( n ); - case 'AND': - return Jed.PF.interpreter( ast.left )( n ) && Jed.PF.interpreter( ast.right )( n ); - case 'LT': - return Jed.PF.interpreter( ast.left )( n ) < Jed.PF.interpreter( ast.right )( n ); - case 'GT': - return Jed.PF.interpreter( ast.left )( n ) > Jed.PF.interpreter( ast.right )( n ); - case 'LTE': - return Jed.PF.interpreter( ast.left )( n ) <= Jed.PF.interpreter( ast.right )( n ); - case 'GTE': - return Jed.PF.interpreter( ast.left )( n ) >= Jed.PF.interpreter( ast.right )( n ); - case 'EQ': - return Jed.PF.interpreter( ast.left )( n ) == Jed.PF.interpreter( ast.right )( n ); - case 'NEQ': - return Jed.PF.interpreter( ast.left )( n ) != Jed.PF.interpreter( ast.right )( n ); - case 'MOD': - return Jed.PF.interpreter( ast.left )( n ) % Jed.PF.interpreter( ast.right )( n ); - case 'VAR': - return n; - case 'NUM': - return ast.val; - default: - throw new Error("Invalid Token found."); - } - }; - }; - - Jed.PF.extractPluralExpr = function ( p ) { - // trim first - p = p.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); - - if (! /;\s*$/.test(p)) { - p = p.concat(';'); - } - - var nplurals_re = /nplurals\=(\d+);/, - plural_re = /plural\=(.*);/, - nplurals_matches = p.match( nplurals_re ), - res = {}, - plural_matches; - - // Find the nplurals number - if ( nplurals_matches.length > 1 ) { - res.nplurals = nplurals_matches[1]; - } - else { - throw new Error('nplurals not found in plural_forms string: ' + p ); - } - - // remove that data to get to the formula - p = p.replace( nplurals_re, "" ); - plural_matches = p.match( plural_re ); - - if (!( plural_matches && plural_matches.length > 1 ) ) { - throw new Error('`plural` expression not found: ' + p); - } - return plural_matches[ 1 ]; - }; - - /* Jison generated parser */ - Jed.PF.parser = (function(){ - -var parser = {trace: function trace() { }, -yy: {}, -symbols_: {"error":2,"expressions":3,"e":4,"EOF":5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,"n":19,"NUMBER":20,"$accept":0,"$end":1}, -terminals_: {2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"}, -productions_: [0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]], -performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) { - -var $0 = $$.length - 1; -switch (yystate) { -case 1: return { type : 'GROUP', expr: $$[$0-1] }; -break; -case 2:this.$ = { type: 'TERNARY', expr: $$[$0-4], truthy : $$[$0-2], falsey: $$[$0] }; -break; -case 3:this.$ = { type: "OR", left: $$[$0-2], right: $$[$0] }; -break; -case 4:this.$ = { type: "AND", left: $$[$0-2], right: $$[$0] }; -break; -case 5:this.$ = { type: 'LT', left: $$[$0-2], right: $$[$0] }; -break; -case 6:this.$ = { type: 'LTE', left: $$[$0-2], right: $$[$0] }; -break; -case 7:this.$ = { type: 'GT', left: $$[$0-2], right: $$[$0] }; -break; -case 8:this.$ = { type: 'GTE', left: $$[$0-2], right: $$[$0] }; -break; -case 9:this.$ = { type: 'NEQ', left: $$[$0-2], right: $$[$0] }; -break; -case 10:this.$ = { type: 'EQ', left: $$[$0-2], right: $$[$0] }; -break; -case 11:this.$ = { type: 'MOD', left: $$[$0-2], right: $$[$0] }; -break; -case 12:this.$ = { type: 'GROUP', expr: $$[$0-1] }; -break; -case 13:this.$ = { type: 'VAR' }; -break; -case 14:this.$ = { type: 'NUM', val: Number(yytext) }; -break; -} -}, -table: [{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}], -defaultActions: {6:[2,1]}, -parseError: function parseError(str, hash) { - throw new Error(str); -}, -parse: function parse(input) { - var self = this, - stack = [0], - vstack = [null], // semantic value stack - lstack = [], // location stack - table = this.table, - yytext = '', - yylineno = 0, - yyleng = 0, - recovering = 0, - TERROR = 2, - EOF = 1; - - //this.reductionCount = this.shiftCount = 0; - - this.lexer.setInput(input); - this.lexer.yy = this.yy; - this.yy.lexer = this.lexer; - if (typeof this.lexer.yylloc == 'undefined') - this.lexer.yylloc = {}; - var yyloc = this.lexer.yylloc; - lstack.push(yyloc); - - if (typeof this.yy.parseError === 'function') - this.parseError = this.yy.parseError; - - function popStack (n) { - stack.length = stack.length - 2*n; - vstack.length = vstack.length - n; - lstack.length = lstack.length - n; - } - - function lex() { - var token; - token = self.lexer.lex() || 1; // $end = 1 - // if token isn't its numeric value, convert - if (typeof token !== 'number') { - token = self.symbols_[token] || token; - } - return token; - } - - var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected; - while (true) { - // retreive state number from top of stack - state = stack[stack.length-1]; - - // use default actions if available - if (this.defaultActions[state]) { - action = this.defaultActions[state]; - } else { - if (symbol == null) - symbol = lex(); - // read action for current state and first input - action = table[state] && table[state][symbol]; - } - - // handle parse error - _handle_error: - if (typeof action === 'undefined' || !action.length || !action[0]) { - - if (!recovering) { - // Report error - expected = []; - for (p in table[state]) if (this.terminals_[p] && p > 2) { - expected.push("'"+this.terminals_[p]+"'"); - } - var errStr = ''; - if (this.lexer.showPosition) { - errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'"; - } else { - errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " + - (symbol == 1 /*EOF*/ ? "end of input" : - ("'"+(this.terminals_[symbol] || symbol)+"'")); - } - this.parseError(errStr, - {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected}); - } - - // just recovered from another error - if (recovering == 3) { - if (symbol == EOF) { - throw new Error(errStr || 'Parsing halted.'); - } - - // discard current lookahead and grab another - yyleng = this.lexer.yyleng; - yytext = this.lexer.yytext; - yylineno = this.lexer.yylineno; - yyloc = this.lexer.yylloc; - symbol = lex(); - } - - // try to recover from error - while (1) { - // check for error recovery rule in this state - if ((TERROR.toString()) in table[state]) { - break; - } - if (state == 0) { - throw new Error(errStr || 'Parsing halted.'); - } - popStack(1); - state = stack[stack.length-1]; - } - - preErrorSymbol = symbol; // save the lookahead token - symbol = TERROR; // insert generic error symbol as new lookahead - state = stack[stack.length-1]; - action = table[state] && table[state][TERROR]; - recovering = 3; // allow 3 real symbols to be shifted before reporting a new error - } - - // this shouldn't happen, unless resolve defaults are off - if (action[0] instanceof Array && action.length > 1) { - throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol); - } - - switch (action[0]) { - - case 1: // shift - //this.shiftCount++; - - stack.push(symbol); - vstack.push(this.lexer.yytext); - lstack.push(this.lexer.yylloc); - stack.push(action[1]); // push state - symbol = null; - if (!preErrorSymbol) { // normal execution/no error - yyleng = this.lexer.yyleng; - yytext = this.lexer.yytext; - yylineno = this.lexer.yylineno; - yyloc = this.lexer.yylloc; - if (recovering > 0) - recovering--; - } else { // error just occurred, resume old lookahead f/ before error - symbol = preErrorSymbol; - preErrorSymbol = null; - } - break; - - case 2: // reduce - //this.reductionCount++; - - len = this.productions_[action[1]][1]; - - // perform semantic action - yyval.$ = vstack[vstack.length-len]; // default to $$ = $1 - // default location, uses first token for firsts, last for lasts - yyval._$ = { - first_line: lstack[lstack.length-(len||1)].first_line, - last_line: lstack[lstack.length-1].last_line, - first_column: lstack[lstack.length-(len||1)].first_column, - last_column: lstack[lstack.length-1].last_column - }; - r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); - - if (typeof r !== 'undefined') { - return r; - } - - // pop off stack - if (len) { - stack = stack.slice(0,-1*len*2); - vstack = vstack.slice(0, -1*len); - lstack = lstack.slice(0, -1*len); - } - - stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce) - vstack.push(yyval.$); - lstack.push(yyval._$); - // goto new state = table[STATE][NONTERMINAL] - newState = table[stack[stack.length-2]][stack[stack.length-1]]; - stack.push(newState); - break; - - case 3: // accept - return true; - } - - } - - return true; -}};/* Jison generated lexer */ -var lexer = (function(){ - -var lexer = ({EOF:1, -parseError:function parseError(str, hash) { - if (this.yy.parseError) { - this.yy.parseError(str, hash); - } else { - throw new Error(str); - } - }, -setInput:function (input) { - this._input = input; - this._more = this._less = this.done = false; - this.yylineno = this.yyleng = 0; - this.yytext = this.matched = this.match = ''; - this.conditionStack = ['INITIAL']; - this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0}; - return this; - }, -input:function () { - var ch = this._input[0]; - this.yytext+=ch; - this.yyleng++; - this.match+=ch; - this.matched+=ch; - var lines = ch.match(/\n/); - if (lines) this.yylineno++; - this._input = this._input.slice(1); - return ch; - }, -unput:function (ch) { - this._input = ch + this._input; - return this; - }, -more:function () { - this._more = true; - return this; - }, -pastInput:function () { - var past = this.matched.substr(0, this.matched.length - this.match.length); - return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, ""); - }, -upcomingInput:function () { - var next = this.match; - if (next.length < 20) { - next += this._input.substr(0, 20-next.length); - } - return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, ""); - }, -showPosition:function () { - var pre = this.pastInput(); - var c = new Array(pre.length + 1).join("-"); - return pre + this.upcomingInput() + "\n" + c+"^"; - }, -next:function () { - if (this.done) { - return this.EOF; - } - if (!this._input) this.done = true; - - var token, - match, - col, - lines; - if (!this._more) { - this.yytext = ''; - this.match = ''; - } - var rules = this._currentRules(); - for (var i=0;i < rules.length; i++) { - match = this._input.match(this.rules[rules[i]]); - if (match) { - lines = match[0].match(/\n.*/g); - if (lines) this.yylineno += lines.length; - this.yylloc = {first_line: this.yylloc.last_line, - last_line: this.yylineno+1, - first_column: this.yylloc.last_column, - last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length} - this.yytext += match[0]; - this.match += match[0]; - this.matches = match; - this.yyleng = this.yytext.length; - this._more = false; - this._input = this._input.slice(match[0].length); - this.matched += match[0]; - token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]); - if (token) return token; - else return; - } - } - if (this._input === "") { - return this.EOF; - } else { - this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(), - {text: "", token: null, line: this.yylineno}); - } - }, -lex:function lex() { - var r = this.next(); - if (typeof r !== 'undefined') { - return r; - } else { - return this.lex(); - } - }, -begin:function begin(condition) { - this.conditionStack.push(condition); - }, -popState:function popState() { - return this.conditionStack.pop(); - }, -_currentRules:function _currentRules() { - return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules; - }, -topState:function () { - return this.conditionStack[this.conditionStack.length-2]; - }, -pushState:function begin(condition) { - this.begin(condition); - }}); -lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) { - -var YYSTATE=YY_START; -switch($avoiding_name_collisions) { -case 0:/* skip whitespace */ -break; -case 1:return 20 -break; -case 2:return 19 -break; -case 3:return 8 -break; -case 4:return 9 -break; -case 5:return 6 -break; -case 6:return 7 -break; -case 7:return 11 -break; -case 8:return 13 -break; -case 9:return 10 -break; -case 10:return 12 -break; -case 11:return 14 -break; -case 12:return 15 -break; -case 13:return 16 -break; -case 14:return 17 -break; -case 15:return 18 -break; -case 16:return 5 -break; -case 17:return 'INVALID' -break; -} -}; -lexer.rules = [/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./]; -lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"inclusive":true}};return lexer;})() -parser.lexer = lexer; -return parser; -})(); -// End parser - - // Handle node, amd, and global systems - if (typeof exports !== 'undefined') { - if (typeof module !== 'undefined' && module.exports) { - exports = module.exports = Jed; - } - exports.Jed = Jed; - } - else { +(function (root, factory) { if (typeof define === 'function' && define.amd) { - define('jed', [],function() { - return Jed; - }); + // AMD. Register as an anonymous module. + define('strophe-sha1',[],function () { + return factory(); + }); + } else { + // Browser globals + root.SHA1 = factory(); } - // Leak a global regardless of module system - root['Jed'] = Jed; - } - -})(this); +}(this, function () { /* - * This file can be used if no locale support is required. + * Calculate the SHA-1 of an array of big-endian words, and a bit length */ +function core_sha1(x, len) +{ + /* append padding */ + x[len >> 5] |= 0x80 << (24 - len % 32); + x[((len + 64 >> 9) << 4) + 15] = len; + + var w = new Array(80); + var a = 1732584193; + var b = -271733879; + var c = -1732584194; + var d = 271733878; + var e = -1009589776; + + var i, j, t, olda, oldb, oldc, oldd, olde; + for (i = 0; i < x.length; i += 16) + { + olda = a; + oldb = b; + oldc = c; + oldd = d; + olde = e; + + for (j = 0; j < 80; j++) + { + if (j < 16) { w[j] = x[i + j]; } + else { w[j] = rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1); } + t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), + safe_add(safe_add(e, w[j]), sha1_kt(j))); + e = d; + d = c; + c = rol(b, 30); + b = a; + a = t; + } + + a = safe_add(a, olda); + b = safe_add(b, oldb); + c = safe_add(c, oldc); + d = safe_add(d, oldd); + e = safe_add(e, olde); + } + return [a, b, c, d, e]; +} + +/* + * Perform the appropriate triplet combination function for the current + * iteration + */ +function sha1_ft(t, b, c, d) +{ + if (t < 20) { return (b & c) | ((~b) & d); } + if (t < 40) { return b ^ c ^ d; } + if (t < 60) { return (b & c) | (b & d) | (c & d); } + return b ^ c ^ d; +} + +/* + * Determine the appropriate additive constant for the current iteration + */ +function sha1_kt(t) +{ + return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : + (t < 60) ? -1894007588 : -899497514; +} + +/* + * Calculate the HMAC-SHA1 of a key and some data + */ +function core_hmac_sha1(key, data) +{ + var bkey = str2binb(key); + if (bkey.length > 16) { bkey = core_sha1(bkey, key.length * 8); } + + var ipad = new Array(16), opad = new Array(16); + for (var i = 0; i < 16; i++) + { + ipad[i] = bkey[i] ^ 0x36363636; + opad[i] = bkey[i] ^ 0x5C5C5C5C; + } + + var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * 8); + return core_sha1(opad.concat(hash), 512 + 160); +} + +/* + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ +function safe_add(x, y) +{ + var lsw = (x & 0xFFFF) + (y & 0xFFFF); + var msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return (msw << 16) | (lsw & 0xFFFF); +} + +/* + * Bitwise rotate a 32-bit number to the left. + */ +function rol(num, cnt) +{ + return (num << cnt) | (num >>> (32 - cnt)); +} + +/* + * Convert an 8-bit or 16-bit string to an array of big-endian words + * In 8-bit function, characters >255 have their hi-byte silently ignored. + */ +function str2binb(str) +{ + var bin = []; + var mask = 255; + for (var i = 0; i < str.length * 8; i += 8) + { + bin[i>>5] |= (str.charCodeAt(i / 8) & mask) << (24 - i%32); + } + return bin; +} + +/* + * Convert an array of big-endian words to a string + */ +function binb2str(bin) +{ + var str = ""; + var mask = 255; + for (var i = 0; i < bin.length * 32; i += 8) + { + str += String.fromCharCode((bin[i>>5] >>> (24 - i%32)) & mask); + } + return str; +} + +/* + * Convert an array of big-endian words to a base-64 string + */ +function binb2b64(binarray) +{ + var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var str = ""; + var triplet, j; + for (var i = 0; i < binarray.length * 4; i += 3) + { + triplet = (((binarray[i >> 2] >> 8 * (3 - i %4)) & 0xFF) << 16) | + (((binarray[i+1 >> 2] >> 8 * (3 - (i+1)%4)) & 0xFF) << 8 ) | + ((binarray[i+2 >> 2] >> 8 * (3 - (i+2)%4)) & 0xFF); + for (j = 0; j < 4; j++) + { + if (i * 8 + j * 6 > binarray.length * 32) { str += "="; } + else { str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); } + } + } + return str; +} + +/* + * These are the functions you'll usually want to call + * They take string arguments and return either hex or base-64 encoded strings + */ +return { + b64_hmac_sha1: function (key, data){ return binb2b64(core_hmac_sha1(key, data)); }, + b64_sha1: function (s) { return binb2b64(core_sha1(str2binb(s),s.length * 8)); }, + binb2str: binb2str, + core_hmac_sha1: core_hmac_sha1, + str_hmac_sha1: function (key, data){ return binb2str(core_hmac_sha1(key, data)); }, + str_sha1: function (s) { return binb2str(core_sha1(str2binb(s),s.length * 8)); }, +}; +})); + +// This code was written by Tyler Akins and has been placed in the +// public domain. It would be nice if you left this header intact. +// Base64 code from Tyler Akins -- http://rumkin.com + (function (root, factory) { - define("locales", ['jed'], function (Jed) { - var translations = { - "domain": "converse", - "locale_data": { - "converse": { - "": { - "domain": "converse", - "lang": "en", - "plural_forms": "nplurals=2; plural=(n != 1);" + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe-base64',[],function () { + return factory(); + }); + } else { + // Browser globals + root.Base64 = factory(); + } +}(this, function () { + var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + + var obj = { + /** + * Encodes a string in base64 + * @param {String} input The string to encode in base64. + */ + encode: function (input) { + var output = ""; + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0; + + do { + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); + + enc1 = chr1 >> 2; + enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); + enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); + enc4 = chr3 & 63; + + if (isNaN(chr2)) { + enc2 = ((chr1 & 3) << 4); + enc3 = enc4 = 64; + } else if (isNaN(chr3)) { + enc4 = 64; + } + + output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) + + keyStr.charAt(enc3) + keyStr.charAt(enc4); + } while (i < input.length); + + return output; + }, + + /** + * Decodes a base64 string. + * @param {String} input The string to decode. + */ + decode: function (input) { + var output = ""; + var chr1, chr2, chr3; + var enc1, enc2, enc3, enc4; + var i = 0; + + // remove all characters that are not A-Z, a-z, 0-9, +, /, or = + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); + + do { + enc1 = keyStr.indexOf(input.charAt(i++)); + enc2 = keyStr.indexOf(input.charAt(i++)); + enc3 = keyStr.indexOf(input.charAt(i++)); + enc4 = keyStr.indexOf(input.charAt(i++)); + + chr1 = (enc1 << 2) | (enc2 >> 4); + chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); + chr3 = ((enc3 & 3) << 6) | enc4; + + output = output + String.fromCharCode(chr1); + + if (enc3 != 64) { + output = output + String.fromCharCode(chr2); + } + if (enc4 != 64) { + output = output + String.fromCharCode(chr3); + } + } while (i < input.length); + + return output; + } + }; + return obj; +})); + +/* + * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message + * Digest Algorithm, as defined in RFC 1321. + * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * Distributed under the BSD License + * See http://pajhome.org.uk/crypt/md5 for more info. + */ + +/* + * Everything that isn't used by Strophe has been stripped here! + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe-md5',[],function () { + return factory(); + }); + } else { + // Browser globals + root.MD5 = factory(); + } +}(this, function (b) { + /* + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ + var safe_add = function (x, y) { + var lsw = (x & 0xFFFF) + (y & 0xFFFF); + var msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return (msw << 16) | (lsw & 0xFFFF); + }; + + /* + * Bitwise rotate a 32-bit number to the left. + */ + var bit_rol = function (num, cnt) { + return (num << cnt) | (num >>> (32 - cnt)); + }; + + /* + * Convert a string to an array of little-endian words + */ + var str2binl = function (str) { + var bin = []; + for(var i = 0; i < str.length * 8; i += 8) + { + bin[i>>5] |= (str.charCodeAt(i / 8) & 255) << (i%32); + } + return bin; + }; + + /* + * Convert an array of little-endian words to a string + */ + var binl2str = function (bin) { + var str = ""; + for(var i = 0; i < bin.length * 32; i += 8) + { + str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & 255); + } + return str; + }; + + /* + * Convert an array of little-endian words to a hex string. + */ + var binl2hex = function (binarray) { + var hex_tab = "0123456789abcdef"; + var str = ""; + for(var i = 0; i < binarray.length * 4; i++) + { + str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + + hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); + } + return str; + }; + + /* + * These functions implement the four basic operations the algorithm uses. + */ + var md5_cmn = function (q, a, b, x, s, t) { + return safe_add(bit_rol(safe_add(safe_add(a, q),safe_add(x, t)), s),b); + }; + + var md5_ff = function (a, b, c, d, x, s, t) { + return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); + }; + + var md5_gg = function (a, b, c, d, x, s, t) { + return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); + }; + + var md5_hh = function (a, b, c, d, x, s, t) { + return md5_cmn(b ^ c ^ d, a, b, x, s, t); + }; + + var md5_ii = function (a, b, c, d, x, s, t) { + return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); + }; + + /* + * Calculate the MD5 of an array of little-endian words, and a bit length + */ + var core_md5 = function (x, len) { + /* append padding */ + x[len >> 5] |= 0x80 << ((len) % 32); + x[(((len + 64) >>> 9) << 4) + 14] = len; + + var a = 1732584193; + var b = -271733879; + var c = -1732584194; + var d = 271733878; + + var olda, oldb, oldc, oldd; + for (var i = 0; i < x.length; i += 16) + { + olda = a; + oldb = b; + oldc = c; + oldd = d; + + a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); + d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); + c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); + b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); + a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); + d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); + c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); + b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); + a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); + d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); + c = md5_ff(c, d, a, b, x[i+10], 17, -42063); + b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); + a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); + d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); + c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); + b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); + + a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); + d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); + c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); + b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); + a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); + d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); + c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); + b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); + a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); + d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); + c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); + b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); + a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); + d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); + c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); + b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); + + a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); + d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); + c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); + b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); + a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); + d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); + c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); + b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); + a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); + d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); + c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); + b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); + a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); + d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); + c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); + b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); + + a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); + d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); + c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); + b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); + a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); + d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); + c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); + b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); + a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); + d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); + c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); + b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); + a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); + d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); + c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); + b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); + + a = safe_add(a, olda); + b = safe_add(b, oldb); + c = safe_add(c, oldc); + d = safe_add(d, oldd); + } + return [a, b, c, d]; + }; + + var obj = { + /* + * These are the functions you'll usually want to call. + * They take string arguments and return either hex or base-64 encoded + * strings. + */ + hexdigest: function (s) { + return binl2hex(core_md5(str2binl(s), s.length * 8)); + }, + + hash: function (s) { + return binl2str(core_md5(str2binl(s), s.length * 8)); + } + }; + return obj; +})); + +/* + This program is distributed under the terms of the MIT license. + Please see the LICENSE file for details. + + Copyright 2006-2008, OGG, LLC +*/ + +/* jshint undef: true, unused: true:, noarg: true, latedef: true */ + +/** PrivateFunction: Function.prototype.bind + * Bind a function to an instance. + * + * This Function object extension method creates a bound method similar + * to those in Python. This means that the 'this' object will point + * to the instance you want. See + * MDC's bind() documentation and + * Bound Functions and Function Imports in JavaScript + * for a complete explanation. + * + * This extension already exists in some browsers (namely, Firefox 3), but + * we provide it to support those that don't. + * + * Parameters: + * (Object) obj - The object that will become 'this' in the bound function. + * (Object) argN - An option argument that will be prepended to the + * arguments given for the function call + * + * Returns: + * The bound function. + */ +if (!Function.prototype.bind) { + Function.prototype.bind = function (obj /*, arg1, arg2, ... */) + { + var func = this; + var _slice = Array.prototype.slice; + var _concat = Array.prototype.concat; + var _args = _slice.call(arguments, 1); + + return function () { + return func.apply(obj ? obj : this, + _concat.call(_args, + _slice.call(arguments, 0))); + }; + }; +} + +/** PrivateFunction: Array.isArray + * This is a polyfill for the ES5 Array.isArray method. + */ +if (!Array.isArray) { + Array.isArray = function(arg) { + return Object.prototype.toString.call(arg) === '[object Array]'; + }; +} + +/** PrivateFunction: Array.prototype.indexOf + * Return the index of an object in an array. + * + * This function is not supplied by some JavaScript implementations, so + * we provide it if it is missing. This code is from: + * http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:indexOf + * + * Parameters: + * (Object) elt - The object to look for. + * (Integer) from - The index from which to start looking. (optional). + * + * Returns: + * The index of elt in the array or -1 if not found. + */ +if (!Array.prototype.indexOf) + { + Array.prototype.indexOf = function(elt /*, from*/) + { + var len = this.length; + + var from = Number(arguments[1]) || 0; + from = (from < 0) ? Math.ceil(from) : Math.floor(from); + if (from < 0) { + from += len; + } + + for (; from < len; from++) { + if (from in this && this[from] === elt) { + return from; + } + } + + return -1; + }; + } +; +define("strophe-polyfill", function(){}); + +/* + This program is distributed under the terms of the MIT license. + Please see the LICENSE file for details. + + Copyright 2006-2008, OGG, LLC +*/ + +/* jshint undef: true, unused: true:, noarg: true, latedef: true */ +/*global define, document, window, setTimeout, clearTimeout, console, ActiveXObject, DOMParser */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe-core',[ + 'strophe-sha1', + 'strophe-base64', + 'strophe-md5', + "strophe-polyfill" + ], function () { + return factory.apply(this, arguments); + }); + } else { + // Browser globals + var o = factory(root.SHA1, root.Base64, root.MD5); + window.Strophe = o.Strophe; + window.$build = o.$build; + window.$iq = o.$iq; + window.$msg = o.$msg; + window.$pres = o.$pres; + window.SHA1 = o.SHA1; + window.Base64 = o.Base64; + window.MD5 = o.MD5; + window.b64_hmac_sha1 = o.SHA1.b64_hmac_sha1; + window.b64_sha1 = o.SHA1.b64_sha1; + window.str_hmac_sha1 = o.SHA1.str_hmac_sha1; + window.str_sha1 = o.SHA1.str_sha1; + } +}(this, function (SHA1, Base64, MD5) { + +var Strophe; + +/** Function: $build + * Create a Strophe.Builder. + * This is an alias for 'new Strophe.Builder(name, attrs)'. + * + * Parameters: + * (String) name - The root element name. + * (Object) attrs - The attributes for the root element in object notation. + * + * Returns: + * A new Strophe.Builder object. + */ +function $build(name, attrs) { return new Strophe.Builder(name, attrs); } + +/** Function: $msg + * Create a Strophe.Builder with a element as the root. + * + * Parmaeters: + * (Object) attrs - The element attributes in object notation. + * + * Returns: + * A new Strophe.Builder object. + */ +function $msg(attrs) { return new Strophe.Builder("message", attrs); } + +/** Function: $iq + * Create a Strophe.Builder with an element as the root. + * + * Parameters: + * (Object) attrs - The element attributes in object notation. + * + * Returns: + * A new Strophe.Builder object. + */ +function $iq(attrs) { return new Strophe.Builder("iq", attrs); } + +/** Function: $pres + * Create a Strophe.Builder with a element as the root. + * + * Parameters: + * (Object) attrs - The element attributes in object notation. + * + * Returns: + * A new Strophe.Builder object. + */ +function $pres(attrs) { return new Strophe.Builder("presence", attrs); } + +/** Class: Strophe + * An object container for all Strophe library functions. + * + * This class is just a container for all the objects and constants + * used in the library. It is not meant to be instantiated, but to + * provide a namespace for library objects, constants, and functions. + */ +Strophe = { + /** Constant: VERSION + * The version of the Strophe library. Unreleased builds will have + * a version of head-HASH where HASH is a partial revision. + */ + VERSION: "@VERSION@", + + /** Constants: XMPP Namespace Constants + * Common namespace constants from the XMPP RFCs and XEPs. + * + * NS.HTTPBIND - HTTP BIND namespace from XEP 124. + * NS.BOSH - BOSH namespace from XEP 206. + * NS.CLIENT - Main XMPP client namespace. + * NS.AUTH - Legacy authentication namespace. + * NS.ROSTER - Roster operations namespace. + * NS.PROFILE - Profile namespace. + * NS.DISCO_INFO - Service discovery info namespace from XEP 30. + * NS.DISCO_ITEMS - Service discovery items namespace from XEP 30. + * NS.MUC - Multi-User Chat namespace from XEP 45. + * NS.SASL - XMPP SASL namespace from RFC 3920. + * NS.STREAM - XMPP Streams namespace from RFC 3920. + * NS.BIND - XMPP Binding namespace from RFC 3920. + * NS.SESSION - XMPP Session namespace from RFC 3920. + * NS.XHTML_IM - XHTML-IM namespace from XEP 71. + * NS.XHTML - XHTML body namespace from XEP 71. + */ + NS: { + HTTPBIND: "http://jabber.org/protocol/httpbind", + BOSH: "urn:xmpp:xbosh", + CLIENT: "jabber:client", + AUTH: "jabber:iq:auth", + ROSTER: "jabber:iq:roster", + PROFILE: "jabber:iq:profile", + DISCO_INFO: "http://jabber.org/protocol/disco#info", + DISCO_ITEMS: "http://jabber.org/protocol/disco#items", + MUC: "http://jabber.org/protocol/muc", + SASL: "urn:ietf:params:xml:ns:xmpp-sasl", + STREAM: "http://etherx.jabber.org/streams", + FRAMING: "urn:ietf:params:xml:ns:xmpp-framing", + BIND: "urn:ietf:params:xml:ns:xmpp-bind", + SESSION: "urn:ietf:params:xml:ns:xmpp-session", + VERSION: "jabber:iq:version", + STANZAS: "urn:ietf:params:xml:ns:xmpp-stanzas", + XHTML_IM: "http://jabber.org/protocol/xhtml-im", + XHTML: "http://www.w3.org/1999/xhtml" + }, + + + /** Constants: XHTML_IM Namespace + * contains allowed tags, tag attributes, and css properties. + * Used in the createHtml function to filter incoming html into the allowed XHTML-IM subset. + * See http://xmpp.org/extensions/xep-0071.html#profile-summary for the list of recommended + * allowed tags and their attributes. + */ + XHTML: { + tags: ['a','blockquote','br','cite','em','img','li','ol','p','span','strong','ul','body'], + attributes: { + 'a': ['href'], + 'blockquote': ['style'], + 'br': [], + 'cite': ['style'], + 'em': [], + 'img': ['src', 'alt', 'style', 'height', 'width'], + 'li': ['style'], + 'ol': ['style'], + 'p': ['style'], + 'span': ['style'], + 'strong': [], + 'ul': ['style'], + 'body': [] + }, + css: ['background-color','color','font-family','font-size','font-style','font-weight','margin-left','margin-right','text-align','text-decoration'], + validTag: function(tag) + { + for(var i = 0; i < Strophe.XHTML.tags.length; i++) { + if(tag == Strophe.XHTML.tags[i]) { + return true; + } + } + return false; + }, + validAttribute: function(tag, attribute) + { + if(typeof Strophe.XHTML.attributes[tag] !== 'undefined' && Strophe.XHTML.attributes[tag].length > 0) { + for(var i = 0; i < Strophe.XHTML.attributes[tag].length; i++) { + if(attribute == Strophe.XHTML.attributes[tag][i]) { + return true; + } + } + } + return false; + }, + validCSS: function(style) + { + for(var i = 0; i < Strophe.XHTML.css.length; i++) { + if(style == Strophe.XHTML.css[i]) { + return true; + } + } + return false; + } + }, + + /** Constants: Connection Status Constants + * Connection status constants for use by the connection handler + * callback. + * + * Status.ERROR - An error has occurred + * Status.CONNECTING - The connection is currently being made + * Status.CONNFAIL - The connection attempt failed + * Status.AUTHENTICATING - The connection is authenticating + * Status.AUTHFAIL - The authentication attempt failed + * Status.CONNECTED - The connection has succeeded + * Status.DISCONNECTED - The connection has been terminated + * Status.DISCONNECTING - The connection is currently being terminated + * Status.ATTACHED - The connection has been attached + */ + Status: { + ERROR: 0, + CONNECTING: 1, + CONNFAIL: 2, + AUTHENTICATING: 3, + AUTHFAIL: 4, + CONNECTED: 5, + DISCONNECTED: 6, + DISCONNECTING: 7, + ATTACHED: 8, + REDIRECT: 9 + }, + + /** Constants: Log Level Constants + * Logging level indicators. + * + * LogLevel.DEBUG - Debug output + * LogLevel.INFO - Informational output + * LogLevel.WARN - Warnings + * LogLevel.ERROR - Errors + * LogLevel.FATAL - Fatal errors + */ + LogLevel: { + DEBUG: 0, + INFO: 1, + WARN: 2, + ERROR: 3, + FATAL: 4 + }, + + /** PrivateConstants: DOM Element Type Constants + * DOM element types. + * + * ElementType.NORMAL - Normal element. + * ElementType.TEXT - Text data element. + * ElementType.FRAGMENT - XHTML fragment element. + */ + ElementType: { + NORMAL: 1, + TEXT: 3, + CDATA: 4, + FRAGMENT: 11 + }, + + /** PrivateConstants: Timeout Values + * Timeout values for error states. These values are in seconds. + * These should not be changed unless you know exactly what you are + * doing. + * + * TIMEOUT - Timeout multiplier. A waiting request will be considered + * failed after Math.floor(TIMEOUT * wait) seconds have elapsed. + * This defaults to 1.1, and with default wait, 66 seconds. + * SECONDARY_TIMEOUT - Secondary timeout multiplier. In cases where + * Strophe can detect early failure, it will consider the request + * failed if it doesn't return after + * Math.floor(SECONDARY_TIMEOUT * wait) seconds have elapsed. + * This defaults to 0.1, and with default wait, 6 seconds. + */ + TIMEOUT: 1.1, + SECONDARY_TIMEOUT: 0.1, + + /** Function: addNamespace + * This function is used to extend the current namespaces in + * Strophe.NS. It takes a key and a value with the key being the + * name of the new namespace, with its actual value. + * For example: + * Strophe.addNamespace('PUBSUB', "http://jabber.org/protocol/pubsub"); + * + * Parameters: + * (String) name - The name under which the namespace will be + * referenced under Strophe.NS + * (String) value - The actual namespace. + */ + addNamespace: function (name, value) + { + Strophe.NS[name] = value; + }, + + /** Function: forEachChild + * Map a function over some or all child elements of a given element. + * + * This is a small convenience function for mapping a function over + * some or all of the children of an element. If elemName is null, all + * children will be passed to the function, otherwise only children + * whose tag names match elemName will be passed. + * + * Parameters: + * (XMLElement) elem - The element to operate on. + * (String) elemName - The child element tag name filter. + * (Function) func - The function to apply to each child. This + * function should take a single argument, a DOM element. + */ + forEachChild: function (elem, elemName, func) + { + var i, childNode; + + for (i = 0; i < elem.childNodes.length; i++) { + childNode = elem.childNodes[i]; + if (childNode.nodeType == Strophe.ElementType.NORMAL && + (!elemName || this.isTagEqual(childNode, elemName))) { + func(childNode); + } + } + }, + + /** Function: isTagEqual + * Compare an element's tag name with a string. + * + * This function is case sensitive. + * + * Parameters: + * (XMLElement) el - A DOM element. + * (String) name - The element name. + * + * Returns: + * true if the element's tag name matches _el_, and false + * otherwise. + */ + isTagEqual: function (el, name) + { + return el.tagName == name; + }, + + /** PrivateVariable: _xmlGenerator + * _Private_ variable that caches a DOM document to + * generate elements. + */ + _xmlGenerator: null, + + /** PrivateFunction: _makeGenerator + * _Private_ function that creates a dummy XML DOM document to serve as + * an element and text node generator. + */ + _makeGenerator: function () { + var doc; + + // IE9 does implement createDocument(); however, using it will cause the browser to leak memory on page unload. + // Here, we test for presence of createDocument() plus IE's proprietary documentMode attribute, which would be + // less than 10 in the case of IE9 and below. + if (document.implementation.createDocument === undefined || + document.implementation.createDocument && document.documentMode && document.documentMode < 10) { + doc = this._getIEXmlDom(); + doc.appendChild(doc.createElement('strophe')); + } else { + doc = document.implementation + .createDocument('jabber:client', 'strophe', null); + } + + return doc; + }, + + /** Function: xmlGenerator + * Get the DOM document to generate elements. + * + * Returns: + * The currently used DOM document. + */ + xmlGenerator: function () { + if (!Strophe._xmlGenerator) { + Strophe._xmlGenerator = Strophe._makeGenerator(); + } + return Strophe._xmlGenerator; + }, + + /** PrivateFunction: _getIEXmlDom + * Gets IE xml doc object + * + * Returns: + * A Microsoft XML DOM Object + * See Also: + * http://msdn.microsoft.com/en-us/library/ms757837%28VS.85%29.aspx + */ + _getIEXmlDom : function() { + var doc = null; + var docStrings = [ + "Msxml2.DOMDocument.6.0", + "Msxml2.DOMDocument.5.0", + "Msxml2.DOMDocument.4.0", + "MSXML2.DOMDocument.3.0", + "MSXML2.DOMDocument", + "MSXML.DOMDocument", + "Microsoft.XMLDOM" + ]; + + for (var d = 0; d < docStrings.length; d++) { + if (doc === null) { + try { + doc = new ActiveXObject(docStrings[d]); + } catch (e) { + doc = null; + } + } else { + break; + } + } + + return doc; + }, + + /** Function: xmlElement + * Create an XML DOM element. + * + * This function creates an XML DOM element correctly across all + * implementations. Note that these are not HTML DOM elements, which + * aren't appropriate for XMPP stanzas. + * + * Parameters: + * (String) name - The name for the element. + * (Array|Object) attrs - An optional array or object containing + * key/value pairs to use as element attributes. The object should + * be in the format {'key': 'value'} or {key: 'value'}. The array + * should have the format [['key1', 'value1'], ['key2', 'value2']]. + * (String) text - The text child data for the element. + * + * Returns: + * A new XML DOM element. + */ + xmlElement: function (name) + { + if (!name) { return null; } + + var node = Strophe.xmlGenerator().createElement(name); + + // FIXME: this should throw errors if args are the wrong type or + // there are more than two optional args + var a, i, k; + for (a = 1; a < arguments.length; a++) { + if (!arguments[a]) { continue; } + if (typeof(arguments[a]) == "string" || + typeof(arguments[a]) == "number") { + node.appendChild(Strophe.xmlTextNode(arguments[a])); + } else if (typeof(arguments[a]) == "object" && + typeof(arguments[a].sort) == "function") { + for (i = 0; i < arguments[a].length; i++) { + if (typeof(arguments[a][i]) == "object" && + typeof(arguments[a][i].sort) == "function") { + node.setAttribute(arguments[a][i][0], + arguments[a][i][1]); + } + } + } else if (typeof(arguments[a]) == "object") { + for (k in arguments[a]) { + if (arguments[a].hasOwnProperty(k)) { + node.setAttribute(k, arguments[a][k]); } } } + } + + return node; + }, + + /* Function: xmlescape + * Excapes invalid xml characters. + * + * Parameters: + * (String) text - text to escape. + * + * Returns: + * Escaped text. + */ + xmlescape: function(text) + { + text = text.replace(/\&/g, "&"); + text = text.replace(//g, ">"); + text = text.replace(/'/g, "'"); + text = text.replace(/"/g, """); + return text; + }, + + /* Function: xmlunescape + * Unexcapes invalid xml characters. + * + * Parameters: + * (String) text - text to unescape. + * + * Returns: + * Unescaped text. + */ + xmlunescape: function(text) + { + text = text.replace(/\&/g, "&"); + text = text.replace(/</g, "<"); + text = text.replace(/>/g, ">"); + text = text.replace(/'/g, "'"); + text = text.replace(/"/g, "\""); + return text; + }, + + /** Function: xmlTextNode + * Creates an XML DOM text node. + * + * Provides a cross implementation version of document.createTextNode. + * + * Parameters: + * (String) text - The content of the text node. + * + * Returns: + * A new XML DOM text node. + */ + xmlTextNode: function (text) + { + return Strophe.xmlGenerator().createTextNode(text); + }, + + /** Function: xmlHtmlNode + * Creates an XML DOM html node. + * + * Parameters: + * (String) html - The content of the html node. + * + * Returns: + * A new XML DOM text node. + */ + xmlHtmlNode: function (html) + { + var node; + //ensure text is escaped + if (window.DOMParser) { + var parser = new DOMParser(); + node = parser.parseFromString(html, "text/xml"); + } else { + node = new ActiveXObject("Microsoft.XMLDOM"); + node.async="false"; + node.loadXML(html); + } + return node; + }, + + /** Function: getText + * Get the concatenation of all text children of an element. + * + * Parameters: + * (XMLElement) elem - A DOM element. + * + * Returns: + * A String with the concatenated text of all text element children. + */ + getText: function (elem) + { + if (!elem) { return null; } + + var str = ""; + if (elem.childNodes.length === 0 && elem.nodeType == + Strophe.ElementType.TEXT) { + str += elem.nodeValue; + } + + for (var i = 0; i < elem.childNodes.length; i++) { + if (elem.childNodes[i].nodeType == Strophe.ElementType.TEXT) { + str += elem.childNodes[i].nodeValue; + } + } + + return Strophe.xmlescape(str); + }, + + /** Function: copyElement + * Copy an XML DOM element. + * + * This function copies a DOM element and all its descendants and returns + * the new copy. + * + * Parameters: + * (XMLElement) elem - A DOM element. + * + * Returns: + * A new, copied DOM element tree. + */ + copyElement: function (elem) + { + var i, el; + if (elem.nodeType == Strophe.ElementType.NORMAL) { + el = Strophe.xmlElement(elem.tagName); + + for (i = 0; i < elem.attributes.length; i++) { + el.setAttribute(elem.attributes[i].nodeName, + elem.attributes[i].value); + } + + for (i = 0; i < elem.childNodes.length; i++) { + el.appendChild(Strophe.copyElement(elem.childNodes[i])); + } + } else if (elem.nodeType == Strophe.ElementType.TEXT) { + el = Strophe.xmlGenerator().createTextNode(elem.nodeValue); + } + + return el; + }, + + + /** Function: createHtml + * Copy an HTML DOM element into an XML DOM. + * + * This function copies a DOM element and all its descendants and returns + * the new copy. + * + * Parameters: + * (HTMLElement) elem - A DOM element. + * + * Returns: + * A new, copied DOM element tree. + */ + createHtml: function (elem) + { + var i, el, j, tag, attribute, value, css, cssAttrs, attr, cssName, cssValue; + if (elem.nodeType == Strophe.ElementType.NORMAL) { + tag = elem.nodeName; + if(Strophe.XHTML.validTag(tag)) { + try { + el = Strophe.xmlElement(tag); + for(i = 0; i < Strophe.XHTML.attributes[tag].length; i++) { + attribute = Strophe.XHTML.attributes[tag][i]; + value = elem.getAttribute(attribute); + if(typeof value == 'undefined' || value === null || value === '' || value === false || value === 0) { + continue; + } + if(attribute == 'style' && typeof value == 'object') { + if(typeof value.cssText != 'undefined') { + value = value.cssText; // we're dealing with IE, need to get CSS out + } + } + // filter out invalid css styles + if(attribute == 'style') { + css = []; + cssAttrs = value.split(';'); + for(j = 0; j < cssAttrs.length; j++) { + attr = cssAttrs[j].split(':'); + cssName = attr[0].replace(/^\s*/, "").replace(/\s*$/, "").toLowerCase(); + if(Strophe.XHTML.validCSS(cssName)) { + cssValue = attr[1].replace(/^\s*/, "").replace(/\s*$/, ""); + css.push(cssName + ': ' + cssValue); + } + } + if(css.length > 0) { + value = css.join('; '); + el.setAttribute(attribute, value); + } + } else { + el.setAttribute(attribute, value); + } + } + + for (i = 0; i < elem.childNodes.length; i++) { + el.appendChild(Strophe.createHtml(elem.childNodes[i])); + } + } catch(e) { // invalid elements + el = Strophe.xmlTextNode(''); + } + } else { + el = Strophe.xmlGenerator().createDocumentFragment(); + for (i = 0; i < elem.childNodes.length; i++) { + el.appendChild(Strophe.createHtml(elem.childNodes[i])); + } + } + } else if (elem.nodeType == Strophe.ElementType.FRAGMENT) { + el = Strophe.xmlGenerator().createDocumentFragment(); + for (i = 0; i < elem.childNodes.length; i++) { + el.appendChild(Strophe.createHtml(elem.childNodes[i])); + } + } else if (elem.nodeType == Strophe.ElementType.TEXT) { + el = Strophe.xmlTextNode(elem.nodeValue); + } + + return el; + }, + + /** Function: escapeNode + * Escape the node part (also called local part) of a JID. + * + * Parameters: + * (String) node - A node (or local part). + * + * Returns: + * An escaped node (or local part). + */ + escapeNode: function (node) + { + if (typeof node !== "string") { return node; } + return node.replace(/^\s+|\s+$/g, '') + .replace(/\\/g, "\\5c") + .replace(/ /g, "\\20") + .replace(/\"/g, "\\22") + .replace(/\&/g, "\\26") + .replace(/\'/g, "\\27") + .replace(/\//g, "\\2f") + .replace(/:/g, "\\3a") + .replace(//g, "\\3e") + .replace(/@/g, "\\40"); + }, + + /** Function: unescapeNode + * Unescape a node part (also called local part) of a JID. + * + * Parameters: + * (String) node - A node (or local part). + * + * Returns: + * An unescaped node (or local part). + */ + unescapeNode: function (node) + { + if (typeof node !== "string") { return node; } + return node.replace(/\\20/g, " ") + .replace(/\\22/g, '"') + .replace(/\\26/g, "&") + .replace(/\\27/g, "'") + .replace(/\\2f/g, "/") + .replace(/\\3a/g, ":") + .replace(/\\3c/g, "<") + .replace(/\\3e/g, ">") + .replace(/\\40/g, "@") + .replace(/\\5c/g, "\\"); + }, + + /** Function: getNodeFromJid + * Get the node portion of a JID String. + * + * Parameters: + * (String) jid - A JID. + * + * Returns: + * A String containing the node. + */ + getNodeFromJid: function (jid) + { + if (jid.indexOf("@") < 0) { return null; } + return jid.split("@")[0]; + }, + + /** Function: getDomainFromJid + * Get the domain portion of a JID String. + * + * Parameters: + * (String) jid - A JID. + * + * Returns: + * A String containing the domain. + */ + getDomainFromJid: function (jid) + { + var bare = Strophe.getBareJidFromJid(jid); + if (bare.indexOf("@") < 0) { + return bare; + } else { + var parts = bare.split("@"); + parts.splice(0, 1); + return parts.join('@'); + } + }, + + /** Function: getResourceFromJid + * Get the resource portion of a JID String. + * + * Parameters: + * (String) jid - A JID. + * + * Returns: + * A String containing the resource. + */ + getResourceFromJid: function (jid) + { + var s = jid.split("/"); + if (s.length < 2) { return null; } + s.splice(0, 1); + return s.join('/'); + }, + + /** Function: getBareJidFromJid + * Get the bare JID from a JID String. + * + * Parameters: + * (String) jid - A JID. + * + * Returns: + * A String containing the bare JID. + */ + getBareJidFromJid: function (jid) + { + return jid ? jid.split("/")[0] : null; + }, + + /** Function: log + * User overrideable logging function. + * + * This function is called whenever the Strophe library calls any + * of the logging functions. The default implementation of this + * function does nothing. If client code wishes to handle the logging + * messages, it should override this with + * > Strophe.log = function (level, msg) { + * > (user code here) + * > }; + * + * Please note that data sent and received over the wire is logged + * via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput(). + * + * The different levels and their meanings are + * + * DEBUG - Messages useful for debugging purposes. + * INFO - Informational messages. This is mostly information like + * 'disconnect was called' or 'SASL auth succeeded'. + * WARN - Warnings about potential problems. This is mostly used + * to report transient connection errors like request timeouts. + * ERROR - Some error occurred. + * FATAL - A non-recoverable fatal error occurred. + * + * Parameters: + * (Integer) level - The log level of the log message. This will + * be one of the values in Strophe.LogLevel. + * (String) msg - The log message. + */ + /* jshint ignore:start */ + log: function (level, msg) + { + return; + }, + /* jshint ignore:end */ + + /** Function: debug + * Log a message at the Strophe.LogLevel.DEBUG level. + * + * Parameters: + * (String) msg - The log message. + */ + debug: function(msg) + { + this.log(this.LogLevel.DEBUG, msg); + }, + + /** Function: info + * Log a message at the Strophe.LogLevel.INFO level. + * + * Parameters: + * (String) msg - The log message. + */ + info: function (msg) + { + this.log(this.LogLevel.INFO, msg); + }, + + /** Function: warn + * Log a message at the Strophe.LogLevel.WARN level. + * + * Parameters: + * (String) msg - The log message. + */ + warn: function (msg) + { + this.log(this.LogLevel.WARN, msg); + }, + + /** Function: error + * Log a message at the Strophe.LogLevel.ERROR level. + * + * Parameters: + * (String) msg - The log message. + */ + error: function (msg) + { + this.log(this.LogLevel.ERROR, msg); + }, + + /** Function: fatal + * Log a message at the Strophe.LogLevel.FATAL level. + * + * Parameters: + * (String) msg - The log message. + */ + fatal: function (msg) + { + this.log(this.LogLevel.FATAL, msg); + }, + + /** Function: serialize + * Render a DOM element and all descendants to a String. + * + * Parameters: + * (XMLElement) elem - A DOM element. + * + * Returns: + * The serialized element tree as a String. + */ + serialize: function (elem) + { + var result; + + if (!elem) { return null; } + + if (typeof(elem.tree) === "function") { + elem = elem.tree(); + } + + var nodeName = elem.nodeName; + var i, child; + + if (elem.getAttribute("_realname")) { + nodeName = elem.getAttribute("_realname"); + } + + result = "<" + nodeName; + for (i = 0; i < elem.attributes.length; i++) { + if(elem.attributes[i].nodeName != "_realname") { + result += " " + elem.attributes[i].nodeName + + "='" + elem.attributes[i].value + .replace(/&/g, "&") + .replace(/\'/g, "'") + .replace(/>/g, ">") + .replace(/ 0) { + result += ">"; + for (i = 0; i < elem.childNodes.length; i++) { + child = elem.childNodes[i]; + switch( child.nodeType ){ + case Strophe.ElementType.NORMAL: + // normal element, so recurse + result += Strophe.serialize(child); + break; + case Strophe.ElementType.TEXT: + // text element to escape values + result += Strophe.xmlescape(child.nodeValue); + break; + case Strophe.ElementType.CDATA: + // cdata section so don't escape values + result += ""; + } + } + result += ""; + } else { + result += "/>"; + } + + return result; + }, + + /** PrivateVariable: _requestId + * _Private_ variable that keeps track of the request ids for + * connections. + */ + _requestId: 0, + + /** PrivateVariable: Strophe.connectionPlugins + * _Private_ variable Used to store plugin names that need + * initialization on Strophe.Connection construction. + */ + _connectionPlugins: {}, + + /** Function: addConnectionPlugin + * Extends the Strophe.Connection object with the given plugin. + * + * Parameters: + * (String) name - The name of the extension. + * (Object) ptype - The plugin's prototype. + */ + addConnectionPlugin: function (name, ptype) + { + Strophe._connectionPlugins[name] = ptype; + } +}; + +/** Class: Strophe.Builder + * XML DOM builder. + * + * This object provides an interface similar to JQuery but for building + * DOM element easily and rapidly. All the functions except for toString() + * and tree() return the object, so calls can be chained. Here's an + * example using the $iq() builder helper. + * > $iq({to: 'you', from: 'me', type: 'get', id: '1'}) + * > .c('query', {xmlns: 'strophe:example'}) + * > .c('example') + * > .toString() + * The above generates this XML fragment + * > + * > + * > + * > + * > + * The corresponding DOM manipulations to get a similar fragment would be + * a lot more tedious and probably involve several helper variables. + * + * Since adding children makes new operations operate on the child, up() + * is provided to traverse up the tree. To add two children, do + * > builder.c('child1', ...).up().c('child2', ...) + * The next operation on the Builder will be relative to the second child. + */ + +/** Constructor: Strophe.Builder + * Create a Strophe.Builder object. + * + * The attributes should be passed in object notation. For example + * > var b = new Builder('message', {to: 'you', from: 'me'}); + * or + * > var b = new Builder('messsage', {'xml:lang': 'en'}); + * + * Parameters: + * (String) name - The name of the root element. + * (Object) attrs - The attributes for the root element in object notation. + * + * Returns: + * A new Strophe.Builder. + */ +Strophe.Builder = function (name, attrs) +{ + // Set correct namespace for jabber:client elements + if (name == "presence" || name == "message" || name == "iq") { + if (attrs && !attrs.xmlns) { + attrs.xmlns = Strophe.NS.CLIENT; + } else if (!attrs) { + attrs = {xmlns: Strophe.NS.CLIENT}; + } + } + + // Holds the tree being built. + this.nodeTree = Strophe.xmlElement(name, attrs); + + // Points to the current operation node. + this.node = this.nodeTree; +}; + +Strophe.Builder.prototype = { + /** Function: tree + * Return the DOM tree. + * + * This function returns the current DOM tree as an element object. This + * is suitable for passing to functions like Strophe.Connection.send(). + * + * Returns: + * The DOM tree as a element object. + */ + tree: function () + { + return this.nodeTree; + }, + + /** Function: toString + * Serialize the DOM tree to a String. + * + * This function returns a string serialization of the current DOM + * tree. It is often used internally to pass data to a + * Strophe.Request object. + * + * Returns: + * The serialized DOM tree in a String. + */ + toString: function () + { + return Strophe.serialize(this.nodeTree); + }, + + /** Function: up + * Make the current parent element the new current element. + * + * This function is often used after c() to traverse back up the tree. + * For example, to add two children to the same element + * > builder.c('child1', {}).up().c('child2', {}); + * + * Returns: + * The Stophe.Builder object. + */ + up: function () + { + this.node = this.node.parentNode; + return this; + }, + + /** Function: attrs + * Add or modify attributes of the current element. + * + * The attributes should be passed in object notation. This function + * does not move the current element pointer. + * + * Parameters: + * (Object) moreattrs - The attributes to add/modify in object notation. + * + * Returns: + * The Strophe.Builder object. + */ + attrs: function (moreattrs) + { + for (var k in moreattrs) { + if (moreattrs.hasOwnProperty(k)) { + this.node.setAttribute(k, moreattrs[k]); + } + } + return this; + }, + + /** Function: c + * Add a child to the current element and make it the new current + * element. + * + * This function moves the current element pointer to the child, + * unless text is provided. If you need to add another child, it + * is necessary to use up() to go back to the parent in the tree. + * + * Parameters: + * (String) name - The name of the child. + * (Object) attrs - The attributes of the child in object notation. + * (String) text - The text to add to the child. + * + * Returns: + * The Strophe.Builder object. + */ + c: function (name, attrs, text) + { + var child = Strophe.xmlElement(name, attrs, text); + this.node.appendChild(child); + if (!text) { + this.node = child; + } + return this; + }, + + /** Function: cnode + * Add a child to the current element and make it the new current + * element. + * + * This function is the same as c() except that instead of using a + * name and an attributes object to create the child it uses an + * existing DOM element object. + * + * Parameters: + * (XMLElement) elem - A DOM element. + * + * Returns: + * The Strophe.Builder object. + */ + cnode: function (elem) + { + var impNode; + var xmlGen = Strophe.xmlGenerator(); + try { + impNode = (xmlGen.importNode !== undefined); + } + catch (e) { + impNode = false; + } + var newElem = impNode ? + xmlGen.importNode(elem, true) : + Strophe.copyElement(elem); + this.node.appendChild(newElem); + this.node = newElem; + return this; + }, + + /** Function: t + * Add a child text element. + * + * This *does not* make the child the new current element since there + * are no children of text elements. + * + * Parameters: + * (String) text - The text data to append to the current element. + * + * Returns: + * The Strophe.Builder object. + */ + t: function (text) + { + var child = Strophe.xmlTextNode(text); + this.node.appendChild(child); + return this; + }, + + /** Function: h + * Replace current element contents with the HTML passed in. + * + * This *does not* make the child the new current element + * + * Parameters: + * (String) html - The html to insert as contents of current element. + * + * Returns: + * The Strophe.Builder object. + */ + h: function (html) + { + var fragment = document.createElement('body'); + + // force the browser to try and fix any invalid HTML tags + fragment.innerHTML = html; + + // copy cleaned html into an xml dom + var xhtml = Strophe.createHtml(fragment); + + while(xhtml.childNodes.length > 0) { + this.node.appendChild(xhtml.childNodes[0]); + } + return this; + } +}; + +/** PrivateClass: Strophe.Handler + * _Private_ helper class for managing stanza handlers. + * + * A Strophe.Handler encapsulates a user provided callback function to be + * executed when matching stanzas are received by the connection. + * Handlers can be either one-off or persistant depending on their + * return value. Returning true will cause a Handler to remain active, and + * returning false will remove the Handler. + * + * Users will not use Strophe.Handler objects directly, but instead they + * will use Strophe.Connection.addHandler() and + * Strophe.Connection.deleteHandler(). + */ + +/** PrivateConstructor: Strophe.Handler + * Create and initialize a new Strophe.Handler. + * + * Parameters: + * (Function) handler - A function to be executed when the handler is run. + * (String) ns - The namespace to match. + * (String) name - The element name to match. + * (String) type - The element type to match. + * (String) id - The element id attribute to match. + * (String) from - The element from attribute to match. + * (Object) options - Handler options + * + * Returns: + * A new Strophe.Handler object. + */ +Strophe.Handler = function (handler, ns, name, type, id, from, options) +{ + this.handler = handler; + this.ns = ns; + this.name = name; + this.type = type; + this.id = id; + this.options = options || {matchBare: false}; + + // default matchBare to false if undefined + if (!this.options.matchBare) { + this.options.matchBare = false; + } + + if (this.options.matchBare) { + this.from = from ? Strophe.getBareJidFromJid(from) : null; + } else { + this.from = from; + } + + // whether the handler is a user handler or a system handler + this.user = true; +}; + +Strophe.Handler.prototype = { + /** PrivateFunction: isMatch + * Tests if a stanza matches the Strophe.Handler. + * + * Parameters: + * (XMLElement) elem - The XML element to test. + * + * Returns: + * true if the stanza matches and false otherwise. + */ + isMatch: function (elem) + { + var nsMatch; + var from = null; + + if (this.options.matchBare) { + from = Strophe.getBareJidFromJid(elem.getAttribute('from')); + } else { + from = elem.getAttribute('from'); + } + + nsMatch = false; + if (!this.ns) { + nsMatch = true; + } else { + var that = this; + Strophe.forEachChild(elem, null, function (elem) { + if (elem.getAttribute("xmlns") == that.ns) { + nsMatch = true; + } + }); + + nsMatch = nsMatch || elem.getAttribute("xmlns") == this.ns; + } + + var elem_type = elem.getAttribute("type"); + if (nsMatch && + (!this.name || Strophe.isTagEqual(elem, this.name)) && + (!this.type || (Array.isArray(this.type) ? this.type.indexOf(elem_type) != -1 : elem_type == this.type)) && + (!this.id || elem.getAttribute("id") == this.id) && + (!this.from || from == this.from)) { + return true; + } + + return false; + }, + + /** PrivateFunction: run + * Run the callback on a matching stanza. + * + * Parameters: + * (XMLElement) elem - The DOM element that triggered the + * Strophe.Handler. + * + * Returns: + * A boolean indicating if the handler should remain active. + */ + run: function (elem) + { + var result = null; + try { + result = this.handler(elem); + } catch (e) { + if (e.sourceURL) { + Strophe.fatal("error: " + this.handler + + " " + e.sourceURL + ":" + + e.line + " - " + e.name + ": " + e.message); + } else if (e.fileName) { + if (typeof(console) != "undefined") { + console.trace(); + console.error(this.handler, " - error - ", e, e.message); + } + Strophe.fatal("error: " + this.handler + " " + + e.fileName + ":" + e.lineNumber + " - " + + e.name + ": " + e.message); + } else { + Strophe.fatal("error: " + e.message + "\n" + e.stack); + } + + throw e; + } + + return result; + }, + + /** PrivateFunction: toString + * Get a String representation of the Strophe.Handler object. + * + * Returns: + * A String. + */ + toString: function () + { + return "{Handler: " + this.handler + "(" + this.name + "," + + this.id + "," + this.ns + ")}"; + } +}; + +/** PrivateClass: Strophe.TimedHandler + * _Private_ helper class for managing timed handlers. + * + * A Strophe.TimedHandler encapsulates a user provided callback that + * should be called after a certain period of time or at regular + * intervals. The return value of the callback determines whether the + * Strophe.TimedHandler will continue to fire. + * + * Users will not use Strophe.TimedHandler objects directly, but instead + * they will use Strophe.Connection.addTimedHandler() and + * Strophe.Connection.deleteTimedHandler(). + */ + +/** PrivateConstructor: Strophe.TimedHandler + * Create and initialize a new Strophe.TimedHandler object. + * + * Parameters: + * (Integer) period - The number of milliseconds to wait before the + * handler is called. + * (Function) handler - The callback to run when the handler fires. This + * function should take no arguments. + * + * Returns: + * A new Strophe.TimedHandler object. + */ +Strophe.TimedHandler = function (period, handler) +{ + this.period = period; + this.handler = handler; + + this.lastCalled = new Date().getTime(); + this.user = true; +}; + +Strophe.TimedHandler.prototype = { + /** PrivateFunction: run + * Run the callback for the Strophe.TimedHandler. + * + * Returns: + * true if the Strophe.TimedHandler should be called again, and false + * otherwise. + */ + run: function () + { + this.lastCalled = new Date().getTime(); + return this.handler(); + }, + + /** PrivateFunction: reset + * Reset the last called time for the Strophe.TimedHandler. + */ + reset: function () + { + this.lastCalled = new Date().getTime(); + }, + + /** PrivateFunction: toString + * Get a string representation of the Strophe.TimedHandler object. + * + * Returns: + * The string representation. + */ + toString: function () + { + return "{TimedHandler: " + this.handler + "(" + this.period +")}"; + } +}; + +/** Class: Strophe.Connection + * XMPP Connection manager. + * + * This class is the main part of Strophe. It manages a BOSH connection + * to an XMPP server and dispatches events to the user callbacks as + * data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, SASL SCRAM-SHA1 + * and legacy authentication. + * + * After creating a Strophe.Connection object, the user will typically + * call connect() with a user supplied callback to handle connection level + * events like authentication failure, disconnection, or connection + * complete. + * + * The user will also have several event handlers defined by using + * addHandler() and addTimedHandler(). These will allow the user code to + * respond to interesting stanzas or do something periodically with the + * connection. These handlers will be active once authentication is + * finished. + * + * To send data to the connection, use send(). + */ + +/** Constructor: Strophe.Connection + * Create and initialize a Strophe.Connection object. + * + * The transport-protocol for this connection will be chosen automatically + * based on the given service parameter. URLs starting with "ws://" or + * "wss://" will use WebSockets, URLs starting with "http://", "https://" + * or without a protocol will use BOSH. + * + * To make Strophe connect to the current host you can leave out the protocol + * and host part and just pass the path, e.g. + * + * > var conn = new Strophe.Connection("/http-bind/"); + * + * WebSocket options: + * + * If you want to connect to the current host with a WebSocket connection you + * can tell Strophe to use WebSockets through a "protocol" attribute in the + * optional options parameter. Valid values are "ws" for WebSocket and "wss" + * for Secure WebSocket. + * So to connect to "wss://CURRENT_HOSTNAME/xmpp-websocket" you would call + * + * > var conn = new Strophe.Connection("/xmpp-websocket/", {protocol: "wss"}); + * + * Note that relative URLs _NOT_ starting with a "/" will also include the path + * of the current site. + * + * Also because downgrading security is not permitted by browsers, when using + * relative URLs both BOSH and WebSocket connections will use their secure + * variants if the current connection to the site is also secure (https). + * + * BOSH options: + * + * by adding "sync" to the options, you can control if requests will + * be made synchronously or not. The default behaviour is asynchronous. + * If you want to make requests synchronous, make "sync" evaluate to true: + * > var conn = new Strophe.Connection("/http-bind/", {sync: true}); + * You can also toggle this on an already established connection: + * > conn.options.sync = true; + * + * + * Parameters: + * (String) service - The BOSH or WebSocket service URL. + * (Object) options - A hash of configuration options + * + * Returns: + * A new Strophe.Connection object. + */ +Strophe.Connection = function (service, options) +{ + // The service URL + this.service = service; + + // Configuration options + this.options = options || {}; + var proto = this.options.protocol || ""; + + // Select protocal based on service or options + if (service.indexOf("ws:") === 0 || service.indexOf("wss:") === 0 || + proto.indexOf("ws") === 0) { + this._proto = new Strophe.Websocket(this); + } else { + this._proto = new Strophe.Bosh(this); + } + /* The connected JID. */ + this.jid = ""; + /* the JIDs domain */ + this.domain = null; + /* stream:features */ + this.features = null; + + // SASL + this._sasl_data = {}; + this.do_session = false; + this.do_bind = false; + + // handler lists + this.timedHandlers = []; + this.handlers = []; + this.removeTimeds = []; + this.removeHandlers = []; + this.addTimeds = []; + this.addHandlers = []; + + this._authentication = {}; + this._idleTimeout = null; + this._disconnectTimeout = null; + + this.do_authentication = true; + this.authenticated = false; + this.disconnecting = false; + this.connected = false; + + this.paused = false; + + this._data = []; + this._uniqueId = 0; + + this._sasl_success_handler = null; + this._sasl_failure_handler = null; + this._sasl_challenge_handler = null; + + // Max retries before disconnecting + this.maxRetries = 5; + + // setup onIdle callback every 1/10th of a second + this._idleTimeout = setTimeout(this._onIdle.bind(this), 100); + + // initialize plugins + for (var k in Strophe._connectionPlugins) { + if (Strophe._connectionPlugins.hasOwnProperty(k)) { + var ptype = Strophe._connectionPlugins[k]; + // jslint complaints about the below line, but this is fine + var F = function () {}; // jshint ignore:line + F.prototype = ptype; + this[k] = new F(); + this[k].init(this); + } + } +}; + +Strophe.Connection.prototype = { + /** Function: reset + * Reset the connection. + * + * This function should be called after a connection is disconnected + * before that connection is reused. + */ + reset: function () + { + this._proto._reset(); + + // SASL + this.do_session = false; + this.do_bind = false; + + // handler lists + this.timedHandlers = []; + this.handlers = []; + this.removeTimeds = []; + this.removeHandlers = []; + this.addTimeds = []; + this.addHandlers = []; + this._authentication = {}; + + this.authenticated = false; + this.disconnecting = false; + this.connected = false; + + this._data = []; + this._requests = []; + this._uniqueId = 0; + }, + + /** Function: pause + * Pause the request manager. + * + * This will prevent Strophe from sending any more requests to the + * server. This is very useful for temporarily pausing + * BOSH-Connections while a lot of send() calls are happening quickly. + * This causes Strophe to send the data in a single request, saving + * many request trips. + */ + pause: function () + { + this.paused = true; + }, + + /** Function: resume + * Resume the request manager. + * + * This resumes after pause() has been called. + */ + resume: function () + { + this.paused = false; + }, + + /** Function: getUniqueId + * Generate a unique ID for use in elements. + * + * All stanzas are required to have unique id attributes. This + * function makes creating these easy. Each connection instance has + * a counter which starts from zero, and the value of this counter + * plus a colon followed by the suffix becomes the unique id. If no + * suffix is supplied, the counter is used as the unique id. + * + * Suffixes are used to make debugging easier when reading the stream + * data, and their use is recommended. The counter resets to 0 for + * every new connection for the same reason. For connections to the + * same server that authenticate the same way, all the ids should be + * the same, which makes it easy to see changes. This is useful for + * automated testing as well. + * + * Parameters: + * (String) suffix - A optional suffix to append to the id. + * + * Returns: + * A unique string to be used for the id attribute. + */ + getUniqueId: function (suffix) + { + if (typeof(suffix) == "string" || typeof(suffix) == "number") { + return ++this._uniqueId + ":" + suffix; + } else { + return ++this._uniqueId + ""; + } + }, + + /** Function: connect + * Starts the connection process. + * + * As the connection process proceeds, the user supplied callback will + * be triggered multiple times with status updates. The callback + * should take two arguments - the status code and the error condition. + * + * The status code will be one of the values in the Strophe.Status + * constants. The error condition will be one of the conditions + * defined in RFC 3920 or the condition 'strophe-parsererror'. + * + * The Parameters _wait_, _hold_ and _route_ are optional and only relevant + * for BOSH connections. Please see XEP 124 for a more detailed explanation + * of the optional parameters. + * + * Parameters: + * (String) jid - The user's JID. This may be a bare JID, + * or a full JID. If a node is not supplied, SASL ANONYMOUS + * authentication will be attempted. + * (String) pass - The user's password. + * (Function) callback - The connect callback function. + * (Integer) wait - The optional HTTPBIND wait value. This is the + * time the server will wait before returning an empty result for + * a request. The default setting of 60 seconds is recommended. + * (Integer) hold - The optional HTTPBIND hold value. This is the + * number of connections the server will hold at one time. This + * should almost always be set to 1 (the default). + * (String) route - The optional route value. + */ + connect: function (jid, pass, callback, wait, hold, route) + { + this.jid = jid; + /** Variable: authzid + * Authorization identity. + */ + this.authzid = Strophe.getBareJidFromJid(this.jid); + /** Variable: authcid + * Authentication identity (User name). + */ + this.authcid = Strophe.getNodeFromJid(this.jid); + /** Variable: pass + * Authentication identity (User password). + */ + this.pass = pass; + /** Variable: servtype + * Digest MD5 compatibility. + */ + this.servtype = "xmpp"; + this.connect_callback = callback; + this.disconnecting = false; + this.connected = false; + this.authenticated = false; + + // parse jid for domain + this.domain = Strophe.getDomainFromJid(this.jid); + + this._changeConnectStatus(Strophe.Status.CONNECTING, null); + + this._proto._connect(wait, hold, route); + }, + + /** Function: attach + * Attach to an already created and authenticated BOSH session. + * + * This function is provided to allow Strophe to attach to BOSH + * sessions which have been created externally, perhaps by a Web + * application. This is often used to support auto-login type features + * without putting user credentials into the page. + * + * Parameters: + * (String) jid - The full JID that is bound by the session. + * (String) sid - The SID of the BOSH session. + * (String) rid - The current RID of the BOSH session. This RID + * will be used by the next request. + * (Function) callback The connect callback function. + * (Integer) wait - The optional HTTPBIND wait value. This is the + * time the server will wait before returning an empty result for + * a request. The default setting of 60 seconds is recommended. + * Other settings will require tweaks to the Strophe.TIMEOUT value. + * (Integer) hold - The optional HTTPBIND hold value. This is the + * number of connections the server will hold at one time. This + * should almost always be set to 1 (the default). + * (Integer) wind - The optional HTTBIND window value. This is the + * allowed range of request ids that are valid. The default is 5. + */ + attach: function (jid, sid, rid, callback, wait, hold, wind) + { + this._proto._attach(jid, sid, rid, callback, wait, hold, wind); + }, + + /** Function: xmlInput + * User overrideable function that receives XML data coming into the + * connection. + * + * The default function does nothing. User code can override this with + * > Strophe.Connection.xmlInput = function (elem) { + * > (user code) + * > }; + * + * Due to limitations of current Browsers' XML-Parsers the opening and closing + * tag for WebSocket-Connoctions will be passed as selfclosing here. + * + * BOSH-Connections will have all stanzas wrapped in a tag. See + * if you want to strip this tag. + * + * Parameters: + * (XMLElement) elem - The XML data received by the connection. + */ + /* jshint unused:false */ + xmlInput: function (elem) + { + return; + }, + /* jshint unused:true */ + + /** Function: xmlOutput + * User overrideable function that receives XML data sent to the + * connection. + * + * The default function does nothing. User code can override this with + * > Strophe.Connection.xmlOutput = function (elem) { + * > (user code) + * > }; + * + * Due to limitations of current Browsers' XML-Parsers the opening and closing + * tag for WebSocket-Connoctions will be passed as selfclosing here. + * + * BOSH-Connections will have all stanzas wrapped in a tag. See + * if you want to strip this tag. + * + * Parameters: + * (XMLElement) elem - The XMLdata sent by the connection. + */ + /* jshint unused:false */ + xmlOutput: function (elem) + { + return; + }, + /* jshint unused:true */ + + /** Function: rawInput + * User overrideable function that receives raw data coming into the + * connection. + * + * The default function does nothing. User code can override this with + * > Strophe.Connection.rawInput = function (data) { + * > (user code) + * > }; + * + * Parameters: + * (String) data - The data received by the connection. + */ + /* jshint unused:false */ + rawInput: function (data) + { + return; + }, + /* jshint unused:true */ + + /** Function: rawOutput + * User overrideable function that receives raw data sent to the + * connection. + * + * The default function does nothing. User code can override this with + * > Strophe.Connection.rawOutput = function (data) { + * > (user code) + * > }; + * + * Parameters: + * (String) data - The data sent by the connection. + */ + /* jshint unused:false */ + rawOutput: function (data) + { + return; + }, + /* jshint unused:true */ + + /** Function: send + * Send a stanza. + * + * This function is called to push data onto the send queue to + * go out over the wire. Whenever a request is sent to the BOSH + * server, all pending data is sent and the queue is flushed. + * + * Parameters: + * (XMLElement | + * [XMLElement] | + * Strophe.Builder) elem - The stanza to send. + */ + send: function (elem) + { + if (elem === null) { return ; } + if (typeof(elem.sort) === "function") { + for (var i = 0; i < elem.length; i++) { + this._queueData(elem[i]); + } + } else if (typeof(elem.tree) === "function") { + this._queueData(elem.tree()); + } else { + this._queueData(elem); + } + + this._proto._send(); + }, + + /** Function: flush + * Immediately send any pending outgoing data. + * + * Normally send() queues outgoing data until the next idle period + * (100ms), which optimizes network use in the common cases when + * several send()s are called in succession. flush() can be used to + * immediately send all pending data. + */ + flush: function () + { + // cancel the pending idle period and run the idle function + // immediately + clearTimeout(this._idleTimeout); + this._onIdle(); + }, + + /** Function: sendIQ + * Helper function to send IQ stanzas. + * + * Parameters: + * (XMLElement) elem - The stanza to send. + * (Function) callback - The callback function for a successful request. + * (Function) errback - The callback function for a failed or timed + * out request. On timeout, the stanza will be null. + * (Integer) timeout - The time specified in milliseconds for a + * timeout to occur. + * + * Returns: + * The id used to send the IQ. + */ + sendIQ: function(elem, callback, errback, timeout) { + var timeoutHandler = null; + var that = this; + + if (typeof(elem.tree) === "function") { + elem = elem.tree(); + } + var id = elem.getAttribute('id'); + + // inject id if not found + if (!id) { + id = this.getUniqueId("sendIQ"); + elem.setAttribute("id", id); + } + + var expectedFrom = elem.getAttribute("to"); + var fulljid = this.jid; + + var handler = this.addHandler(function (stanza) { + // remove timeout handler if there is one + if (timeoutHandler) { + that.deleteTimedHandler(timeoutHandler); + } + + var acceptable = false; + var from = stanza.getAttribute("from"); + if (from === expectedFrom || + (expectedFrom === null && + (from === Strophe.getBareJidFromJid(fulljid) || + from === Strophe.getDomainFromJid(fulljid) || + from === fulljid))) { + acceptable = true; + } + + if (!acceptable) { + throw { + name: "StropheError", + message: "Got answer to IQ from wrong jid:" + from + + "\nExpected jid: " + expectedFrom + }; + } + + var iqtype = stanza.getAttribute('type'); + if (iqtype == 'result') { + if (callback) { + callback(stanza); + } + } else if (iqtype == 'error') { + if (errback) { + errback(stanza); + } + } else { + throw { + name: "StropheError", + message: "Got bad IQ type of " + iqtype + }; + } + }, null, 'iq', ['error', 'result'], id); + + // if timeout specified, setup timeout handler. + if (timeout) { + timeoutHandler = this.addTimedHandler(timeout, function () { + // get rid of normal handler + that.deleteHandler(handler); + // call errback on timeout with null stanza + if (errback) { + errback(null); + } + return false; + }); + } + this.send(elem); + return id; + }, + + /** PrivateFunction: _queueData + * Queue outgoing data for later sending. Also ensures that the data + * is a DOMElement. + */ + _queueData: function (element) { + if (element === null || + !element.tagName || + !element.childNodes) { + throw { + name: "StropheError", + message: "Cannot queue non-DOMElement." + }; + } + + this._data.push(element); + }, + + /** PrivateFunction: _sendRestart + * Send an xmpp:restart stanza. + */ + _sendRestart: function () + { + this._data.push("restart"); + + this._proto._sendRestart(); + + this._idleTimeout = setTimeout(this._onIdle.bind(this), 100); + }, + + /** Function: addTimedHandler + * Add a timed handler to the connection. + * + * This function adds a timed handler. The provided handler will + * be called every period milliseconds until it returns false, + * the connection is terminated, or the handler is removed. Handlers + * that wish to continue being invoked should return true. + * + * Because of method binding it is necessary to save the result of + * this function if you wish to remove a handler with + * deleteTimedHandler(). + * + * Note that user handlers are not active until authentication is + * successful. + * + * Parameters: + * (Integer) period - The period of the handler. + * (Function) handler - The callback function. + * + * Returns: + * A reference to the handler that can be used to remove it. + */ + addTimedHandler: function (period, handler) + { + var thand = new Strophe.TimedHandler(period, handler); + this.addTimeds.push(thand); + return thand; + }, + + /** Function: deleteTimedHandler + * Delete a timed handler for a connection. + * + * This function removes a timed handler from the connection. The + * handRef parameter is *not* the function passed to addTimedHandler(), + * but is the reference returned from addTimedHandler(). + * + * Parameters: + * (Strophe.TimedHandler) handRef - The handler reference. + */ + deleteTimedHandler: function (handRef) + { + // this must be done in the Idle loop so that we don't change + // the handlers during iteration + this.removeTimeds.push(handRef); + }, + + /** Function: addHandler + * Add a stanza handler for the connection. + * + * This function adds a stanza handler to the connection. The + * handler callback will be called for any stanza that matches + * the parameters. Note that if multiple parameters are supplied, + * they must all match for the handler to be invoked. + * + * The handler will receive the stanza that triggered it as its argument. + * *The handler should return true if it is to be invoked again; + * returning false will remove the handler after it returns.* + * + * As a convenience, the ns parameters applies to the top level element + * and also any of its immediate children. This is primarily to make + * matching /iq/query elements easy. + * + * The options argument contains handler matching flags that affect how + * matches are determined. Currently the only flag is matchBare (a + * boolean). When matchBare is true, the from parameter and the from + * attribute on the stanza will be matched as bare JIDs instead of + * full JIDs. To use this, pass {matchBare: true} as the value of + * options. The default value for matchBare is false. + * + * The return value should be saved if you wish to remove the handler + * with deleteHandler(). + * + * Parameters: + * (Function) handler - The user callback. + * (String) ns - The namespace to match. + * (String) name - The stanza name to match. + * (String) type - The stanza type attribute to match. + * (String) id - The stanza id attribute to match. + * (String) from - The stanza from attribute to match. + * (String) options - The handler options + * + * Returns: + * A reference to the handler that can be used to remove it. + */ + addHandler: function (handler, ns, name, type, id, from, options) + { + var hand = new Strophe.Handler(handler, ns, name, type, id, from, options); + this.addHandlers.push(hand); + return hand; + }, + + /** Function: deleteHandler + * Delete a stanza handler for a connection. + * + * This function removes a stanza handler from the connection. The + * handRef parameter is *not* the function passed to addHandler(), + * but is the reference returned from addHandler(). + * + * Parameters: + * (Strophe.Handler) handRef - The handler reference. + */ + deleteHandler: function (handRef) + { + // this must be done in the Idle loop so that we don't change + // the handlers during iteration + this.removeHandlers.push(handRef); + // If a handler is being deleted while it is being added, + // prevent it from getting added + var i = this.addHandlers.indexOf(handRef); + if (i >= 0) { + this.addHandlers.splice(i, 1); + } + }, + + /** Function: disconnect + * Start the graceful disconnection process. + * + * This function starts the disconnection process. This process starts + * by sending unavailable presence and sending BOSH body of type + * terminate. A timeout handler makes sure that disconnection happens + * even if the BOSH server does not respond. + * If the Connection object isn't connected, at least tries to abort all pending requests + * so the connection object won't generate successful requests (which were already opened). + * + * The user supplied connection callback will be notified of the + * progress as this process happens. + * + * Parameters: + * (String) reason - The reason the disconnect is occuring. + */ + disconnect: function (reason) + { + this._changeConnectStatus(Strophe.Status.DISCONNECTING, reason); + + Strophe.info("Disconnect was called because: " + reason); + if (this.connected) { + var pres = false; + this.disconnecting = true; + if (this.authenticated) { + pres = $pres({ + xmlns: Strophe.NS.CLIENT, + type: 'unavailable' + }); + } + // setup timeout handler + this._disconnectTimeout = this._addSysTimedHandler( + 3000, this._onDisconnectTimeout.bind(this)); + this._proto._disconnect(pres); + } else { + Strophe.info("Disconnect was called before Strophe connected to the server"); + this._proto._abortAllRequests(); + } + }, + + /** PrivateFunction: _changeConnectStatus + * _Private_ helper function that makes sure plugins and the user's + * callback are notified of connection status changes. + * + * Parameters: + * (Integer) status - the new connection status, one of the values + * in Strophe.Status + * (String) condition - the error condition or null + */ + _changeConnectStatus: function (status, condition) + { + // notify all plugins listening for status changes + for (var k in Strophe._connectionPlugins) { + if (Strophe._connectionPlugins.hasOwnProperty(k)) { + var plugin = this[k]; + if (plugin.statusChanged) { + try { + plugin.statusChanged(status, condition); + } catch (err) { + Strophe.error("" + k + " plugin caused an exception " + + "changing status: " + err); + } + } + } + } + + // notify the user's callback + if (this.connect_callback) { + try { + this.connect_callback(status, condition); + } catch (e) { + Strophe.error("User connection callback caused an " + + "exception: " + e); + } + } + }, + + /** PrivateFunction: _doDisconnect + * _Private_ function to disconnect. + * + * This is the last piece of the disconnection logic. This resets the + * connection and alerts the user's connection callback. + */ + _doDisconnect: function () + { + if (typeof this._idleTimeout == "number") { + clearTimeout(this._idleTimeout); + } + + // Cancel Disconnect Timeout + if (this._disconnectTimeout !== null) { + this.deleteTimedHandler(this._disconnectTimeout); + this._disconnectTimeout = null; + } + + Strophe.info("_doDisconnect was called"); + this._proto._doDisconnect(); + + this.authenticated = false; + this.disconnecting = false; + + // delete handlers + this.handlers = []; + this.timedHandlers = []; + this.removeTimeds = []; + this.removeHandlers = []; + this.addTimeds = []; + this.addHandlers = []; + + // tell the parent we disconnected + this._changeConnectStatus(Strophe.Status.DISCONNECTED, null); + this.connected = false; + }, + + /** PrivateFunction: _dataRecv + * _Private_ handler to processes incoming data from the the connection. + * + * Except for _connect_cb handling the initial connection request, + * this function handles the incoming data for all requests. This + * function also fires stanza handlers that match each incoming + * stanza. + * + * Parameters: + * (Strophe.Request) req - The request that has data ready. + * (string) req - The stanza a raw string (optiona). + */ + _dataRecv: function (req, raw) + { + Strophe.info("_dataRecv called"); + var elem = this._proto._reqToData(req); + if (elem === null) { return; } + + if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) { + if (elem.nodeName === this._proto.strip && elem.childNodes.length) { + this.xmlInput(elem.childNodes[0]); + } else { + this.xmlInput(elem); + } + } + if (this.rawInput !== Strophe.Connection.prototype.rawInput) { + if (raw) { + this.rawInput(raw); + } else { + this.rawInput(Strophe.serialize(elem)); + } + } + + // remove handlers scheduled for deletion + var i, hand; + while (this.removeHandlers.length > 0) { + hand = this.removeHandlers.pop(); + i = this.handlers.indexOf(hand); + if (i >= 0) { + this.handlers.splice(i, 1); + } + } + + // add handlers scheduled for addition + while (this.addHandlers.length > 0) { + this.handlers.push(this.addHandlers.pop()); + } + + // handle graceful disconnect + if (this.disconnecting && this._proto._emptyQueue()) { + this._doDisconnect(); + return; + } + + var type = elem.getAttribute("type"); + var cond, conflict; + if (type !== null && type == "terminate") { + // Don't process stanzas that come in after disconnect + if (this.disconnecting) { + return; + } + + // an error occurred + cond = elem.getAttribute("condition"); + conflict = elem.getElementsByTagName("conflict"); + if (cond !== null) { + if (cond == "remote-stream-error" && conflict.length > 0) { + cond = "conflict"; + } + this._changeConnectStatus(Strophe.Status.CONNFAIL, cond); + } else { + this._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown"); + } + this._doDisconnect(); + return; + } + + // send each incoming stanza through the handler chain + var that = this; + Strophe.forEachChild(elem, null, function (child) { + var i, newList; + // process handlers + newList = that.handlers; + that.handlers = []; + for (i = 0; i < newList.length; i++) { + var hand = newList[i]; + // encapsulate 'handler.run' not to lose the whole handler list if + // one of the handlers throws an exception + try { + if (hand.isMatch(child) && + (that.authenticated || !hand.user)) { + if (hand.run(child)) { + that.handlers.push(hand); + } + } else { + that.handlers.push(hand); + } + } catch(e) { + // if the handler throws an exception, we consider it as false + Strophe.warn('Removing Strophe handlers due to uncaught exception: ' + e.message); + } + } + }); + }, + + + /** Attribute: mechanisms + * SASL Mechanisms available for Conncection. + */ + mechanisms: {}, + + /** PrivateFunction: _connect_cb + * _Private_ handler for initial connection request. + * + * This handler is used to process the initial connection request + * response from the BOSH server. It is used to set up authentication + * handlers and start the authentication process. + * + * SASL authentication will be attempted if available, otherwise + * the code will fall back to legacy authentication. + * + * Parameters: + * (Strophe.Request) req - The current request. + * (Function) _callback - low level (xmpp) connect callback function. + * Useful for plugins with their own xmpp connect callback (when their) + * want to do something special). + */ + _connect_cb: function (req, _callback, raw) + { + Strophe.info("_connect_cb was called"); + + this.connected = true; + + var bodyWrap = this._proto._reqToData(req); + if (!bodyWrap) { return; } + + if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) { + if (bodyWrap.nodeName === this._proto.strip && bodyWrap.childNodes.length) { + this.xmlInput(bodyWrap.childNodes[0]); + } else { + this.xmlInput(bodyWrap); + } + } + if (this.rawInput !== Strophe.Connection.prototype.rawInput) { + if (raw) { + this.rawInput(raw); + } else { + this.rawInput(Strophe.serialize(bodyWrap)); + } + } + + var conncheck = this._proto._connect_cb(bodyWrap); + if (conncheck === Strophe.Status.CONNFAIL) { + return; + } + + this._authentication.sasl_scram_sha1 = false; + this._authentication.sasl_plain = false; + this._authentication.sasl_digest_md5 = false; + this._authentication.sasl_anonymous = false; + + this._authentication.legacy_auth = false; + + // Check for the stream:features tag + var hasFeatures = bodyWrap.getElementsByTagNameNS(Strophe.NS.STREAM, "features").length > 0; + var mechanisms = bodyWrap.getElementsByTagName("mechanism"); + var matched = []; + var i, mech, found_authentication = false; + if (!hasFeatures) { + this._proto._no_auth_received(_callback); + return; + } + if (mechanisms.length > 0) { + for (i = 0; i < mechanisms.length; i++) { + mech = Strophe.getText(mechanisms[i]); + if (this.mechanisms[mech]) matched.push(this.mechanisms[mech]); + } + } + this._authentication.legacy_auth = + bodyWrap.getElementsByTagName("auth").length > 0; + found_authentication = this._authentication.legacy_auth || + matched.length > 0; + if (!found_authentication) { + this._proto._no_auth_received(_callback); + return; + } + if (this.do_authentication !== false) + this.authenticate(matched); + }, + + /** Function: authenticate + * Set up authentication + * + * Contiunues the initial connection request by setting up authentication + * handlers and start the authentication process. + * + * SASL authentication will be attempted if available, otherwise + * the code will fall back to legacy authentication. + * + */ + authenticate: function (matched) + { + var i; + // Sorting matched mechanisms according to priority. + for (i = 0; i < matched.length - 1; ++i) { + var higher = i; + for (var j = i + 1; j < matched.length; ++j) { + if (matched[j].prototype.priority > matched[higher].prototype.priority) { + higher = j; + } + } + if (higher != i) { + var swap = matched[i]; + matched[i] = matched[higher]; + matched[higher] = swap; + } + } + + // run each mechanism + var mechanism_found = false; + for (i = 0; i < matched.length; ++i) { + if (!matched[i].test(this)) continue; + + this._sasl_success_handler = this._addSysHandler( + this._sasl_success_cb.bind(this), null, + "success", null, null); + this._sasl_failure_handler = this._addSysHandler( + this._sasl_failure_cb.bind(this), null, + "failure", null, null); + this._sasl_challenge_handler = this._addSysHandler( + this._sasl_challenge_cb.bind(this), null, + "challenge", null, null); + + this._sasl_mechanism = new matched[i](); + this._sasl_mechanism.onStart(this); + + var request_auth_exchange = $build("auth", { + xmlns: Strophe.NS.SASL, + mechanism: this._sasl_mechanism.name + }); + + if (this._sasl_mechanism.isClientFirst) { + var response = this._sasl_mechanism.onChallenge(this, null); + request_auth_exchange.t(Base64.encode(response)); + } + + this.send(request_auth_exchange.tree()); + + mechanism_found = true; + break; + } + + if (!mechanism_found) { + // if none of the mechanism worked + if (Strophe.getNodeFromJid(this.jid) === null) { + // we don't have a node, which is required for non-anonymous + // client connections + this._changeConnectStatus(Strophe.Status.CONNFAIL, + 'x-strophe-bad-non-anon-jid'); + this.disconnect('x-strophe-bad-non-anon-jid'); + } else { + // fall back to legacy authentication + this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null); + this._addSysHandler(this._auth1_cb.bind(this), null, null, + null, "_auth_1"); + + this.send($iq({ + type: "get", + to: this.domain, + id: "_auth_1" + }).c("query", { + xmlns: Strophe.NS.AUTH + }).c("username", {}).t(Strophe.getNodeFromJid(this.jid)).tree()); + } + } + + }, + + _sasl_challenge_cb: function(elem) { + var challenge = Base64.decode(Strophe.getText(elem)); + var response = this._sasl_mechanism.onChallenge(this, challenge); + + var stanza = $build('response', { + xmlns: Strophe.NS.SASL + }); + if (response !== "") { + stanza.t(Base64.encode(response)); + } + this.send(stanza.tree()); + + return true; + }, + + /** PrivateFunction: _auth1_cb + * _Private_ handler for legacy authentication. + * + * This handler is called in response to the initial + * for legacy authentication. It builds an authentication and + * sends it, creating a handler (calling back to _auth2_cb()) to + * handle the result + * + * Parameters: + * (XMLElement) elem - The stanza that triggered the callback. + * + * Returns: + * false to remove the handler. + */ + /* jshint unused:false */ + _auth1_cb: function (elem) + { + // build plaintext auth iq + var iq = $iq({type: "set", id: "_auth_2"}) + .c('query', {xmlns: Strophe.NS.AUTH}) + .c('username', {}).t(Strophe.getNodeFromJid(this.jid)) + .up() + .c('password').t(this.pass); + + if (!Strophe.getResourceFromJid(this.jid)) { + // since the user has not supplied a resource, we pick + // a default one here. unlike other auth methods, the server + // cannot do this for us. + this.jid = Strophe.getBareJidFromJid(this.jid) + '/strophe'; + } + iq.up().c('resource', {}).t(Strophe.getResourceFromJid(this.jid)); + + this._addSysHandler(this._auth2_cb.bind(this), null, + null, null, "_auth_2"); + + this.send(iq.tree()); + + return false; + }, + /* jshint unused:true */ + + /** PrivateFunction: _sasl_success_cb + * _Private_ handler for succesful SASL authentication. + * + * Parameters: + * (XMLElement) elem - The matching stanza. + * + * Returns: + * false to remove the handler. + */ + _sasl_success_cb: function (elem) + { + if (this._sasl_data["server-signature"]) { + var serverSignature; + var success = Base64.decode(Strophe.getText(elem)); + var attribMatch = /([a-z]+)=([^,]+)(,|$)/; + var matches = success.match(attribMatch); + if (matches[1] == "v") { + serverSignature = matches[2]; + } + + if (serverSignature != this._sasl_data["server-signature"]) { + // remove old handlers + this.deleteHandler(this._sasl_failure_handler); + this._sasl_failure_handler = null; + if (this._sasl_challenge_handler) { + this.deleteHandler(this._sasl_challenge_handler); + this._sasl_challenge_handler = null; + } + + this._sasl_data = {}; + return this._sasl_failure_cb(null); + } + } + + Strophe.info("SASL authentication succeeded."); + + if(this._sasl_mechanism) + this._sasl_mechanism.onSuccess(); + + // remove old handlers + this.deleteHandler(this._sasl_failure_handler); + this._sasl_failure_handler = null; + if (this._sasl_challenge_handler) { + this.deleteHandler(this._sasl_challenge_handler); + this._sasl_challenge_handler = null; + } + + var streamfeature_handlers = []; + var wrapper = function(handlers, elem) { + while (handlers.length) { + this.deleteHandler(handlers.pop()); + } + this._sasl_auth1_cb.bind(this)(elem); + return false; }; - root.locales = { 'en': new Jed(translations) }; + streamfeature_handlers.push(this._addSysHandler(function(elem) { + wrapper.bind(this)(streamfeature_handlers, elem); + }.bind(this), null, "stream:features", null, null)); + streamfeature_handlers.push(this._addSysHandler(function(elem) { + wrapper.bind(this)(streamfeature_handlers, elem); + }.bind(this), Strophe.NS.STREAM, "features", null, null)); + + // we must send an xmpp:restart now + this._sendRestart(); + + return false; + }, + + /** PrivateFunction: _sasl_auth1_cb + * _Private_ handler to start stream binding. + * + * Parameters: + * (XMLElement) elem - The matching stanza. + * + * Returns: + * false to remove the handler. + */ + _sasl_auth1_cb: function (elem) + { + // save stream:features for future usage + this.features = elem; + + var i, child; + + for (i = 0; i < elem.childNodes.length; i++) { + child = elem.childNodes[i]; + if (child.nodeName == 'bind') { + this.do_bind = true; + } + + if (child.nodeName == 'session') { + this.do_session = true; + } + } + + if (!this.do_bind) { + this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); + return false; + } else { + this._addSysHandler(this._sasl_bind_cb.bind(this), null, null, + null, "_bind_auth_2"); + + var resource = Strophe.getResourceFromJid(this.jid); + if (resource) { + this.send($iq({type: "set", id: "_bind_auth_2"}) + .c('bind', {xmlns: Strophe.NS.BIND}) + .c('resource', {}).t(resource).tree()); + } else { + this.send($iq({type: "set", id: "_bind_auth_2"}) + .c('bind', {xmlns: Strophe.NS.BIND}) + .tree()); + } + } + + return false; + }, + + /** PrivateFunction: _sasl_bind_cb + * _Private_ handler for binding result and session start. + * + * Parameters: + * (XMLElement) elem - The matching stanza. + * + * Returns: + * false to remove the handler. + */ + _sasl_bind_cb: function (elem) + { + if (elem.getAttribute("type") == "error") { + Strophe.info("SASL binding failed."); + var conflict = elem.getElementsByTagName("conflict"), condition; + if (conflict.length > 0) { + condition = 'conflict'; + } + this._changeConnectStatus(Strophe.Status.AUTHFAIL, condition); + return false; + } + + // TODO - need to grab errors + var bind = elem.getElementsByTagName("bind"); + var jidNode; + if (bind.length > 0) { + // Grab jid + jidNode = bind[0].getElementsByTagName("jid"); + if (jidNode.length > 0) { + this.jid = Strophe.getText(jidNode[0]); + + if (this.do_session) { + this._addSysHandler(this._sasl_session_cb.bind(this), + null, null, null, "_session_auth_2"); + + this.send($iq({type: "set", id: "_session_auth_2"}) + .c('session', {xmlns: Strophe.NS.SESSION}) + .tree()); + } else { + this.authenticated = true; + this._changeConnectStatus(Strophe.Status.CONNECTED, null); + } + } + } else { + Strophe.info("SASL binding failed."); + this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); + return false; + } + }, + + /** PrivateFunction: _sasl_session_cb + * _Private_ handler to finish successful SASL connection. + * + * This sets Connection.authenticated to true on success, which + * starts the processing of user handlers. + * + * Parameters: + * (XMLElement) elem - The matching stanza. + * + * Returns: + * false to remove the handler. + */ + _sasl_session_cb: function (elem) + { + if (elem.getAttribute("type") == "result") { + this.authenticated = true; + this._changeConnectStatus(Strophe.Status.CONNECTED, null); + } else if (elem.getAttribute("type") == "error") { + Strophe.info("Session creation failed."); + this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); + return false; + } + + return false; + }, + + /** PrivateFunction: _sasl_failure_cb + * _Private_ handler for SASL authentication failure. + * + * Parameters: + * (XMLElement) elem - The matching stanza. + * + * Returns: + * false to remove the handler. + */ + /* jshint unused:false */ + _sasl_failure_cb: function (elem) + { + // delete unneeded handlers + if (this._sasl_success_handler) { + this.deleteHandler(this._sasl_success_handler); + this._sasl_success_handler = null; + } + if (this._sasl_challenge_handler) { + this.deleteHandler(this._sasl_challenge_handler); + this._sasl_challenge_handler = null; + } + + if(this._sasl_mechanism) + this._sasl_mechanism.onFailure(); + this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); + return false; + }, + /* jshint unused:true */ + + /** PrivateFunction: _auth2_cb + * _Private_ handler to finish legacy authentication. + * + * This handler is called when the result from the jabber:iq:auth + * stanza is returned. + * + * Parameters: + * (XMLElement) elem - The stanza that triggered the callback. + * + * Returns: + * false to remove the handler. + */ + _auth2_cb: function (elem) + { + if (elem.getAttribute("type") == "result") { + this.authenticated = true; + this._changeConnectStatus(Strophe.Status.CONNECTED, null); + } else if (elem.getAttribute("type") == "error") { + this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); + this.disconnect('authentication failed'); + } + + return false; + }, + + /** PrivateFunction: _addSysTimedHandler + * _Private_ function to add a system level timed handler. + * + * This function is used to add a Strophe.TimedHandler for the + * library code. System timed handlers are allowed to run before + * authentication is complete. + * + * Parameters: + * (Integer) period - The period of the handler. + * (Function) handler - The callback function. + */ + _addSysTimedHandler: function (period, handler) + { + var thand = new Strophe.TimedHandler(period, handler); + thand.user = false; + this.addTimeds.push(thand); + return thand; + }, + + /** PrivateFunction: _addSysHandler + * _Private_ function to add a system level stanza handler. + * + * This function is used to add a Strophe.Handler for the + * library code. System stanza handlers are allowed to run before + * authentication is complete. + * + * Parameters: + * (Function) handler - The callback function. + * (String) ns - The namespace to match. + * (String) name - The stanza name to match. + * (String) type - The stanza type attribute to match. + * (String) id - The stanza id attribute to match. + */ + _addSysHandler: function (handler, ns, name, type, id) + { + var hand = new Strophe.Handler(handler, ns, name, type, id); + hand.user = false; + this.addHandlers.push(hand); + return hand; + }, + + /** PrivateFunction: _onDisconnectTimeout + * _Private_ timeout handler for handling non-graceful disconnection. + * + * If the graceful disconnect process does not complete within the + * time allotted, this handler finishes the disconnect anyway. + * + * Returns: + * false to remove the handler. + */ + _onDisconnectTimeout: function () + { + Strophe.info("_onDisconnectTimeout was called"); + + this._proto._onDisconnectTimeout(); + + // actually disconnect + this._doDisconnect(); + + return false; + }, + + /** PrivateFunction: _onIdle + * _Private_ handler to process events during idle cycle. + * + * This handler is called every 100ms to fire timed handlers that + * are ready and keep poll requests going. + */ + _onIdle: function () + { + var i, thand, since, newList; + + // add timed handlers scheduled for addition + // NOTE: we add before remove in the case a timed handler is + // added and then deleted before the next _onIdle() call. + while (this.addTimeds.length > 0) { + this.timedHandlers.push(this.addTimeds.pop()); + } + + // remove timed handlers that have been scheduled for deletion + while (this.removeTimeds.length > 0) { + thand = this.removeTimeds.pop(); + i = this.timedHandlers.indexOf(thand); + if (i >= 0) { + this.timedHandlers.splice(i, 1); + } + } + + // call ready timed handlers + var now = new Date().getTime(); + newList = []; + for (i = 0; i < this.timedHandlers.length; i++) { + thand = this.timedHandlers[i]; + if (this.authenticated || !thand.user) { + since = thand.lastCalled + thand.period; + if (since - now <= 0) { + if (thand.run()) { + newList.push(thand); + } + } else { + newList.push(thand); + } + } + } + this.timedHandlers = newList; + + clearTimeout(this._idleTimeout); + + this._proto._onIdle(); + + // reactivate the timer only if connected + if (this.connected) { + this._idleTimeout = setTimeout(this._onIdle.bind(this), 100); + } + } +}; + +/** Class: Strophe.SASLMechanism + * + * encapsulates SASL authentication mechanisms. + * + * User code may override the priority for each mechanism or disable it completely. + * See for information about changing priority and for informatian on + * how to disable a mechanism. + * + * By default, all mechanisms are enabled and the priorities are + * + * SCRAM-SHA1 - 40 + * DIGEST-MD5 - 30 + * Plain - 20 + */ + +/** + * PrivateConstructor: Strophe.SASLMechanism + * SASL auth mechanism abstraction. + * + * Parameters: + * (String) name - SASL Mechanism name. + * (Boolean) isClientFirst - If client should send response first without challenge. + * (Number) priority - Priority. + * + * Returns: + * A new Strophe.SASLMechanism object. + */ +Strophe.SASLMechanism = function(name, isClientFirst, priority) { + /** PrivateVariable: name + * Mechanism name. + */ + this.name = name; + /** PrivateVariable: isClientFirst + * If client sends response without initial server challenge. + */ + this.isClientFirst = isClientFirst; + /** Variable: priority + * Determines which is chosen for authentication (Higher is better). + * Users may override this to prioritize mechanisms differently. + * + * In the default configuration the priorities are + * + * SCRAM-SHA1 - 40 + * DIGEST-MD5 - 30 + * Plain - 20 + * + * Example: (This will cause Strophe to choose the mechanism that the server sent first) + * + * > Strophe.SASLMD5.priority = Strophe.SASLSHA1.priority; + * + * See for a list of available mechanisms. + * + */ + this.priority = priority; +}; + +Strophe.SASLMechanism.prototype = { + /** + * Function: test + * Checks if mechanism able to run. + * To disable a mechanism, make this return false; + * + * To disable plain authentication run + * > Strophe.SASLPlain.test = function() { + * > return false; + * > } + * + * See for a list of available mechanisms. + * + * Parameters: + * (Strophe.Connection) connection - Target Connection. + * + * Returns: + * (Boolean) If mechanism was able to run. + */ + /* jshint unused:false */ + test: function(connection) { + return true; + }, + /* jshint unused:true */ + + /** PrivateFunction: onStart + * Called before starting mechanism on some connection. + * + * Parameters: + * (Strophe.Connection) connection - Target Connection. + */ + onStart: function(connection) + { + this._connection = connection; + }, + + /** PrivateFunction: onChallenge + * Called by protocol implementation on incoming challenge. If client is + * first (isClientFirst == true) challenge will be null on the first call. + * + * Parameters: + * (Strophe.Connection) connection - Target Connection. + * (String) challenge - current challenge to handle. + * + * Returns: + * (String) Mechanism response. + */ + /* jshint unused:false */ + onChallenge: function(connection, challenge) { + throw new Error("You should implement challenge handling!"); + }, + /* jshint unused:true */ + + /** PrivateFunction: onFailure + * Protocol informs mechanism implementation about SASL failure. + */ + onFailure: function() { + this._connection = null; + }, + + /** PrivateFunction: onSuccess + * Protocol informs mechanism implementation about SASL success. + */ + onSuccess: function() { + this._connection = null; + } +}; + + /** Constants: SASL mechanisms + * Available authentication mechanisms + * + * Strophe.SASLAnonymous - SASL Anonymous authentication. + * Strophe.SASLPlain - SASL Plain authentication. + * Strophe.SASLMD5 - SASL Digest-MD5 authentication + * Strophe.SASLSHA1 - SASL SCRAM-SHA1 authentication + */ + +// Building SASL callbacks + +/** PrivateConstructor: SASLAnonymous + * SASL Anonymous authentication. + */ +Strophe.SASLAnonymous = function() {}; + +Strophe.SASLAnonymous.prototype = new Strophe.SASLMechanism("ANONYMOUS", false, 10); + +Strophe.SASLAnonymous.test = function(connection) { + return connection.authcid === null; +}; + +Strophe.Connection.prototype.mechanisms[Strophe.SASLAnonymous.prototype.name] = Strophe.SASLAnonymous; + +/** PrivateConstructor: SASLPlain + * SASL Plain authentication. + */ +Strophe.SASLPlain = function() {}; + +Strophe.SASLPlain.prototype = new Strophe.SASLMechanism("PLAIN", true, 20); + +Strophe.SASLPlain.test = function(connection) { + return connection.authcid !== null; +}; + +Strophe.SASLPlain.prototype.onChallenge = function(connection) { + var auth_str = connection.authzid; + auth_str = auth_str + "\u0000"; + auth_str = auth_str + connection.authcid; + auth_str = auth_str + "\u0000"; + auth_str = auth_str + connection.pass; + return auth_str; +}; + +Strophe.Connection.prototype.mechanisms[Strophe.SASLPlain.prototype.name] = Strophe.SASLPlain; + +/** PrivateConstructor: SASLSHA1 + * SASL SCRAM SHA 1 authentication. + */ +Strophe.SASLSHA1 = function() {}; + +/* TEST: + * This is a simple example of a SCRAM-SHA-1 authentication exchange + * when the client doesn't support channel bindings (username 'user' and + * password 'pencil' are used): + * + * C: n,,n=user,r=fyko+d2lbbFgONRv9qkxdawL + * S: r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j,s=QSXCR+Q6sek8bf92, + * i=4096 + * C: c=biws,r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j, + * p=v0X8v3Bz2T0CJGbJQyF0X+HI4Ts= + * S: v=rmF9pqV8S7suAoZWja4dJRkFsKQ= + * + */ + +Strophe.SASLSHA1.prototype = new Strophe.SASLMechanism("SCRAM-SHA-1", true, 40); + +Strophe.SASLSHA1.test = function(connection) { + return connection.authcid !== null; +}; + +Strophe.SASLSHA1.prototype.onChallenge = function(connection, challenge, test_cnonce) { + var cnonce = test_cnonce || MD5.hexdigest(Math.random() * 1234567890); + + var auth_str = "n=" + connection.authcid; + auth_str += ",r="; + auth_str += cnonce; + + connection._sasl_data.cnonce = cnonce; + connection._sasl_data["client-first-message-bare"] = auth_str; + + auth_str = "n,," + auth_str; + + this.onChallenge = function (connection, challenge) + { + var nonce, salt, iter, Hi, U, U_old, i, k; + var clientKey, serverKey, clientSignature; + var responseText = "c=biws,"; + var authMessage = connection._sasl_data["client-first-message-bare"] + "," + + challenge + ","; + var cnonce = connection._sasl_data.cnonce; + var attribMatch = /([a-z]+)=([^,]+)(,|$)/; + + while (challenge.match(attribMatch)) { + var matches = challenge.match(attribMatch); + challenge = challenge.replace(matches[0], ""); + switch (matches[1]) { + case "r": + nonce = matches[2]; + break; + case "s": + salt = matches[2]; + break; + case "i": + iter = matches[2]; + break; + } + } + + if (nonce.substr(0, cnonce.length) !== cnonce) { + connection._sasl_data = {}; + return connection._sasl_failure_cb(); + } + + responseText += "r=" + nonce; + authMessage += responseText; + + salt = Base64.decode(salt); + salt += "\x00\x00\x00\x01"; + + Hi = U_old = SHA1.core_hmac_sha1(connection.pass, salt); + for (i = 1; i < iter; i++) { + U = SHA1.core_hmac_sha1(connection.pass, SHA1.binb2str(U_old)); + for (k = 0; k < 5; k++) { + Hi[k] ^= U[k]; + } + U_old = U; + } + Hi = SHA1.binb2str(Hi); + + clientKey = SHA1.core_hmac_sha1(Hi, "Client Key"); + serverKey = SHA1.str_hmac_sha1(Hi, "Server Key"); + clientSignature = SHA1.core_hmac_sha1(SHA1.str_sha1(SHA1.binb2str(clientKey)), authMessage); + connection._sasl_data["server-signature"] = SHA1.b64_hmac_sha1(serverKey, authMessage); + + for (k = 0; k < 5; k++) { + clientKey[k] ^= clientSignature[k]; + } + + responseText += ",p=" + Base64.encode(SHA1.binb2str(clientKey)); + + return responseText; + }.bind(this); + + return auth_str; +}; + +Strophe.Connection.prototype.mechanisms[Strophe.SASLSHA1.prototype.name] = Strophe.SASLSHA1; + +/** PrivateConstructor: SASLMD5 + * SASL DIGEST MD5 authentication. + */ +Strophe.SASLMD5 = function() {}; + +Strophe.SASLMD5.prototype = new Strophe.SASLMechanism("DIGEST-MD5", false, 30); + +Strophe.SASLMD5.test = function(connection) { + return connection.authcid !== null; +}; + +/** PrivateFunction: _quote + * _Private_ utility function to backslash escape and quote strings. + * + * Parameters: + * (String) str - The string to be quoted. + * + * Returns: + * quoted string + */ +Strophe.SASLMD5.prototype._quote = function (str) + { + return '"' + str.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"'; + //" end string workaround for emacs + }; + + +Strophe.SASLMD5.prototype.onChallenge = function(connection, challenge, test_cnonce) { + var attribMatch = /([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/; + var cnonce = test_cnonce || MD5.hexdigest("" + (Math.random() * 1234567890)); + var realm = ""; + var host = null; + var nonce = ""; + var qop = ""; + var matches; + + while (challenge.match(attribMatch)) { + matches = challenge.match(attribMatch); + challenge = challenge.replace(matches[0], ""); + matches[2] = matches[2].replace(/^"(.+)"$/, "$1"); + switch (matches[1]) { + case "realm": + realm = matches[2]; + break; + case "nonce": + nonce = matches[2]; + break; + case "qop": + qop = matches[2]; + break; + case "host": + host = matches[2]; + break; + } + } + + var digest_uri = connection.servtype + "/" + connection.domain; + if (host !== null) { + digest_uri = digest_uri + "/" + host; + } + + var A1 = MD5.hash(connection.authcid + + ":" + realm + ":" + this._connection.pass) + + ":" + nonce + ":" + cnonce; + var A2 = 'AUTHENTICATE:' + digest_uri; + + var responseText = ""; + responseText += 'charset=utf-8,'; + responseText += 'username=' + + this._quote(connection.authcid) + ','; + responseText += 'realm=' + this._quote(realm) + ','; + responseText += 'nonce=' + this._quote(nonce) + ','; + responseText += 'nc=00000001,'; + responseText += 'cnonce=' + this._quote(cnonce) + ','; + responseText += 'digest-uri=' + this._quote(digest_uri) + ','; + responseText += 'response=' + MD5.hexdigest(MD5.hexdigest(A1) + ":" + + nonce + ":00000001:" + + cnonce + ":auth:" + + MD5.hexdigest(A2)) + ","; + responseText += 'qop=auth'; + + this.onChallenge = function () + { + return ""; + }.bind(this); + + return responseText; +}; + +Strophe.Connection.prototype.mechanisms[Strophe.SASLMD5.prototype.name] = Strophe.SASLMD5; + +return { + Strophe: Strophe, + $build: $build, + $msg: $msg, + $iq: $iq, + $pres: $pres, + SHA1: SHA1, + Base64: Base64, + MD5: MD5, +}; +})); + +/* + This program is distributed under the terms of the MIT license. + Please see the LICENSE file for details. + + Copyright 2006-2008, OGG, LLC +*/ + +/* jshint undef: true, unused: true:, noarg: true, latedef: true */ +/* global define, window, setTimeout, clearTimeout, XMLHttpRequest, ActiveXObject, Strophe, $build */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe-bosh',['strophe-core'], function (core) { + return factory( + core.Strophe, + core.$build + ); + }); + } else { + // Browser globals + return factory(Strophe, $build); + } +}(this, function (Strophe, $build) { + +/** PrivateClass: Strophe.Request + * _Private_ helper class that provides a cross implementation abstraction + * for a BOSH related XMLHttpRequest. + * + * The Strophe.Request class is used internally to encapsulate BOSH request + * information. It is not meant to be used from user's code. + */ + +/** PrivateConstructor: Strophe.Request + * Create and initialize a new Strophe.Request object. + * + * Parameters: + * (XMLElement) elem - The XML data to be sent in the request. + * (Function) func - The function that will be called when the + * XMLHttpRequest readyState changes. + * (Integer) rid - The BOSH rid attribute associated with this request. + * (Integer) sends - The number of times this same request has been + * sent. + */ +Strophe.Request = function (elem, func, rid, sends) +{ + this.id = ++Strophe._requestId; + this.xmlData = elem; + this.data = Strophe.serialize(elem); + // save original function in case we need to make a new request + // from this one. + this.origFunc = func; + this.func = func; + this.rid = rid; + this.date = NaN; + this.sends = sends || 0; + this.abort = false; + this.dead = null; + + this.age = function () { + if (!this.date) { return 0; } + var now = new Date(); + return (now - this.date) / 1000; + }; + this.timeDead = function () { + if (!this.dead) { return 0; } + var now = new Date(); + return (now - this.dead) / 1000; + }; + this.xhr = this._newXHR(); +}; + +Strophe.Request.prototype = { + /** PrivateFunction: getResponse + * Get a response from the underlying XMLHttpRequest. + * + * This function attempts to get a response from the request and checks + * for errors. + * + * Throws: + * "parsererror" - A parser error occured. + * + * Returns: + * The DOM element tree of the response. + */ + getResponse: function () + { + var node = null; + if (this.xhr.responseXML && this.xhr.responseXML.documentElement) { + node = this.xhr.responseXML.documentElement; + if (node.tagName == "parsererror") { + Strophe.error("invalid response received"); + Strophe.error("responseText: " + this.xhr.responseText); + Strophe.error("responseXML: " + + Strophe.serialize(this.xhr.responseXML)); + throw "parsererror"; + } + } else if (this.xhr.responseText) { + Strophe.error("invalid response received"); + Strophe.error("responseText: " + this.xhr.responseText); + Strophe.error("responseXML: " + + Strophe.serialize(this.xhr.responseXML)); + } + + return node; + }, + + /** PrivateFunction: _newXHR + * _Private_ helper function to create XMLHttpRequests. + * + * This function creates XMLHttpRequests across all implementations. + * + * Returns: + * A new XMLHttpRequest. + */ + _newXHR: function () + { + var xhr = null; + if (window.XMLHttpRequest) { + xhr = new XMLHttpRequest(); + if (xhr.overrideMimeType) { + xhr.overrideMimeType("text/xml; charset=utf-8"); + } + } else if (window.ActiveXObject) { + xhr = new ActiveXObject("Microsoft.XMLHTTP"); + } + + // use Function.bind() to prepend ourselves as an argument + xhr.onreadystatechange = this.func.bind(null, this); + + return xhr; + } +}; + +/** Class: Strophe.Bosh + * _Private_ helper class that handles BOSH Connections + * + * The Strophe.Bosh class is used internally by Strophe.Connection + * to encapsulate BOSH sessions. It is not meant to be used from user's code. + */ + +/** File: bosh.js + * A JavaScript library to enable BOSH in Strophejs. + * + * this library uses Bidirectional-streams Over Synchronous HTTP (BOSH) + * to emulate a persistent, stateful, two-way connection to an XMPP server. + * More information on BOSH can be found in XEP 124. + */ + +/** PrivateConstructor: Strophe.Bosh + * Create and initialize a Strophe.Bosh object. + * + * Parameters: + * (Strophe.Connection) connection - The Strophe.Connection that will use BOSH. + * + * Returns: + * A new Strophe.Bosh object. + */ +Strophe.Bosh = function(connection) { + this._conn = connection; + /* request id for body tags */ + this.rid = Math.floor(Math.random() * 4294967295); + /* The current session ID. */ + this.sid = null; + + // default BOSH values + this.hold = 1; + this.wait = 60; + this.window = 5; + this.errors = 0; + + this._requests = []; +}; + +Strophe.Bosh.prototype = { + /** Variable: strip + * + * BOSH-Connections will have all stanzas wrapped in a tag when + * passed to or . + * To strip this tag, User code can set to "body": + * + * > Strophe.Bosh.prototype.strip = "body"; + * + * This will enable stripping of the body tag in both + * and . + */ + strip: null, + + /** PrivateFunction: _buildBody + * _Private_ helper function to generate the wrapper for BOSH. + * + * Returns: + * A Strophe.Builder with a element. + */ + _buildBody: function () + { + var bodyWrap = $build('body', { + rid: this.rid++, + xmlns: Strophe.NS.HTTPBIND + }); + + if (this.sid !== null) { + bodyWrap.attrs({sid: this.sid}); + } + + return bodyWrap; + }, + + /** PrivateFunction: _reset + * Reset the connection. + * + * This function is called by the reset function of the Strophe Connection + */ + _reset: function () + { + this.rid = Math.floor(Math.random() * 4294967295); + this.sid = null; + this.errors = 0; + }, + + /** PrivateFunction: _connect + * _Private_ function that initializes the BOSH connection. + * + * Creates and sends the Request that initializes the BOSH connection. + */ + _connect: function (wait, hold, route) + { + this.wait = wait || this.wait; + this.hold = hold || this.hold; + this.errors = 0; + + // build the body tag + var body = this._buildBody().attrs({ + to: this._conn.domain, + "xml:lang": "en", + wait: this.wait, + hold: this.hold, + content: "text/xml; charset=utf-8", + ver: "1.6", + "xmpp:version": "1.0", + "xmlns:xmpp": Strophe.NS.BOSH + }); + + if(route){ + body.attrs({ + route: route + }); + } + + var _connect_cb = this._conn._connect_cb; + + this._requests.push( + new Strophe.Request(body.tree(), + this._onRequestStateChange.bind( + this, _connect_cb.bind(this._conn)), + body.tree().getAttribute("rid"))); + this._throttledRequestHandler(); + }, + + /** PrivateFunction: _attach + * Attach to an already created and authenticated BOSH session. + * + * This function is provided to allow Strophe to attach to BOSH + * sessions which have been created externally, perhaps by a Web + * application. This is often used to support auto-login type features + * without putting user credentials into the page. + * + * Parameters: + * (String) jid - The full JID that is bound by the session. + * (String) sid - The SID of the BOSH session. + * (String) rid - The current RID of the BOSH session. This RID + * will be used by the next request. + * (Function) callback The connect callback function. + * (Integer) wait - The optional HTTPBIND wait value. This is the + * time the server will wait before returning an empty result for + * a request. The default setting of 60 seconds is recommended. + * Other settings will require tweaks to the Strophe.TIMEOUT value. + * (Integer) hold - The optional HTTPBIND hold value. This is the + * number of connections the server will hold at one time. This + * should almost always be set to 1 (the default). + * (Integer) wind - The optional HTTBIND window value. This is the + * allowed range of request ids that are valid. The default is 5. + */ + _attach: function (jid, sid, rid, callback, wait, hold, wind) + { + this._conn.jid = jid; + this.sid = sid; + this.rid = rid; + + this._conn.connect_callback = callback; + + this._conn.domain = Strophe.getDomainFromJid(this._conn.jid); + + this._conn.authenticated = true; + this._conn.connected = true; + + this.wait = wait || this.wait; + this.hold = hold || this.hold; + this.window = wind || this.window; + + this._conn._changeConnectStatus(Strophe.Status.ATTACHED, null); + }, + + /** PrivateFunction: _connect_cb + * _Private_ handler for initial connection request. + * + * This handler is used to process the Bosh-part of the initial request. + * Parameters: + * (Strophe.Request) bodyWrap - The received stanza. + */ + _connect_cb: function (bodyWrap) + { + var typ = bodyWrap.getAttribute("type"); + var cond, conflict; + if (typ !== null && typ == "terminate") { + // an error occurred + Strophe.error("BOSH-Connection failed: " + cond); + cond = bodyWrap.getAttribute("condition"); + conflict = bodyWrap.getElementsByTagName("conflict"); + if (cond !== null) { + if (cond == "remote-stream-error" && conflict.length > 0) { + cond = "conflict"; + } + this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, cond); + } else { + this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown"); + } + this._conn._doDisconnect(); + return Strophe.Status.CONNFAIL; + } + + // check to make sure we don't overwrite these if _connect_cb is + // called multiple times in the case of missing stream:features + if (!this.sid) { + this.sid = bodyWrap.getAttribute("sid"); + } + var wind = bodyWrap.getAttribute('requests'); + if (wind) { this.window = parseInt(wind, 10); } + var hold = bodyWrap.getAttribute('hold'); + if (hold) { this.hold = parseInt(hold, 10); } + var wait = bodyWrap.getAttribute('wait'); + if (wait) { this.wait = parseInt(wait, 10); } + }, + + /** PrivateFunction: _disconnect + * _Private_ part of Connection.disconnect for Bosh + * + * Parameters: + * (Request) pres - This stanza will be sent before disconnecting. + */ + _disconnect: function (pres) + { + this._sendTerminate(pres); + }, + + /** PrivateFunction: _doDisconnect + * _Private_ function to disconnect. + * + * Resets the SID and RID. + */ + _doDisconnect: function () + { + this.sid = null; + this.rid = Math.floor(Math.random() * 4294967295); + }, + + /** PrivateFunction: _emptyQueue + * _Private_ function to check if the Request queue is empty. + * + * Returns: + * True, if there are no Requests queued, False otherwise. + */ + _emptyQueue: function () + { + return this._requests.length === 0; + }, + + /** PrivateFunction: _hitError + * _Private_ function to handle the error count. + * + * Requests are resent automatically until their error count reaches + * 5. Each time an error is encountered, this function is called to + * increment the count and disconnect if the count is too high. + * + * Parameters: + * (Integer) reqStatus - The request status. + */ + _hitError: function (reqStatus) + { + this.errors++; + Strophe.warn("request errored, status: " + reqStatus + + ", number of errors: " + this.errors); + if (this.errors > 4) { + this._conn._onDisconnectTimeout(); + } + }, + + /** PrivateFunction: _no_auth_received + * + * Called on stream start/restart when no stream:features + * has been received and sends a blank poll request. + */ + _no_auth_received: function (_callback) + { + if (_callback) { + _callback = _callback.bind(this._conn); + } else { + _callback = this._conn._connect_cb.bind(this._conn); + } + var body = this._buildBody(); + this._requests.push( + new Strophe.Request(body.tree(), + this._onRequestStateChange.bind( + this, _callback.bind(this._conn)), + body.tree().getAttribute("rid"))); + this._throttledRequestHandler(); + }, + + /** PrivateFunction: _onDisconnectTimeout + * _Private_ timeout handler for handling non-graceful disconnection. + * + * Cancels all remaining Requests and clears the queue. + */ + _onDisconnectTimeout: function () { + this._abortAllRequests(); + }, + + /** PrivateFunction: _abortAllRequests + * _Private_ helper function that makes sure all pending requests are aborted. + */ + _abortAllRequests: function _abortAllRequests() { + var req; + while (this._requests.length > 0) { + req = this._requests.pop(); + req.abort = true; + req.xhr.abort(); + // jslint complains, but this is fine. setting to empty func + // is necessary for IE6 + req.xhr.onreadystatechange = function () {}; // jshint ignore:line + } + }, + + /** PrivateFunction: _onIdle + * _Private_ handler called by Strophe.Connection._onIdle + * + * Sends all queued Requests or polls with empty Request if there are none. + */ + _onIdle: function () { + var data = this._conn._data; + + // if no requests are in progress, poll + if (this._conn.authenticated && this._requests.length === 0 && + data.length === 0 && !this._conn.disconnecting) { + Strophe.info("no requests during idle cycle, sending " + + "blank request"); + data.push(null); + } + + if (this._conn.paused) { + return; + } + + if (this._requests.length < 2 && data.length > 0) { + var body = this._buildBody(); + for (var i = 0; i < data.length; i++) { + if (data[i] !== null) { + if (data[i] === "restart") { + body.attrs({ + to: this._conn.domain, + "xml:lang": "en", + "xmpp:restart": "true", + "xmlns:xmpp": Strophe.NS.BOSH + }); + } else { + body.cnode(data[i]).up(); + } + } + } + delete this._conn._data; + this._conn._data = []; + this._requests.push( + new Strophe.Request(body.tree(), + this._onRequestStateChange.bind( + this, this._conn._dataRecv.bind(this._conn)), + body.tree().getAttribute("rid"))); + this._throttledRequestHandler(); + } + + if (this._requests.length > 0) { + var time_elapsed = this._requests[0].age(); + if (this._requests[0].dead !== null) { + if (this._requests[0].timeDead() > + Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)) { + this._throttledRequestHandler(); + } + } + + if (time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)) { + Strophe.warn("Request " + + this._requests[0].id + + " timed out, over " + Math.floor(Strophe.TIMEOUT * this.wait) + + " seconds since last activity"); + this._throttledRequestHandler(); + } + } + }, + + /** PrivateFunction: _onRequestStateChange + * _Private_ handler for Strophe.Request state changes. + * + * This function is called when the XMLHttpRequest readyState changes. + * It contains a lot of error handling logic for the many ways that + * requests can fail, and calls the request callback when requests + * succeed. + * + * Parameters: + * (Function) func - The handler for the request. + * (Strophe.Request) req - The request that is changing readyState. + */ + _onRequestStateChange: function (func, req) + { + Strophe.debug("request id " + req.id + + "." + req.sends + " state changed to " + + req.xhr.readyState); + + if (req.abort) { + req.abort = false; + return; + } + + // request complete + var reqStatus; + if (req.xhr.readyState == 4) { + reqStatus = 0; + try { + reqStatus = req.xhr.status; + } catch (e) { + // ignore errors from undefined status attribute. works + // around a browser bug + } + + if (typeof(reqStatus) == "undefined") { + reqStatus = 0; + } + + if (this.disconnecting) { + if (reqStatus >= 400) { + this._hitError(reqStatus); + return; + } + } + + var reqIs0 = (this._requests[0] == req); + var reqIs1 = (this._requests[1] == req); + + if ((reqStatus > 0 && reqStatus < 500) || req.sends > 5) { + // remove from internal queue + this._removeRequest(req); + Strophe.debug("request id " + + req.id + + " should now be removed"); + } + + // request succeeded + if (reqStatus == 200) { + // if request 1 finished, or request 0 finished and request + // 1 is over Strophe.SECONDARY_TIMEOUT seconds old, we need to + // restart the other - both will be in the first spot, as the + // completed request has been removed from the queue already + if (reqIs1 || + (reqIs0 && this._requests.length > 0 && + this._requests[0].age() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait))) { + this._restartRequest(0); + } + // call handler + Strophe.debug("request id " + + req.id + "." + + req.sends + " got 200"); + func(req); + this.errors = 0; + } else { + Strophe.error("request id " + + req.id + "." + + req.sends + " error " + reqStatus + + " happened"); + if (reqStatus === 0 || + (reqStatus >= 400 && reqStatus < 600) || + reqStatus >= 12000) { + this._hitError(reqStatus); + if (reqStatus >= 400 && reqStatus < 500) { + this._conn._changeConnectStatus(Strophe.Status.DISCONNECTING, + null); + this._conn._doDisconnect(); + } + } + } + + if (!((reqStatus > 0 && reqStatus < 500) || + req.sends > 5)) { + this._throttledRequestHandler(); + } + } + }, + + /** PrivateFunction: _processRequest + * _Private_ function to process a request in the queue. + * + * This function takes requests off the queue and sends them and + * restarts dead requests. + * + * Parameters: + * (Integer) i - The index of the request in the queue. + */ + _processRequest: function (i) + { + var self = this; + var req = this._requests[i]; + var reqStatus = -1; + + try { + if (req.xhr.readyState == 4) { + reqStatus = req.xhr.status; + } + } catch (e) { + Strophe.error("caught an error in _requests[" + i + + "], reqStatus: " + reqStatus); + } + + if (typeof(reqStatus) == "undefined") { + reqStatus = -1; + } + + // make sure we limit the number of retries + if (req.sends > this._conn.maxRetries) { + this._conn._onDisconnectTimeout(); + return; + } + + var time_elapsed = req.age(); + var primaryTimeout = (!isNaN(time_elapsed) && + time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)); + var secondaryTimeout = (req.dead !== null && + req.timeDead() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)); + var requestCompletedWithServerError = (req.xhr.readyState == 4 && + (reqStatus < 1 || + reqStatus >= 500)); + if (primaryTimeout || secondaryTimeout || + requestCompletedWithServerError) { + if (secondaryTimeout) { + Strophe.error("Request " + + this._requests[i].id + + " timed out (secondary), restarting"); + } + req.abort = true; + req.xhr.abort(); + // setting to null fails on IE6, so set to empty function + req.xhr.onreadystatechange = function () {}; + this._requests[i] = new Strophe.Request(req.xmlData, + req.origFunc, + req.rid, + req.sends); + req = this._requests[i]; + } + + if (req.xhr.readyState === 0) { + Strophe.debug("request id " + req.id + + "." + req.sends + " posting"); + + try { + req.xhr.open("POST", this._conn.service, this._conn.options.sync ? false : true); + req.xhr.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); + } catch (e2) { + Strophe.error("XHR open failed."); + if (!this._conn.connected) { + this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, + "bad-service"); + } + this._conn.disconnect(); + return; + } + + // Fires the XHR request -- may be invoked immediately + // or on a gradually expanding retry window for reconnects + var sendFunc = function () { + req.date = new Date(); + if (self._conn.options.customHeaders){ + var headers = self._conn.options.customHeaders; + for (var header in headers) { + if (headers.hasOwnProperty(header)) { + req.xhr.setRequestHeader(header, headers[header]); + } + } + } + req.xhr.send(req.data); + }; + + // Implement progressive backoff for reconnects -- + // First retry (send == 1) should also be instantaneous + if (req.sends > 1) { + // Using a cube of the retry number creates a nicely + // expanding retry window + var backoff = Math.min(Math.floor(Strophe.TIMEOUT * this.wait), + Math.pow(req.sends, 3)) * 1000; + setTimeout(sendFunc, backoff); + } else { + sendFunc(); + } + + req.sends++; + + if (this._conn.xmlOutput !== Strophe.Connection.prototype.xmlOutput) { + if (req.xmlData.nodeName === this.strip && req.xmlData.childNodes.length) { + this._conn.xmlOutput(req.xmlData.childNodes[0]); + } else { + this._conn.xmlOutput(req.xmlData); + } + } + if (this._conn.rawOutput !== Strophe.Connection.prototype.rawOutput) { + this._conn.rawOutput(req.data); + } + } else { + Strophe.debug("_processRequest: " + + (i === 0 ? "first" : "second") + + " request has readyState of " + + req.xhr.readyState); + } + }, + + /** PrivateFunction: _removeRequest + * _Private_ function to remove a request from the queue. + * + * Parameters: + * (Strophe.Request) req - The request to remove. + */ + _removeRequest: function (req) + { + Strophe.debug("removing request"); + + var i; + for (i = this._requests.length - 1; i >= 0; i--) { + if (req == this._requests[i]) { + this._requests.splice(i, 1); + } + } + + // IE6 fails on setting to null, so set to empty function + req.xhr.onreadystatechange = function () {}; + + this._throttledRequestHandler(); + }, + + /** PrivateFunction: _restartRequest + * _Private_ function to restart a request that is presumed dead. + * + * Parameters: + * (Integer) i - The index of the request in the queue. + */ + _restartRequest: function (i) + { + var req = this._requests[i]; + if (req.dead === null) { + req.dead = new Date(); + } + + this._processRequest(i); + }, + + /** PrivateFunction: _reqToData + * _Private_ function to get a stanza out of a request. + * + * Tries to extract a stanza out of a Request Object. + * When this fails the current connection will be disconnected. + * + * Parameters: + * (Object) req - The Request. + * + * Returns: + * The stanza that was passed. + */ + _reqToData: function (req) + { + try { + return req.getResponse(); + } catch (e) { + if (e != "parsererror") { throw e; } + this._conn.disconnect("strophe-parsererror"); + } + }, + + /** PrivateFunction: _sendTerminate + * _Private_ function to send initial disconnect sequence. + * + * This is the first step in a graceful disconnect. It sends + * the BOSH server a terminate body and includes an unavailable + * presence if authentication has completed. + */ + _sendTerminate: function (pres) + { + Strophe.info("_sendTerminate was called"); + var body = this._buildBody().attrs({type: "terminate"}); + + if (pres) { + body.cnode(pres.tree()); + } + + var req = new Strophe.Request(body.tree(), + this._onRequestStateChange.bind( + this, this._conn._dataRecv.bind(this._conn)), + body.tree().getAttribute("rid")); + + this._requests.push(req); + this._throttledRequestHandler(); + }, + + /** PrivateFunction: _send + * _Private_ part of the Connection.send function for BOSH + * + * Just triggers the RequestHandler to send the messages that are in the queue + */ + _send: function () { + clearTimeout(this._conn._idleTimeout); + this._throttledRequestHandler(); + this._conn._idleTimeout = setTimeout(this._conn._onIdle.bind(this._conn), 100); + }, + + /** PrivateFunction: _sendRestart + * + * Send an xmpp:restart stanza. + */ + _sendRestart: function () + { + this._throttledRequestHandler(); + clearTimeout(this._conn._idleTimeout); + }, + + /** PrivateFunction: _throttledRequestHandler + * _Private_ function to throttle requests to the connection window. + * + * This function makes sure we don't send requests so fast that the + * request ids overflow the connection window in the case that one + * request died. + */ + _throttledRequestHandler: function () + { + if (!this._requests) { + Strophe.debug("_throttledRequestHandler called with " + + "undefined requests"); + } else { + Strophe.debug("_throttledRequestHandler called with " + + this._requests.length + " requests"); + } + + if (!this._requests || this._requests.length === 0) { + return; + } + + if (this._requests.length > 0) { + this._processRequest(0); + } + + if (this._requests.length > 1 && + Math.abs(this._requests[0].rid - + this._requests[1].rid) < this.window) { + this._processRequest(1); + } + } +}; +return Strophe; +})); + +/* + This program is distributed under the terms of the MIT license. + Please see the LICENSE file for details. + + Copyright 2006-2008, OGG, LLC +*/ + +/* jshint undef: true, unused: true:, noarg: true, latedef: true */ +/* global define, window, clearTimeout, WebSocket, DOMParser, Strophe, $build */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe-websocket',['strophe-core'], function (core) { + return factory( + core.Strophe, + core.$build + ); + }); + } else { + // Browser globals + return factory(Strophe, $build); + } +}(this, function (Strophe, $build) { + +/** Class: Strophe.WebSocket + * _Private_ helper class that handles WebSocket Connections + * + * The Strophe.WebSocket class is used internally by Strophe.Connection + * to encapsulate WebSocket sessions. It is not meant to be used from user's code. + */ + +/** File: websocket.js + * A JavaScript library to enable XMPP over Websocket in Strophejs. + * + * This file implements XMPP over WebSockets for Strophejs. + * If a Connection is established with a Websocket url (ws://...) + * Strophe will use WebSockets. + * For more information on XMPP-over-WebSocket see RFC 7395: + * http://tools.ietf.org/html/rfc7395 + * + * WebSocket support implemented by Andreas Guth (andreas.guth@rwth-aachen.de) + */ + +/** PrivateConstructor: Strophe.Websocket + * Create and initialize a Strophe.WebSocket object. + * Currently only sets the connection Object. + * + * Parameters: + * (Strophe.Connection) connection - The Strophe.Connection that will use WebSockets. + * + * Returns: + * A new Strophe.WebSocket object. + */ +Strophe.Websocket = function(connection) { + this._conn = connection; + this.strip = "wrapper"; + + var service = connection.service; + if (service.indexOf("ws:") !== 0 && service.indexOf("wss:") !== 0) { + // If the service is not an absolute URL, assume it is a path and put the absolute + // URL together from options, current URL and the path. + var new_service = ""; + + if (connection.options.protocol === "ws" && window.location.protocol !== "https:") { + new_service += "ws"; + } else { + new_service += "wss"; + } + + new_service += "://" + window.location.host; + + if (service.indexOf("/") !== 0) { + new_service += window.location.pathname + service; + } else { + new_service += service; + } + + connection.service = new_service; + } +}; + +Strophe.Websocket.prototype = { + /** PrivateFunction: _buildStream + * _Private_ helper function to generate the start tag for WebSockets + * + * Returns: + * A Strophe.Builder with a element. + */ + _buildStream: function () + { + return $build("open", { + "xmlns": Strophe.NS.FRAMING, + "to": this._conn.domain, + "version": '1.0' + }); + }, + + /** PrivateFunction: _check_streamerror + * _Private_ checks a message for stream:error + * + * Parameters: + * (Strophe.Request) bodyWrap - The received stanza. + * connectstatus - The ConnectStatus that will be set on error. + * Returns: + * true if there was a streamerror, false otherwise. + */ + _check_streamerror: function (bodyWrap, connectstatus) { + var errors = bodyWrap.getElementsByTagNameNS(Strophe.NS.STREAM, "error"); + if (errors.length === 0) { + return false; + } + var error = errors[0]; + + var condition = ""; + var text = ""; + + var ns = "urn:ietf:params:xml:ns:xmpp-streams"; + for (var i = 0; i < error.childNodes.length; i++) { + var e = error.childNodes[i]; + if (e.getAttribute("xmlns") !== ns) { + break; + } if (e.nodeName === "text") { + text = e.textContent; + } else { + condition = e.nodeName; + } + } + + var errorString = "WebSocket stream error: "; + + if (condition) { + errorString += condition; + } else { + errorString += "unknown"; + } + + if (text) { + errorString += " - " + condition; + } + + Strophe.error(errorString); + + // close the connection on stream_error + this._conn._changeConnectStatus(connectstatus, condition); + this._conn._doDisconnect(); + return true; + }, + + /** PrivateFunction: _reset + * Reset the connection. + * + * This function is called by the reset function of the Strophe Connection. + * Is not needed by WebSockets. + */ + _reset: function () + { + return; + }, + + /** PrivateFunction: _connect + * _Private_ function called by Strophe.Connection.connect + * + * Creates a WebSocket for a connection and assigns Callbacks to it. + * Does nothing if there already is a WebSocket. + */ + _connect: function () { + // Ensure that there is no open WebSocket from a previous Connection. + this._closeSocket(); + + // Create the new WobSocket + this.socket = new WebSocket(this._conn.service, "xmpp"); + this.socket.onopen = this._onOpen.bind(this); + this.socket.onerror = this._onError.bind(this); + this.socket.onclose = this._onClose.bind(this); + this.socket.onmessage = this._connect_cb_wrapper.bind(this); + }, + + /** PrivateFunction: _connect_cb + * _Private_ function called by Strophe.Connection._connect_cb + * + * checks for stream:error + * + * Parameters: + * (Strophe.Request) bodyWrap - The received stanza. + */ + _connect_cb: function(bodyWrap) { + var error = this._check_streamerror(bodyWrap, Strophe.Status.CONNFAIL); + if (error) { + return Strophe.Status.CONNFAIL; + } + }, + + /** PrivateFunction: _handleStreamStart + * _Private_ function that checks the opening tag for errors. + * + * Disconnects if there is an error and returns false, true otherwise. + * + * Parameters: + * (Node) message - Stanza containing the tag. + */ + _handleStreamStart: function(message) { + var error = false; + + // Check for errors in the tag + var ns = message.getAttribute("xmlns"); + if (typeof ns !== "string") { + error = "Missing xmlns in "; + } else if (ns !== Strophe.NS.FRAMING) { + error = "Wrong xmlns in : " + ns; + } + + var ver = message.getAttribute("version"); + if (typeof ver !== "string") { + error = "Missing version in "; + } else if (ver !== "1.0") { + error = "Wrong version in : " + ver; + } + + if (error) { + this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, error); + this._conn._doDisconnect(); + return false; + } + + return true; + }, + + /** PrivateFunction: _connect_cb_wrapper + * _Private_ function that handles the first connection messages. + * + * On receiving an opening stream tag this callback replaces itself with the real + * message handler. On receiving a stream error the connection is terminated. + */ + _connect_cb_wrapper: function(message) { + if (message.data.indexOf("\s*)*/, ""); + if (data === '') return; + + var streamStart = new DOMParser().parseFromString(data, "text/xml").documentElement; + this._conn.xmlInput(streamStart); + this._conn.rawInput(message.data); + + //_handleStreamSteart will check for XML errors and disconnect on error + if (this._handleStreamStart(streamStart)) { + //_connect_cb will check for stream:error and disconnect on error + this._connect_cb(streamStart); + } + } else if (message.data.indexOf(" tag."); + } + } + this._conn._doDisconnect(); + }, + + /** PrivateFunction: _doDisconnect + * _Private_ function to disconnect. + * + * Just closes the Socket for WebSockets + */ + _doDisconnect: function () + { + Strophe.info("WebSockets _doDisconnect was called"); + this._closeSocket(); + }, + + /** PrivateFunction _streamWrap + * _Private_ helper function to wrap a stanza in a tag. + * This is used so Strophe can process stanzas from WebSockets like BOSH + */ + _streamWrap: function (stanza) + { + return "" + stanza + ''; + }, + + + /** PrivateFunction: _closeSocket + * _Private_ function to close the WebSocket. + * + * Closes the socket if it is still open and deletes it + */ + _closeSocket: function () + { + if (this.socket) { try { + this.socket.close(); + } catch (e) {} } + this.socket = null; + }, + + /** PrivateFunction: _emptyQueue + * _Private_ function to check if the message queue is empty. + * + * Returns: + * True, because WebSocket messages are send immediately after queueing. + */ + _emptyQueue: function () + { + return true; + }, + + /** PrivateFunction: _onClose + * _Private_ function to handle websockets closing. + * + * Nothing to do here for WebSockets + */ + _onClose: function() { + if(this._conn.connected && !this._conn.disconnecting) { + Strophe.error("Websocket closed unexcectedly"); + this._conn._doDisconnect(); + } else { + Strophe.info("Websocket closed"); + } + }, + + /** PrivateFunction: _no_auth_received + * + * Called on stream start/restart when no stream:features + * has been received. + */ + _no_auth_received: function (_callback) + { + Strophe.error("Server did not send any auth methods"); + this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "Server did not send any auth methods"); + if (_callback) { + _callback = _callback.bind(this._conn); + _callback(); + } + this._conn._doDisconnect(); + }, + + /** PrivateFunction: _onDisconnectTimeout + * _Private_ timeout handler for handling non-graceful disconnection. + * + * This does nothing for WebSockets + */ + _onDisconnectTimeout: function () {}, + + /** PrivateFunction: _abortAllRequests + * _Private_ helper function that makes sure all pending requests are aborted. + */ + _abortAllRequests: function () {}, + + /** PrivateFunction: _onError + * _Private_ function to handle websockets errors. + * + * Parameters: + * (Object) error - The websocket error. + */ + _onError: function(error) { + Strophe.error("Websocket error " + error); + this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established was disconnected."); + this._disconnect(); + }, + + /** PrivateFunction: _onIdle + * _Private_ function called by Strophe.Connection._onIdle + * + * sends all queued stanzas + */ + _onIdle: function () { + var data = this._conn._data; + if (data.length > 0 && !this._conn.paused) { + for (var i = 0; i < data.length; i++) { + if (data[i] !== null) { + var stanza, rawStanza; + if (data[i] === "restart") { + stanza = this._buildStream().tree(); + } else { + stanza = data[i]; + } + rawStanza = Strophe.serialize(stanza); + this._conn.xmlOutput(stanza); + this._conn.rawOutput(rawStanza); + this.socket.send(rawStanza); + } + } + this._conn._data = []; + } + }, + + /** PrivateFunction: _onMessage + * _Private_ function to handle websockets messages. + * + * This function parses each of the messages as if they are full documents. [TODO : We may actually want to use a SAX Push parser]. + * + * Since all XMPP traffic starts with "" + * The first stanza will always fail to be parsed... + * Addtionnaly, the seconds stanza will always be a with the stream NS defined in the previous stanza... so we need to 'force' the inclusion of the NS in this stanza! + * + * Parameters: + * (string) message - The websocket message. + */ + _onMessage: function(message) { + var elem, data; + // check for closing stream + var close = ''; + if (message.data === close) { + this._conn.rawInput(close); + this._conn.xmlInput(message); + if (!this._conn.disconnecting) { + this._conn._doDisconnect(); + } + return; + } else if (message.data.search(" tag before we close the connection + return; + } + this._conn._dataRecv(elem, message.data); + }, + + /** PrivateFunction: _onOpen + * _Private_ function to handle websockets connection setup. + * + * The opening stream tag is sent here. + */ + _onOpen: function() { + Strophe.info("Websocket open"); + var start = this._buildStream(); + this._conn.xmlOutput(start.tree()); + + var startString = Strophe.serialize(start); + this._conn.rawOutput(startString); + this.socket.send(startString); + }, + + /** PrivateFunction: _reqToData + * _Private_ function to get a stanza out of a request. + * + * WebSockets don't use requests, so the passed argument is just returned. + * + * Parameters: + * (Object) stanza - The stanza. + * + * Returns: + * The stanza that was passed. + */ + _reqToData: function (stanza) + { + return stanza; + }, + + /** PrivateFunction: _send + * _Private_ part of the Connection.send function for WebSocket + * + * Just flushes the messages that are in the queue + */ + _send: function () { + this._conn.flush(); + }, + + /** PrivateFunction: _sendRestart + * + * Send an xmpp:restart stanza. + */ + _sendRestart: function () + { + clearTimeout(this._conn._idleTimeout); + this._conn._onIdle.bind(this._conn)(); + } +}; +return Strophe; +})); + +define("strophe", [ + "strophe-core", + "strophe-bosh", + "strophe-websocket" +], function (wrapper) { + return wrapper; +}); + +/* + Copyright 2010, François de Metz +*/ +/** + * Roster Plugin + * Allow easily roster management + * + * Features + * * Get roster from server + * * handle presence + * * handle roster iq + * * subscribe/unsubscribe + * * authorize/unauthorize + * * roster versioning (xep 237) + */ +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe.roster',[ + "strophe" + ], function (Strophe) { + factory( + Strophe.Strophe, + Strophe.$build, + Strophe.$iq , + Strophe.$msg, + Strophe.$pres + ); + return Strophe; + }); + } else { + // Browser globals + factory( + root.Strophe, + root.$build, + root.$iq , + root.$msg, + root.$pres + ); + } +}(this, function (Strophe, $build, $iq, $msg, $pres) { + + Strophe.addConnectionPlugin('roster', { + /** Function: init + * Plugin init + * + * Parameters: + * (Strophe.Connection) conn - Strophe connection + */ + init: function(conn) { + this._connection = conn; + this._callbacks = []; + /** Property: items + * Roster items + * [ + * { + * name : "", + * jid : "", + * subscription : "", + * ask : "", + * groups : ["", ""], + * resources : { + * myresource : { + * show : "", + * status : "", + * priority : "" + * } + * } + * } + * ] + */ + this.items = []; + /** Property: ver + * current roster revision + * always null if server doesn't support xep 237 + */ + this.ver = null; + // Override the connect and attach methods to always add presence and roster handlers. + // They are removed when the connection disconnects, so must be added on connection. + var oldCallback, roster = this, _connect = conn.connect, _attach = conn.attach; + var newCallback = function(status) { + if (status == Strophe.Status.ATTACHED || status == Strophe.Status.CONNECTED) { + try { + // Presence subscription + conn.addHandler(roster._onReceivePresence.bind(roster), null, 'presence', null, null, null); + conn.addHandler(roster._onReceiveIQ.bind(roster), Strophe.NS.ROSTER, 'iq', "set", null, null); + } + catch (e) { + Strophe.error(e); + } + } + if (typeof oldCallback === "function") { + oldCallback.apply(this, arguments); + } + }; + + conn.connect = function(jid, pass, callback, wait, hold, route) { + oldCallback = callback; + if (typeof jid == "undefined") + jid = null; + if (typeof pass == "undefined") + pass = null; + callback = newCallback; + _connect.apply(conn, [jid, pass, callback, wait, hold, route]); + }; + + conn.attach = function(jid, sid, rid, callback, wait, hold, wind) { + oldCallback = callback; + if (typeof jid == "undefined") + jid = null; + if (typeof sid == "undefined") + sid = null; + if (typeof rid == "undefined") + rid = null; + callback = newCallback; + _attach.apply(conn, [jid, sid, rid, callback, wait, hold, wind]); + }; + + Strophe.addNamespace('ROSTER_VER', 'urn:xmpp:features:rosterver'); + Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick'); + }, + + /** Function: supportVersioning + * return true if roster versioning is enabled on server + */ + supportVersioning: function() { + return (this._connection.features && this._connection.features.getElementsByTagName('ver').length > 0); + }, + + /** Function: get + * Get Roster on server + * + * Parameters: + * (Function) userCallback - callback on roster result + * (String) ver - current rev of roster + * (only used if roster versioning is enabled) + * (Array) items - initial items of ver + * (only used if roster versioning is enabled) + * In browser context you can use sessionStorage + * to store your roster in json (JSON.stringify()) + */ + get: function(userCallback, ver, items) { + var attrs = {xmlns: Strophe.NS.ROSTER}; + if (this.supportVersioning()) { + // empty rev because i want an rev attribute in the result + attrs.ver = ver || ''; + this.items = items || []; + } + var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs); + return this._connection.sendIQ(iq, + this._onReceiveRosterSuccess.bind(this, userCallback), + this._onReceiveRosterError.bind(this, userCallback)); + }, + + /** Function: registerCallback + * register callback on roster (presence and iq) + * + * Parameters: + * (Function) call_back + */ + registerCallback: function(call_back) { + this._callbacks.push(call_back); + }, + + /** Function: findItem + * Find item by JID + * + * Parameters: + * (String) jid + */ + findItem : function(jid) { + try { + for (var i = 0; i < this.items.length; i++) { + if (this.items[i] && this.items[i].jid == jid) { + return this.items[i]; + } + } + } catch (e) { + Strophe.error(e); + } + return false; + }, + + /** Function: removeItem + * Remove item by JID + * + * Parameters: + * (String) jid + */ + removeItem : function(jid) { + for (var i = 0; i < this.items.length; i++) { + if (this.items[i] && this.items[i].jid == jid) { + this.items.splice(i, 1); + return true; + } + } + return false; + }, + + /** Function: subscribe + * Subscribe presence + * + * Parameters: + * (String) jid + * (String) message (optional) + * (String) nick (optional) + */ + subscribe: function(jid, message, nick) { + var pres = $pres({to: jid, type: "subscribe"}); + if (message && message !== "") { + pres.c("status").t(message).up(); + } + if (nick && nick !== "") { + pres.c('nick', {'xmlns': Strophe.NS.NICK}).t(nick).up(); + } + this._connection.send(pres); + }, + + /** Function: unsubscribe + * Unsubscribe presence + * + * Parameters: + * (String) jid + * (String) message + */ + unsubscribe: function(jid, message) { + var pres = $pres({to: jid, type: "unsubscribe"}); + if (message && message !== "") + pres.c("status").t(message); + this._connection.send(pres); + }, + + /** Function: authorize + * Authorize presence subscription + * + * Parameters: + * (String) jid + * (String) message + */ + authorize: function(jid, message) { + var pres = $pres({to: jid, type: "subscribed"}); + if (message && message !== "") + pres.c("status").t(message); + this._connection.send(pres); + }, + + /** Function: unauthorize + * Unauthorize presence subscription + * + * Parameters: + * (String) jid + * (String) message + */ + unauthorize: function(jid, message) { + var pres = $pres({to: jid, type: "unsubscribed"}); + if (message && message !== "") + pres.c("status").t(message); + this._connection.send(pres); + }, + + /** Function: add + * Add roster item + * + * Parameters: + * (String) jid - item jid + * (String) name - name + * (Array) groups + * (Function) call_back + */ + add: function(jid, name, groups, call_back) { + var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: jid, + name: name}); + for (var i = 0; i < groups.length; i++) { + iq.c('group').t(groups[i]).up(); + } + this._connection.sendIQ(iq, call_back, call_back); + }, + + /** Function: update + * Update roster item + * + * Parameters: + * (String) jid - item jid + * (String) name - name + * (Array) groups + * (Function) call_back + */ + update: function(jid, name, groups, call_back) { + var item = this.findItem(jid); + if (!item) { + throw "item not found"; + } + var newName = name || item.name; + var newGroups = groups || item.groups; + var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, + name: newName}); + for (var i = 0; i < newGroups.length; i++) { + iq.c('group').t(newGroups[i]).up(); + } + return this._connection.sendIQ(iq, call_back, call_back); + }, + + /** Function: remove + * Remove roster item + * + * Parameters: + * (String) jid - item jid + * (Function) call_back + */ + remove: function(jid, call_back) { + var item = this.findItem(jid); + if (!item) { + throw "item not found"; + } + var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, + subscription: "remove"}); + this._connection.sendIQ(iq, call_back, call_back); + }, + + /** PrivateFunction: _onReceiveRosterSuccess + * + */ + _onReceiveRosterSuccess: function(userCallback, stanza) { + this._updateItems(stanza); + if (typeof userCallback === "function") { + userCallback(this.items); + } + }, + + /** PrivateFunction: _onReceiveRosterError + * + */ + _onReceiveRosterError: function(userCallback, stanza) { + userCallback(this.items); + }, + + /** PrivateFunction: _onReceivePresence + * Handle presence + */ + _onReceivePresence : function(presence) { + // TODO: from is optional + var jid = presence.getAttribute('from'); + var from = Strophe.getBareJidFromJid(jid); + var item = this.findItem(from); + // not in roster + if (!item) { + return true; + } + var type = presence.getAttribute('type'); + if (type == 'unavailable') { + delete item.resources[Strophe.getResourceFromJid(jid)]; + } else if (!type) { + // TODO: add timestamp + item.resources[Strophe.getResourceFromJid(jid)] = { + show : (presence.getElementsByTagName('show').length !== 0) ? Strophe.getText(presence.getElementsByTagName('show')[0]) : "", + status : (presence.getElementsByTagName('status').length !== 0) ? Strophe.getText(presence.getElementsByTagName('status')[0]) : "", + priority : (presence.getElementsByTagName('priority').length !== 0) ? Strophe.getText(presence.getElementsByTagName('priority')[0]) : "" + }; + } else { + // Stanza is not a presence notification. (It's probably a subscription type stanza.) + return true; + } + this._call_backs(this.items, item); + return true; + }, + + /** PrivateFunction: _call_backs + * + */ + _call_backs : function(items, item) { + for (var i = 0; i < this._callbacks.length; i++) { + this._callbacks[i](items, item); + } + }, + + /** PrivateFunction: _onReceiveIQ + * Handle roster push. + */ + _onReceiveIQ : function(iq) { + var id = iq.getAttribute('id'); + var from = iq.getAttribute('from'); + // Receiving client MUST ignore stanza unless it has no from or from = user's JID. + if (from && from !== "" && from != this._connection.jid && from != Strophe.getBareJidFromJid(this._connection.jid)) + return true; + var iqresult = $iq({type: 'result', id: id, from: this._connection.jid}); + this._connection.send(iqresult); + this._updateItems(iq); + return true; + }, + /** PrivateFunction: _updateItems + * Update items from iq + */ + _updateItems : function(iq) { + var query = iq.getElementsByTagName('query'); + if (query.length !== 0) { + this.ver = query.item(0).getAttribute('ver'); + var self = this; + Strophe.forEachChild(query.item(0), 'item', + function (item) { + self._updateItem(item); + } + ); + } + this._call_backs(this.items); + }, + + /** PrivateFunction: _updateItem + * Update internal representation of roster item + */ + _updateItem : function(item) { + var jid = item.getAttribute("jid"); + var name = item.getAttribute("name"); + var subscription = item.getAttribute("subscription"); + var ask = item.getAttribute("ask"); + var groups = []; + Strophe.forEachChild(item, 'group', + function(group) { + groups.push(Strophe.getText(group)); + } + ); + + if (subscription == "remove") { + this.removeItem(jid); + return; + } + + item = this.findItem(jid); + if (!item) { this.items.push({ + name : name, + jid : jid, + subscription : subscription, + ask : ask, + groups : groups, + resources : {} + }); + } else { + item.name = name; + item.subscription = subscription; + item.ask = ask; + item.groups = groups; + } + } }); -})(this); +})); + +/* Plugin to implement the vCard extension. + * http://xmpp.org/extensions/xep-0054.html + * + * Author: Nathan Zorn (nathan.zorn@gmail.com) + * AMD support by JC Brand + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe.vcard',[ + "strophe" + ], function (Strophe) { + factory( + Strophe.Strophe, + Strophe.$build, + Strophe.$iq , + Strophe.$msg, + Strophe.$pres + ); + return Strophe; + }); + } else { + // Browser globals + factory( + root.Strophe, + root.$build, + root.$iq , + root.$msg, + root.$pres + ); + } +}(this, function (Strophe, $build, $iq, $msg, $pres) { + + var buildIq = function(type, jid, vCardEl) { + var iq = $iq(jid ? {type: type, to: jid} : {type: type}); + iq.c("vCard", {xmlns: Strophe.NS.VCARD}); + if (vCardEl) { + iq.cnode(vCardEl); + } + return iq; + }; + + Strophe.addConnectionPlugin('vcard', { + _connection: null, + init: function(conn) { + this._connection = conn; + return Strophe.addNamespace('VCARD', 'vcard-temp'); + }, + + /*Function + Retrieve a vCard for a JID/Entity + Parameters: + (Function) handler_cb - The callback function used to handle the request. + (String) jid - optional - The name of the entity to request the vCard + If no jid is given, this function retrieves the current user's vcard. + */ + get: function(handler_cb, jid, error_cb) { + var iq = buildIq("get", jid); + return this._connection.sendIQ(iq, handler_cb, error_cb); + }, + + /* Function + Set an entity's vCard. + */ + set: function(handler_cb, vCardEl, jid, error_cb) { + var iq = buildIq("set", jid, vCardEl); + return this._connection.sendIQ(iq, handler_cb, error_cb); + } + }); +})); + +/* + Copyright 2010, François de Metz +*/ + +/** + * Disco Strophe Plugin + * Implement http://xmpp.org/extensions/xep-0030.html + * TODO: manage node hierarchies, and node on info request + */ + +(function (root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define('strophe.disco',[ + "strophe" + ], function (Strophe) { + factory( + Strophe.Strophe, + Strophe.$build, + Strophe.$iq , + Strophe.$msg, + Strophe.$pres + ); + return Strophe; + }); + } else { + // Browser globals + factory( + root.Strophe, + root.$build, + root.$iq , + root.$msg, + root.$pres + ); + } +}(this, function (Strophe, $build, $iq, $msg, $pres) { + +Strophe.addConnectionPlugin('disco', +{ + _connection: null, + _identities : [], + _features : [], + _items : [], + /** Function: init + * Plugin init + * + * Parameters: + * (Strophe.Connection) conn - Strophe connection + */ + init: function(conn) + { + this._connection = conn; + this._identities = []; + this._features = []; + this._items = []; + // disco info + conn.addHandler(this._onDiscoInfo.bind(this), Strophe.NS.DISCO_INFO, 'iq', 'get', null, null); + // disco items + conn.addHandler(this._onDiscoItems.bind(this), Strophe.NS.DISCO_ITEMS, 'iq', 'get', null, null); + }, + /** Function: addIdentity + * See http://xmpp.org/registrar/disco-categories.html + * Parameters: + * (String) category - category of identity (like client, automation, etc ...) + * (String) type - type of identity (like pc, web, bot , etc ...) + * (String) name - name of identity in natural language + * (String) lang - lang of name parameter + * + * Returns: + * Boolean + */ + addIdentity: function(category, type, name, lang) + { + for (var i=0; i= 0 && /(rv)(?::| )([\w.]+)/.exec( ua ) || - ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || - []; + var match = /(edge)\/([\w.]+)/.exec( ua ) || + /(opr)[\/]([\w.]+)/.exec( ua ) || + /(chrome)[ \/]([\w.]+)/.exec( ua ) || + /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec( ua ) || + /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec( ua ) || + /(webkit)[ \/]([\w.]+)/.exec( ua ) || + /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || + /(msie) ([\w.]+)/.exec( ua ) || + ua.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec( ua ) || + ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || + []; - var platform_match = /(ipad)/.exec( ua ) || - /(iphone)/.exec( ua ) || - /(android)/.exec( ua ) || - /(windows phone)/.exec( ua ) || - /(win)/.exec( ua ) || - /(mac)/.exec( ua ) || - /(linux)/.exec( ua ) || - /(cros)/i.exec( ua ) || - []; + var platform_match = /(ipad)/.exec( ua ) || + /(ipod)/.exec( ua ) || + /(iphone)/.exec( ua ) || + /(kindle)/.exec( ua ) || + /(silk)/.exec( ua ) || + /(android)/.exec( ua ) || + /(windows phone)/.exec( ua ) || + /(win)/.exec( ua ) || + /(mac)/.exec( ua ) || + /(linux)/.exec( ua ) || + /(cros)/.exec( ua ) || + /(playbook)/.exec( ua ) || + /(bb)/.exec( ua ) || + /(blackberry)/.exec( ua ) || + []; - return { - browser: match[ 3 ] || match[ 1 ] || "", - version: match[ 2 ] || "0", - platform: platform_match[ 0 ] || "" - }; + return { + browser: match[ 5 ] || match[ 3 ] || match[ 1 ] || "", + version: match[ 2 ] || match[ 4 ] || "0", + versionNumber: match[ 4 ] || match[ 2 ] || "0", + platform: platform_match[ 0 ] || "" + }; }; matched = jQuery.uaMatch( window.navigator.userAgent ); browser = {}; if ( matched.browser ) { - browser[ matched.browser ] = true; - browser.version = matched.version; - browser.versionNumber = parseInt(matched.version); + browser[ matched.browser ] = true; + browser.version = matched.version; + browser.versionNumber = parseInt(matched.versionNumber, 10); } if ( matched.platform ) { - browser[ matched.platform ] = true; + browser[ matched.platform ] = true; } // These are all considered mobile platforms, meaning they run a mobile browser - if ( browser.android || browser.ipad || browser.iphone || browser[ "windows phone" ] ) { - browser.mobile = true; + if ( browser.android || browser.bb || browser.blackberry || browser.ipad || browser.iphone || + browser.ipod || browser.kindle || browser.playbook || browser.silk || browser[ "windows phone" ]) { + browser.mobile = true; } // These are all considered desktop platforms, meaning they run a desktop browser if ( browser.cros || browser.mac || browser.linux || browser.win ) { - browser.desktop = true; + browser.desktop = true; } // Chrome, Opera 15+ and Safari are webkit based browsers if ( browser.chrome || browser.opr || browser.safari ) { - browser.webkit = true; + browser.webkit = true; } // IE11 has a new token so we will assign it msie to avoid breaking changes - if ( browser.rv ) - { - var ie = "msie"; + // IE12 disguises itself as Chrome, but adds a new Edge token. + if ( browser.rv || browser.edge ) { + var ie = "msie"; - matched.browser = ie; - browser[ie] = true; + matched.browser = ie; + browser[ie] = true; + } + + // Blackberry browsers are marked as Safari on BlackBerry + if ( browser.safari && browser.blackberry ) { + var blackberry = "blackberry"; + + matched.browser = blackberry; + browser[blackberry] = true; + } + + // Playbook browsers are marked as Safari on Playbook + if ( browser.safari && browser.playbook ) { + var playbook = "playbook"; + + matched.browser = playbook; + browser[playbook] = true; + } + + // BB10 is a newer OS version of BlackBerry + if ( browser.bb ) { + var bb = "blackberry"; + + matched.browser = bb; + browser[bb] = true; } // Opera 15+ are identified as opr - if ( browser.opr ) - { - var opera = "opera"; + if ( browser.opr ) { + var opera = "opera"; - matched.browser = opera; - browser[opera] = true; + matched.browser = opera; + browser[opera] = true; } // Stock Android browsers are marked as Safari on Android. - if ( browser.safari && browser.android ) - { - var android = "android"; + if ( browser.safari && browser.android ) { + var android = "android"; - matched.browser = android; - browser[android] = true; + matched.browser = android; + browser[android] = true; + } + + // Kindle browsers are marked as Safari on Kindle + if ( browser.safari && browser.kindle ) { + var kindle = "kindle"; + + matched.browser = kindle; + browser[kindle] = true; + } + + // Kindle Silk browsers are marked as Safari on Kindle + if ( browser.safari && browser.silk ) { + var silk = "silk"; + + matched.browser = silk; + browser[silk] = true; } // Assign the name and platform variable @@ -20623,7081 +26790,26 @@ return Backbone.BrowserStorage; return {}; })); -// This code was written by Tyler Akins and has been placed in the -// public domain. It would be nice if you left this header intact. -// Base64 code from Tyler Akins -- http://rumkin.com - -var Base64 = (function () { - var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - - var obj = { - /** - * Encodes a string in base64 - * @param {String} input The string to encode in base64. - */ - encode: function (input) { - var output = ""; - var chr1, chr2, chr3; - var enc1, enc2, enc3, enc4; - var i = 0; - - do { - chr1 = input.charCodeAt(i++); - chr2 = input.charCodeAt(i++); - chr3 = input.charCodeAt(i++); - - enc1 = chr1 >> 2; - enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); - enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); - enc4 = chr3 & 63; - - if (isNaN(chr2)) { - enc3 = enc4 = 64; - } else if (isNaN(chr3)) { - enc4 = 64; - } - - output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) + - keyStr.charAt(enc3) + keyStr.charAt(enc4); - } while (i < input.length); - - return output; - }, - - /** - * Decodes a base64 string. - * @param {String} input The string to decode. - */ - decode: function (input) { - var output = ""; - var chr1, chr2, chr3; - var enc1, enc2, enc3, enc4; - var i = 0; - - // remove all characters that are not A-Z, a-z, 0-9, +, /, or = - input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); - - do { - enc1 = keyStr.indexOf(input.charAt(i++)); - enc2 = keyStr.indexOf(input.charAt(i++)); - enc3 = keyStr.indexOf(input.charAt(i++)); - enc4 = keyStr.indexOf(input.charAt(i++)); - - chr1 = (enc1 << 2) | (enc2 >> 4); - chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); - chr3 = ((enc3 & 3) << 6) | enc4; - - output = output + String.fromCharCode(chr1); - - if (enc3 != 64) { - output = output + String.fromCharCode(chr2); - } - if (enc4 != 64) { - output = output + String.fromCharCode(chr3); - } - } while (i < input.length); - - return output; - } - }; - - return obj; -})(); - -/* - * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined - * in FIPS PUB 180-1 - * Version 2.1a Copyright Paul Johnston 2000 - 2002. - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for details. - */ - -/* Some functions and variables have been stripped for use with Strophe */ - -/* - * These are the functions you'll usually want to call - * They take string arguments and return either hex or base-64 encoded strings - */ -function b64_sha1(s){return binb2b64(core_sha1(str2binb(s),s.length * 8));} -function str_sha1(s){return binb2str(core_sha1(str2binb(s),s.length * 8));} -function b64_hmac_sha1(key, data){ return binb2b64(core_hmac_sha1(key, data));} -function str_hmac_sha1(key, data){ return binb2str(core_hmac_sha1(key, data));} - -/* - * Calculate the SHA-1 of an array of big-endian words, and a bit length - */ -function core_sha1(x, len) -{ - /* append padding */ - x[len >> 5] |= 0x80 << (24 - len % 32); - x[((len + 64 >> 9) << 4) + 15] = len; - - var w = new Array(80); - var a = 1732584193; - var b = -271733879; - var c = -1732584194; - var d = 271733878; - var e = -1009589776; - - var i, j, t, olda, oldb, oldc, oldd, olde; - for (i = 0; i < x.length; i += 16) - { - olda = a; - oldb = b; - oldc = c; - oldd = d; - olde = e; - - for (j = 0; j < 80; j++) - { - if (j < 16) { w[j] = x[i + j]; } - else { w[j] = rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1); } - t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), - safe_add(safe_add(e, w[j]), sha1_kt(j))); - e = d; - d = c; - c = rol(b, 30); - b = a; - a = t; - } - - a = safe_add(a, olda); - b = safe_add(b, oldb); - c = safe_add(c, oldc); - d = safe_add(d, oldd); - e = safe_add(e, olde); - } - return [a, b, c, d, e]; -} - -/* - * Perform the appropriate triplet combination function for the current - * iteration - */ -function sha1_ft(t, b, c, d) -{ - if (t < 20) { return (b & c) | ((~b) & d); } - if (t < 40) { return b ^ c ^ d; } - if (t < 60) { return (b & c) | (b & d) | (c & d); } - return b ^ c ^ d; -} - -/* - * Determine the appropriate additive constant for the current iteration - */ -function sha1_kt(t) -{ - return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : - (t < 60) ? -1894007588 : -899497514; -} - -/* - * Calculate the HMAC-SHA1 of a key and some data - */ -function core_hmac_sha1(key, data) -{ - var bkey = str2binb(key); - if (bkey.length > 16) { bkey = core_sha1(bkey, key.length * 8); } - - var ipad = new Array(16), opad = new Array(16); - for (var i = 0; i < 16; i++) - { - ipad[i] = bkey[i] ^ 0x36363636; - opad[i] = bkey[i] ^ 0x5C5C5C5C; - } - - var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * 8); - return core_sha1(opad.concat(hash), 512 + 160); -} - -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ -function safe_add(x, y) -{ - var lsw = (x & 0xFFFF) + (y & 0xFFFF); - var msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xFFFF); -} - -/* - * Bitwise rotate a 32-bit number to the left. - */ -function rol(num, cnt) -{ - return (num << cnt) | (num >>> (32 - cnt)); -} - -/* - * Convert an 8-bit or 16-bit string to an array of big-endian words - * In 8-bit function, characters >255 have their hi-byte silently ignored. - */ -function str2binb(str) -{ - var bin = []; - var mask = 255; - for (var i = 0; i < str.length * 8; i += 8) - { - bin[i>>5] |= (str.charCodeAt(i / 8) & mask) << (24 - i%32); - } - return bin; -} - -/* - * Convert an array of big-endian words to a string - */ -function binb2str(bin) -{ - var str = ""; - var mask = 255; - for (var i = 0; i < bin.length * 32; i += 8) - { - str += String.fromCharCode((bin[i>>5] >>> (24 - i%32)) & mask); - } - return str; -} - -/* - * Convert an array of big-endian words to a base-64 string - */ -function binb2b64(binarray) -{ - var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - var str = ""; - var triplet, j; - for (var i = 0; i < binarray.length * 4; i += 3) - { - triplet = (((binarray[i >> 2] >> 8 * (3 - i %4)) & 0xFF) << 16) | - (((binarray[i+1 >> 2] >> 8 * (3 - (i+1)%4)) & 0xFF) << 8 ) | - ((binarray[i+2 >> 2] >> 8 * (3 - (i+2)%4)) & 0xFF); - for (j = 0; j < 4; j++) - { - if (i * 8 + j * 6 > binarray.length * 32) { str += "="; } - else { str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); } - } - } - return str; -} - -/* - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ - -/* - * Everything that isn't used by Strophe has been stripped here! - */ - -var MD5 = (function () { - /* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ - var safe_add = function (x, y) { - var lsw = (x & 0xFFFF) + (y & 0xFFFF); - var msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xFFFF); - }; - - /* - * Bitwise rotate a 32-bit number to the left. - */ - var bit_rol = function (num, cnt) { - return (num << cnt) | (num >>> (32 - cnt)); - }; - - /* - * Convert a string to an array of little-endian words - */ - var str2binl = function (str) { - var bin = []; - for(var i = 0; i < str.length * 8; i += 8) - { - bin[i>>5] |= (str.charCodeAt(i / 8) & 255) << (i%32); - } - return bin; - }; - - /* - * Convert an array of little-endian words to a string - */ - var binl2str = function (bin) { - var str = ""; - for(var i = 0; i < bin.length * 32; i += 8) - { - str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & 255); - } - return str; - }; - - /* - * Convert an array of little-endian words to a hex string. - */ - var binl2hex = function (binarray) { - var hex_tab = "0123456789abcdef"; - var str = ""; - for(var i = 0; i < binarray.length * 4; i++) - { - str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + - hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); - } - return str; - }; - - /* - * These functions implement the four basic operations the algorithm uses. - */ - var md5_cmn = function (q, a, b, x, s, t) { - return safe_add(bit_rol(safe_add(safe_add(a, q),safe_add(x, t)), s),b); - }; - - var md5_ff = function (a, b, c, d, x, s, t) { - return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); - }; - - var md5_gg = function (a, b, c, d, x, s, t) { - return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); - }; - - var md5_hh = function (a, b, c, d, x, s, t) { - return md5_cmn(b ^ c ^ d, a, b, x, s, t); - }; - - var md5_ii = function (a, b, c, d, x, s, t) { - return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); - }; - - /* - * Calculate the MD5 of an array of little-endian words, and a bit length - */ - var core_md5 = function (x, len) { - /* append padding */ - x[len >> 5] |= 0x80 << ((len) % 32); - x[(((len + 64) >>> 9) << 4) + 14] = len; - - var a = 1732584193; - var b = -271733879; - var c = -1732584194; - var d = 271733878; - - var olda, oldb, oldc, oldd; - for (var i = 0; i < x.length; i += 16) - { - olda = a; - oldb = b; - oldc = c; - oldd = d; - - a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); - d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); - c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); - b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); - a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); - d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); - c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); - b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); - a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); - d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); - c = md5_ff(c, d, a, b, x[i+10], 17, -42063); - b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); - a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); - d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); - c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); - b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); - - a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); - d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); - c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); - b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); - a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); - d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); - c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); - b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); - a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); - d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); - c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); - b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); - a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); - d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); - c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); - b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); - - a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); - d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); - c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); - b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); - a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); - d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); - c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); - b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); - a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); - d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); - c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); - b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); - a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); - d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); - c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); - b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); - - a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); - d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); - c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); - b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); - a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); - d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); - c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); - b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); - a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); - d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); - c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); - b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); - a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); - d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); - c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); - b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); - - a = safe_add(a, olda); - b = safe_add(b, oldb); - c = safe_add(c, oldc); - d = safe_add(d, oldd); - } - return [a, b, c, d]; - }; - - - var obj = { - /* - * These are the functions you'll usually want to call. - * They take string arguments and return either hex or base-64 encoded - * strings. - */ - hexdigest: function (s) { - return binl2hex(core_md5(str2binl(s), s.length * 8)); - }, - - hash: function (s) { - return binl2str(core_md5(str2binl(s), s.length * 8)); - } - }; - - return obj; -})(); - -/* - This program is distributed under the terms of the MIT license. - Please see the LICENSE file for details. - - Copyright 2006-2008, OGG, LLC -*/ - -/* jshint undef: true, unused: true:, noarg: true, latedef: true */ -/*global document, window, setTimeout, clearTimeout, console, - ActiveXObject, Base64, MD5, DOMParser */ -// from sha1.js -/*global core_hmac_sha1, binb2str, str_hmac_sha1, str_sha1, b64_hmac_sha1*/ - -/** File: strophe.js - * A JavaScript library for XMPP BOSH/XMPP over Websocket. - * - * This is the JavaScript version of the Strophe library. Since JavaScript - * had no facilities for persistent TCP connections, this library uses - * Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate - * a persistent, stateful, two-way connection to an XMPP server. More - * information on BOSH can be found in XEP 124. - * - * This version of Strophe also works with WebSockets. - * For more information on XMPP-over WebSocket see this RFC draft: - * http://tools.ietf.org/html/draft-ietf-xmpp-websocket-00 - */ - -/** PrivateFunction: Function.prototype.bind - * Bind a function to an instance. - * - * This Function object extension method creates a bound method similar - * to those in Python. This means that the 'this' object will point - * to the instance you want. See - * MDC's bind() documentation and - * Bound Functions and Function Imports in JavaScript - * for a complete explanation. - * - * This extension already exists in some browsers (namely, Firefox 3), but - * we provide it to support those that don't. - * - * Parameters: - * (Object) obj - The object that will become 'this' in the bound function. - * (Object) argN - An option argument that will be prepended to the - * arguments given for the function call - * - * Returns: - * The bound function. - */ -if (!Function.prototype.bind) { - Function.prototype.bind = function (obj /*, arg1, arg2, ... */) - { - var func = this; - var _slice = Array.prototype.slice; - var _concat = Array.prototype.concat; - var _args = _slice.call(arguments, 1); - - return function () { - return func.apply(obj ? obj : this, - _concat.call(_args, - _slice.call(arguments, 0))); - }; - }; -} - -/** PrivateFunction: Array.prototype.indexOf - * Return the index of an object in an array. - * - * This function is not supplied by some JavaScript implementations, so - * we provide it if it is missing. This code is from: - * http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:indexOf - * - * Parameters: - * (Object) elt - The object to look for. - * (Integer) from - The index from which to start looking. (optional). - * - * Returns: - * The index of elt in the array or -1 if not found. - */ -if (!Array.prototype.indexOf) -{ - Array.prototype.indexOf = function(elt /*, from*/) - { - var len = this.length; - - var from = Number(arguments[1]) || 0; - from = (from < 0) ? Math.ceil(from) : Math.floor(from); - if (from < 0) { - from += len; - } - - for (; from < len; from++) { - if (from in this && this[from] === elt) { - return from; - } - } - - return -1; - }; -} - -/* All of the Strophe globals are defined in this special function below so - * that references to the globals become closures. This will ensure that - * on page reload, these references will still be available to callbacks - * that are still executing. - */ - -(function (callback) { -var Strophe; - -/** Function: $build - * Create a Strophe.Builder. - * This is an alias for 'new Strophe.Builder(name, attrs)'. - * - * Parameters: - * (String) name - The root element name. - * (Object) attrs - The attributes for the root element in object notation. - * - * Returns: - * A new Strophe.Builder object. - */ -function $build(name, attrs) { return new Strophe.Builder(name, attrs); } -/** Function: $msg - * Create a Strophe.Builder with a element as the root. - * - * Parmaeters: - * (Object) attrs - The element attributes in object notation. - * - * Returns: - * A new Strophe.Builder object. - */ -function $msg(attrs) { return new Strophe.Builder("message", attrs); } -/** Function: $iq - * Create a Strophe.Builder with an element as the root. - * - * Parameters: - * (Object) attrs - The element attributes in object notation. - * - * Returns: - * A new Strophe.Builder object. - */ -function $iq(attrs) { return new Strophe.Builder("iq", attrs); } -/** Function: $pres - * Create a Strophe.Builder with a element as the root. - * - * Parameters: - * (Object) attrs - The element attributes in object notation. - * - * Returns: - * A new Strophe.Builder object. - */ -function $pres(attrs) { return new Strophe.Builder("presence", attrs); } - -/** Class: Strophe - * An object container for all Strophe library functions. - * - * This class is just a container for all the objects and constants - * used in the library. It is not meant to be instantiated, but to - * provide a namespace for library objects, constants, and functions. - */ -Strophe = { - /** Constant: VERSION - * The version of the Strophe library. Unreleased builds will have - * a version of head-HASH where HASH is a partial revision. - */ - VERSION: "1.1.3", - - /** Constants: XMPP Namespace Constants - * Common namespace constants from the XMPP RFCs and XEPs. - * - * NS.HTTPBIND - HTTP BIND namespace from XEP 124. - * NS.BOSH - BOSH namespace from XEP 206. - * NS.CLIENT - Main XMPP client namespace. - * NS.AUTH - Legacy authentication namespace. - * NS.ROSTER - Roster operations namespace. - * NS.PROFILE - Profile namespace. - * NS.DISCO_INFO - Service discovery info namespace from XEP 30. - * NS.DISCO_ITEMS - Service discovery items namespace from XEP 30. - * NS.MUC - Multi-User Chat namespace from XEP 45. - * NS.SASL - XMPP SASL namespace from RFC 3920. - * NS.STREAM - XMPP Streams namespace from RFC 3920. - * NS.BIND - XMPP Binding namespace from RFC 3920. - * NS.SESSION - XMPP Session namespace from RFC 3920. - * NS.XHTML_IM - XHTML-IM namespace from XEP 71. - * NS.XHTML - XHTML body namespace from XEP 71. - */ - NS: { - HTTPBIND: "http://jabber.org/protocol/httpbind", - BOSH: "urn:xmpp:xbosh", - CLIENT: "jabber:client", - AUTH: "jabber:iq:auth", - ROSTER: "jabber:iq:roster", - PROFILE: "jabber:iq:profile", - DISCO_INFO: "http://jabber.org/protocol/disco#info", - DISCO_ITEMS: "http://jabber.org/protocol/disco#items", - MUC: "http://jabber.org/protocol/muc", - SASL: "urn:ietf:params:xml:ns:xmpp-sasl", - STREAM: "http://etherx.jabber.org/streams", - BIND: "urn:ietf:params:xml:ns:xmpp-bind", - SESSION: "urn:ietf:params:xml:ns:xmpp-session", - VERSION: "jabber:iq:version", - STANZAS: "urn:ietf:params:xml:ns:xmpp-stanzas", - XHTML_IM: "http://jabber.org/protocol/xhtml-im", - XHTML: "http://www.w3.org/1999/xhtml" - }, - - - /** Constants: XHTML_IM Namespace - * contains allowed tags, tag attributes, and css properties. - * Used in the createHtml function to filter incoming html into the allowed XHTML-IM subset. - * See http://xmpp.org/extensions/xep-0071.html#profile-summary for the list of recommended - * allowed tags and their attributes. - */ - XHTML: { - tags: ['a','blockquote','br','cite','em','img','li','ol','p','span','strong','ul','body'], - attributes: { - 'a': ['href'], - 'blockquote': ['style'], - 'br': [], - 'cite': ['style'], - 'em': [], - 'img': ['src', 'alt', 'style', 'height', 'width'], - 'li': ['style'], - 'ol': ['style'], - 'p': ['style'], - 'span': ['style'], - 'strong': [], - 'ul': ['style'], - 'body': [] - }, - css: ['background-color','color','font-family','font-size','font-style','font-weight','margin-left','margin-right','text-align','text-decoration'], - validTag: function(tag) - { - for(var i = 0; i < Strophe.XHTML.tags.length; i++) { - if(tag == Strophe.XHTML.tags[i]) { - return true; - } - } - return false; - }, - validAttribute: function(tag, attribute) - { - if(typeof Strophe.XHTML.attributes[tag] !== 'undefined' && Strophe.XHTML.attributes[tag].length > 0) { - for(var i = 0; i < Strophe.XHTML.attributes[tag].length; i++) { - if(attribute == Strophe.XHTML.attributes[tag][i]) { - return true; - } - } - } - return false; - }, - validCSS: function(style) - { - for(var i = 0; i < Strophe.XHTML.css.length; i++) { - if(style == Strophe.XHTML.css[i]) { - return true; - } - } - return false; - } - }, - - /** Constants: Connection Status Constants - * Connection status constants for use by the connection handler - * callback. - * - * Status.ERROR - An error has occurred - * Status.CONNECTING - The connection is currently being made - * Status.CONNFAIL - The connection attempt failed - * Status.AUTHENTICATING - The connection is authenticating - * Status.AUTHFAIL - The authentication attempt failed - * Status.CONNECTED - The connection has succeeded - * Status.DISCONNECTED - The connection has been terminated - * Status.DISCONNECTING - The connection is currently being terminated - * Status.ATTACHED - The connection has been attached - */ - Status: { - ERROR: 0, - CONNECTING: 1, - CONNFAIL: 2, - AUTHENTICATING: 3, - AUTHFAIL: 4, - CONNECTED: 5, - DISCONNECTED: 6, - DISCONNECTING: 7, - ATTACHED: 8 - }, - - /** Constants: Log Level Constants - * Logging level indicators. - * - * LogLevel.DEBUG - Debug output - * LogLevel.INFO - Informational output - * LogLevel.WARN - Warnings - * LogLevel.ERROR - Errors - * LogLevel.FATAL - Fatal errors - */ - LogLevel: { - DEBUG: 0, - INFO: 1, - WARN: 2, - ERROR: 3, - FATAL: 4 - }, - - /** PrivateConstants: DOM Element Type Constants - * DOM element types. - * - * ElementType.NORMAL - Normal element. - * ElementType.TEXT - Text data element. - * ElementType.FRAGMENT - XHTML fragment element. - */ - ElementType: { - NORMAL: 1, - TEXT: 3, - CDATA: 4, - FRAGMENT: 11 - }, - - /** PrivateConstants: Timeout Values - * Timeout values for error states. These values are in seconds. - * These should not be changed unless you know exactly what you are - * doing. - * - * TIMEOUT - Timeout multiplier. A waiting request will be considered - * failed after Math.floor(TIMEOUT * wait) seconds have elapsed. - * This defaults to 1.1, and with default wait, 66 seconds. - * SECONDARY_TIMEOUT - Secondary timeout multiplier. In cases where - * Strophe can detect early failure, it will consider the request - * failed if it doesn't return after - * Math.floor(SECONDARY_TIMEOUT * wait) seconds have elapsed. - * This defaults to 0.1, and with default wait, 6 seconds. - */ - TIMEOUT: 1.1, - SECONDARY_TIMEOUT: 0.1, - - /** Function: addNamespace - * This function is used to extend the current namespaces in - * Strophe.NS. It takes a key and a value with the key being the - * name of the new namespace, with its actual value. - * For example: - * Strophe.addNamespace('PUBSUB', "http://jabber.org/protocol/pubsub"); - * - * Parameters: - * (String) name - The name under which the namespace will be - * referenced under Strophe.NS - * (String) value - The actual namespace. - */ - addNamespace: function (name, value) - { - Strophe.NS[name] = value; - }, - - /** Function: forEachChild - * Map a function over some or all child elements of a given element. - * - * This is a small convenience function for mapping a function over - * some or all of the children of an element. If elemName is null, all - * children will be passed to the function, otherwise only children - * whose tag names match elemName will be passed. - * - * Parameters: - * (XMLElement) elem - The element to operate on. - * (String) elemName - The child element tag name filter. - * (Function) func - The function to apply to each child. This - * function should take a single argument, a DOM element. - */ - forEachChild: function (elem, elemName, func) - { - var i, childNode; - - for (i = 0; i < elem.childNodes.length; i++) { - childNode = elem.childNodes[i]; - if (childNode.nodeType == Strophe.ElementType.NORMAL && - (!elemName || this.isTagEqual(childNode, elemName))) { - func(childNode); - } - } - }, - - /** Function: isTagEqual - * Compare an element's tag name with a string. - * - * This function is case insensitive. - * - * Parameters: - * (XMLElement) el - A DOM element. - * (String) name - The element name. - * - * Returns: - * true if the element's tag name matches _el_, and false - * otherwise. - */ - isTagEqual: function (el, name) - { - return el.tagName.toLowerCase() == name.toLowerCase(); - }, - - /** PrivateVariable: _xmlGenerator - * _Private_ variable that caches a DOM document to - * generate elements. - */ - _xmlGenerator: null, - - /** PrivateFunction: _makeGenerator - * _Private_ function that creates a dummy XML DOM document to serve as - * an element and text node generator. - */ - _makeGenerator: function () { - var doc; - - // IE9 does implement createDocument(); however, using it will cause the browser to leak memory on page unload. - // Here, we test for presence of createDocument() plus IE's proprietary documentMode attribute, which would be - // less than 10 in the case of IE9 and below. - if (document.implementation.createDocument === undefined || - document.implementation.createDocument && document.documentMode && document.documentMode < 10) { - doc = this._getIEXmlDom(); - doc.appendChild(doc.createElement('strophe')); - } else { - doc = document.implementation - .createDocument('jabber:client', 'strophe', null); - } - - return doc; - }, - - /** Function: xmlGenerator - * Get the DOM document to generate elements. - * - * Returns: - * The currently used DOM document. - */ - xmlGenerator: function () { - if (!Strophe._xmlGenerator) { - Strophe._xmlGenerator = Strophe._makeGenerator(); - } - return Strophe._xmlGenerator; - }, - - /** PrivateFunction: _getIEXmlDom - * Gets IE xml doc object - * - * Returns: - * A Microsoft XML DOM Object - * See Also: - * http://msdn.microsoft.com/en-us/library/ms757837%28VS.85%29.aspx - */ - _getIEXmlDom : function() { - var doc = null; - var docStrings = [ - "Msxml2.DOMDocument.6.0", - "Msxml2.DOMDocument.5.0", - "Msxml2.DOMDocument.4.0", - "MSXML2.DOMDocument.3.0", - "MSXML2.DOMDocument", - "MSXML.DOMDocument", - "Microsoft.XMLDOM" - ]; - - for (var d = 0; d < docStrings.length; d++) { - if (doc === null) { - try { - doc = new ActiveXObject(docStrings[d]); - } catch (e) { - doc = null; - } - } else { - break; - } - } - - return doc; - }, - - /** Function: xmlElement - * Create an XML DOM element. - * - * This function creates an XML DOM element correctly across all - * implementations. Note that these are not HTML DOM elements, which - * aren't appropriate for XMPP stanzas. - * - * Parameters: - * (String) name - The name for the element. - * (Array|Object) attrs - An optional array or object containing - * key/value pairs to use as element attributes. The object should - * be in the format {'key': 'value'} or {key: 'value'}. The array - * should have the format [['key1', 'value1'], ['key2', 'value2']]. - * (String) text - The text child data for the element. - * - * Returns: - * A new XML DOM element. - */ - xmlElement: function (name) - { - if (!name) { return null; } - - var node = Strophe.xmlGenerator().createElement(name); - - // FIXME: this should throw errors if args are the wrong type or - // there are more than two optional args - var a, i, k; - for (a = 1; a < arguments.length; a++) { - if (!arguments[a]) { continue; } - if (typeof(arguments[a]) == "string" || - typeof(arguments[a]) == "number") { - node.appendChild(Strophe.xmlTextNode(arguments[a])); - } else if (typeof(arguments[a]) == "object" && - typeof(arguments[a].sort) == "function") { - for (i = 0; i < arguments[a].length; i++) { - if (typeof(arguments[a][i]) == "object" && - typeof(arguments[a][i].sort) == "function") { - node.setAttribute(arguments[a][i][0], - arguments[a][i][1]); - } - } - } else if (typeof(arguments[a]) == "object") { - for (k in arguments[a]) { - if (arguments[a].hasOwnProperty(k)) { - node.setAttribute(k, arguments[a][k]); - } - } - } - } - - return node; - }, - - /* Function: xmlescape - * Excapes invalid xml characters. - * - * Parameters: - * (String) text - text to escape. - * - * Returns: - * Escaped text. - */ - xmlescape: function(text) - { - text = text.replace(/\&/g, "&"); - text = text.replace(//g, ">"); - text = text.replace(/'/g, "'"); - text = text.replace(/"/g, """); - return text; - }, - - /** Function: xmlTextNode - * Creates an XML DOM text node. - * - * Provides a cross implementation version of document.createTextNode. - * - * Parameters: - * (String) text - The content of the text node. - * - * Returns: - * A new XML DOM text node. - */ - xmlTextNode: function (text) - { - return Strophe.xmlGenerator().createTextNode(text); - }, - - /** Function: xmlHtmlNode - * Creates an XML DOM html node. - * - * Parameters: - * (String) html - The content of the html node. - * - * Returns: - * A new XML DOM text node. - */ - xmlHtmlNode: function (html) - { - var node; - //ensure text is escaped - if (window.DOMParser) { - var parser = new DOMParser(); - node = parser.parseFromString(html, "text/xml"); - } else { - node = new ActiveXObject("Microsoft.XMLDOM"); - node.async="false"; - node.loadXML(html); - } - return node; - }, - - /** Function: getText - * Get the concatenation of all text children of an element. - * - * Parameters: - * (XMLElement) elem - A DOM element. - * - * Returns: - * A String with the concatenated text of all text element children. - */ - getText: function (elem) - { - if (!elem) { return null; } - - var str = ""; - if (elem.childNodes.length === 0 && elem.nodeType == - Strophe.ElementType.TEXT) { - str += elem.nodeValue; - } - - for (var i = 0; i < elem.childNodes.length; i++) { - if (elem.childNodes[i].nodeType == Strophe.ElementType.TEXT) { - str += elem.childNodes[i].nodeValue; - } - } - - return Strophe.xmlescape(str); - }, - - /** Function: copyElement - * Copy an XML DOM element. - * - * This function copies a DOM element and all its descendants and returns - * the new copy. - * - * Parameters: - * (XMLElement) elem - A DOM element. - * - * Returns: - * A new, copied DOM element tree. - */ - copyElement: function (elem) - { - var i, el; - if (elem.nodeType == Strophe.ElementType.NORMAL) { - el = Strophe.xmlElement(elem.tagName); - - for (i = 0; i < elem.attributes.length; i++) { - el.setAttribute(elem.attributes[i].nodeName.toLowerCase(), - elem.attributes[i].value); - } - - for (i = 0; i < elem.childNodes.length; i++) { - el.appendChild(Strophe.copyElement(elem.childNodes[i])); - } - } else if (elem.nodeType == Strophe.ElementType.TEXT) { - el = Strophe.xmlGenerator().createTextNode(elem.nodeValue); - } - - return el; - }, - - - /** Function: createHtml - * Copy an HTML DOM element into an XML DOM. - * - * This function copies a DOM element and all its descendants and returns - * the new copy. - * - * Parameters: - * (HTMLElement) elem - A DOM element. - * - * Returns: - * A new, copied DOM element tree. - */ - createHtml: function (elem) - { - var i, el, j, tag, attribute, value, css, cssAttrs, attr, cssName, cssValue; - if (elem.nodeType == Strophe.ElementType.NORMAL) { - tag = elem.nodeName.toLowerCase(); - if(Strophe.XHTML.validTag(tag)) { - try { - el = Strophe.xmlElement(tag); - for(i = 0; i < Strophe.XHTML.attributes[tag].length; i++) { - attribute = Strophe.XHTML.attributes[tag][i]; - value = elem.getAttribute(attribute); - if(typeof value == 'undefined' || value === null || value === '' || value === false || value === 0) { - continue; - } - if(attribute == 'style' && typeof value == 'object') { - if(typeof value.cssText != 'undefined') { - value = value.cssText; // we're dealing with IE, need to get CSS out - } - } - // filter out invalid css styles - if(attribute == 'style') { - css = []; - cssAttrs = value.split(';'); - for(j = 0; j < cssAttrs.length; j++) { - attr = cssAttrs[j].split(':'); - cssName = attr[0].replace(/^\s*/, "").replace(/\s*$/, "").toLowerCase(); - if(Strophe.XHTML.validCSS(cssName)) { - cssValue = attr[1].replace(/^\s*/, "").replace(/\s*$/, ""); - css.push(cssName + ': ' + cssValue); - } - } - if(css.length > 0) { - value = css.join('; '); - el.setAttribute(attribute, value); - } - } else { - el.setAttribute(attribute, value); - } - } - - for (i = 0; i < elem.childNodes.length; i++) { - el.appendChild(Strophe.createHtml(elem.childNodes[i])); - } - } catch(e) { // invalid elements - el = Strophe.xmlTextNode(''); - } - } else { - el = Strophe.xmlGenerator().createDocumentFragment(); - for (i = 0; i < elem.childNodes.length; i++) { - el.appendChild(Strophe.createHtml(elem.childNodes[i])); - } - } - } else if (elem.nodeType == Strophe.ElementType.FRAGMENT) { - el = Strophe.xmlGenerator().createDocumentFragment(); - for (i = 0; i < elem.childNodes.length; i++) { - el.appendChild(Strophe.createHtml(elem.childNodes[i])); - } - } else if (elem.nodeType == Strophe.ElementType.TEXT) { - el = Strophe.xmlTextNode(elem.nodeValue); - } - - return el; - }, - - /** Function: escapeNode - * Escape the node part (also called local part) of a JID. - * - * Parameters: - * (String) node - A node (or local part). - * - * Returns: - * An escaped node (or local part). - */ - escapeNode: function (node) - { - return node.replace(/^\s+|\s+$/g, '') - .replace(/\\/g, "\\5c") - .replace(/ /g, "\\20") - .replace(/\"/g, "\\22") - .replace(/\&/g, "\\26") - .replace(/\'/g, "\\27") - .replace(/\//g, "\\2f") - .replace(/:/g, "\\3a") - .replace(//g, "\\3e") - .replace(/@/g, "\\40"); - }, - - /** Function: unescapeNode - * Unescape a node part (also called local part) of a JID. - * - * Parameters: - * (String) node - A node (or local part). - * - * Returns: - * An unescaped node (or local part). - */ - unescapeNode: function (node) - { - return node.replace(/\\20/g, " ") - .replace(/\\22/g, '"') - .replace(/\\26/g, "&") - .replace(/\\27/g, "'") - .replace(/\\2f/g, "/") - .replace(/\\3a/g, ":") - .replace(/\\3c/g, "<") - .replace(/\\3e/g, ">") - .replace(/\\40/g, "@") - .replace(/\\5c/g, "\\"); - }, - - /** Function: getNodeFromJid - * Get the node portion of a JID String. - * - * Parameters: - * (String) jid - A JID. - * - * Returns: - * A String containing the node. - */ - getNodeFromJid: function (jid) - { - if (jid.indexOf("@") < 0) { return null; } - return jid.split("@")[0]; - }, - - /** Function: getDomainFromJid - * Get the domain portion of a JID String. - * - * Parameters: - * (String) jid - A JID. - * - * Returns: - * A String containing the domain. - */ - getDomainFromJid: function (jid) - { - var bare = Strophe.getBareJidFromJid(jid); - if (bare.indexOf("@") < 0) { - return bare; - } else { - var parts = bare.split("@"); - parts.splice(0, 1); - return parts.join('@'); - } - }, - - /** Function: getResourceFromJid - * Get the resource portion of a JID String. - * - * Parameters: - * (String) jid - A JID. - * - * Returns: - * A String containing the resource. - */ - getResourceFromJid: function (jid) - { - var s = jid.split("/"); - if (s.length < 2) { return null; } - s.splice(0, 1); - return s.join('/'); - }, - - /** Function: getBareJidFromJid - * Get the bare JID from a JID String. - * - * Parameters: - * (String) jid - A JID. - * - * Returns: - * A String containing the bare JID. - */ - getBareJidFromJid: function (jid) - { - return jid ? jid.split("/")[0] : null; - }, - - /** Function: log - * User overrideable logging function. - * - * This function is called whenever the Strophe library calls any - * of the logging functions. The default implementation of this - * function does nothing. If client code wishes to handle the logging - * messages, it should override this with - * > Strophe.log = function (level, msg) { - * > (user code here) - * > }; - * - * Please note that data sent and received over the wire is logged - * via Strophe.Connection.rawInput() and Strophe.Connection.rawOutput(). - * - * The different levels and their meanings are - * - * DEBUG - Messages useful for debugging purposes. - * INFO - Informational messages. This is mostly information like - * 'disconnect was called' or 'SASL auth succeeded'. - * WARN - Warnings about potential problems. This is mostly used - * to report transient connection errors like request timeouts. - * ERROR - Some error occurred. - * FATAL - A non-recoverable fatal error occurred. - * - * Parameters: - * (Integer) level - The log level of the log message. This will - * be one of the values in Strophe.LogLevel. - * (String) msg - The log message. - */ - /* jshint ignore:start */ - log: function (level, msg) - { - return; - }, - /* jshint ignore:end */ - - /** Function: debug - * Log a message at the Strophe.LogLevel.DEBUG level. - * - * Parameters: - * (String) msg - The log message. - */ - debug: function(msg) - { - this.log(this.LogLevel.DEBUG, msg); - }, - - /** Function: info - * Log a message at the Strophe.LogLevel.INFO level. - * - * Parameters: - * (String) msg - The log message. - */ - info: function (msg) - { - this.log(this.LogLevel.INFO, msg); - }, - - /** Function: warn - * Log a message at the Strophe.LogLevel.WARN level. - * - * Parameters: - * (String) msg - The log message. - */ - warn: function (msg) - { - this.log(this.LogLevel.WARN, msg); - }, - - /** Function: error - * Log a message at the Strophe.LogLevel.ERROR level. - * - * Parameters: - * (String) msg - The log message. - */ - error: function (msg) - { - this.log(this.LogLevel.ERROR, msg); - }, - - /** Function: fatal - * Log a message at the Strophe.LogLevel.FATAL level. - * - * Parameters: - * (String) msg - The log message. - */ - fatal: function (msg) - { - this.log(this.LogLevel.FATAL, msg); - }, - - /** Function: serialize - * Render a DOM element and all descendants to a String. - * - * Parameters: - * (XMLElement) elem - A DOM element. - * - * Returns: - * The serialized element tree as a String. - */ - serialize: function (elem) - { - var result; - - if (!elem) { return null; } - - if (typeof(elem.tree) === "function") { - elem = elem.tree(); - } - - var nodeName = elem.nodeName; - var i, child; - - if (elem.getAttribute("_realname")) { - nodeName = elem.getAttribute("_realname"); - } - - result = "<" + nodeName; - for (i = 0; i < elem.attributes.length; i++) { - if(elem.attributes[i].nodeName != "_realname") { - result += " " + elem.attributes[i].nodeName.toLowerCase() + - "='" + elem.attributes[i].value - .replace(/&/g, "&") - .replace(/\'/g, "'") - .replace(/>/g, ">") - .replace(/ 0) { - result += ">"; - for (i = 0; i < elem.childNodes.length; i++) { - child = elem.childNodes[i]; - switch( child.nodeType ){ - case Strophe.ElementType.NORMAL: - // normal element, so recurse - result += Strophe.serialize(child); - break; - case Strophe.ElementType.TEXT: - // text element to escape values - result += Strophe.xmlescape(child.nodeValue); - break; - case Strophe.ElementType.CDATA: - // cdata section so don't escape values - result += ""; - } - } - result += ""; - } else { - result += "/>"; - } - - return result; - }, - - /** PrivateVariable: _requestId - * _Private_ variable that keeps track of the request ids for - * connections. - */ - _requestId: 0, - - /** PrivateVariable: Strophe.connectionPlugins - * _Private_ variable Used to store plugin names that need - * initialization on Strophe.Connection construction. - */ - _connectionPlugins: {}, - - /** Function: addConnectionPlugin - * Extends the Strophe.Connection object with the given plugin. - * - * Parameters: - * (String) name - The name of the extension. - * (Object) ptype - The plugin's prototype. - */ - addConnectionPlugin: function (name, ptype) - { - Strophe._connectionPlugins[name] = ptype; - } -}; - -/** Class: Strophe.Builder - * XML DOM builder. - * - * This object provides an interface similar to JQuery but for building - * DOM element easily and rapidly. All the functions except for toString() - * and tree() return the object, so calls can be chained. Here's an - * example using the $iq() builder helper. - * > $iq({to: 'you', from: 'me', type: 'get', id: '1'}) - * > .c('query', {xmlns: 'strophe:example'}) - * > .c('example') - * > .toString() - * The above generates this XML fragment - * > - * > - * > - * > - * > - * The corresponding DOM manipulations to get a similar fragment would be - * a lot more tedious and probably involve several helper variables. - * - * Since adding children makes new operations operate on the child, up() - * is provided to traverse up the tree. To add two children, do - * > builder.c('child1', ...).up().c('child2', ...) - * The next operation on the Builder will be relative to the second child. - */ - -/** Constructor: Strophe.Builder - * Create a Strophe.Builder object. - * - * The attributes should be passed in object notation. For example - * > var b = new Builder('message', {to: 'you', from: 'me'}); - * or - * > var b = new Builder('messsage', {'xml:lang': 'en'}); - * - * Parameters: - * (String) name - The name of the root element. - * (Object) attrs - The attributes for the root element in object notation. - * - * Returns: - * A new Strophe.Builder. - */ -Strophe.Builder = function (name, attrs) -{ - // Set correct namespace for jabber:client elements - if (name == "presence" || name == "message" || name == "iq") { - if (attrs && !attrs.xmlns) { - attrs.xmlns = Strophe.NS.CLIENT; - } else if (!attrs) { - attrs = {xmlns: Strophe.NS.CLIENT}; - } - } - - // Holds the tree being built. - this.nodeTree = Strophe.xmlElement(name, attrs); - - // Points to the current operation node. - this.node = this.nodeTree; -}; - -Strophe.Builder.prototype = { - /** Function: tree - * Return the DOM tree. - * - * This function returns the current DOM tree as an element object. This - * is suitable for passing to functions like Strophe.Connection.send(). - * - * Returns: - * The DOM tree as a element object. - */ - tree: function () - { - return this.nodeTree; - }, - - /** Function: toString - * Serialize the DOM tree to a String. - * - * This function returns a string serialization of the current DOM - * tree. It is often used internally to pass data to a - * Strophe.Request object. - * - * Returns: - * The serialized DOM tree in a String. - */ - toString: function () - { - return Strophe.serialize(this.nodeTree); - }, - - /** Function: up - * Make the current parent element the new current element. - * - * This function is often used after c() to traverse back up the tree. - * For example, to add two children to the same element - * > builder.c('child1', {}).up().c('child2', {}); - * - * Returns: - * The Stophe.Builder object. - */ - up: function () - { - this.node = this.node.parentNode; - return this; - }, - - /** Function: attrs - * Add or modify attributes of the current element. - * - * The attributes should be passed in object notation. This function - * does not move the current element pointer. - * - * Parameters: - * (Object) moreattrs - The attributes to add/modify in object notation. - * - * Returns: - * The Strophe.Builder object. - */ - attrs: function (moreattrs) - { - for (var k in moreattrs) { - if (moreattrs.hasOwnProperty(k)) { - this.node.setAttribute(k, moreattrs[k]); - } - } - return this; - }, - - /** Function: c - * Add a child to the current element and make it the new current - * element. - * - * This function moves the current element pointer to the child, - * unless text is provided. If you need to add another child, it - * is necessary to use up() to go back to the parent in the tree. - * - * Parameters: - * (String) name - The name of the child. - * (Object) attrs - The attributes of the child in object notation. - * (String) text - The text to add to the child. - * - * Returns: - * The Strophe.Builder object. - */ - c: function (name, attrs, text) - { - var child = Strophe.xmlElement(name, attrs, text); - this.node.appendChild(child); - if (!text) { - this.node = child; - } - return this; - }, - - /** Function: cnode - * Add a child to the current element and make it the new current - * element. - * - * This function is the same as c() except that instead of using a - * name and an attributes object to create the child it uses an - * existing DOM element object. - * - * Parameters: - * (XMLElement) elem - A DOM element. - * - * Returns: - * The Strophe.Builder object. - */ - cnode: function (elem) - { - var impNode; - var xmlGen = Strophe.xmlGenerator(); - try { - impNode = (xmlGen.importNode !== undefined); - } - catch (e) { - impNode = false; - } - var newElem = impNode ? - xmlGen.importNode(elem, true) : - Strophe.copyElement(elem); - this.node.appendChild(newElem); - this.node = newElem; - return this; - }, - - /** Function: t - * Add a child text element. - * - * This *does not* make the child the new current element since there - * are no children of text elements. - * - * Parameters: - * (String) text - The text data to append to the current element. - * - * Returns: - * The Strophe.Builder object. - */ - t: function (text) - { - var child = Strophe.xmlTextNode(text); - this.node.appendChild(child); - return this; - }, - - /** Function: h - * Replace current element contents with the HTML passed in. - * - * This *does not* make the child the new current element - * - * Parameters: - * (String) html - The html to insert as contents of current element. - * - * Returns: - * The Strophe.Builder object. - */ - h: function (html) - { - var fragment = document.createElement('body'); - - // force the browser to try and fix any invalid HTML tags - fragment.innerHTML = html; - - // copy cleaned html into an xml dom - var xhtml = Strophe.createHtml(fragment); - - while(xhtml.childNodes.length > 0) { - this.node.appendChild(xhtml.childNodes[0]); - } - return this; - } -}; - -/** PrivateClass: Strophe.Handler - * _Private_ helper class for managing stanza handlers. - * - * A Strophe.Handler encapsulates a user provided callback function to be - * executed when matching stanzas are received by the connection. - * Handlers can be either one-off or persistant depending on their - * return value. Returning true will cause a Handler to remain active, and - * returning false will remove the Handler. - * - * Users will not use Strophe.Handler objects directly, but instead they - * will use Strophe.Connection.addHandler() and - * Strophe.Connection.deleteHandler(). - */ - -/** PrivateConstructor: Strophe.Handler - * Create and initialize a new Strophe.Handler. - * - * Parameters: - * (Function) handler - A function to be executed when the handler is run. - * (String) ns - The namespace to match. - * (String) name - The element name to match. - * (String) type - The element type to match. - * (String) id - The element id attribute to match. - * (String) from - The element from attribute to match. - * (Object) options - Handler options - * - * Returns: - * A new Strophe.Handler object. - */ -Strophe.Handler = function (handler, ns, name, type, id, from, options) -{ - this.handler = handler; - this.ns = ns; - this.name = name; - this.type = type; - this.id = id; - this.options = options || {matchBare: false}; - - // default matchBare to false if undefined - if (!this.options.matchBare) { - this.options.matchBare = false; - } - - if (this.options.matchBare) { - this.from = from ? Strophe.getBareJidFromJid(from) : null; - } else { - this.from = from; - } - - // whether the handler is a user handler or a system handler - this.user = true; -}; - -Strophe.Handler.prototype = { - /** PrivateFunction: isMatch - * Tests if a stanza matches the Strophe.Handler. - * - * Parameters: - * (XMLElement) elem - The XML element to test. - * - * Returns: - * true if the stanza matches and false otherwise. - */ - isMatch: function (elem) - { - var nsMatch; - var from = null; - - if (this.options.matchBare) { - from = Strophe.getBareJidFromJid(elem.getAttribute('from')); - } else { - from = elem.getAttribute('from'); - } - - nsMatch = false; - if (!this.ns) { - nsMatch = true; - } else { - var that = this; - Strophe.forEachChild(elem, null, function (elem) { - if (elem.getAttribute("xmlns") == that.ns) { - nsMatch = true; - } - }); - - nsMatch = nsMatch || elem.getAttribute("xmlns") == this.ns; - } - - if (nsMatch && - (!this.name || Strophe.isTagEqual(elem, this.name)) && - (!this.type || elem.getAttribute("type") == this.type) && - (!this.id || elem.getAttribute("id") == this.id) && - (!this.from || from == this.from)) { - return true; - } - - return false; - }, - - /** PrivateFunction: run - * Run the callback on a matching stanza. - * - * Parameters: - * (XMLElement) elem - The DOM element that triggered the - * Strophe.Handler. - * - * Returns: - * A boolean indicating if the handler should remain active. - */ - run: function (elem) - { - var result = null; - try { - result = this.handler(elem); - } catch (e) { - if (e.sourceURL) { - Strophe.fatal("error: " + this.handler + - " " + e.sourceURL + ":" + - e.line + " - " + e.name + ": " + e.message); - } else if (e.fileName) { - if (typeof(console) != "undefined") { - console.trace(); - console.error(this.handler, " - error - ", e, e.message); - } - Strophe.fatal("error: " + this.handler + " " + - e.fileName + ":" + e.lineNumber + " - " + - e.name + ": " + e.message); - } else { - Strophe.fatal("error: " + e.message + "\n" + e.stack); - } - - throw e; - } - - return result; - }, - - /** PrivateFunction: toString - * Get a String representation of the Strophe.Handler object. - * - * Returns: - * A String. - */ - toString: function () - { - return "{Handler: " + this.handler + "(" + this.name + "," + - this.id + "," + this.ns + ")}"; - } -}; - -/** PrivateClass: Strophe.TimedHandler - * _Private_ helper class for managing timed handlers. - * - * A Strophe.TimedHandler encapsulates a user provided callback that - * should be called after a certain period of time or at regular - * intervals. The return value of the callback determines whether the - * Strophe.TimedHandler will continue to fire. - * - * Users will not use Strophe.TimedHandler objects directly, but instead - * they will use Strophe.Connection.addTimedHandler() and - * Strophe.Connection.deleteTimedHandler(). - */ - -/** PrivateConstructor: Strophe.TimedHandler - * Create and initialize a new Strophe.TimedHandler object. - * - * Parameters: - * (Integer) period - The number of milliseconds to wait before the - * handler is called. - * (Function) handler - The callback to run when the handler fires. This - * function should take no arguments. - * - * Returns: - * A new Strophe.TimedHandler object. - */ -Strophe.TimedHandler = function (period, handler) -{ - this.period = period; - this.handler = handler; - - this.lastCalled = new Date().getTime(); - this.user = true; -}; - -Strophe.TimedHandler.prototype = { - /** PrivateFunction: run - * Run the callback for the Strophe.TimedHandler. - * - * Returns: - * true if the Strophe.TimedHandler should be called again, and false - * otherwise. - */ - run: function () - { - this.lastCalled = new Date().getTime(); - return this.handler(); - }, - - /** PrivateFunction: reset - * Reset the last called time for the Strophe.TimedHandler. - */ - reset: function () - { - this.lastCalled = new Date().getTime(); - }, - - /** PrivateFunction: toString - * Get a string representation of the Strophe.TimedHandler object. - * - * Returns: - * The string representation. - */ - toString: function () - { - return "{TimedHandler: " + this.handler + "(" + this.period +")}"; - } -}; - -/** Class: Strophe.Connection - * XMPP Connection manager. - * - * This class is the main part of Strophe. It manages a BOSH connection - * to an XMPP server and dispatches events to the user callbacks as - * data arrives. It supports SASL PLAIN, SASL DIGEST-MD5, SASL SCRAM-SHA1 - * and legacy authentication. - * - * After creating a Strophe.Connection object, the user will typically - * call connect() with a user supplied callback to handle connection level - * events like authentication failure, disconnection, or connection - * complete. - * - * The user will also have several event handlers defined by using - * addHandler() and addTimedHandler(). These will allow the user code to - * respond to interesting stanzas or do something periodically with the - * connection. These handlers will be active once authentication is - * finished. - * - * To send data to the connection, use send(). - */ - -/** Constructor: Strophe.Connection - * Create and initialize a Strophe.Connection object. - * - * The transport-protocol for this connection will be chosen automatically - * based on the given service parameter. URLs starting with "ws://" or - * "wss://" will use WebSockets, URLs starting with "http://", "https://" - * or without a protocol will use BOSH. - * - * To make Strophe connect to the current host you can leave out the protocol - * and host part and just pass the path, e.g. - * - * > var conn = new Strophe.Connection("/http-bind/"); - * - * WebSocket options: - * - * If you want to connect to the current host with a WebSocket connection you - * can tell Strophe to use WebSockets through a "protocol" attribute in the - * optional options parameter. Valid values are "ws" for WebSocket and "wss" - * for Secure WebSocket. - * So to connect to "wss://CURRENT_HOSTNAME/xmpp-websocket" you would call - * - * > var conn = new Strophe.Connection("/xmpp-websocket/", {protocol: "wss"}); - * - * Note that relative URLs _NOT_ starting with a "/" will also include the path - * of the current site. - * - * Also because downgrading security is not permitted by browsers, when using - * relative URLs both BOSH and WebSocket connections will use their secure - * variants if the current connection to the site is also secure (https). - * - * BOSH options: - * - * by adding "sync" to the options, you can control if requests will - * be made synchronously or not. The default behaviour is asynchronous. - * If you want to make requests synchronous, make "sync" evaluate to true: - * > var conn = new Strophe.Connection("/http-bind/", {sync: true}); - * You can also toggle this on an already established connection: - * > conn.options.sync = true; - * - * - * Parameters: - * (String) service - The BOSH or WebSocket service URL. - * (Object) options - A hash of configuration options - * - * Returns: - * A new Strophe.Connection object. - */ -Strophe.Connection = function (service, options) -{ - // The service URL - this.service = service; - - // Configuration options - this.options = options || {}; - var proto = this.options.protocol || ""; - - // Select protocal based on service or options - if (service.indexOf("ws:") === 0 || service.indexOf("wss:") === 0 || - proto.indexOf("ws") === 0) { - this._proto = new Strophe.Websocket(this); - } else { - this._proto = new Strophe.Bosh(this); - } - /* The connected JID. */ - this.jid = ""; - /* the JIDs domain */ - this.domain = null; - /* stream:features */ - this.features = null; - - // SASL - this._sasl_data = {}; - this.do_session = false; - this.do_bind = false; - - // handler lists - this.timedHandlers = []; - this.handlers = []; - this.removeTimeds = []; - this.removeHandlers = []; - this.addTimeds = []; - this.addHandlers = []; - - this._authentication = {}; - this._idleTimeout = null; - this._disconnectTimeout = null; - - this.do_authentication = true; - this.authenticated = false; - this.disconnecting = false; - this.connected = false; - - this.errors = 0; - - this.paused = false; - - this._data = []; - this._uniqueId = 0; - - this._sasl_success_handler = null; - this._sasl_failure_handler = null; - this._sasl_challenge_handler = null; - - // Max retries before disconnecting - this.maxRetries = 5; - - // setup onIdle callback every 1/10th of a second - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100); - - // initialize plugins - for (var k in Strophe._connectionPlugins) { - if (Strophe._connectionPlugins.hasOwnProperty(k)) { - var ptype = Strophe._connectionPlugins[k]; - // jslint complaints about the below line, but this is fine - var F = function () {}; // jshint ignore:line - F.prototype = ptype; - this[k] = new F(); - this[k].init(this); - } - } -}; - -Strophe.Connection.prototype = { - /** Function: reset - * Reset the connection. - * - * This function should be called after a connection is disconnected - * before that connection is reused. - */ - reset: function () - { - this._proto._reset(); - - // SASL - this.do_session = false; - this.do_bind = false; - - // handler lists - this.timedHandlers = []; - this.handlers = []; - this.removeTimeds = []; - this.removeHandlers = []; - this.addTimeds = []; - this.addHandlers = []; - this._authentication = {}; - - this.authenticated = false; - this.disconnecting = false; - this.connected = false; - - this.errors = 0; - - this._requests = []; - this._uniqueId = 0; - }, - - /** Function: pause - * Pause the request manager. - * - * This will prevent Strophe from sending any more requests to the - * server. This is very useful for temporarily pausing - * BOSH-Connections while a lot of send() calls are happening quickly. - * This causes Strophe to send the data in a single request, saving - * many request trips. - */ - pause: function () - { - this.paused = true; - }, - - /** Function: resume - * Resume the request manager. - * - * This resumes after pause() has been called. - */ - resume: function () - { - this.paused = false; - }, - - /** Function: getUniqueId - * Generate a unique ID for use in elements. - * - * All stanzas are required to have unique id attributes. This - * function makes creating these easy. Each connection instance has - * a counter which starts from zero, and the value of this counter - * plus a colon followed by the suffix becomes the unique id. If no - * suffix is supplied, the counter is used as the unique id. - * - * Suffixes are used to make debugging easier when reading the stream - * data, and their use is recommended. The counter resets to 0 for - * every new connection for the same reason. For connections to the - * same server that authenticate the same way, all the ids should be - * the same, which makes it easy to see changes. This is useful for - * automated testing as well. - * - * Parameters: - * (String) suffix - A optional suffix to append to the id. - * - * Returns: - * A unique string to be used for the id attribute. - */ - getUniqueId: function (suffix) - { - if (typeof(suffix) == "string" || typeof(suffix) == "number") { - return ++this._uniqueId + ":" + suffix; - } else { - return ++this._uniqueId + ""; - } - }, - - /** Function: connect - * Starts the connection process. - * - * As the connection process proceeds, the user supplied callback will - * be triggered multiple times with status updates. The callback - * should take two arguments - the status code and the error condition. - * - * The status code will be one of the values in the Strophe.Status - * constants. The error condition will be one of the conditions - * defined in RFC 3920 or the condition 'strophe-parsererror'. - * - * The Parameters _wait_, _hold_ and _route_ are optional and only relevant - * for BOSH connections. Please see XEP 124 for a more detailed explanation - * of the optional parameters. - * - * Parameters: - * (String) jid - The user's JID. This may be a bare JID, - * or a full JID. If a node is not supplied, SASL ANONYMOUS - * authentication will be attempted. - * (String) pass - The user's password. - * (Function) callback - The connect callback function. - * (Integer) wait - The optional HTTPBIND wait value. This is the - * time the server will wait before returning an empty result for - * a request. The default setting of 60 seconds is recommended. - * (Integer) hold - The optional HTTPBIND hold value. This is the - * number of connections the server will hold at one time. This - * should almost always be set to 1 (the default). - * (String) route - The optional route value. - */ - connect: function (jid, pass, callback, wait, hold, route) - { - this.jid = jid; - /** Variable: authzid - * Authorization identity. - */ - this.authzid = Strophe.getBareJidFromJid(this.jid); - /** Variable: authcid - * Authentication identity (User name). - */ - this.authcid = Strophe.getNodeFromJid(this.jid); - /** Variable: pass - * Authentication identity (User password). - */ - this.pass = pass; - /** Variable: servtype - * Digest MD5 compatibility. - */ - this.servtype = "xmpp"; - this.connect_callback = callback; - this.disconnecting = false; - this.connected = false; - this.authenticated = false; - this.errors = 0; - - // parse jid for domain - this.domain = Strophe.getDomainFromJid(this.jid); - - this._changeConnectStatus(Strophe.Status.CONNECTING, null); - - this._proto._connect(wait, hold, route); - }, - - /** Function: attach - * Attach to an already created and authenticated BOSH session. - * - * This function is provided to allow Strophe to attach to BOSH - * sessions which have been created externally, perhaps by a Web - * application. This is often used to support auto-login type features - * without putting user credentials into the page. - * - * Parameters: - * (String) jid - The full JID that is bound by the session. - * (String) sid - The SID of the BOSH session. - * (String) rid - The current RID of the BOSH session. This RID - * will be used by the next request. - * (Function) callback The connect callback function. - * (Integer) wait - The optional HTTPBIND wait value. This is the - * time the server will wait before returning an empty result for - * a request. The default setting of 60 seconds is recommended. - * Other settings will require tweaks to the Strophe.TIMEOUT value. - * (Integer) hold - The optional HTTPBIND hold value. This is the - * number of connections the server will hold at one time. This - * should almost always be set to 1 (the default). - * (Integer) wind - The optional HTTBIND window value. This is the - * allowed range of request ids that are valid. The default is 5. - */ - attach: function (jid, sid, rid, callback, wait, hold, wind) - { - this._proto._attach(jid, sid, rid, callback, wait, hold, wind); - }, - - /** Function: xmlInput - * User overrideable function that receives XML data coming into the - * connection. - * - * The default function does nothing. User code can override this with - * > Strophe.Connection.xmlInput = function (elem) { - * > (user code) - * > }; - * - * Due to limitations of current Browsers' XML-Parsers the opening and closing - * tag for WebSocket-Connoctions will be passed as selfclosing here. - * - * BOSH-Connections will have all stanzas wrapped in a tag. See - * if you want to strip this tag. - * - * Parameters: - * (XMLElement) elem - The XML data received by the connection. - */ - /* jshint unused:false */ - xmlInput: function (elem) - { - return; - }, - /* jshint unused:true */ - - /** Function: xmlOutput - * User overrideable function that receives XML data sent to the - * connection. - * - * The default function does nothing. User code can override this with - * > Strophe.Connection.xmlOutput = function (elem) { - * > (user code) - * > }; - * - * Due to limitations of current Browsers' XML-Parsers the opening and closing - * tag for WebSocket-Connoctions will be passed as selfclosing here. - * - * BOSH-Connections will have all stanzas wrapped in a tag. See - * if you want to strip this tag. - * - * Parameters: - * (XMLElement) elem - The XMLdata sent by the connection. - */ - /* jshint unused:false */ - xmlOutput: function (elem) - { - return; - }, - /* jshint unused:true */ - - /** Function: rawInput - * User overrideable function that receives raw data coming into the - * connection. - * - * The default function does nothing. User code can override this with - * > Strophe.Connection.rawInput = function (data) { - * > (user code) - * > }; - * - * Parameters: - * (String) data - The data received by the connection. - */ - /* jshint unused:false */ - rawInput: function (data) - { - return; - }, - /* jshint unused:true */ - - /** Function: rawOutput - * User overrideable function that receives raw data sent to the - * connection. - * - * The default function does nothing. User code can override this with - * > Strophe.Connection.rawOutput = function (data) { - * > (user code) - * > }; - * - * Parameters: - * (String) data - The data sent by the connection. - */ - /* jshint unused:false */ - rawOutput: function (data) - { - return; - }, - /* jshint unused:true */ - - /** Function: send - * Send a stanza. - * - * This function is called to push data onto the send queue to - * go out over the wire. Whenever a request is sent to the BOSH - * server, all pending data is sent and the queue is flushed. - * - * Parameters: - * (XMLElement | - * [XMLElement] | - * Strophe.Builder) elem - The stanza to send. - */ - send: function (elem) - { - if (elem === null) { return ; } - if (typeof(elem.sort) === "function") { - for (var i = 0; i < elem.length; i++) { - this._queueData(elem[i]); - } - } else if (typeof(elem.tree) === "function") { - this._queueData(elem.tree()); - } else { - this._queueData(elem); - } - - this._proto._send(); - }, - - /** Function: flush - * Immediately send any pending outgoing data. - * - * Normally send() queues outgoing data until the next idle period - * (100ms), which optimizes network use in the common cases when - * several send()s are called in succession. flush() can be used to - * immediately send all pending data. - */ - flush: function () - { - // cancel the pending idle period and run the idle function - // immediately - clearTimeout(this._idleTimeout); - this._onIdle(); - }, - - /** Function: sendIQ - * Helper function to send IQ stanzas. - * - * Parameters: - * (XMLElement) elem - The stanza to send. - * (Function) callback - The callback function for a successful request. - * (Function) errback - The callback function for a failed or timed - * out request. On timeout, the stanza will be null. - * (Integer) timeout - The time specified in milliseconds for a - * timeout to occur. - * - * Returns: - * The id used to send the IQ. - */ - sendIQ: function(elem, callback, errback, timeout) { - var timeoutHandler = null; - var that = this; - - if (typeof(elem.tree) === "function") { - elem = elem.tree(); - } - var id = elem.getAttribute('id'); - - // inject id if not found - if (!id) { - id = this.getUniqueId("sendIQ"); - elem.setAttribute("id", id); - } - - var handler = this.addHandler(function (stanza) { - // remove timeout handler if there is one - if (timeoutHandler) { - that.deleteTimedHandler(timeoutHandler); - } - - var iqtype = stanza.getAttribute('type'); - if (iqtype == 'result') { - if (callback) { - callback(stanza); - } - } else if (iqtype == 'error') { - if (errback) { - errback(stanza); - } - } else { - throw { - name: "StropheError", - message: "Got bad IQ type of " + iqtype - }; - } - }, null, 'iq', null, id); - - // if timeout specified, setup timeout handler. - if (timeout) { - timeoutHandler = this.addTimedHandler(timeout, function () { - // get rid of normal handler - that.deleteHandler(handler); - - // call errback on timeout with null stanza - if (errback) { - errback(null); - } - return false; - }); - } - - this.send(elem); - - return id; - }, - - /** PrivateFunction: _queueData - * Queue outgoing data for later sending. Also ensures that the data - * is a DOMElement. - */ - _queueData: function (element) { - if (element === null || - !element.tagName || - !element.childNodes) { - throw { - name: "StropheError", - message: "Cannot queue non-DOMElement." - }; - } - - this._data.push(element); - }, - - /** PrivateFunction: _sendRestart - * Send an xmpp:restart stanza. - */ - _sendRestart: function () - { - this._data.push("restart"); - - this._proto._sendRestart(); - - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100); - }, - - /** Function: addTimedHandler - * Add a timed handler to the connection. - * - * This function adds a timed handler. The provided handler will - * be called every period milliseconds until it returns false, - * the connection is terminated, or the handler is removed. Handlers - * that wish to continue being invoked should return true. - * - * Because of method binding it is necessary to save the result of - * this function if you wish to remove a handler with - * deleteTimedHandler(). - * - * Note that user handlers are not active until authentication is - * successful. - * - * Parameters: - * (Integer) period - The period of the handler. - * (Function) handler - The callback function. - * - * Returns: - * A reference to the handler that can be used to remove it. - */ - addTimedHandler: function (period, handler) - { - var thand = new Strophe.TimedHandler(period, handler); - this.addTimeds.push(thand); - return thand; - }, - - /** Function: deleteTimedHandler - * Delete a timed handler for a connection. - * - * This function removes a timed handler from the connection. The - * handRef parameter is *not* the function passed to addTimedHandler(), - * but is the reference returned from addTimedHandler(). - * - * Parameters: - * (Strophe.TimedHandler) handRef - The handler reference. - */ - deleteTimedHandler: function (handRef) - { - // this must be done in the Idle loop so that we don't change - // the handlers during iteration - this.removeTimeds.push(handRef); - }, - - /** Function: addHandler - * Add a stanza handler for the connection. - * - * This function adds a stanza handler to the connection. The - * handler callback will be called for any stanza that matches - * the parameters. Note that if multiple parameters are supplied, - * they must all match for the handler to be invoked. - * - * The handler will receive the stanza that triggered it as its argument. - * The handler should return true if it is to be invoked again; - * returning false will remove the handler after it returns. - * - * As a convenience, the ns parameters applies to the top level element - * and also any of its immediate children. This is primarily to make - * matching /iq/query elements easy. - * - * The options argument contains handler matching flags that affect how - * matches are determined. Currently the only flag is matchBare (a - * boolean). When matchBare is true, the from parameter and the from - * attribute on the stanza will be matched as bare JIDs instead of - * full JIDs. To use this, pass {matchBare: true} as the value of - * options. The default value for matchBare is false. - * - * The return value should be saved if you wish to remove the handler - * with deleteHandler(). - * - * Parameters: - * (Function) handler - The user callback. - * (String) ns - The namespace to match. - * (String) name - The stanza name to match. - * (String) type - The stanza type attribute to match. - * (String) id - The stanza id attribute to match. - * (String) from - The stanza from attribute to match. - * (String) options - The handler options - * - * Returns: - * A reference to the handler that can be used to remove it. - */ - addHandler: function (handler, ns, name, type, id, from, options) - { - var hand = new Strophe.Handler(handler, ns, name, type, id, from, options); - this.addHandlers.push(hand); - return hand; - }, - - /** Function: deleteHandler - * Delete a stanza handler for a connection. - * - * This function removes a stanza handler from the connection. The - * handRef parameter is *not* the function passed to addHandler(), - * but is the reference returned from addHandler(). - * - * Parameters: - * (Strophe.Handler) handRef - The handler reference. - */ - deleteHandler: function (handRef) - { - // this must be done in the Idle loop so that we don't change - // the handlers during iteration - this.removeHandlers.push(handRef); - }, - - /** Function: disconnect - * Start the graceful disconnection process. - * - * This function starts the disconnection process. This process starts - * by sending unavailable presence and sending BOSH body of type - * terminate. A timeout handler makes sure that disconnection happens - * even if the BOSH server does not respond. - * - * The user supplied connection callback will be notified of the - * progress as this process happens. - * - * Parameters: - * (String) reason - The reason the disconnect is occuring. - */ - disconnect: function (reason) - { - this._changeConnectStatus(Strophe.Status.DISCONNECTING, reason); - - Strophe.info("Disconnect was called because: " + reason); - if (this.connected) { - var pres = false; - this.disconnecting = true; - if (this.authenticated) { - pres = $pres({ - xmlns: Strophe.NS.CLIENT, - type: 'unavailable' - }); - } - // setup timeout handler - this._disconnectTimeout = this._addSysTimedHandler( - 3000, this._onDisconnectTimeout.bind(this)); - this._proto._disconnect(pres); - } - }, - - /** PrivateFunction: _changeConnectStatus - * _Private_ helper function that makes sure plugins and the user's - * callback are notified of connection status changes. - * - * Parameters: - * (Integer) status - the new connection status, one of the values - * in Strophe.Status - * (String) condition - the error condition or null - */ - _changeConnectStatus: function (status, condition) - { - // notify all plugins listening for status changes - for (var k in Strophe._connectionPlugins) { - if (Strophe._connectionPlugins.hasOwnProperty(k)) { - var plugin = this[k]; - if (plugin.statusChanged) { - try { - plugin.statusChanged(status, condition); - } catch (err) { - Strophe.error("" + k + " plugin caused an exception " + - "changing status: " + err); - } - } - } - } - - // notify the user's callback - if (this.connect_callback) { - try { - this.connect_callback(status, condition); - } catch (e) { - Strophe.error("User connection callback caused an " + - "exception: " + e); - } - } - }, - - /** PrivateFunction: _doDisconnect - * _Private_ function to disconnect. - * - * This is the last piece of the disconnection logic. This resets the - * connection and alerts the user's connection callback. - */ - _doDisconnect: function () - { - // Cancel Disconnect Timeout - if (this._disconnectTimeout !== null) { - this.deleteTimedHandler(this._disconnectTimeout); - this._disconnectTimeout = null; - } - - Strophe.info("_doDisconnect was called"); - this._proto._doDisconnect(); - - this.authenticated = false; - this.disconnecting = false; - - // delete handlers - this.handlers = []; - this.timedHandlers = []; - this.removeTimeds = []; - this.removeHandlers = []; - this.addTimeds = []; - this.addHandlers = []; - - // tell the parent we disconnected - this._changeConnectStatus(Strophe.Status.DISCONNECTED, null); - this.connected = false; - }, - - /** PrivateFunction: _dataRecv - * _Private_ handler to processes incoming data from the the connection. - * - * Except for _connect_cb handling the initial connection request, - * this function handles the incoming data for all requests. This - * function also fires stanza handlers that match each incoming - * stanza. - * - * Parameters: - * (Strophe.Request) req - The request that has data ready. - * (string) req - The stanza a raw string (optiona). - */ - _dataRecv: function (req, raw) - { - Strophe.info("_dataRecv called"); - var elem = this._proto._reqToData(req); - if (elem === null) { return; } - - if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) { - if (elem.nodeName === this._proto.strip && elem.childNodes.length) { - this.xmlInput(elem.childNodes[0]); - } else { - this.xmlInput(elem); - } - } - if (this.rawInput !== Strophe.Connection.prototype.rawInput) { - if (raw) { - this.rawInput(raw); - } else { - this.rawInput(Strophe.serialize(elem)); - } - } - - // remove handlers scheduled for deletion - var i, hand; - while (this.removeHandlers.length > 0) { - hand = this.removeHandlers.pop(); - i = this.handlers.indexOf(hand); - if (i >= 0) { - this.handlers.splice(i, 1); - } - } - - // add handlers scheduled for addition - while (this.addHandlers.length > 0) { - this.handlers.push(this.addHandlers.pop()); - } - - // handle graceful disconnect - if (this.disconnecting && this._proto._emptyQueue()) { - this._doDisconnect(); - return; - } - - var typ = elem.getAttribute("type"); - var cond, conflict; - if (typ !== null && typ == "terminate") { - // Don't process stanzas that come in after disconnect - if (this.disconnecting || !this.connected) { - return; - } - - // an error occurred - cond = elem.getAttribute("condition"); - conflict = elem.getElementsByTagName("conflict"); - if (cond !== null) { - if (cond == "remote-stream-error" && conflict.length > 0) { - cond = "conflict"; - } - this._changeConnectStatus(Strophe.Status.CONNFAIL, cond); - } else { - this._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown"); - } - this.disconnect('unknown stream-error'); - return; - } - - // send each incoming stanza through the handler chain - var that = this; - Strophe.forEachChild(elem, null, function (child) { - var i, newList; - // process handlers - newList = that.handlers; - that.handlers = []; - for (i = 0; i < newList.length; i++) { - var hand = newList[i]; - // encapsulate 'handler.run' not to lose the whole handler list if - // one of the handlers throws an exception - try { - if (hand.isMatch(child) && - (that.authenticated || !hand.user)) { - if (hand.run(child)) { - that.handlers.push(hand); - } - } else { - that.handlers.push(hand); - } - } catch(e) { - // if the handler throws an exception, we consider it as false - Strophe.warn('Removing Strophe handlers due to uncaught exception: ' + e.message); - } - } - }); - }, - - - /** Attribute: mechanisms - * SASL Mechanisms available for Conncection. - */ - mechanisms: {}, - - /** PrivateFunction: _connect_cb - * _Private_ handler for initial connection request. - * - * This handler is used to process the initial connection request - * response from the BOSH server. It is used to set up authentication - * handlers and start the authentication process. - * - * SASL authentication will be attempted if available, otherwise - * the code will fall back to legacy authentication. - * - * Parameters: - * (Strophe.Request) req - The current request. - * (Function) _callback - low level (xmpp) connect callback function. - * Useful for plugins with their own xmpp connect callback (when their) - * want to do something special). - */ - _connect_cb: function (req, _callback, raw) - { - Strophe.info("_connect_cb was called"); - - this.connected = true; - - var bodyWrap = this._proto._reqToData(req); - if (!bodyWrap) { return; } - - if (this.xmlInput !== Strophe.Connection.prototype.xmlInput) { - if (bodyWrap.nodeName === this._proto.strip && bodyWrap.childNodes.length) { - this.xmlInput(bodyWrap.childNodes[0]); - } else { - this.xmlInput(bodyWrap); - } - } - if (this.rawInput !== Strophe.Connection.prototype.rawInput) { - if (raw) { - this.rawInput(raw); - } else { - this.rawInput(Strophe.serialize(bodyWrap)); - } - } - - var conncheck = this._proto._connect_cb(bodyWrap); - if (conncheck === Strophe.Status.CONNFAIL) { - return; - } - - this._authentication.sasl_scram_sha1 = false; - this._authentication.sasl_plain = false; - this._authentication.sasl_digest_md5 = false; - this._authentication.sasl_anonymous = false; - - this._authentication.legacy_auth = false; - - // Check for the stream:features tag - var hasFeatures = bodyWrap.getElementsByTagName("stream:features").length > 0; - if (!hasFeatures) { - hasFeatures = bodyWrap.getElementsByTagName("features").length > 0; - } - var mechanisms = bodyWrap.getElementsByTagName("mechanism"); - var matched = []; - var i, mech, found_authentication = false; - if (!hasFeatures) { - this._proto._no_auth_received(_callback); - return; - } - if (mechanisms.length > 0) { - for (i = 0; i < mechanisms.length; i++) { - mech = Strophe.getText(mechanisms[i]); - if (this.mechanisms[mech]) matched.push(this.mechanisms[mech]); - } - } - this._authentication.legacy_auth = - bodyWrap.getElementsByTagName("auth").length > 0; - found_authentication = this._authentication.legacy_auth || - matched.length > 0; - if (!found_authentication) { - this._proto._no_auth_received(_callback); - return; - } - if (this.do_authentication !== false) - this.authenticate(matched); - }, - - /** Function: authenticate - * Set up authentication - * - * Contiunues the initial connection request by setting up authentication - * handlers and start the authentication process. - * - * SASL authentication will be attempted if available, otherwise - * the code will fall back to legacy authentication. - * - */ - authenticate: function (matched) - { - var i; - // Sorting matched mechanisms according to priority. - for (i = 0; i < matched.length - 1; ++i) { - var higher = i; - for (var j = i + 1; j < matched.length; ++j) { - if (matched[j].prototype.priority > matched[higher].prototype.priority) { - higher = j; - } - } - if (higher != i) { - var swap = matched[i]; - matched[i] = matched[higher]; - matched[higher] = swap; - } - } - - // run each mechanism - var mechanism_found = false; - for (i = 0; i < matched.length; ++i) { - if (!matched[i].test(this)) continue; - - this._sasl_success_handler = this._addSysHandler( - this._sasl_success_cb.bind(this), null, - "success", null, null); - this._sasl_failure_handler = this._addSysHandler( - this._sasl_failure_cb.bind(this), null, - "failure", null, null); - this._sasl_challenge_handler = this._addSysHandler( - this._sasl_challenge_cb.bind(this), null, - "challenge", null, null); - - this._sasl_mechanism = new matched[i](); - this._sasl_mechanism.onStart(this); - - var request_auth_exchange = $build("auth", { - xmlns: Strophe.NS.SASL, - mechanism: this._sasl_mechanism.name - }); - - if (this._sasl_mechanism.isClientFirst) { - var response = this._sasl_mechanism.onChallenge(this, null); - request_auth_exchange.t(Base64.encode(response)); - } - - this.send(request_auth_exchange.tree()); - - mechanism_found = true; - break; - } - - if (!mechanism_found) { - // if none of the mechanism worked - if (Strophe.getNodeFromJid(this.jid) === null) { - // we don't have a node, which is required for non-anonymous - // client connections - this._changeConnectStatus(Strophe.Status.CONNFAIL, - 'x-strophe-bad-non-anon-jid'); - this.disconnect('x-strophe-bad-non-anon-jid'); - } else { - // fall back to legacy authentication - this._changeConnectStatus(Strophe.Status.AUTHENTICATING, null); - this._addSysHandler(this._auth1_cb.bind(this), null, null, - null, "_auth_1"); - - this.send($iq({ - type: "get", - to: this.domain, - id: "_auth_1" - }).c("query", { - xmlns: Strophe.NS.AUTH - }).c("username", {}).t(Strophe.getNodeFromJid(this.jid)).tree()); - } - } - - }, - - _sasl_challenge_cb: function(elem) { - var challenge = Base64.decode(Strophe.getText(elem)); - var response = this._sasl_mechanism.onChallenge(this, challenge); - - var stanza = $build('response', { - xmlns: Strophe.NS.SASL - }); - if (response !== "") { - stanza.t(Base64.encode(response)); - } - this.send(stanza.tree()); - - return true; - }, - - /** PrivateFunction: _auth1_cb - * _Private_ handler for legacy authentication. - * - * This handler is called in response to the initial - * for legacy authentication. It builds an authentication and - * sends it, creating a handler (calling back to _auth2_cb()) to - * handle the result - * - * Parameters: - * (XMLElement) elem - The stanza that triggered the callback. - * - * Returns: - * false to remove the handler. - */ - /* jshint unused:false */ - _auth1_cb: function (elem) - { - // build plaintext auth iq - var iq = $iq({type: "set", id: "_auth_2"}) - .c('query', {xmlns: Strophe.NS.AUTH}) - .c('username', {}).t(Strophe.getNodeFromJid(this.jid)) - .up() - .c('password').t(this.pass); - - if (!Strophe.getResourceFromJid(this.jid)) { - // since the user has not supplied a resource, we pick - // a default one here. unlike other auth methods, the server - // cannot do this for us. - this.jid = Strophe.getBareJidFromJid(this.jid) + '/strophe'; - } - iq.up().c('resource', {}).t(Strophe.getResourceFromJid(this.jid)); - - this._addSysHandler(this._auth2_cb.bind(this), null, - null, null, "_auth_2"); - - this.send(iq.tree()); - - return false; - }, - /* jshint unused:true */ - - /** PrivateFunction: _sasl_success_cb - * _Private_ handler for succesful SASL authentication. - * - * Parameters: - * (XMLElement) elem - The matching stanza. - * - * Returns: - * false to remove the handler. - */ - _sasl_success_cb: function (elem) - { - if (this._sasl_data["server-signature"]) { - var serverSignature; - var success = Base64.decode(Strophe.getText(elem)); - var attribMatch = /([a-z]+)=([^,]+)(,|$)/; - var matches = success.match(attribMatch); - if (matches[1] == "v") { - serverSignature = matches[2]; - } - - if (serverSignature != this._sasl_data["server-signature"]) { - // remove old handlers - this.deleteHandler(this._sasl_failure_handler); - this._sasl_failure_handler = null; - if (this._sasl_challenge_handler) { - this.deleteHandler(this._sasl_challenge_handler); - this._sasl_challenge_handler = null; - } - - this._sasl_data = {}; - return this._sasl_failure_cb(null); - } - } - - Strophe.info("SASL authentication succeeded."); - - if(this._sasl_mechanism) - this._sasl_mechanism.onSuccess(); - - // remove old handlers - this.deleteHandler(this._sasl_failure_handler); - this._sasl_failure_handler = null; - if (this._sasl_challenge_handler) { - this.deleteHandler(this._sasl_challenge_handler); - this._sasl_challenge_handler = null; - } - - this._addSysHandler(this._sasl_auth1_cb.bind(this), null, - "stream:features", null, null); - - // we must send an xmpp:restart now - this._sendRestart(); - - return false; - }, - - /** PrivateFunction: _sasl_auth1_cb - * _Private_ handler to start stream binding. - * - * Parameters: - * (XMLElement) elem - The matching stanza. - * - * Returns: - * false to remove the handler. - */ - _sasl_auth1_cb: function (elem) - { - // save stream:features for future usage - this.features = elem; - - var i, child; - - for (i = 0; i < elem.childNodes.length; i++) { - child = elem.childNodes[i]; - if (child.nodeName == 'bind') { - this.do_bind = true; - } - - if (child.nodeName == 'session') { - this.do_session = true; - } - } - - if (!this.do_bind) { - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); - return false; - } else { - this._addSysHandler(this._sasl_bind_cb.bind(this), null, null, - null, "_bind_auth_2"); - - var resource = Strophe.getResourceFromJid(this.jid); - if (resource) { - this.send($iq({type: "set", id: "_bind_auth_2"}) - .c('bind', {xmlns: Strophe.NS.BIND}) - .c('resource', {}).t(resource).tree()); - } else { - this.send($iq({type: "set", id: "_bind_auth_2"}) - .c('bind', {xmlns: Strophe.NS.BIND}) - .tree()); - } - } - - return false; - }, - - /** PrivateFunction: _sasl_bind_cb - * _Private_ handler for binding result and session start. - * - * Parameters: - * (XMLElement) elem - The matching stanza. - * - * Returns: - * false to remove the handler. - */ - _sasl_bind_cb: function (elem) - { - if (elem.getAttribute("type") == "error") { - Strophe.info("SASL binding failed."); - var conflict = elem.getElementsByTagName("conflict"), condition; - if (conflict.length > 0) { - condition = 'conflict'; - } - this._changeConnectStatus(Strophe.Status.AUTHFAIL, condition); - return false; - } - - // TODO - need to grab errors - var bind = elem.getElementsByTagName("bind"); - var jidNode; - if (bind.length > 0) { - // Grab jid - jidNode = bind[0].getElementsByTagName("jid"); - if (jidNode.length > 0) { - this.jid = Strophe.getText(jidNode[0]); - - if (this.do_session) { - this._addSysHandler(this._sasl_session_cb.bind(this), - null, null, null, "_session_auth_2"); - - this.send($iq({type: "set", id: "_session_auth_2"}) - .c('session', {xmlns: Strophe.NS.SESSION}) - .tree()); - } else { - this.authenticated = true; - this._changeConnectStatus(Strophe.Status.CONNECTED, null); - } - } - } else { - Strophe.info("SASL binding failed."); - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); - return false; - } - }, - - /** PrivateFunction: _sasl_session_cb - * _Private_ handler to finish successful SASL connection. - * - * This sets Connection.authenticated to true on success, which - * starts the processing of user handlers. - * - * Parameters: - * (XMLElement) elem - The matching stanza. - * - * Returns: - * false to remove the handler. - */ - _sasl_session_cb: function (elem) - { - if (elem.getAttribute("type") == "result") { - this.authenticated = true; - this._changeConnectStatus(Strophe.Status.CONNECTED, null); - } else if (elem.getAttribute("type") == "error") { - Strophe.info("Session creation failed."); - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); - return false; - } - - return false; - }, - - /** PrivateFunction: _sasl_failure_cb - * _Private_ handler for SASL authentication failure. - * - * Parameters: - * (XMLElement) elem - The matching stanza. - * - * Returns: - * false to remove the handler. - */ - /* jshint unused:false */ - _sasl_failure_cb: function (elem) - { - // delete unneeded handlers - if (this._sasl_success_handler) { - this.deleteHandler(this._sasl_success_handler); - this._sasl_success_handler = null; - } - if (this._sasl_challenge_handler) { - this.deleteHandler(this._sasl_challenge_handler); - this._sasl_challenge_handler = null; - } - - if(this._sasl_mechanism) - this._sasl_mechanism.onFailure(); - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); - return false; - }, - /* jshint unused:true */ - - /** PrivateFunction: _auth2_cb - * _Private_ handler to finish legacy authentication. - * - * This handler is called when the result from the jabber:iq:auth - * stanza is returned. - * - * Parameters: - * (XMLElement) elem - The stanza that triggered the callback. - * - * Returns: - * false to remove the handler. - */ - _auth2_cb: function (elem) - { - if (elem.getAttribute("type") == "result") { - this.authenticated = true; - this._changeConnectStatus(Strophe.Status.CONNECTED, null); - } else if (elem.getAttribute("type") == "error") { - this._changeConnectStatus(Strophe.Status.AUTHFAIL, null); - this.disconnect('authentication failed'); - } - - return false; - }, - - /** PrivateFunction: _addSysTimedHandler - * _Private_ function to add a system level timed handler. - * - * This function is used to add a Strophe.TimedHandler for the - * library code. System timed handlers are allowed to run before - * authentication is complete. - * - * Parameters: - * (Integer) period - The period of the handler. - * (Function) handler - The callback function. - */ - _addSysTimedHandler: function (period, handler) - { - var thand = new Strophe.TimedHandler(period, handler); - thand.user = false; - this.addTimeds.push(thand); - return thand; - }, - - /** PrivateFunction: _addSysHandler - * _Private_ function to add a system level stanza handler. - * - * This function is used to add a Strophe.Handler for the - * library code. System stanza handlers are allowed to run before - * authentication is complete. - * - * Parameters: - * (Function) handler - The callback function. - * (String) ns - The namespace to match. - * (String) name - The stanza name to match. - * (String) type - The stanza type attribute to match. - * (String) id - The stanza id attribute to match. - */ - _addSysHandler: function (handler, ns, name, type, id) - { - var hand = new Strophe.Handler(handler, ns, name, type, id); - hand.user = false; - this.addHandlers.push(hand); - return hand; - }, - - /** PrivateFunction: _onDisconnectTimeout - * _Private_ timeout handler for handling non-graceful disconnection. - * - * If the graceful disconnect process does not complete within the - * time allotted, this handler finishes the disconnect anyway. - * - * Returns: - * false to remove the handler. - */ - _onDisconnectTimeout: function () - { - Strophe.info("_onDisconnectTimeout was called"); - - this._proto._onDisconnectTimeout(); - - // actually disconnect - this._doDisconnect(); - - return false; - }, - - /** PrivateFunction: _onIdle - * _Private_ handler to process events during idle cycle. - * - * This handler is called every 100ms to fire timed handlers that - * are ready and keep poll requests going. - */ - _onIdle: function () - { - var i, thand, since, newList; - - // add timed handlers scheduled for addition - // NOTE: we add before remove in the case a timed handler is - // added and then deleted before the next _onIdle() call. - while (this.addTimeds.length > 0) { - this.timedHandlers.push(this.addTimeds.pop()); - } - - // remove timed handlers that have been scheduled for deletion - while (this.removeTimeds.length > 0) { - thand = this.removeTimeds.pop(); - i = this.timedHandlers.indexOf(thand); - if (i >= 0) { - this.timedHandlers.splice(i, 1); - } - } - - // call ready timed handlers - var now = new Date().getTime(); - newList = []; - for (i = 0; i < this.timedHandlers.length; i++) { - thand = this.timedHandlers[i]; - if (this.authenticated || !thand.user) { - since = thand.lastCalled + thand.period; - if (since - now <= 0) { - if (thand.run()) { - newList.push(thand); - } - } else { - newList.push(thand); - } - } - } - this.timedHandlers = newList; - - clearTimeout(this._idleTimeout); - - this._proto._onIdle(); - - // reactivate the timer only if connected - if (this.connected) { - this._idleTimeout = setTimeout(this._onIdle.bind(this), 100); - } - } -}; - -if (callback) { - callback(Strophe, $build, $msg, $iq, $pres); -} - -/** Class: Strophe.SASLMechanism - * - * encapsulates SASL authentication mechanisms. - * - * User code may override the priority for each mechanism or disable it completely. - * See for information about changing priority and for informatian on - * how to disable a mechanism. - * - * By default, all mechanisms are enabled and the priorities are - * - * SCRAM-SHA1 - 40 - * DIGEST-MD5 - 30 - * Plain - 20 - */ - -/** - * PrivateConstructor: Strophe.SASLMechanism - * SASL auth mechanism abstraction. - * - * Parameters: - * (String) name - SASL Mechanism name. - * (Boolean) isClientFirst - If client should send response first without challenge. - * (Number) priority - Priority. - * - * Returns: - * A new Strophe.SASLMechanism object. - */ -Strophe.SASLMechanism = function(name, isClientFirst, priority) { - /** PrivateVariable: name - * Mechanism name. - */ - this.name = name; - /** PrivateVariable: isClientFirst - * If client sends response without initial server challenge. - */ - this.isClientFirst = isClientFirst; - /** Variable: priority - * Determines which is chosen for authentication (Higher is better). - * Users may override this to prioritize mechanisms differently. - * - * In the default configuration the priorities are - * - * SCRAM-SHA1 - 40 - * DIGEST-MD5 - 30 - * Plain - 20 - * - * Example: (This will cause Strophe to choose the mechanism that the server sent first) - * - * > Strophe.SASLMD5.priority = Strophe.SASLSHA1.priority; - * - * See for a list of available mechanisms. - * - */ - this.priority = priority; -}; - -Strophe.SASLMechanism.prototype = { - /** - * Function: test - * Checks if mechanism able to run. - * To disable a mechanism, make this return false; - * - * To disable plain authentication run - * > Strophe.SASLPlain.test = function() { - * > return false; - * > } - * - * See for a list of available mechanisms. - * - * Parameters: - * (Strophe.Connection) connection - Target Connection. - * - * Returns: - * (Boolean) If mechanism was able to run. - */ - /* jshint unused:false */ - test: function(connection) { - return true; - }, - /* jshint unused:true */ - - /** PrivateFunction: onStart - * Called before starting mechanism on some connection. - * - * Parameters: - * (Strophe.Connection) connection - Target Connection. - */ - onStart: function(connection) - { - this._connection = connection; - }, - - /** PrivateFunction: onChallenge - * Called by protocol implementation on incoming challenge. If client is - * first (isClientFirst == true) challenge will be null on the first call. - * - * Parameters: - * (Strophe.Connection) connection - Target Connection. - * (String) challenge - current challenge to handle. - * - * Returns: - * (String) Mechanism response. - */ - /* jshint unused:false */ - onChallenge: function(connection, challenge) { - throw new Error("You should implement challenge handling!"); - }, - /* jshint unused:true */ - - /** PrivateFunction: onFailure - * Protocol informs mechanism implementation about SASL failure. - */ - onFailure: function() { - this._connection = null; - }, - - /** PrivateFunction: onSuccess - * Protocol informs mechanism implementation about SASL success. - */ - onSuccess: function() { - this._connection = null; - } -}; - - /** Constants: SASL mechanisms - * Available authentication mechanisms - * - * Strophe.SASLAnonymous - SASL Anonymous authentication. - * Strophe.SASLPlain - SASL Plain authentication. - * Strophe.SASLMD5 - SASL Digest-MD5 authentication - * Strophe.SASLSHA1 - SASL SCRAM-SHA1 authentication - */ - -// Building SASL callbacks - -/** PrivateConstructor: SASLAnonymous - * SASL Anonymous authentication. - */ -Strophe.SASLAnonymous = function() {}; - -Strophe.SASLAnonymous.prototype = new Strophe.SASLMechanism("ANONYMOUS", false, 10); - -Strophe.SASLAnonymous.test = function(connection) { - return connection.authcid === null; -}; - -Strophe.Connection.prototype.mechanisms[Strophe.SASLAnonymous.prototype.name] = Strophe.SASLAnonymous; - -/** PrivateConstructor: SASLPlain - * SASL Plain authentication. - */ -Strophe.SASLPlain = function() {}; - -Strophe.SASLPlain.prototype = new Strophe.SASLMechanism("PLAIN", true, 20); - -Strophe.SASLPlain.test = function(connection) { - return connection.authcid !== null; -}; - -Strophe.SASLPlain.prototype.onChallenge = function(connection) { - var auth_str = connection.authzid; - auth_str = auth_str + "\u0000"; - auth_str = auth_str + connection.authcid; - auth_str = auth_str + "\u0000"; - auth_str = auth_str + connection.pass; - return auth_str; -}; - -Strophe.Connection.prototype.mechanisms[Strophe.SASLPlain.prototype.name] = Strophe.SASLPlain; - -/** PrivateConstructor: SASLSHA1 - * SASL SCRAM SHA 1 authentication. - */ -Strophe.SASLSHA1 = function() {}; - -/* TEST: - * This is a simple example of a SCRAM-SHA-1 authentication exchange - * when the client doesn't support channel bindings (username 'user' and - * password 'pencil' are used): - * - * C: n,,n=user,r=fyko+d2lbbFgONRv9qkxdawL - * S: r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j,s=QSXCR+Q6sek8bf92, - * i=4096 - * C: c=biws,r=fyko+d2lbbFgONRv9qkxdawL3rfcNHYJY1ZVvWVs7j, - * p=v0X8v3Bz2T0CJGbJQyF0X+HI4Ts= - * S: v=rmF9pqV8S7suAoZWja4dJRkFsKQ= - * - */ - -Strophe.SASLSHA1.prototype = new Strophe.SASLMechanism("SCRAM-SHA-1", true, 40); - -Strophe.SASLSHA1.test = function(connection) { - return connection.authcid !== null; -}; - -Strophe.SASLSHA1.prototype.onChallenge = function(connection, challenge, test_cnonce) { - var cnonce = test_cnonce || MD5.hexdigest(Math.random() * 1234567890); - - var auth_str = "n=" + connection.authcid; - auth_str += ",r="; - auth_str += cnonce; - - connection._sasl_data.cnonce = cnonce; - connection._sasl_data["client-first-message-bare"] = auth_str; - - auth_str = "n,," + auth_str; - - this.onChallenge = function (connection, challenge) - { - var nonce, salt, iter, Hi, U, U_old, i, k; - var clientKey, serverKey, clientSignature; - var responseText = "c=biws,"; - var authMessage = connection._sasl_data["client-first-message-bare"] + "," + - challenge + ","; - var cnonce = connection._sasl_data.cnonce; - var attribMatch = /([a-z]+)=([^,]+)(,|$)/; - - while (challenge.match(attribMatch)) { - var matches = challenge.match(attribMatch); - challenge = challenge.replace(matches[0], ""); - switch (matches[1]) { - case "r": - nonce = matches[2]; - break; - case "s": - salt = matches[2]; - break; - case "i": - iter = matches[2]; - break; - } - } - - if (nonce.substr(0, cnonce.length) !== cnonce) { - connection._sasl_data = {}; - return connection._sasl_failure_cb(); - } - - responseText += "r=" + nonce; - authMessage += responseText; - - salt = Base64.decode(salt); - salt += "\x00\x00\x00\x01"; - - Hi = U_old = core_hmac_sha1(connection.pass, salt); - for (i = 1; i < iter; i++) { - U = core_hmac_sha1(connection.pass, binb2str(U_old)); - for (k = 0; k < 5; k++) { - Hi[k] ^= U[k]; - } - U_old = U; - } - Hi = binb2str(Hi); - - clientKey = core_hmac_sha1(Hi, "Client Key"); - serverKey = str_hmac_sha1(Hi, "Server Key"); - clientSignature = core_hmac_sha1(str_sha1(binb2str(clientKey)), authMessage); - connection._sasl_data["server-signature"] = b64_hmac_sha1(serverKey, authMessage); - - for (k = 0; k < 5; k++) { - clientKey[k] ^= clientSignature[k]; - } - - responseText += ",p=" + Base64.encode(binb2str(clientKey)); - - return responseText; - }.bind(this); - - return auth_str; -}; - -Strophe.Connection.prototype.mechanisms[Strophe.SASLSHA1.prototype.name] = Strophe.SASLSHA1; - -/** PrivateConstructor: SASLMD5 - * SASL DIGEST MD5 authentication. - */ -Strophe.SASLMD5 = function() {}; - -Strophe.SASLMD5.prototype = new Strophe.SASLMechanism("DIGEST-MD5", false, 30); - -Strophe.SASLMD5.test = function(connection) { - return connection.authcid !== null; -}; - -/** PrivateFunction: _quote - * _Private_ utility function to backslash escape and quote strings. - * - * Parameters: - * (String) str - The string to be quoted. - * - * Returns: - * quoted string - */ -Strophe.SASLMD5.prototype._quote = function (str) - { - return '"' + str.replace(/\\/g, "\\\\").replace(/"/g, '\\"') + '"'; - //" end string workaround for emacs - }; - - -Strophe.SASLMD5.prototype.onChallenge = function(connection, challenge, test_cnonce) { - var attribMatch = /([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/; - var cnonce = test_cnonce || MD5.hexdigest("" + (Math.random() * 1234567890)); - var realm = ""; - var host = null; - var nonce = ""; - var qop = ""; - var matches; - - while (challenge.match(attribMatch)) { - matches = challenge.match(attribMatch); - challenge = challenge.replace(matches[0], ""); - matches[2] = matches[2].replace(/^"(.+)"$/, "$1"); - switch (matches[1]) { - case "realm": - realm = matches[2]; - break; - case "nonce": - nonce = matches[2]; - break; - case "qop": - qop = matches[2]; - break; - case "host": - host = matches[2]; - break; - } - } - - var digest_uri = connection.servtype + "/" + connection.domain; - if (host !== null) { - digest_uri = digest_uri + "/" + host; - } - - var A1 = MD5.hash(connection.authcid + - ":" + realm + ":" + this._connection.pass) + - ":" + nonce + ":" + cnonce; - var A2 = 'AUTHENTICATE:' + digest_uri; - - var responseText = ""; - responseText += 'charset=utf-8,'; - responseText += 'username=' + - this._quote(connection.authcid) + ','; - responseText += 'realm=' + this._quote(realm) + ','; - responseText += 'nonce=' + this._quote(nonce) + ','; - responseText += 'nc=00000001,'; - responseText += 'cnonce=' + this._quote(cnonce) + ','; - responseText += 'digest-uri=' + this._quote(digest_uri) + ','; - responseText += 'response=' + MD5.hexdigest(MD5.hexdigest(A1) + ":" + - nonce + ":00000001:" + - cnonce + ":auth:" + - MD5.hexdigest(A2)) + ","; - responseText += 'qop=auth'; - - this.onChallenge = function () - { - return ""; - }.bind(this); - - return responseText; -}; - -Strophe.Connection.prototype.mechanisms[Strophe.SASLMD5.prototype.name] = Strophe.SASLMD5; - -})(function () { - window.Strophe = arguments[0]; - window.$build = arguments[1]; - window.$msg = arguments[2]; - window.$iq = arguments[3]; - window.$pres = arguments[4]; -}); - -/* - This program is distributed under the terms of the MIT license. - Please see the LICENSE file for details. - - Copyright 2006-2008, OGG, LLC -*/ - -/* jshint undef: true, unused: true:, noarg: true, latedef: true */ -/*global window, setTimeout, clearTimeout, - XMLHttpRequest, ActiveXObject, - Strophe, $build */ - - -/** PrivateClass: Strophe.Request - * _Private_ helper class that provides a cross implementation abstraction - * for a BOSH related XMLHttpRequest. - * - * The Strophe.Request class is used internally to encapsulate BOSH request - * information. It is not meant to be used from user's code. - */ - -/** PrivateConstructor: Strophe.Request - * Create and initialize a new Strophe.Request object. - * - * Parameters: - * (XMLElement) elem - The XML data to be sent in the request. - * (Function) func - The function that will be called when the - * XMLHttpRequest readyState changes. - * (Integer) rid - The BOSH rid attribute associated with this request. - * (Integer) sends - The number of times this same request has been - * sent. - */ -Strophe.Request = function (elem, func, rid, sends) -{ - this.id = ++Strophe._requestId; - this.xmlData = elem; - this.data = Strophe.serialize(elem); - // save original function in case we need to make a new request - // from this one. - this.origFunc = func; - this.func = func; - this.rid = rid; - this.date = NaN; - this.sends = sends || 0; - this.abort = false; - this.dead = null; - - this.age = function () { - if (!this.date) { return 0; } - var now = new Date(); - return (now - this.date) / 1000; - }; - this.timeDead = function () { - if (!this.dead) { return 0; } - var now = new Date(); - return (now - this.dead) / 1000; - }; - this.xhr = this._newXHR(); -}; - -Strophe.Request.prototype = { - /** PrivateFunction: getResponse - * Get a response from the underlying XMLHttpRequest. - * - * This function attempts to get a response from the request and checks - * for errors. - * - * Throws: - * "parsererror" - A parser error occured. - * - * Returns: - * The DOM element tree of the response. - */ - getResponse: function () - { - var node = null; - if (this.xhr.responseXML && this.xhr.responseXML.documentElement) { - node = this.xhr.responseXML.documentElement; - if (node.tagName == "parsererror") { - Strophe.error("invalid response received"); - Strophe.error("responseText: " + this.xhr.responseText); - Strophe.error("responseXML: " + - Strophe.serialize(this.xhr.responseXML)); - throw "parsererror"; - } - } else if (this.xhr.responseText) { - Strophe.error("invalid response received"); - Strophe.error("responseText: " + this.xhr.responseText); - Strophe.error("responseXML: " + - Strophe.serialize(this.xhr.responseXML)); - } - - return node; - }, - - /** PrivateFunction: _newXHR - * _Private_ helper function to create XMLHttpRequests. - * - * This function creates XMLHttpRequests across all implementations. - * - * Returns: - * A new XMLHttpRequest. - */ - _newXHR: function () - { - var xhr = null; - if (window.XMLHttpRequest) { - xhr = new XMLHttpRequest(); - if (xhr.overrideMimeType) { - xhr.overrideMimeType("text/xml"); - } - } else if (window.ActiveXObject) { - xhr = new ActiveXObject("Microsoft.XMLHTTP"); - } - - // use Function.bind() to prepend ourselves as an argument - xhr.onreadystatechange = this.func.bind(null, this); - - return xhr; - } -}; - -/** Class: Strophe.Bosh - * _Private_ helper class that handles BOSH Connections - * - * The Strophe.Bosh class is used internally by Strophe.Connection - * to encapsulate BOSH sessions. It is not meant to be used from user's code. - */ - -/** File: bosh.js - * A JavaScript library to enable BOSH in Strophejs. - * - * this library uses Bidirectional-streams Over Synchronous HTTP (BOSH) - * to emulate a persistent, stateful, two-way connection to an XMPP server. - * More information on BOSH can be found in XEP 124. - */ - -/** PrivateConstructor: Strophe.Bosh - * Create and initialize a Strophe.Bosh object. - * - * Parameters: - * (Strophe.Connection) connection - The Strophe.Connection that will use BOSH. - * - * Returns: - * A new Strophe.Bosh object. - */ -Strophe.Bosh = function(connection) { - this._conn = connection; - /* request id for body tags */ - this.rid = Math.floor(Math.random() * 4294967295); - /* The current session ID. */ - this.sid = null; - - // default BOSH values - this.hold = 1; - this.wait = 60; - this.window = 5; - - this._requests = []; -}; - -Strophe.Bosh.prototype = { - /** Variable: strip - * - * BOSH-Connections will have all stanzas wrapped in a tag when - * passed to or . - * To strip this tag, User code can set to "body": - * - * > Strophe.Bosh.prototype.strip = "body"; - * - * This will enable stripping of the body tag in both - * and . - */ - strip: null, - - /** PrivateFunction: _buildBody - * _Private_ helper function to generate the wrapper for BOSH. - * - * Returns: - * A Strophe.Builder with a element. - */ - _buildBody: function () - { - var bodyWrap = $build('body', { - rid: this.rid++, - xmlns: Strophe.NS.HTTPBIND - }); - - if (this.sid !== null) { - bodyWrap.attrs({sid: this.sid}); - } - - return bodyWrap; - }, - - /** PrivateFunction: _reset - * Reset the connection. - * - * This function is called by the reset function of the Strophe Connection - */ - _reset: function () - { - this.rid = Math.floor(Math.random() * 4294967295); - this.sid = null; - }, - - /** PrivateFunction: _connect - * _Private_ function that initializes the BOSH connection. - * - * Creates and sends the Request that initializes the BOSH connection. - */ - _connect: function (wait, hold, route) - { - this.wait = wait || this.wait; - this.hold = hold || this.hold; - - // build the body tag - var body = this._buildBody().attrs({ - to: this._conn.domain, - "xml:lang": "en", - wait: this.wait, - hold: this.hold, - content: "text/xml; charset=utf-8", - ver: "1.6", - "xmpp:version": "1.0", - "xmlns:xmpp": Strophe.NS.BOSH - }); - - if(route){ - body.attrs({ - route: route - }); - } - - var _connect_cb = this._conn._connect_cb; - - this._requests.push( - new Strophe.Request(body.tree(), - this._onRequestStateChange.bind( - this, _connect_cb.bind(this._conn)), - body.tree().getAttribute("rid"))); - this._throttledRequestHandler(); - }, - - /** PrivateFunction: _attach - * Attach to an already created and authenticated BOSH session. - * - * This function is provided to allow Strophe to attach to BOSH - * sessions which have been created externally, perhaps by a Web - * application. This is often used to support auto-login type features - * without putting user credentials into the page. - * - * Parameters: - * (String) jid - The full JID that is bound by the session. - * (String) sid - The SID of the BOSH session. - * (String) rid - The current RID of the BOSH session. This RID - * will be used by the next request. - * (Function) callback The connect callback function. - * (Integer) wait - The optional HTTPBIND wait value. This is the - * time the server will wait before returning an empty result for - * a request. The default setting of 60 seconds is recommended. - * Other settings will require tweaks to the Strophe.TIMEOUT value. - * (Integer) hold - The optional HTTPBIND hold value. This is the - * number of connections the server will hold at one time. This - * should almost always be set to 1 (the default). - * (Integer) wind - The optional HTTBIND window value. This is the - * allowed range of request ids that are valid. The default is 5. - */ - _attach: function (jid, sid, rid, callback, wait, hold, wind) - { - this._conn.jid = jid; - this.sid = sid; - this.rid = rid; - - this._conn.connect_callback = callback; - - this._conn.domain = Strophe.getDomainFromJid(this._conn.jid); - - this._conn.authenticated = true; - this._conn.connected = true; - - this.wait = wait || this.wait; - this.hold = hold || this.hold; - this.window = wind || this.window; - - this._conn._changeConnectStatus(Strophe.Status.ATTACHED, null); - }, - - /** PrivateFunction: _connect_cb - * _Private_ handler for initial connection request. - * - * This handler is used to process the Bosh-part of the initial request. - * Parameters: - * (Strophe.Request) bodyWrap - The received stanza. - */ - _connect_cb: function (bodyWrap) - { - var typ = bodyWrap.getAttribute("type"); - var cond, conflict; - if (typ !== null && typ == "terminate") { - // an error occurred - Strophe.error("BOSH-Connection failed: " + cond); - cond = bodyWrap.getAttribute("condition"); - conflict = bodyWrap.getElementsByTagName("conflict"); - if (cond !== null) { - if (cond == "remote-stream-error" && conflict.length > 0) { - cond = "conflict"; - } - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, cond); - } else { - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "unknown"); - } - this._conn._doDisconnect(); - return Strophe.Status.CONNFAIL; - } - - // check to make sure we don't overwrite these if _connect_cb is - // called multiple times in the case of missing stream:features - if (!this.sid) { - this.sid = bodyWrap.getAttribute("sid"); - } - var wind = bodyWrap.getAttribute('requests'); - if (wind) { this.window = parseInt(wind, 10); } - var hold = bodyWrap.getAttribute('hold'); - if (hold) { this.hold = parseInt(hold, 10); } - var wait = bodyWrap.getAttribute('wait'); - if (wait) { this.wait = parseInt(wait, 10); } - }, - - /** PrivateFunction: _disconnect - * _Private_ part of Connection.disconnect for Bosh - * - * Parameters: - * (Request) pres - This stanza will be sent before disconnecting. - */ - _disconnect: function (pres) - { - this._sendTerminate(pres); - }, - - /** PrivateFunction: _doDisconnect - * _Private_ function to disconnect. - * - * Resets the SID and RID. - */ - _doDisconnect: function () - { - this.sid = null; - this.rid = Math.floor(Math.random() * 4294967295); - }, - - /** PrivateFunction: _emptyQueue - * _Private_ function to check if the Request queue is empty. - * - * Returns: - * True, if there are no Requests queued, False otherwise. - */ - _emptyQueue: function () - { - return this._requests.length === 0; - }, - - /** PrivateFunction: _hitError - * _Private_ function to handle the error count. - * - * Requests are resent automatically until their error count reaches - * 5. Each time an error is encountered, this function is called to - * increment the count and disconnect if the count is too high. - * - * Parameters: - * (Integer) reqStatus - The request status. - */ - _hitError: function (reqStatus) - { - this.errors++; - Strophe.warn("request errored, status: " + reqStatus + - ", number of errors: " + this.errors); - if (this.errors > 4) { - this._onDisconnectTimeout(); - } - }, - - /** PrivateFunction: _no_auth_received - * - * Called on stream start/restart when no stream:features - * has been received and sends a blank poll request. - */ - _no_auth_received: function (_callback) - { - if (_callback) { - _callback = _callback.bind(this._conn); - } else { - _callback = this._conn._connect_cb.bind(this._conn); - } - var body = this._buildBody(); - this._requests.push( - new Strophe.Request(body.tree(), - this._onRequestStateChange.bind( - this, _callback.bind(this._conn)), - body.tree().getAttribute("rid"))); - this._throttledRequestHandler(); - }, - - /** PrivateFunction: _onDisconnectTimeout - * _Private_ timeout handler for handling non-graceful disconnection. - * - * Cancels all remaining Requests and clears the queue. - */ - _onDisconnectTimeout: function () - { - var req; - while (this._requests.length > 0) { - req = this._requests.pop(); - req.abort = true; - req.xhr.abort(); - // jslint complains, but this is fine. setting to empty func - // is necessary for IE6 - req.xhr.onreadystatechange = function () {}; // jshint ignore:line - } - }, - - /** PrivateFunction: _onIdle - * _Private_ handler called by Strophe.Connection._onIdle - * - * Sends all queued Requests or polls with empty Request if there are none. - */ - _onIdle: function () { - var data = this._conn._data; - - // if no requests are in progress, poll - if (this._conn.authenticated && this._requests.length === 0 && - data.length === 0 && !this._conn.disconnecting) { - Strophe.info("no requests during idle cycle, sending " + - "blank request"); - data.push(null); - } - - if (this._requests.length < 2 && data.length > 0 && - !this._conn.paused) { - var body = this._buildBody(); - for (var i = 0; i < data.length; i++) { - if (data[i] !== null) { - if (data[i] === "restart") { - body.attrs({ - to: this._conn.domain, - "xml:lang": "en", - "xmpp:restart": "true", - "xmlns:xmpp": Strophe.NS.BOSH - }); - } else { - body.cnode(data[i]).up(); - } - } - } - delete this._conn._data; - this._conn._data = []; - this._requests.push( - new Strophe.Request(body.tree(), - this._onRequestStateChange.bind( - this, this._conn._dataRecv.bind(this._conn)), - body.tree().getAttribute("rid"))); - this._processRequest(this._requests.length - 1); - } - - if (this._requests.length > 0) { - var time_elapsed = this._requests[0].age(); - if (this._requests[0].dead !== null) { - if (this._requests[0].timeDead() > - Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)) { - this._throttledRequestHandler(); - } - } - - if (time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)) { - Strophe.warn("Request " + - this._requests[0].id + - " timed out, over " + Math.floor(Strophe.TIMEOUT * this.wait) + - " seconds since last activity"); - this._throttledRequestHandler(); - } - } - }, - - /** PrivateFunction: _onRequestStateChange - * _Private_ handler for Strophe.Request state changes. - * - * This function is called when the XMLHttpRequest readyState changes. - * It contains a lot of error handling logic for the many ways that - * requests can fail, and calls the request callback when requests - * succeed. - * - * Parameters: - * (Function) func - The handler for the request. - * (Strophe.Request) req - The request that is changing readyState. - */ - _onRequestStateChange: function (func, req) - { - Strophe.debug("request id " + req.id + - "." + req.sends + " state changed to " + - req.xhr.readyState); - - if (req.abort) { - req.abort = false; - return; - } - - // request complete - var reqStatus; - if (req.xhr.readyState == 4) { - reqStatus = 0; - try { - reqStatus = req.xhr.status; - } catch (e) { - // ignore errors from undefined status attribute. works - // around a browser bug - } - - if (typeof(reqStatus) == "undefined") { - reqStatus = 0; - } - - if (this.disconnecting) { - if (reqStatus >= 400) { - this._hitError(reqStatus); - return; - } - } - - var reqIs0 = (this._requests[0] == req); - var reqIs1 = (this._requests[1] == req); - - if ((reqStatus > 0 && reqStatus < 500) || req.sends > 5) { - // remove from internal queue - this._removeRequest(req); - Strophe.debug("request id " + - req.id + - " should now be removed"); - } - - // request succeeded - if (reqStatus == 200) { - // if request 1 finished, or request 0 finished and request - // 1 is over Strophe.SECONDARY_TIMEOUT seconds old, we need to - // restart the other - both will be in the first spot, as the - // completed request has been removed from the queue already - if (reqIs1 || - (reqIs0 && this._requests.length > 0 && - this._requests[0].age() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait))) { - this._restartRequest(0); - } - // call handler - Strophe.debug("request id " + - req.id + "." + - req.sends + " got 200"); - func(req); - this.errors = 0; - } else { - Strophe.error("request id " + - req.id + "." + - req.sends + " error " + reqStatus + - " happened"); - if (reqStatus === 0 || - (reqStatus >= 400 && reqStatus < 600) || - reqStatus >= 12000) { - this._hitError(reqStatus); - if (reqStatus >= 400 && reqStatus < 500) { - this._conn._changeConnectStatus(Strophe.Status.DISCONNECTING, - null); - this._conn._doDisconnect(); - } - } - } - - if (!((reqStatus > 0 && reqStatus < 500) || - req.sends > 5)) { - this._throttledRequestHandler(); - } - } - }, - - /** PrivateFunction: _processRequest - * _Private_ function to process a request in the queue. - * - * This function takes requests off the queue and sends them and - * restarts dead requests. - * - * Parameters: - * (Integer) i - The index of the request in the queue. - */ - _processRequest: function (i) - { - var self = this; - var req = this._requests[i]; - var reqStatus = -1; - - try { - if (req.xhr.readyState == 4) { - reqStatus = req.xhr.status; - } - } catch (e) { - Strophe.error("caught an error in _requests[" + i + - "], reqStatus: " + reqStatus); - } - - if (typeof(reqStatus) == "undefined") { - reqStatus = -1; - } - - // make sure we limit the number of retries - if (req.sends > this.maxRetries) { - this._onDisconnectTimeout(); - return; - } - - var time_elapsed = req.age(); - var primaryTimeout = (!isNaN(time_elapsed) && - time_elapsed > Math.floor(Strophe.TIMEOUT * this.wait)); - var secondaryTimeout = (req.dead !== null && - req.timeDead() > Math.floor(Strophe.SECONDARY_TIMEOUT * this.wait)); - var requestCompletedWithServerError = (req.xhr.readyState == 4 && - (reqStatus < 1 || - reqStatus >= 500)); - if (primaryTimeout || secondaryTimeout || - requestCompletedWithServerError) { - if (secondaryTimeout) { - Strophe.error("Request " + - this._requests[i].id + - " timed out (secondary), restarting"); - } - req.abort = true; - req.xhr.abort(); - // setting to null fails on IE6, so set to empty function - req.xhr.onreadystatechange = function () {}; - this._requests[i] = new Strophe.Request(req.xmlData, - req.origFunc, - req.rid, - req.sends); - req = this._requests[i]; - } - - if (req.xhr.readyState === 0) { - Strophe.debug("request id " + req.id + - "." + req.sends + " posting"); - - try { - req.xhr.open("POST", this._conn.service, this._conn.options.sync ? false : true); - } catch (e2) { - Strophe.error("XHR open failed."); - if (!this._conn.connected) { - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, - "bad-service"); - } - this._conn.disconnect(); - return; - } - - // Fires the XHR request -- may be invoked immediately - // or on a gradually expanding retry window for reconnects - var sendFunc = function () { - req.date = new Date(); - if (self._conn.options.customHeaders){ - var headers = self._conn.options.customHeaders; - for (var header in headers) { - if (headers.hasOwnProperty(header)) { - req.xhr.setRequestHeader(header, headers[header]); - } - } - } - req.xhr.send(req.data); - }; - - // Implement progressive backoff for reconnects -- - // First retry (send == 1) should also be instantaneous - if (req.sends > 1) { - // Using a cube of the retry number creates a nicely - // expanding retry window - var backoff = Math.min(Math.floor(Strophe.TIMEOUT * this.wait), - Math.pow(req.sends, 3)) * 1000; - setTimeout(sendFunc, backoff); - } else { - sendFunc(); - } - - req.sends++; - - if (this._conn.xmlOutput !== Strophe.Connection.prototype.xmlOutput) { - if (req.xmlData.nodeName === this.strip && req.xmlData.childNodes.length) { - this._conn.xmlOutput(req.xmlData.childNodes[0]); - } else { - this._conn.xmlOutput(req.xmlData); - } - } - if (this._conn.rawOutput !== Strophe.Connection.prototype.rawOutput) { - this._conn.rawOutput(req.data); - } - } else { - Strophe.debug("_processRequest: " + - (i === 0 ? "first" : "second") + - " request has readyState of " + - req.xhr.readyState); - } - }, - - /** PrivateFunction: _removeRequest - * _Private_ function to remove a request from the queue. - * - * Parameters: - * (Strophe.Request) req - The request to remove. - */ - _removeRequest: function (req) - { - Strophe.debug("removing request"); - - var i; - for (i = this._requests.length - 1; i >= 0; i--) { - if (req == this._requests[i]) { - this._requests.splice(i, 1); - } - } - - // IE6 fails on setting to null, so set to empty function - req.xhr.onreadystatechange = function () {}; - - this._throttledRequestHandler(); - }, - - /** PrivateFunction: _restartRequest - * _Private_ function to restart a request that is presumed dead. - * - * Parameters: - * (Integer) i - The index of the request in the queue. - */ - _restartRequest: function (i) - { - var req = this._requests[i]; - if (req.dead === null) { - req.dead = new Date(); - } - - this._processRequest(i); - }, - - /** PrivateFunction: _reqToData - * _Private_ function to get a stanza out of a request. - * - * Tries to extract a stanza out of a Request Object. - * When this fails the current connection will be disconnected. - * - * Parameters: - * (Object) req - The Request. - * - * Returns: - * The stanza that was passed. - */ - _reqToData: function (req) - { - try { - return req.getResponse(); - } catch (e) { - if (e != "parsererror") { throw e; } - this._conn.disconnect("strophe-parsererror"); - } - }, - - /** PrivateFunction: _sendTerminate - * _Private_ function to send initial disconnect sequence. - * - * This is the first step in a graceful disconnect. It sends - * the BOSH server a terminate body and includes an unavailable - * presence if authentication has completed. - */ - _sendTerminate: function (pres) - { - Strophe.info("_sendTerminate was called"); - var body = this._buildBody().attrs({type: "terminate"}); - - if (pres) { - body.cnode(pres.tree()); - } - - var req = new Strophe.Request(body.tree(), - this._onRequestStateChange.bind( - this, this._conn._dataRecv.bind(this._conn)), - body.tree().getAttribute("rid")); - - this._requests.push(req); - this._throttledRequestHandler(); - }, - - /** PrivateFunction: _send - * _Private_ part of the Connection.send function for BOSH - * - * Just triggers the RequestHandler to send the messages that are in the queue - */ - _send: function () { - clearTimeout(this._conn._idleTimeout); - this._throttledRequestHandler(); - this._conn._idleTimeout = setTimeout(this._conn._onIdle.bind(this._conn), 100); - }, - - /** PrivateFunction: _sendRestart - * - * Send an xmpp:restart stanza. - */ - _sendRestart: function () - { - this._throttledRequestHandler(); - clearTimeout(this._conn._idleTimeout); - }, - - /** PrivateFunction: _throttledRequestHandler - * _Private_ function to throttle requests to the connection window. - * - * This function makes sure we don't send requests so fast that the - * request ids overflow the connection window in the case that one - * request died. - */ - _throttledRequestHandler: function () - { - if (!this._requests) { - Strophe.debug("_throttledRequestHandler called with " + - "undefined requests"); - } else { - Strophe.debug("_throttledRequestHandler called with " + - this._requests.length + " requests"); - } - - if (!this._requests || this._requests.length === 0) { - return; - } - - if (this._requests.length > 0) { - this._processRequest(0); - } - - if (this._requests.length > 1 && - Math.abs(this._requests[0].rid - - this._requests[1].rid) < this.window) { - this._processRequest(1); - } - } -}; - -/* - This program is distributed under the terms of the MIT license. - Please see the LICENSE file for details. - - Copyright 2006-2008, OGG, LLC -*/ - -/* jshint undef: true, unused: true:, noarg: true, latedef: true */ -/*global document, window, clearTimeout, WebSocket, - DOMParser, Strophe, $build */ - -/** Class: Strophe.WebSocket - * _Private_ helper class that handles WebSocket Connections - * - * The Strophe.WebSocket class is used internally by Strophe.Connection - * to encapsulate WebSocket sessions. It is not meant to be used from user's code. - */ - -/** File: websocket.js - * A JavaScript library to enable XMPP over Websocket in Strophejs. - * - * This file implements XMPP over WebSockets for Strophejs. - * If a Connection is established with a Websocket url (ws://...) - * Strophe will use WebSockets. - * For more information on XMPP-over WebSocket see this RFC draft: - * http://tools.ietf.org/html/draft-ietf-xmpp-websocket-00 - * - * WebSocket support implemented by Andreas Guth (andreas.guth@rwth-aachen.de) - */ - -/** PrivateConstructor: Strophe.Websocket - * Create and initialize a Strophe.WebSocket object. - * Currently only sets the connection Object. - * - * Parameters: - * (Strophe.Connection) connection - The Strophe.Connection that will use WebSockets. - * - * Returns: - * A new Strophe.WebSocket object. - */ -Strophe.Websocket = function(connection) { - this._conn = connection; - this.strip = "stream:stream"; - - var service = connection.service; - if (service.indexOf("ws:") !== 0 && service.indexOf("wss:") !== 0) { - // If the service is not an absolute URL, assume it is a path and put the absolute - // URL together from options, current URL and the path. - var new_service = ""; - - if (connection.options.protocol === "ws" && window.location.protocol !== "https:") { - new_service += "ws"; - } else { - new_service += "wss"; - } - - new_service += "://" + window.location.host; - - if (service.indexOf("/") !== 0) { - new_service += window.location.pathname + service; - } else { - new_service += service; - } - - connection.service = new_service; - } -}; - -Strophe.Websocket.prototype = { - /** PrivateFunction: _buildStream - * _Private_ helper function to generate the start tag for WebSockets - * - * Returns: - * A Strophe.Builder with a element. - */ - _buildStream: function () - { - return $build("stream:stream", { - "to": this._conn.domain, - "xmlns": Strophe.NS.CLIENT, - "xmlns:stream": Strophe.NS.STREAM, - "version": '1.0' - }); - }, - - /** PrivateFunction: _check_streamerror - * _Private_ checks a message for stream:error - * - * Parameters: - * (Strophe.Request) bodyWrap - The received stanza. - * connectstatus - The ConnectStatus that will be set on error. - * Returns: - * true if there was a streamerror, false otherwise. - */ - _check_streamerror: function (bodyWrap, connectstatus) { - var errors = bodyWrap.getElementsByTagName("stream:error"); - if (errors.length === 0) { - return false; - } - var error = errors[0]; - - var condition = ""; - var text = ""; - - var ns = "urn:ietf:params:xml:ns:xmpp-streams"; - for (var i = 0; i < error.childNodes.length; i++) { - var e = error.childNodes[i]; - if (e.getAttribute("xmlns") !== ns) { - break; - } if (e.nodeName === "text") { - text = e.textContent; - } else { - condition = e.nodeName; - } - } - - var errorString = "WebSocket stream error: "; - - if (condition) { - errorString += condition; - } else { - errorString += "unknown"; - } - - if (text) { - errorString += " - " + condition; - } - - Strophe.error(errorString); - - // close the connection on stream_error - this._conn._changeConnectStatus(connectstatus, condition); - this._conn._doDisconnect(); - return true; - }, - - /** PrivateFunction: _reset - * Reset the connection. - * - * This function is called by the reset function of the Strophe Connection. - * Is not needed by WebSockets. - */ - _reset: function () - { - return; - }, - - /** PrivateFunction: _connect - * _Private_ function called by Strophe.Connection.connect - * - * Creates a WebSocket for a connection and assigns Callbacks to it. - * Does nothing if there already is a WebSocket. - */ - _connect: function () { - // Ensure that there is no open WebSocket from a previous Connection. - this._closeSocket(); - - // Create the new WobSocket - this.socket = new WebSocket(this._conn.service, "xmpp"); - this.socket.onopen = this._onOpen.bind(this); - this.socket.onerror = this._onError.bind(this); - this.socket.onclose = this._onClose.bind(this); - this.socket.onmessage = this._connect_cb_wrapper.bind(this); - }, - - /** PrivateFunction: _connect_cb - * _Private_ function called by Strophe.Connection._connect_cb - * - * checks for stream:error - * - * Parameters: - * (Strophe.Request) bodyWrap - The received stanza. - */ - _connect_cb: function(bodyWrap) { - var error = this._check_streamerror(bodyWrap, Strophe.Status.CONNFAIL); - if (error) { - return Strophe.Status.CONNFAIL; - } - }, - - /** PrivateFunction: _handleStreamStart - * _Private_ function that checks the opening stream:stream tag for errors. - * - * Disconnects if there is an error and returns false, true otherwise. - * - * Parameters: - * (Node) message - Stanza containing the stream:stream. - */ - _handleStreamStart: function(message) { - var error = false; - // Check for errors in the stream:stream tag - var ns = message.getAttribute("xmlns"); - if (typeof ns !== "string") { - error = "Missing xmlns in stream:stream"; - } else if (ns !== Strophe.NS.CLIENT) { - error = "Wrong xmlns in stream:stream: " + ns; - } - - var ns_stream = message.namespaceURI; - if (typeof ns_stream !== "string") { - error = "Missing xmlns:stream in stream:stream"; - } else if (ns_stream !== Strophe.NS.STREAM) { - error = "Wrong xmlns:stream in stream:stream: " + ns_stream; - } - - var ver = message.getAttribute("version"); - if (typeof ver !== "string") { - error = "Missing version in stream:stream"; - } else if (ver !== "1.0") { - error = "Wrong version in stream:stream: " + ver; - } - - if (error) { - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, error); - this._conn._doDisconnect(); - return false; - } - - return true; - }, - - /** PrivateFunction: _connect_cb_wrapper - * _Private_ function that handles the first connection messages. - * - * On receiving an opening stream tag this callback replaces itself with the real - * message handler. On receiving a stream error the connection is terminated. - */ - _connect_cb_wrapper: function(message) { - if (message.data.indexOf("\s*)*/, ""); - if (data === '') return; - - //Make the initial stream:stream selfclosing to parse it without a SAX parser. - data = message.data.replace(//, ""); - - var streamStart = new DOMParser().parseFromString(data, "text/xml").documentElement; - this._conn.xmlInput(streamStart); - this._conn.rawInput(message.data); - - //_handleStreamSteart will check for XML errors and disconnect on error - if (this._handleStreamStart(streamStart)) { - - //_connect_cb will check for stream:error and disconnect on error - this._connect_cb(streamStart); - - // ensure received stream:stream is NOT selfclosing and save it for following messages - this.streamStart = message.data.replace(/^$/, ""); - } - } else if (message.data === "") { - this._conn.rawInput(message.data); - this._conn.xmlInput(document.createElement("stream:stream")); - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "Received closing stream"); - this._conn._doDisconnect(); - return; - } else { - this.streamStart = ""; - var string = this._streamWrap(message.data); - var elem = new DOMParser().parseFromString(string, "text/xml").documentElement; - this.socket.onmessage = this._onMessage.bind(this); - this._conn._connect_cb(elem, null, message.data); - } - }, - - /** PrivateFunction: _disconnect - * _Private_ function called by Strophe.Connection.disconnect - * - * Disconnects and sends a last stanza if one is given - * - * Parameters: - * (Request) pres - This stanza will be sent before disconnecting. - */ - _disconnect: function (pres) - { - if (this.socket.readyState !== WebSocket.CLOSED) { - if (pres) { - this._conn.send(pres); - } - var close = ''; - this._conn.xmlOutput(document.createElement("stream:stream")); - this._conn.rawOutput(close); - try { - this.socket.send(close); - } catch (e) { - Strophe.info("Couldn't send closing stream tag."); - } - } - - this._conn._doDisconnect(); - }, - - /** PrivateFunction: _doDisconnect - * _Private_ function to disconnect. - * - * Just closes the Socket for WebSockets - */ - _doDisconnect: function () - { - Strophe.info("WebSockets _doDisconnect was called"); - this._closeSocket(); - }, - - /** PrivateFunction _streamWrap - * _Private_ helper function to wrap a stanza in a tag. - * This is used so Strophe can process stanzas from WebSockets like BOSH - */ - _streamWrap: function (stanza) - { - return this.streamStart + stanza + ''; - }, - - - /** PrivateFunction: _closeSocket - * _Private_ function to close the WebSocket. - * - * Closes the socket if it is still open and deletes it - */ - _closeSocket: function () - { - if (this.socket) { try { - this.socket.close(); - } catch (e) {} } - this.socket = null; - }, - - /** PrivateFunction: _emptyQueue - * _Private_ function to check if the message queue is empty. - * - * Returns: - * True, because WebSocket messages are send immediately after queueing. - */ - _emptyQueue: function () - { - return true; - }, - - /** PrivateFunction: _onClose - * _Private_ function to handle websockets closing. - * - * Nothing to do here for WebSockets - */ - _onClose: function() { - if(this._conn.connected && !this._conn.disconnecting) { - Strophe.error("Websocket closed unexcectedly"); - this._conn._doDisconnect(); - } else { - Strophe.info("Websocket closed"); - } - }, - - /** PrivateFunction: _no_auth_received - * - * Called on stream start/restart when no stream:features - * has been received. - */ - _no_auth_received: function (_callback) - { - Strophe.error("Server did not send any auth methods"); - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "Server did not send any auth methods"); - if (_callback) { - _callback = _callback.bind(this._conn); - _callback(); - } - this._conn._doDisconnect(); - }, - - /** PrivateFunction: _onDisconnectTimeout - * _Private_ timeout handler for handling non-graceful disconnection. - * - * This does nothing for WebSockets - */ - _onDisconnectTimeout: function () {}, - - /** PrivateFunction: _onError - * _Private_ function to handle websockets errors. - * - * Parameters: - * (Object) error - The websocket error. - */ - _onError: function(error) { - Strophe.error("Websocket error " + error); - this._conn._changeConnectStatus(Strophe.Status.CONNFAIL, "The WebSocket connection could not be established was disconnected."); - this._disconnect(); - }, - - /** PrivateFunction: _onIdle - * _Private_ function called by Strophe.Connection._onIdle - * - * sends all queued stanzas - */ - _onIdle: function () { - var data = this._conn._data; - if (data.length > 0 && !this._conn.paused) { - for (var i = 0; i < data.length; i++) { - if (data[i] !== null) { - var stanza, rawStanza; - if (data[i] === "restart") { - stanza = this._buildStream(); - rawStanza = this._removeClosingTag(stanza); - stanza = stanza.tree(); - } else { - stanza = data[i]; - rawStanza = Strophe.serialize(stanza); - } - this._conn.xmlOutput(stanza); - this._conn.rawOutput(rawStanza); - this.socket.send(rawStanza); - } - } - this._conn._data = []; - } - }, - - /** PrivateFunction: _onMessage - * _Private_ function to handle websockets messages. - * - * This function parses each of the messages as if they are full documents. [TODO : We may actually want to use a SAX Push parser]. - * - * Since all XMPP traffic starts with "" - * The first stanza will always fail to be parsed... - * Addtionnaly, the seconds stanza will always be a with the stream NS defined in the previous stanza... so we need to 'force' the inclusion of the NS in this stanza! - * - * Parameters: - * (string) message - The websocket message. - */ - _onMessage: function(message) { - var elem, data; - // check for closing stream - if (message.data === "") { - var close = ""; - this._conn.rawInput(close); - this._conn.xmlInput(document.createElement("stream:stream")); - if (!this._conn.disconnecting) { - this._conn._doDisconnect(); - } - return; - } else if (message.data.search("/, ""); - elem = new DOMParser().parseFromString(data, "text/xml").documentElement; - - if (!this._handleStreamStart(elem)) { - return; - } - } else { - data = this._streamWrap(message.data); - elem = new DOMParser().parseFromString(data, "text/xml").documentElement; - } - - if (this._check_streamerror(elem, Strophe.Status.ERROR)) { - return; - } - - //handle unavailable presence stanza before disconnecting - if (this._conn.disconnecting && - elem.firstChild.nodeName === "presence" && - elem.firstChild.getAttribute("type") === "unavailable") { - this._conn.xmlInput(elem); - this._conn.rawInput(Strophe.serialize(elem)); - // if we are already disconnecting we will ignore the unavailable stanza and - // wait for the tag before we close the connection - return; - } - this._conn._dataRecv(elem, message.data); - }, - - /** PrivateFunction: _onOpen - * _Private_ function to handle websockets connection setup. - * - * The opening stream tag is sent here. - */ - _onOpen: function() { - Strophe.info("Websocket open"); - var start = this._buildStream(); - this._conn.xmlOutput(start.tree()); - - var startString = this._removeClosingTag(start); - this._conn.rawOutput(startString); - this.socket.send(startString); - }, - - /** PrivateFunction: _removeClosingTag - * _Private_ function to Make the first non-selfclosing - * - * Parameters: - * (Object) elem - The tag. - * - * Returns: - * The stream:stream tag as String - */ - _removeClosingTag: function(elem) { - var string = Strophe.serialize(elem); - string = string.replace(/<(stream:stream .*[^\/])\/>$/, "<$1>"); - return string; - }, - - /** PrivateFunction: _reqToData - * _Private_ function to get a stanza out of a request. - * - * WebSockets don't use requests, so the passed argument is just returned. - * - * Parameters: - * (Object) stanza - The stanza. - * - * Returns: - * The stanza that was passed. - */ - _reqToData: function (stanza) - { - return stanza; - }, - - /** PrivateFunction: _send - * _Private_ part of the Connection.send function for WebSocket - * - * Just flushes the messages that are in the queue - */ - _send: function () { - this._conn.flush(); - }, - - /** PrivateFunction: _sendRestart - * - * Send an xmpp:restart stanza. - */ - _sendRestart: function () - { - clearTimeout(this._conn._idleTimeout); - this._conn._onIdle.bind(this._conn)(); - } -}; - -define("strophe", (function (global) { - return function () { - var ret, fn; - return ret || global.Strophe; - }; -}(this))); - -// Generated by CoffeeScript 1.8.0 - -/* - *Plugin to implement the MUC extension. - http://xmpp.org/extensions/xep-0045.html - *Previous Author: - Nathan Zorn - *Complete CoffeeScript rewrite: - Andreas Guth - */ - -(function() { - var Occupant, RoomConfig, XmppRoom, - __hasProp = {}.hasOwnProperty, - __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; - - Strophe.addConnectionPlugin('muc', { - _connection: null, - rooms: {}, - roomNames: [], - - /*Function - Initialize the MUC plugin. Sets the correct connection object and - extends the namesace. - */ - init: function(conn) { - this._connection = conn; - this._muc_handler = null; - Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + "#owner"); - Strophe.addNamespace('MUC_ADMIN', Strophe.NS.MUC + "#admin"); - Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + "#user"); - Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + "#roomconfig"); - return Strophe.addNamespace('MUC_REGISTER', "jabber:iq:register"); - }, - - /*Function - Join a multi-user chat room - Parameters: - (String) room - The multi-user chat room to join. - (String) nick - The nickname to use in the chat room. Optional - (Function) msg_handler_cb - The function call to handle messages from the - specified chat room. - (Function) pres_handler_cb - The function call back to handle presence - in the chat room. - (Function) roster_cb - The function call to handle roster info in the chat room - (String) password - The optional password to use. (password protected - rooms only) - (Object) history_attrs - Optional attributes for retrieving history - (XML DOM Element) extended_presence - Optional XML for extending presence - */ - join: function(room, nick, msg_handler_cb, pres_handler_cb, roster_cb, password, history_attrs) { - var msg, room_nick; - room_nick = this.test_append_nick(room, nick); - msg = $pres({ - from: this._connection.jid, - to: room_nick - }).c("x", { - xmlns: Strophe.NS.MUC - }); - if (history_attrs != null) { - msg = msg.c("history", history_attrs).up(); - } - if (password != null) { - msg.cnode(Strophe.xmlElement("password", [], password)); - } - if (typeof extended_presence !== "undefined" && extended_presence !== null) { - msg.up.cnode(extended_presence); - } - if (this._muc_handler == null) { - this._muc_handler = this._connection.addHandler((function(_this) { - return function(stanza) { - var from, handler, handlers, id, roomname, x, xmlns, xquery, _i, _len; - from = stanza.getAttribute('from'); - if (!from) { - return true; - } - roomname = from.split("/")[0]; - if (!_this.rooms[roomname]) { - return true; - } - room = _this.rooms[roomname]; - handlers = {}; - if (stanza.nodeName === "message") { - handlers = room._message_handlers; - } else if (stanza.nodeName === "presence") { - xquery = stanza.getElementsByTagName("x"); - if (xquery.length > 0) { - for (_i = 0, _len = xquery.length; _i < _len; _i++) { - x = xquery[_i]; - xmlns = x.getAttribute("xmlns"); - if (xmlns && xmlns.match(Strophe.NS.MUC)) { - handlers = room._presence_handlers; - break; - } - } - } - } - for (id in handlers) { - handler = handlers[id]; - if (!handler(stanza, room)) { - delete handlers[id]; - } - } - return true; - }; - })(this)); - } - if (!this.rooms.hasOwnProperty(room)) { - this.rooms[room] = new XmppRoom(this, room, nick, password); - this.roomNames.push(room); - } - if (pres_handler_cb) { - this.rooms[room].addHandler('presence', pres_handler_cb); - } - if (msg_handler_cb) { - this.rooms[room].addHandler('message', msg_handler_cb); - } - if (roster_cb) { - this.rooms[room].addHandler('roster', roster_cb); - } - return this._connection.send(msg); - }, - - /*Function - Leave a multi-user chat room - Parameters: - (String) room - The multi-user chat room to leave. - (String) nick - The nick name used in the room. - (Function) handler_cb - Optional function to handle the successful leave. - (String) exit_msg - optional exit message. - Returns: - iqid - The unique id for the room leave. - */ - leave: function(room, nick, handler_cb, exit_msg) { - var id, presence, presenceid, room_nick; - id = this.roomNames.indexOf(room); - delete this.rooms[room]; - if (id >= 0) { - this.roomNames.splice(id, 1); - if (this.roomNames.length === 0) { - this._connection.deleteHandler(this._muc_handler); - this._muc_handler = null; - } - } - room_nick = this.test_append_nick(room, nick); - presenceid = this._connection.getUniqueId(); - presence = $pres({ - type: "unavailable", - id: presenceid, - from: this._connection.jid, - to: room_nick - }); - if (exit_msg != null) { - presence.c("status", exit_msg); - } - if (handler_cb != null) { - this._connection.addHandler(handler_cb, null, "presence", null, presenceid); - } - this._connection.send(presence); - return presenceid; - }, - - /*Function - Parameters: - (String) room - The multi-user chat room name. - (String) nick - The nick name used in the chat room. - (String) message - The plaintext message to send to the room. - (String) html_message - The message to send to the room with html markup. - (String) type - "groupchat" for group chat messages o - "chat" for private chat messages - Returns: - msgiq - the unique id used to send the message - */ - message: function(room, nick, message, html_message, type, msgid) { - var msg, parent, room_nick; - room_nick = this.test_append_nick(room, nick); - type = type || (nick != null ? "chat" : "groupchat"); - msgid = msgid || this._connection.getUniqueId(); - msg = $msg({ - to: room_nick, - from: this._connection.jid, - type: type, - id: msgid - }).c("body", { - xmlns: Strophe.NS.CLIENT - }).t(message); - msg.up(); - if (html_message != null) { - msg.c("html", { - xmlns: Strophe.NS.XHTML_IM - }).c("body", { - xmlns: Strophe.NS.XHTML - }).h(html_message); - if (msg.node.childNodes.length === 0) { - parent = msg.node.parentNode; - msg.up().up(); - msg.node.removeChild(parent); - } else { - msg.up().up(); - } - } - msg.c("x", { - xmlns: "jabber:x:event" - }).c("composing"); - this._connection.send(msg); - return msgid; - }, - - /*Function - Convenience Function to send a Message to all Occupants - Parameters: - (String) room - The multi-user chat room name. - (String) message - The plaintext message to send to the room. - (String) html_message - The message to send to the room with html markup. - (String) msgid - Optional unique ID which will be set as the 'id' attribute of the stanza - Returns: - msgiq - the unique id used to send the message - */ - groupchat: function(room, message, html_message, msgid) { - return this.message(room, null, message, html_message, void 0, msgid); - }, - - /*Function - Send a mediated invitation. - Parameters: - (String) room - The multi-user chat room name. - (String) receiver - The invitation's receiver. - (String) reason - Optional reason for joining the room. - Returns: - msgiq - the unique id used to send the invitation - */ - invite: function(room, receiver, reason) { - var invitation, msgid; - msgid = this._connection.getUniqueId(); - invitation = $msg({ - from: this._connection.jid, - to: room, - id: msgid - }).c('x', { - xmlns: Strophe.NS.MUC_USER - }).c('invite', { - to: receiver - }); - if (reason != null) { - invitation.c('reason', reason); - } - this._connection.send(invitation); - return msgid; - }, - - /*Function - Send a mediated multiple invitation. - Parameters: - (String) room - The multi-user chat room name. - (Array) receivers - The invitation's receivers. - (String) reason - Optional reason for joining the room. - Returns: - msgiq - the unique id used to send the invitation - */ - multipleInvites: function(room, receivers, reason) { - var invitation, msgid, receiver, _i, _len; - msgid = this._connection.getUniqueId(); - invitation = $msg({ - from: this._connection.jid, - to: room, - id: msgid - }).c('x', { - xmlns: Strophe.NS.MUC_USER - }); - for (_i = 0, _len = receivers.length; _i < _len; _i++) { - receiver = receivers[_i]; - invitation.c('invite', { - to: receiver - }); - if (reason != null) { - invitation.c('reason', reason); - invitation.up(); - } - invitation.up(); - } - this._connection.send(invitation); - return msgid; - }, - - /*Function - Send a direct invitation. - Parameters: - (String) room - The multi-user chat room name. - (String) receiver - The invitation's receiver. - (String) reason - Optional reason for joining the room. - (String) password - Optional password for the room. - Returns: - msgiq - the unique id used to send the invitation - */ - directInvite: function(room, receiver, reason, password) { - var attrs, invitation, msgid; - msgid = this._connection.getUniqueId(); - attrs = { - xmlns: 'jabber:x:conference', - jid: room - }; - if (reason != null) { - attrs.reason = reason; - } - if (password != null) { - attrs.password = password; - } - invitation = $msg({ - from: this._connection.jid, - to: receiver, - id: msgid - }).c('x', attrs); - this._connection.send(invitation); - return msgid; - }, - - /*Function - Queries a room for a list of occupants - (String) room - The multi-user chat room name. - (Function) success_cb - Optional function to handle the info. - (Function) error_cb - Optional function to handle an error. - Returns: - id - the unique id used to send the info request - */ - queryOccupants: function(room, success_cb, error_cb) { - var attrs, info; - attrs = { - xmlns: Strophe.NS.DISCO_ITEMS - }; - info = $iq({ - from: this._connection.jid, - to: room, - type: 'get' - }).c('query', attrs); - return this._connection.sendIQ(info, success_cb, error_cb); - }, - - /*Function - Start a room configuration. - Parameters: - (String) room - The multi-user chat room name. - (Function) handler_cb - Optional function to handle the config form. - Returns: - id - the unique id used to send the configuration request - */ - configure: function(room, handler_cb, error_cb) { - var config, stanza; - config = $iq({ - to: room, - type: "get" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }); - stanza = config.tree(); - return this._connection.sendIQ(stanza, handler_cb, error_cb); - }, - - /*Function - Cancel the room configuration - Parameters: - (String) room - The multi-user chat room name. - Returns: - id - the unique id used to cancel the configuration. - */ - cancelConfigure: function(room) { - var config, stanza; - config = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }).c("x", { - xmlns: "jabber:x:data", - type: "cancel" - }); - stanza = config.tree(); - return this._connection.sendIQ(stanza); - }, - - /*Function - Save a room configuration. - Parameters: - (String) room - The multi-user chat room name. - (Array) config- Form Object or an array of form elements used to configure the room. - Returns: - id - the unique id used to save the configuration. - */ - saveConfiguration: function(room, config, success_cb, error_cb) { - var conf, iq, stanza, _i, _len; - iq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }); - if (typeof Form !== "undefined" && config instanceof Form) { - config.type = "submit"; - iq.cnode(config.toXML()); - } else { - iq.c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - for (_i = 0, _len = config.length; _i < _len; _i++) { - conf = config[_i]; - iq.cnode(conf).up(); - } - } - stanza = iq.tree(); - return this._connection.sendIQ(stanza, success_cb, error_cb); - }, - - /*Function - Parameters: - (String) room - The multi-user chat room name. - Returns: - id - the unique id used to create the chat room. - */ - createInstantRoom: function(room, success_cb, error_cb) { - var roomiq; - roomiq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }).c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - return this._connection.sendIQ(roomiq.tree(), success_cb, error_cb); - }, - - /*Function - Parameters: - (String) room - The multi-user chat room name. - (Object) config - the configuration. ex: {"muc#roomconfig_publicroom": "0", "muc#roomconfig_persistentroom": "1"} - Returns: - id - the unique id used to create the chat room. - */ - createConfiguredRoom: function(room, config, success_cb, error_cb) { - var k, roomiq, v; - roomiq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_OWNER - }).c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - roomiq.c('field', { - 'var': 'FORM_TYPE' - }).c('value').t('http://jabber.org/protocol/muc#roomconfig').up().up(); - for (k in config) { - if (!__hasProp.call(config, k)) continue; - v = config[k]; - roomiq.c('field', { - 'var': k - }).c('value').t(v).up().up(); - } - return this._connection.sendIQ(roomiq.tree(), success_cb, error_cb); - }, - - /*Function - Set the topic of the chat room. - Parameters: - (String) room - The multi-user chat room name. - (String) topic - Topic message. - */ - setTopic: function(room, topic) { - var msg; - msg = $msg({ - to: room, - from: this._connection.jid, - type: "groupchat" - }).c("subject", { - xmlns: "jabber:client" - }).t(topic); - return this._connection.send(msg.tree()); - }, - - /*Function - Internal Function that Changes the role or affiliation of a member - of a MUC room. This function is used by modifyRole and modifyAffiliation. - The modification can only be done by a room moderator. An error will be - returned if the user doesn't have permission. - Parameters: - (String) room - The multi-user chat room name. - (Object) item - Object with nick and role or jid and affiliation attribute - (String) reason - Optional reason for the change. - (Function) handler_cb - Optional callback for success - (Function) error_cb - Optional callback for error - Returns: - iq - the id of the mode change request. - */ - _modifyPrivilege: function(room, item, reason, handler_cb, error_cb) { - var iq; - iq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_ADMIN - }).cnode(item.node); - if (reason != null) { - iq.c("reason", reason); - } - return this._connection.sendIQ(iq.tree(), handler_cb, error_cb); - }, - - /*Function - Changes the role of a member of a MUC room. - The modification can only be done by a room moderator. An error will be - returned if the user doesn't have permission. - Parameters: - (String) room - The multi-user chat room name. - (String) nick - The nick name of the user to modify. - (String) role - The new role of the user. - (String) affiliation - The new affiliation of the user. - (String) reason - Optional reason for the change. - (Function) handler_cb - Optional callback for success - (Function) error_cb - Optional callback for error - Returns: - iq - the id of the mode change request. - */ - modifyRole: function(room, nick, role, reason, handler_cb, error_cb) { - var item; - item = $build("item", { - nick: nick, - role: role - }); - return this._modifyPrivilege(room, item, reason, handler_cb, error_cb); - }, - kick: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'none', reason, handler_cb, error_cb); - }, - voice: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'participant', reason, handler_cb, error_cb); - }, - mute: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'visitor', reason, handler_cb, error_cb); - }, - op: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'moderator', reason, handler_cb, error_cb); - }, - deop: function(room, nick, reason, handler_cb, error_cb) { - return this.modifyRole(room, nick, 'participant', reason, handler_cb, error_cb); - }, - - /*Function - Changes the affiliation of a member of a MUC room. - The modification can only be done by a room moderator. An error will be - returned if the user doesn't have permission. - Parameters: - (String) room - The multi-user chat room name. - (String) jid - The jid of the user to modify. - (String) affiliation - The new affiliation of the user. - (String) reason - Optional reason for the change. - (Function) handler_cb - Optional callback for success - (Function) error_cb - Optional callback for error - Returns: - iq - the id of the mode change request. - */ - modifyAffiliation: function(room, jid, affiliation, reason, handler_cb, error_cb) { - var item; - item = $build("item", { - jid: jid, - affiliation: affiliation - }); - return this._modifyPrivilege(room, item, reason, handler_cb, error_cb); - }, - ban: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'outcast', reason, handler_cb, error_cb); - }, - member: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'member', reason, handler_cb, error_cb); - }, - revoke: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'none', reason, handler_cb, error_cb); - }, - owner: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'owner', reason, handler_cb, error_cb); - }, - admin: function(room, jid, reason, handler_cb, error_cb) { - return this.modifyAffiliation(room, jid, 'admin', reason, handler_cb, error_cb); - }, - - /*Function - Change the current users nick name. - Parameters: - (String) room - The multi-user chat room name. - (String) user - The new nick name. - */ - changeNick: function(room, user) { - var presence, room_nick; - room_nick = this.test_append_nick(room, user); - presence = $pres({ - from: this._connection.jid, - to: room_nick, - id: this._connection.getUniqueId() - }); - return this._connection.send(presence.tree()); - }, - - /*Function - Change the current users status. - Parameters: - (String) room - The multi-user chat room name. - (String) user - The current nick. - (String) show - The new show-text. - (String) status - The new status-text. - */ - setStatus: function(room, user, show, status) { - var presence, room_nick; - room_nick = this.test_append_nick(room, user); - presence = $pres({ - from: this._connection.jid, - to: room_nick - }); - if (show != null) { - presence.c('show', show).up(); - } - if (status != null) { - presence.c('status', status); - } - return this._connection.send(presence.tree()); - }, - - /*Function - Registering with a room. - @see http://xmpp.org/extensions/xep-0045.html#register - Parameters: - (String) room - The multi-user chat room name. - (Function) handle_cb - Function to call for room list return. - (Function) error_cb - Function to call on error. - */ - registrationRequest: function(room, handle_cb, error_cb) { - var iq; - iq = $iq({ - to: room, - from: this._connection.jid, - type: "get" - }).c("query", { - xmlns: Strophe.NS.MUC_REGISTER - }); - return this._connection.sendIQ(iq, function(stanza) { - var $field, $fields, field, fields, length, _i, _len; - $fields = stanza.getElementsByTagName('field'); - length = $fields.length; - fields = { - required: [], - optional: [] - }; - for (_i = 0, _len = $fields.length; _i < _len; _i++) { - $field = $fields[_i]; - field = { - "var": $field.getAttribute('var'), - label: $field.getAttribute('label'), - type: $field.getAttribute('type') - }; - if ($field.getElementsByTagName('required').length > 0) { - fields.required.push(field); - } else { - fields.optional.push(field); - } - } - return handle_cb(fields); - }, error_cb); - }, - - /*Function - Submits registration form. - Parameters: - (String) room - The multi-user chat room name. - (Function) handle_cb - Function to call for room list return. - (Function) error_cb - Function to call on error. - */ - submitRegistrationForm: function(room, fields, handle_cb, error_cb) { - var iq, key, val; - iq = $iq({ - to: room, - type: "set" - }).c("query", { - xmlns: Strophe.NS.MUC_REGISTER - }); - iq.c("x", { - xmlns: "jabber:x:data", - type: "submit" - }); - iq.c('field', { - 'var': 'FORM_TYPE' - }).c('value').t('http://jabber.org/protocol/muc#register').up().up(); - for (key in fields) { - val = fields[key]; - iq.c('field', { - 'var': key - }).c('value').t(val).up().up(); - } - return this._connection.sendIQ(iq, handle_cb, error_cb); - }, - - /*Function - List all chat room available on a server. - Parameters: - (String) server - name of chat server. - (String) handle_cb - Function to call for room list return. - (String) error_cb - Function to call on error. - */ - listRooms: function(server, handle_cb, error_cb) { - var iq; - iq = $iq({ - to: server, - from: this._connection.jid, - type: "get" - }).c("query", { - xmlns: Strophe.NS.DISCO_ITEMS - }); - return this._connection.sendIQ(iq, handle_cb, error_cb); - }, - test_append_nick: function(room, nick) { - var domain, node; - node = Strophe.escapeNode(Strophe.getNodeFromJid(room)); - domain = Strophe.getDomainFromJid(room); - return node + "@" + domain + (nick != null ? "/" + nick : ""); - } - }); - - XmppRoom = (function() { - function XmppRoom(client, name, nick, password) { - this.client = client; - this.name = name; - this.nick = nick; - this.password = password; - this._roomRosterHandler = __bind(this._roomRosterHandler, this); - this._addOccupant = __bind(this._addOccupant, this); - this.roster = {}; - this._message_handlers = {}; - this._presence_handlers = {}; - this._roster_handlers = {}; - this._handler_ids = 0; - if (client.muc) { - this.client = client.muc; - } - this.name = Strophe.getBareJidFromJid(name); - this.addHandler('presence', this._roomRosterHandler); - } - - XmppRoom.prototype.join = function(msg_handler_cb, pres_handler_cb, roster_cb) { - return this.client.join(this.name, this.nick, msg_handler_cb, pres_handler_cb, roster_cb, this.password); - }; - - XmppRoom.prototype.leave = function(handler_cb, message) { - this.client.leave(this.name, this.nick, handler_cb, message); - return delete this.client.rooms[this.name]; - }; - - XmppRoom.prototype.message = function(nick, message, html_message, type) { - return this.client.message(this.name, nick, message, html_message, type); - }; - - XmppRoom.prototype.groupchat = function(message, html_message) { - return this.client.groupchat(this.name, message, html_message); - }; - - XmppRoom.prototype.invite = function(receiver, reason) { - return this.client.invite(this.name, receiver, reason); - }; - - XmppRoom.prototype.multipleInvites = function(receivers, reason) { - return this.client.invite(this.name, receivers, reason); - }; - - XmppRoom.prototype.directInvite = function(receiver, reason) { - return this.client.directInvite(this.name, receiver, reason, this.password); - }; - - XmppRoom.prototype.configure = function(handler_cb) { - return this.client.configure(this.name, handler_cb); - }; - - XmppRoom.prototype.cancelConfigure = function() { - return this.client.cancelConfigure(this.name); - }; - - XmppRoom.prototype.saveConfiguration = function(config) { - return this.client.saveConfiguration(this.name, config); - }; - - XmppRoom.prototype.queryOccupants = function(success_cb, error_cb) { - return this.client.queryOccupants(this.name, success_cb, error_cb); - }; - - XmppRoom.prototype.setTopic = function(topic) { - return this.client.setTopic(this.name, topic); - }; - - XmppRoom.prototype.modifyRole = function(nick, role, reason, success_cb, error_cb) { - return this.client.modifyRole(this.name, nick, role, reason, success_cb, error_cb); - }; - - XmppRoom.prototype.kick = function(nick, reason, handler_cb, error_cb) { - return this.client.kick(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.voice = function(nick, reason, handler_cb, error_cb) { - return this.client.voice(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.mute = function(nick, reason, handler_cb, error_cb) { - return this.client.mute(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.op = function(nick, reason, handler_cb, error_cb) { - return this.client.op(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.deop = function(nick, reason, handler_cb, error_cb) { - return this.client.deop(this.name, nick, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.modifyAffiliation = function(jid, affiliation, reason, success_cb, error_cb) { - return this.client.modifyAffiliation(this.name, jid, affiliation, reason, success_cb, error_cb); - }; - - XmppRoom.prototype.ban = function(jid, reason, handler_cb, error_cb) { - return this.client.ban(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.member = function(jid, reason, handler_cb, error_cb) { - return this.client.member(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.revoke = function(jid, reason, handler_cb, error_cb) { - return this.client.revoke(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.owner = function(jid, reason, handler_cb, error_cb) { - return this.client.owner(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.admin = function(jid, reason, handler_cb, error_cb) { - return this.client.admin(this.name, jid, reason, handler_cb, error_cb); - }; - - XmppRoom.prototype.changeNick = function(nick) { - this.nick = nick; - return this.client.changeNick(this.name, nick); - }; - - XmppRoom.prototype.setStatus = function(show, status) { - return this.client.setStatus(this.name, this.nick, show, status); - }; - - - /*Function - Adds a handler to the MUC room. - Parameters: - (String) handler_type - 'message', 'presence' or 'roster'. - (Function) handler - The handler function. - Returns: - id - the id of handler. - */ - - XmppRoom.prototype.addHandler = function(handler_type, handler) { - var id; - id = this._handler_ids++; - switch (handler_type) { - case 'presence': - this._presence_handlers[id] = handler; - break; - case 'message': - this._message_handlers[id] = handler; - break; - case 'roster': - this._roster_handlers[id] = handler; - break; - default: - this._handler_ids--; - return null; - } - return id; - }; - - - /*Function - Removes a handler from the MUC room. - This function takes ONLY ids returned by the addHandler function - of this room. passing handler ids returned by connection.addHandler - may brake things! - Parameters: - (number) id - the id of the handler - */ - - XmppRoom.prototype.removeHandler = function(id) { - delete this._presence_handlers[id]; - delete this._message_handlers[id]; - return delete this._roster_handlers[id]; - }; - - - /*Function - Creates and adds an Occupant to the Room Roster. - Parameters: - (Object) data - the data the Occupant is filled with - Returns: - occ - the created Occupant. - */ - - XmppRoom.prototype._addOccupant = function(data) { - var occ; - occ = new Occupant(data, this); - this.roster[occ.nick] = occ; - return occ; - }; - - - /*Function - The standard handler that managed the Room Roster. - Parameters: - (Object) pres - the presence stanza containing user information - */ - - XmppRoom.prototype._roomRosterHandler = function(pres) { - var data, handler, id, newnick, nick, _ref; - data = XmppRoom._parsePresence(pres); - nick = data.nick; - newnick = data.newnick || null; - switch (data.type) { - case 'error': - return true; - case 'unavailable': - if (newnick) { - data.nick = newnick; - if (this.roster[nick] && this.roster[newnick]) { - this.roster[nick].update(this.roster[newnick]); - this.roster[newnick] = this.roster[nick]; - } - if (this.roster[nick] && !this.roster[newnick]) { - this.roster[newnick] = this.roster[nick].update(data); - } - } - delete this.roster[nick]; - break; - default: - if (this.roster[nick]) { - this.roster[nick].update(data); - } else { - this._addOccupant(data); - } - } - _ref = this._roster_handlers; - for (id in _ref) { - handler = _ref[id]; - if (!handler(this.roster, this)) { - delete this._roster_handlers[id]; - } - } - return true; - }; - - - /*Function - Parses a presence stanza - Parameters: - (Object) data - the data extracted from the presence stanza - */ - - XmppRoom._parsePresence = function(pres) { - var c, c2, data, _i, _j, _len, _len1, _ref, _ref1; - data = {}; - data.nick = Strophe.getResourceFromJid(pres.getAttribute("from")); - data.type = pres.getAttribute("type"); - data.states = []; - _ref = pres.childNodes; - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - c = _ref[_i]; - switch (c.nodeName) { - case "status": - data.status = c.textContent || null; - break; - case "show": - data.show = c.textContent || null; - break; - case "x": - if (c.getAttribute("xmlns") === Strophe.NS.MUC_USER) { - _ref1 = c.childNodes; - for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { - c2 = _ref1[_j]; - switch (c2.nodeName) { - case "item": - data.affiliation = c2.getAttribute("affiliation"); - data.role = c2.getAttribute("role"); - data.jid = c2.getAttribute("jid"); - data.newnick = c2.getAttribute("nick"); - break; - case "status": - if (c2.getAttribute("code")) { - data.states.push(c2.getAttribute("code")); - } - } - } - } - } - } - return data; - }; - - return XmppRoom; - - })(); - - RoomConfig = (function() { - function RoomConfig(info) { - this.parse = __bind(this.parse, this); - if (info != null) { - this.parse(info); - } - } - - RoomConfig.prototype.parse = function(result) { - var attr, attrs, child, field, identity, query, _i, _j, _k, _len, _len1, _len2, _ref; - query = result.getElementsByTagName("query")[0].childNodes; - this.identities = []; - this.features = []; - this.x = []; - for (_i = 0, _len = query.length; _i < _len; _i++) { - child = query[_i]; - attrs = child.attributes; - switch (child.nodeName) { - case "identity": - identity = {}; - for (_j = 0, _len1 = attrs.length; _j < _len1; _j++) { - attr = attrs[_j]; - identity[attr.name] = attr.textContent; - } - this.identities.push(identity); - break; - case "feature": - this.features.push(child.getAttribute("var")); - break; - case "x": - if ((!child.childNodes[0].getAttribute("var") === 'FORM_TYPE') || (!child.childNodes[0].getAttribute("type") === 'hidden')) { - break; - } - _ref = child.childNodes; - for (_k = 0, _len2 = _ref.length; _k < _len2; _k++) { - field = _ref[_k]; - if (!field.attributes.type) { - this.x.push({ - "var": field.getAttribute("var"), - label: field.getAttribute("label") || "", - value: field.firstChild.textContent || "" - }); - } - } - } - } - return { - "identities": this.identities, - "features": this.features, - "x": this.x - }; - }; - - return RoomConfig; - - })(); - - Occupant = (function() { - function Occupant(data, room) { - this.room = room; - this.update = __bind(this.update, this); - this.admin = __bind(this.admin, this); - this.owner = __bind(this.owner, this); - this.revoke = __bind(this.revoke, this); - this.member = __bind(this.member, this); - this.ban = __bind(this.ban, this); - this.modifyAffiliation = __bind(this.modifyAffiliation, this); - this.deop = __bind(this.deop, this); - this.op = __bind(this.op, this); - this.mute = __bind(this.mute, this); - this.voice = __bind(this.voice, this); - this.kick = __bind(this.kick, this); - this.modifyRole = __bind(this.modifyRole, this); - this.update(data); - } - - Occupant.prototype.modifyRole = function(role, reason, success_cb, error_cb) { - return this.room.modifyRole(this.nick, role, reason, success_cb, error_cb); - }; - - Occupant.prototype.kick = function(reason, handler_cb, error_cb) { - return this.room.kick(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.voice = function(reason, handler_cb, error_cb) { - return this.room.voice(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.mute = function(reason, handler_cb, error_cb) { - return this.room.mute(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.op = function(reason, handler_cb, error_cb) { - return this.room.op(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.deop = function(reason, handler_cb, error_cb) { - return this.room.deop(this.nick, reason, handler_cb, error_cb); - }; - - Occupant.prototype.modifyAffiliation = function(affiliation, reason, success_cb, error_cb) { - return this.room.modifyAffiliation(this.jid, affiliation, reason, success_cb, error_cb); - }; - - Occupant.prototype.ban = function(reason, handler_cb, error_cb) { - return this.room.ban(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.member = function(reason, handler_cb, error_cb) { - return this.room.member(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.revoke = function(reason, handler_cb, error_cb) { - return this.room.revoke(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.owner = function(reason, handler_cb, error_cb) { - return this.room.owner(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.admin = function(reason, handler_cb, error_cb) { - return this.room.admin(this.jid, reason, handler_cb, error_cb); - }; - - Occupant.prototype.update = function(data) { - this.nick = data.nick || null; - this.affiliation = data.affiliation || null; - this.role = data.role || null; - this.jid = data.jid || null; - this.status = data.status || null; - this.show = data.show || null; - return this; - }; - - return Occupant; - - })(); - -}).call(this); - -define("strophe.muc", ["strophe"], function(){}); - -/* - Copyright 2010, François de Metz -*/ -/** - * Roster Plugin - * Allow easily roster management - * - * Features - * * Get roster from server - * * handle presence - * * handle roster iq - * * subscribe/unsubscribe - * * authorize/unauthorize - * * roster versioning (xep 237) - */ -Strophe.addConnectionPlugin('roster', -{ - /** Function: init - * Plugin init - * - * Parameters: - * (Strophe.Connection) conn - Strophe connection - */ - init: function(conn) - { - this._connection = conn; - this._callbacks = []; - /** Property: items - * Roster items - * [ - * { - * name : "", - * jid : "", - * subscription : "", - * ask : "", - * groups : ["", ""], - * resources : { - * myresource : { - * show : "", - * status : "", - * priority : "" - * } - * } - * } - * ] - */ - this.items = []; - /** Property: ver - * current roster revision - * always null if server doesn't support xep 237 - */ - this.ver = null; - // Override the connect and attach methods to always add presence and roster handlers. - // They are removed when the connection disconnects, so must be added on connection. - var oldCallback, roster = this, _connect = conn.connect, _attach = conn.attach; - var newCallback = function(status) - { - if (status == Strophe.Status.ATTACHED || status == Strophe.Status.CONNECTED) - { - try - { - // Presence subscription - conn.addHandler(roster._onReceivePresence.bind(roster), null, 'presence', null, null, null); - conn.addHandler(roster._onReceiveIQ.bind(roster), Strophe.NS.ROSTER, 'iq', "set", null, null); - } - catch (e) - { - Strophe.error(e); - } - } - if (typeof oldCallback === "function") { - oldCallback.apply(this, arguments); - } - }; - conn.connect = function(jid, pass, callback, wait, hold, route) - { - oldCallback = callback; - if (typeof jid == "undefined") - jid = null; - if (typeof pass == "undefined") - pass = null; - callback = newCallback; - _connect.apply(conn, [jid, pass, callback, wait, hold, route]); - }; - conn.attach = function(jid, sid, rid, callback, wait, hold, wind) - { - oldCallback = callback; - if (typeof jid == "undefined") - jid = null; - if (typeof sid == "undefined") - sid = null; - if (typeof rid == "undefined") - rid = null; - callback = newCallback; - _attach.apply(conn, [jid, sid, rid, callback, wait, hold, wind]); - }; - - Strophe.addNamespace('ROSTER_VER', 'urn:xmpp:features:rosterver'); - Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick'); - }, - /** Function: supportVersioning - * return true if roster versioning is enabled on server - */ - supportVersioning: function() - { - return (this._connection.features && this._connection.features.getElementsByTagName('ver').length > 0); - }, - /** Function: get - * Get Roster on server - * - * Parameters: - * (Function) userCallback - callback on roster result - * (String) ver - current rev of roster - * (only used if roster versioning is enabled) - * (Array) items - initial items of ver - * (only used if roster versioning is enabled) - * In browser context you can use sessionStorage - * to store your roster in json (JSON.stringify()) - */ - get: function(userCallback, ver, items) - { - var attrs = {xmlns: Strophe.NS.ROSTER}; - if (this.supportVersioning()) - { - // empty rev because i want an rev attribute in the result - attrs.ver = ver || ''; - this.items = items || []; - } - var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs); - return this._connection.sendIQ(iq, - this._onReceiveRosterSuccess.bind(this, userCallback), - this._onReceiveRosterError.bind(this, userCallback)); - }, - /** Function: registerCallback - * register callback on roster (presence and iq) - * - * Parameters: - * (Function) call_back - */ - registerCallback: function(call_back) - { - this._callbacks.push(call_back); - }, - /** Function: findItem - * Find item by JID - * - * Parameters: - * (String) jid - */ - findItem : function(jid) - { - try { - for (var i = 0; i < this.items.length; i++) - { - if (this.items[i] && this.items[i].jid == jid) - { - return this.items[i]; - } - } - } catch (e) - { - Strophe.error(e); - } - return false; - }, - /** Function: removeItem - * Remove item by JID - * - * Parameters: - * (String) jid - */ - removeItem : function(jid) - { - for (var i = 0; i < this.items.length; i++) - { - if (this.items[i] && this.items[i].jid == jid) - { - this.items.splice(i, 1); - return true; - } - } - return false; - }, - /** Function: subscribe - * Subscribe presence - * - * Parameters: - * (String) jid - * (String) message (optional) - * (String) nick (optional) - */ - subscribe: function(jid, message, nick) { - var pres = $pres({to: jid, type: "subscribe"}); - if (message && message !== "") { - pres.c("status").t(message).up(); - } - if (nick && nick !== "") { - pres.c('nick', {'xmlns': Strophe.NS.NICK}).t(nick).up(); - } - this._connection.send(pres); - }, - /** Function: unsubscribe - * Unsubscribe presence - * - * Parameters: - * (String) jid - * (String) message - */ - unsubscribe: function(jid, message) - { - var pres = $pres({to: jid, type: "unsubscribe"}); - if (message && message !== "") - pres.c("status").t(message); - this._connection.send(pres); - }, - /** Function: authorize - * Authorize presence subscription - * - * Parameters: - * (String) jid - * (String) message - */ - authorize: function(jid, message) - { - var pres = $pres({to: jid, type: "subscribed"}); - if (message && message !== "") - pres.c("status").t(message); - this._connection.send(pres); - }, - /** Function: unauthorize - * Unauthorize presence subscription - * - * Parameters: - * (String) jid - * (String) message - */ - unauthorize: function(jid, message) - { - var pres = $pres({to: jid, type: "unsubscribed"}); - if (message && message !== "") - pres.c("status").t(message); - this._connection.send(pres); - }, - /** Function: add - * Add roster item - * - * Parameters: - * (String) jid - item jid - * (String) name - name - * (Array) groups - * (Function) call_back - */ - add: function(jid, name, groups, call_back) - { - var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: jid, - name: name}); - for (var i = 0; i < groups.length; i++) - { - iq.c('group').t(groups[i]).up(); - } - this._connection.sendIQ(iq, call_back, call_back); - }, - /** Function: update - * Update roster item - * - * Parameters: - * (String) jid - item jid - * (String) name - name - * (Array) groups - * (Function) call_back - */ - update: function(jid, name, groups, call_back) - { - var item = this.findItem(jid); - if (!item) - { - throw "item not found"; - } - var newName = name || item.name; - var newGroups = groups || item.groups; - var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, - name: newName}); - for (var i = 0; i < newGroups.length; i++) - { - iq.c('group').t(newGroups[i]).up(); - } - return this._connection.sendIQ(iq, call_back, call_back); - }, - /** Function: remove - * Remove roster item - * - * Parameters: - * (String) jid - item jid - * (Function) call_back - */ - remove: function(jid, call_back) - { - var item = this.findItem(jid); - if (!item) - { - throw "item not found"; - } - var iq = $iq({type: 'set'}).c('query', {xmlns: Strophe.NS.ROSTER}).c('item', {jid: item.jid, - subscription: "remove"}); - this._connection.sendIQ(iq, call_back, call_back); - }, - /** PrivateFunction: _onReceiveRosterSuccess - * - */ - _onReceiveRosterSuccess: function(userCallback, stanza) - { - this._updateItems(stanza); - if (typeof userCallback === "function") { - userCallback(this.items); - } - }, - /** PrivateFunction: _onReceiveRosterError - * - */ - _onReceiveRosterError: function(userCallback, stanza) - { - userCallback(this.items); - }, - /** PrivateFunction: _onReceivePresence - * Handle presence - */ - _onReceivePresence : function(presence) - { - // TODO: from is optional - var jid = presence.getAttribute('from'); - var from = Strophe.getBareJidFromJid(jid); - var item = this.findItem(from); - // not in roster - if (!item) - { - return true; - } - var type = presence.getAttribute('type'); - if (type == 'unavailable') - { - delete item.resources[Strophe.getResourceFromJid(jid)]; - } - else if (!type) - { - // TODO: add timestamp - item.resources[Strophe.getResourceFromJid(jid)] = { - show : (presence.getElementsByTagName('show').length !== 0) ? Strophe.getText(presence.getElementsByTagName('show')[0]) : "", - status : (presence.getElementsByTagName('status').length !== 0) ? Strophe.getText(presence.getElementsByTagName('status')[0]) : "", - priority : (presence.getElementsByTagName('priority').length !== 0) ? Strophe.getText(presence.getElementsByTagName('priority')[0]) : "" - }; - } - else - { - // Stanza is not a presence notification. (It's probably a subscription type stanza.) - return true; - } - this._call_backs(this.items, item); - return true; - }, - /** PrivateFunction: _call_backs - * - */ - _call_backs : function(items, item) - { - for (var i = 0; i < this._callbacks.length; i++) // [].forEach my love ... - { - this._callbacks[i](items, item); - } - }, - /** PrivateFunction: _onReceiveIQ - * Handle roster push. - */ - _onReceiveIQ : function(iq) - { - var id = iq.getAttribute('id'); - var from = iq.getAttribute('from'); - // Receiving client MUST ignore stanza unless it has no from or from = user's JID. - if (from && from !== "" && from != this._connection.jid && from != Strophe.getBareJidFromJid(this._connection.jid)) - return true; - var iqresult = $iq({type: 'result', id: id, from: this._connection.jid}); - this._connection.send(iqresult); - this._updateItems(iq); - return true; - }, - /** PrivateFunction: _updateItems - * Update items from iq - */ - _updateItems : function(iq) - { - var query = iq.getElementsByTagName('query'); - if (query.length !== 0) - { - this.ver = query.item(0).getAttribute('ver'); - var self = this; - Strophe.forEachChild(query.item(0), 'item', - function (item) - { - self._updateItem(item); - } - ); - } - this._call_backs(this.items); - }, - /** PrivateFunction: _updateItem - * Update internal representation of roster item - */ - _updateItem : function(item) - { - var jid = item.getAttribute("jid"); - var name = item.getAttribute("name"); - var subscription = item.getAttribute("subscription"); - var ask = item.getAttribute("ask"); - var groups = []; - Strophe.forEachChild(item, 'group', - function(group) - { - groups.push(Strophe.getText(group)); - } - ); - - if (subscription == "remove") - { - this.removeItem(jid); - return; - } - - item = this.findItem(jid); - if (!item) - { - this.items.push({ - name : name, - jid : jid, - subscription : subscription, - ask : ask, - groups : groups, - resources : {} - }); - } - else - { - item.name = name; - item.subscription = subscription; - item.ask = ask; - item.groups = groups; - } - } -}); - -define("strophe.roster", ["strophe"], function(){}); - -// Generated by CoffeeScript 1.3.3 -/* -Plugin to implement the vCard extension. -http://xmpp.org/extensions/xep-0054.html - -Author: Nathan Zorn (nathan.zorn@gmail.com) -CoffeeScript port: Andreas Guth (guth@dbis.rwth-aachen.de) -*/ - -/* jslint configuration: -*/ - -/* global document, window, setTimeout, clearTimeout, console, - XMLHttpRequest, ActiveXObject, - Base64, MD5, - Strophe, $build, $msg, $iq, $pres -*/ - -var buildIq; - -buildIq = function(type, jid, vCardEl) { - var iq; - iq = $iq(jid ? { - type: type, - to: jid - } : { - type: type - }); - iq.c("vCard", { - xmlns: Strophe.NS.VCARD - }); - if (vCardEl) { - iq.cnode(vCardEl); - } - return iq; -}; - -Strophe.addConnectionPlugin('vcard', { - _connection: null, - init: function(conn) { - this._connection = conn; - return Strophe.addNamespace('VCARD', 'vcard-temp'); - }, - /*Function - Retrieve a vCard for a JID/Entity - Parameters: - (Function) handler_cb - The callback function used to handle the request. - (String) jid - optional - The name of the entity to request the vCard - If no jid is given, this function retrieves the current user's vcard. - */ - - get: function(handler_cb, jid, error_cb) { - var iq; - iq = buildIq("get", jid); - return this._connection.sendIQ(iq, handler_cb, error_cb); - }, - /* Function - Set an entity's vCard. - */ - - set: function(handler_cb, vCardEl, jid, error_cb) { - var iq; - iq = buildIq("set", jid, vCardEl); - return this._connection.sendIQ(iq, handler_cb, error_rb); - } -}); - -define("strophe.vcard", ["strophe"], function(){}); - -/* - Copyright 2010, François de Metz -*/ - -/** - * Disco Strophe Plugin - * Implement http://xmpp.org/extensions/xep-0030.html - * TODO: manage node hierarchies, and node on info request - */ -Strophe.addConnectionPlugin('disco', -{ - _connection: null, - _identities : [], - _features : [], - _items : [], - /** Function: init - * Plugin init - * - * Parameters: - * (Strophe.Connection) conn - Strophe connection - */ - init: function(conn) - { - this._connection = conn; - this._identities = []; - this._features = []; - this._items = []; - // disco info - conn.addHandler(this._onDiscoInfo.bind(this), Strophe.NS.DISCO_INFO, 'iq', 'get', null, null); - // disco items - conn.addHandler(this._onDiscoItems.bind(this), Strophe.NS.DISCO_ITEMS, 'iq', 'get', null, null); - }, - /** Function: addIdentity - * See http://xmpp.org/registrar/disco-categories.html - * Parameters: - * (String) category - category of identity (like client, automation, etc ...) - * (String) type - type of identity (like pc, web, bot , etc ...) - * (String) name - name of identity in natural language - * (String) lang - lang of name parameter - * - * Returns: - * Boolean - */ - addIdentity: function(category, type, name, lang) - { - for (var i=0; i 0) { converse.log('ERROR: An error occured while trying to enable message carbons.'); } else { - converse.log('Message carbons appear to have been enabled.'); + this.session.save({carbons_enabled: true}); + converse.log('Message carbons have been enabled.'); } - }, null, "iq", null, "enablecarbons"); + }, this), null, "iq", null, "enablecarbons"); + this.connection.send(carbons_iq); }; this.onConnected = function () { @@ -28343,18 +27478,13 @@ define("converse-dependencies", [ this.initStatus($.proxy(function () { this.chatboxes.onConnected(); - this.giveFeedback(__('Online Contacts')); + this.giveFeedback(__('Contacts')); if (this.callback) { if (this.connection.service === 'jasmine tests') { // XXX: Call back with the internal converse object. This // object should never be exposed to production systems. // 'jasmine tests' is an invalid http bind service value, // so we're sure that this is just for tests. - // - // TODO: We might need to consider websockets, which - // probably won't use the 'service' attr. Current - // strophe.js version used by converse.js doesn't support - // websockets. this.callback(this); } else { this.callback(); @@ -28414,15 +27544,18 @@ define("converse-dependencies", [ this.messages.browserStorage = new Backbone.BrowserStorage[converse.storage]( b64_sha1('converse.messages'+this.get('jid')+converse.bare_jid)); this.save({ + // The chat_state will be set to ACTIVE once the chat box is opened + // and we listen for change:chat_state, so shouldn't set it to ACTIVE here. + 'chat_state': undefined, 'box_id' : b64_sha1(this.get('jid')), 'height': height, 'minimized': this.get('minimized') || false, + 'num_unread': this.get('num_unread') || 0, 'otr_status': this.get('otr_status') || UNENCRYPTED, 'time_minimized': this.get('time_minimized') || moment(), 'time_opened': this.get('time_opened') || moment().valueOf(), - 'user_id' : Strophe.getNodeFromJid(this.get('jid')), - 'num_unread': this.get('num_unread') || 0, - 'url': '' + 'url': '', + 'user_id' : Strophe.getNodeFromJid(this.get('jid')) }); } else { this.set({ @@ -28575,56 +27708,48 @@ define("converse-dependencies", [ createMessage: function ($message) { var body = $message.children('body').text(), - composing = $message.find('composing'), - paused = $message.find('paused'), delayed = $message.find('delay').length > 0, fullname = this.get('fullname'), is_groupchat = $message.attr('type') === 'groupchat', msgid = $message.attr('id'), - stamp, time, sender, from; + chat_state = $message.find(COMPOSING).length && COMPOSING || + $message.find(PAUSED).length && PAUSED || + $message.find(INACTIVE).length && INACTIVE || + $message.find(ACTIVE).length && ACTIVE || + $message.find(GONE).length && GONE, + stamp, time, sender, from, createMessage; if (is_groupchat) { from = Strophe.unescapeNode(Strophe.getResourceFromJid($message.attr('from'))); } else { from = Strophe.getBareJidFromJid($message.attr('from')); } - fullname = (_.isEmpty(fullname)? from: fullname).split(' ')[0]; - - if (!body) { - if (composing.length || paused.length) { - // FIXME: use one attribute for chat states (e.g. - // chatstate) instead of saving 'paused' and - // 'composing' separately. - this.messages.add({ - fullname: fullname, - sender: 'them', - delayed: delayed, - time: moment().format(), - composing: composing.length, - paused: paused.length - }); - } + fullname = (_.isEmpty(fullname) ? from: fullname).split(' ')[0]; + if (delayed) { + stamp = $message.find('delay').attr('stamp'); + time = stamp; } else { - if (delayed) { - stamp = $message.find('delay').attr('stamp'); - time = stamp; - } else { - time = moment().format(); - } - if ((is_groupchat && from === this.get('nick')) || (!is_groupchat && from == converse.bare_jid)) { - sender = 'me'; - } else { - sender = 'them'; - } - this.messages.create({ - fullname: fullname, - sender: sender, - delayed: delayed, - time: time, - message: body, - msgid: msgid - }); + time = moment().format(); } + if ((is_groupchat && from === this.get('nick')) || (!is_groupchat && from == converse.bare_jid)) { + sender = 'me'; + } else { + sender = 'them'; + } + if (!body) { + createMessage = this.messages.add; + } else { + createMessage = this.messages.create; + } + this.messages.create({ + chat_state: chat_state, + delayed: delayed, + fullname: fullname, + message: body || undefined, + msgid: msgid, + sender: sender, + time: time + }); }, receiveMessage: function ($message) { @@ -28664,6 +27789,8 @@ define("converse-dependencies", [ 'click .close-chatbox-button': 'close', 'click .toggle-chatbox-button': 'minimize', 'keypress textarea.chat-textarea': 'keyPressed', + 'focus textarea.chat-textarea': 'chatBoxFocused', + 'blur textarea.chat-textarea': 'chatBoxBlurred', 'click .toggle-smiley': 'toggleEmoticonMenu', 'click .toggle-smiley ul li': 'insertEmoticon', 'click .toggle-clear': 'clearMessages', @@ -28679,10 +27806,14 @@ define("converse-dependencies", [ this.model.messages.on('add', this.onMessageAdded, this); this.model.on('show', this.show, this); this.model.on('destroy', this.hide, this); - this.model.on('change', this.onChange, this); + // TODO check for changed fullname as well + this.model.on('change:chat_state', this.sendChatState, this); + this.model.on('change:chat_status', this.onChatStatusChanged, this); + this.model.on('change:image', this.renderAvatar, this); + this.model.on('change:otr_status', this.onOTRStatusChanged, this); + this.model.on('change:minimized', this.onMinimizedChanged, this); + this.model.on('change:status', this.onStatusChanged, this); this.model.on('showOTRError', this.showOTRError, this); - // XXX: doesn't look like this event is being used? - this.model.on('buddyStartsOTR', this.buddyStartsOTR, this); this.model.on('showHelpMessages', this.showHelpMessages, this); this.model.on('sendMessageStanza', this.sendMessageStanza, this); this.model.on('showSentOTRMessage', function (text) { @@ -28817,12 +27948,20 @@ define("converse-dependencies", [ })); } } - if (message.get(COMPOSING)) { - this.showStatusNotification(message.get('fullname')+' '+__('is typing')); - return; - } else if (message.get(PAUSED)) { - this.showStatusNotification(message.get('fullname')+' '+__('has stopped typing')); - return; + if (!message.get('message')) { + if (message.get('chat_state') === COMPOSING) { + this.showStatusNotification(message.get('fullname')+' '+__('is typing')); + return; + } else if (message.get('chat_state') === PAUSED) { + this.showStatusNotification(message.get('fullname')+' '+__('has stopped typing')); + return; + } else if (_.contains([INACTIVE, ACTIVE], message.get('chat_state'))) { + this.$el.find('.chat-content div.chat-event').remove(); + return; + } else if (message.get('chat_state') === GONE) { + this.showStatusNotification(message.get('fullname')+' '+__('has gone away')); + return; + } } else { this.showMessage(_.clone(message.attributes)); } @@ -28833,8 +27972,7 @@ define("converse-dependencies", [ }, sendMessageStanza: function (text) { - /* - * Sends the actual XML stanza to the XMPP server. + /* Sends the actual XML stanza to the XMPP server. */ // TODO: Look in ChatPartners to see what resources we have for the recipient. // if we have one resource, we sent to only that resources, if we have multiple @@ -28843,7 +27981,7 @@ define("converse-dependencies", [ var bare_jid = this.model.get('jid'); var message = $msg({from: converse.connection.jid, to: bare_jid, type: 'chat', id: timestamp}) .c('body').t(text).up() - .c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'}); + .c(ACTIVE, {'xmlns': Strophe.NS.CHATSTATES}); converse.connection.send(message); if (converse.forward_messages) { // Forward the message, so that other connected resources are also aware of it. @@ -28893,10 +28031,52 @@ define("converse-dependencies", [ } }, + sendChatState: function () { + /* Sends a message with the status of the user in this chat session + * as taken from the 'chat_state' attribute of the chat box. + * See XEP-0085 Chat State Notifications. + */ + converse.connection.send( + $msg({'to':this.model.get('jid'), 'type': 'chat'}) + .c(this.model.get('chat_state'), {'xmlns': Strophe.NS.CHATSTATES}) + ); + }, + + setChatState: function (state, no_save) { + /* Mutator for setting the chat state of this chat session. + * Handles clearing of any chat state notification timeouts and + * setting new ones if necessary. + * Timeouts are set when the state being set is COMPOSING or PAUSED. + * After the timeout, COMPOSING will become PAUSED and PAUSED will become INACTIVE. + * See XEP-0085 Chat State Notifications. + * + * Parameters: + * (string) state - The chat state (consts ACTIVE, COMPOSING, PAUSED, INACTIVE, GONE) + * (no_save) no_save - Just do the cleanup or setup but don't actually save the state. + */ + if (_.contains([ACTIVE, INACTIVE, GONE], state)) { + if (typeof this.chat_state_timeout !== 'undefined') { + clearTimeout(this.chat_state_timeout); + delete this.chat_state_timeout; + } + } else if (state === COMPOSING) { + this.chat_state_timeout = setTimeout( + $.proxy(this.setChatState, this), converse.TIMEOUTS.PAUSED, PAUSED); + } else if (state === PAUSED) { + this.chat_state_timeout = setTimeout( + $.proxy(this.setChatState, this), converse.TIMEOUTS.INACTIVE, INACTIVE); + } + if (!no_save && this.model.get('chat_state') != state) { + this.model.set('chat_state', state); + } + return this; + }, + keyPressed: function (ev) { - var $textarea = $(ev.target), - message, notify, composing; - if(ev.keyCode == KEY.ENTER) { + /* Event handler for when a key is pressed in a chat box textarea. + */ + var $textarea = $(ev.target), message; + if (ev.keyCode == KEY.ENTER) { ev.preventDefault(); message = $textarea.val(); $textarea.val('').focus(); @@ -28908,23 +28088,24 @@ define("converse-dependencies", [ } converse.emit('messageSend', message); } - this.$el.data('composing', false); - } else if (!this.model.get('chatroom')) { - // composing data is only for single user chat - composing = this.$el.data('composing'); - if (!composing) { - if (ev.keyCode != 47) { - // We don't send composing messages if the message - // starts with forward-slash. - notify = $msg({'to':this.model.get('jid'), 'type': 'chat'}) - .c('composing', {'xmlns':'http://jabber.org/protocol/chatstates'}); - converse.connection.send(notify); - } - this.$el.data('composing', true); - } + this.setChatState(ACTIVE); + } else if (!this.model.get('chatroom')) { // chat state data is currently only for single user chat + // Set chat state to composing if keyCode is not a forward-slash + // (which would imply an internal command and not a message). + this.setChatState(COMPOSING, ev.keyCode==KEY.FORWARD_SLASH); } }, + chatBoxFocused: function (ev) { + ev.preventDefault(); + this.setChatState(ACTIVE); + }, + + chatBoxBlurred: function (ev) { + ev.preventDefault(); + this.setChatState(INACTIVE); + }, + onDragResizeStart: function (ev) { if (!converse.allow_dragresize) { return true; } // Record element attributes for mouseMove(). @@ -28998,11 +28179,6 @@ define("converse-dependencies", [ console.log("OTR ERROR:"+msg); }, - buddyStartsOTR: function (ev) { - this.showHelpMessages([__('This user has requested an encrypted session.')]); - this.model.initiateOTR(); - }, - startOTRFromToolbar: function (ev) { $(ev.target).parent().parent().slideUp(); ev.stopPropagation(); @@ -29053,46 +28229,39 @@ define("converse-dependencies", [ }); }, - onChange: function (item, changed) { - if (_.has(item.changed, 'chat_status')) { - var chat_status = item.get('chat_status'), - fullname = item.get('fullname'); - fullname = _.isEmpty(fullname)? item.get('jid'): fullname; - if (this.$el.is(':visible')) { - if (chat_status === 'offline') { - this.showStatusNotification(fullname+' '+'has gone offline'); - } else if (chat_status === 'away') { - this.showStatusNotification(fullname+' '+'has gone away'); - } else if ((chat_status === 'dnd')) { - this.showStatusNotification(fullname+' '+'is busy'); - } else if (chat_status === 'online') { - this.$el.find('div.chat-event').remove(); - } - } - converse.emit('contactStatusChanged', item.attributes, item.get('chat_status')); - // TODO: DEPRECATED AND SHOULD BE REMOVED IN 0.9.0 - converse.emit('buddyStatusChanged', item.attributes, item.get('chat_status')); - } - if (_.has(item.changed, 'status')) { - this.showStatusMessage(); - converse.emit('contactStatusMessageChanged', item.attributes, item.get('status')); - // TODO: DEPRECATED AND SHOULD BE REMOVED IN 0.9.0 - converse.emit('buddyStatusMessageChanged', item.attributes, item.get('status')); - } - if (_.has(item.changed, 'image')) { - this.renderAvatar(); - } - if (_.has(item.changed, 'otr_status')) { - this.renderToolbar().informOTRChange(); - } - if (_.has(item.changed, 'minimized')) { - if (item.get('minimized')) { - this.hide(); - } else { - this.maximize(); + onChatStatusChanged: function (item) { + var chat_status = item.get('chat_status'), + fullname = item.get('fullname'); + fullname = _.isEmpty(fullname)? item.get('jid'): fullname; + if (this.$el.is(':visible')) { + if (chat_status === 'offline') { + this.showStatusNotification(fullname+' '+__('has gone offline')); + } else if (chat_status === 'away') { + this.showStatusNotification(fullname+' '+__('has gone away')); + } else if ((chat_status === 'dnd')) { + this.showStatusNotification(fullname+' '+__('is busy')); + } else if (chat_status === 'online') { + this.$el.find('div.chat-event').remove(); } } - // TODO check for changed fullname as well + converse.emit('contactStatusChanged', item.attributes, item.get('chat_status')); + }, + + onStatusChanged: function (item) { + this.showStatusMessage(); + converse.emit('contactStatusMessageChanged', item.attributes, item.get('status')); + }, + + onOTRStatusChanged: function (item) { + this.renderToolbar().informOTRChange(); + }, + + onMinimizedChanged: function (item) { + if (item.get('minimized')) { + this.hide(); + } else { + this.maximize(); + } }, showStatusMessage: function (msg) { @@ -29107,8 +28276,9 @@ define("converse-dependencies", [ if (ev && ev.preventDefault) { ev.preventDefault(); } if (converse.connection.connected) { this.model.destroy(); + this.setChatState(INACTIVE); } else { - this.model.trigger('hide'); + this.hide(); } converse.emit('chatBoxClosed', this); return this; @@ -29118,7 +28288,7 @@ define("converse-dependencies", [ // Restores a minimized chat box this.$el.insertAfter(converse.chatboxviews.get("controlbox").$el).show('fast', $.proxy(function () { converse.refreshWebkit(); - this.focus(); + this.setChatState(ACTIVE).focus(); converse.emit('chatBoxMaximized', this); }, this)); }, @@ -29126,7 +28296,7 @@ define("converse-dependencies", [ minimize: function (ev) { if (ev && ev.preventDefault) { ev.preventDefault(); } // Minimizes a chat box - this.model.minimize(); + this.setChatState(INACTIVE).model.minimize(); this.$el.hide('fast', converse.refreshwebkit); converse.emit('chatBoxMinimized', this); }, @@ -29214,7 +28384,7 @@ define("converse-dependencies", [ return; } var img_src = 'data:'+this.model.get('image_type')+';base64,'+this.model.get('image'), - canvas = $('').get(0); + canvas = $('').get(0); if (!(canvas.getContext && canvas.getContext('2d'))) { return this; @@ -29255,6 +28425,7 @@ define("converse-dependencies", [ this.model.save(); this.initDragResize(); } + this.setChatState(ACTIVE); return this; }, @@ -29405,7 +28576,7 @@ define("converse-dependencies", [ 'label_room_name': __('Room name'), 'label_nickname': __('Nickname'), 'label_server': __('Server'), - 'label_join': __('Join'), + 'label_join': __('Join Room'), 'label_show_rooms': __('Show rooms') }) ).hide()); @@ -29434,41 +28605,51 @@ define("converse-dependencies", [ $('input#show-rooms').show().siblings('span.spinner').remove(); }, + onRoomsFound: function (iq) { + /* Handle the IQ stanza returned from the server, containing + * all its public rooms. + */ + var name, jid, i, fragment, + that = this, + $available_chatrooms = this.$el.find('#available-chatrooms'); + this.rooms = $(iq).find('query').find('item'); + if (this.rooms.length) { + // # For translators: %1$s is a variable and will be + // # replaced with the XMPP server name + $available_chatrooms.html('
'+__('Rooms on %1$s',this.model.get('muc_domain'))+'
'); + fragment = document.createDocumentFragment(); + for (i=0; i'+__('Rooms on %1$s',this.model.get('muc_domain'))+''); - fragment = document.createDocumentFragment(); - for (i=0; i/admin: ' +__("Change user's affiliation to admin"), '/ban: ' +__('Ban user from room'), '/clear: ' +__('Remove messages'), + '/deop: ' +__('Change user role to participant'), '/help: ' +__('Show this menu'), '/kick: ' +__('Kick user from room'), '/me: ' +__('Write in 3rd person'), + '/member: '+__('Grant membership to a user'), '/mute: ' +__("Remove user's ability to post messages"), '/nick: ' +__('Change your nickname'), + '/op: ' +__('Grant moderator role to user'), + '/owner: ' +__('Grant ownership of this room'), + '/revoke: '+__("Revoke user's membership"), '/topic: ' +__('Set room topic'), '/voice: ' +__('Allow muted user to post messages') ]); break; case 'kick': - args = match[2].splitOnce(' '); - converse.connection.muc.kick(this.model.get('jid'), args[0], args[1], undefined, $.proxy(this.onCommandError, this)); + this.modifyRole( + this.model.get('jid'), args[0], 'none', args[1], + undefined, $.proxy(this.onCommandError, this)); break; case 'mute': - args = match[2].splitOnce(' '); - converse.connection.muc.mute(this.model.get('jid'), args[0], args[1], undefined, $.proxy(this.onCommandError, this)); + this.modifyRole( + this.model.get('jid'), args[0], 'visitor', args[1], + undefined, $.proxy(this.onCommandError, this)); + break; + case 'member': + this.setAffiliation( + this.model.get('jid'), args[0], 'member', args[1], + undefined, $.proxy(this.onCommandError, this)); break; case 'nick': - converse.connection.muc.changeNick(this.model.get('jid'), match[2]); + converse.connection.send($pres({ + from: converse.connection.jid, + to: this.getRoomJIDAndNick(match[2]), + id: converse.connection.getUniqueId() + }).tree()); + break; + case 'owner': + this.setAffiliation( + this.model.get('jid'), args[0], 'owner', args[1], + undefined, $.proxy(this.onCommandError, this)); break; case 'op': - args = match[2].splitOnce(' '); - converse.connection.muc.op(this.model.get('jid'), args[0], args[1], undefined, $.proxy(this.onCommandError, this)); + this.modifyRole( + this.model.get('jid'), args[0], 'moderator', args[1], + undefined, $.proxy(this.onCommandError, this)); + break; + case 'revoke': + this.setAffiliation( + this.model.get('jid'), args[0], 'none', args[1], + undefined, $.proxy(this.onCommandError, this)); break; case 'topic': - converse.connection.muc.setTopic(this.model.get('jid'), match[2]); + converse.connection.send( + $msg({ + to: this.model.get('jid'), + from: converse.connection.jid, + type: "groupchat" + }).c("subject", {xmlns: "jabber:client"}).t(match[2]).tree() + ); break; case 'voice': - args = match[2].splitOnce(' '); - converse.connection.muc.voice(this.model.get('jid'), args[0], args[1], undefined, $.proxy(this.onCommandError, this)); + this.modifyRole( + this.model.get('jid'), args[0], 'participant', args[1], + undefined, $.proxy(this.onCommandError, this)); break; default: this.createChatRoomMessage(text); @@ -30087,25 +29390,75 @@ define("converse-dependencies", [ } }, - connect: function (password) { - if (_.has(converse.connection.muc.rooms, this.model.get('jid'))) { - // If the room exists, it already has event listeners, so we - // don't add them again. - converse.connection.muc.join( - this.model.get('jid'), this.model.get('nick'), null, null, null, password); - } else { - converse.connection.muc.join( - this.model.get('jid'), - this.model.get('nick'), - $.proxy(this.onChatRoomMessage, this), - $.proxy(this.onChatRoomPresence, this), - $.proxy(this.onChatRoomRoster, this), - password); + handleMUCStanza: function (stanza) { + var xmlns, xquery, i; + var from = stanza.getAttribute('from'); + if (!from || (this.model.get('id') !== from.split("/")[0])) { + return true; } + if (stanza.nodeName === "message") { + this.onChatRoomMessage(stanza); + } else if (stanza.nodeName === "presence") { + xquery = stanza.getElementsByTagName("x"); + if (xquery.length > 0) { + for (i = 0; i < xquery.length; i++) { + xmlns = xquery[i].getAttribute("xmlns"); + if (xmlns && xmlns.match(Strophe.NS.MUC)) { + this.onChatRoomPresence(stanza); + break; + } + } + } + } + return true; }, - onLeave: function () { - this.model.set('connected', false); + getRoomJIDAndNick: function (nick) { + nick = nick || this.model.get('nick'); + var room = this.model.get('jid'); + var node = Strophe.escapeNode(Strophe.getNodeFromJid(room)); + var domain = Strophe.getDomainFromJid(room); + return node + "@" + domain + (nick !== null ? "/" + nick : ""); + }, + + join: function (password, history_attrs, extended_presence) { + var msg = $pres({ + from: converse.connection.jid, + to: this.getRoomJIDAndNick() + }).c("x", { + xmlns: Strophe.NS.MUC + }); + if (typeof history_attrs === "object" && history_attrs.length) { + msg = msg.c("history", history_attrs).up(); + } + if (password) { + msg.cnode(Strophe.xmlElement("password", [], password)); + } + if (typeof extended_presence !== "undefined" && extended_presence !== null) { + msg.up.cnode(extended_presence); + } + if (!this.handler) { + this.handler = converse.connection.addHandler($.proxy(this.handleMUCStanza, this)); + } + this.model.set('connection_status', Strophe.Status.CONNECTING); + return converse.connection.send(msg); + }, + + leave: function(exit_msg) { + var presenceid = converse.connection.getUniqueId(); + var presence = $pres({ + type: "unavailable", + id: presenceid, + from: converse.connection.jid, + to: this.getRoomJIDAndNick() + }); + if (exit_msg !== null) { + presence.c("status", exit_msg); + } + converse.connection.addHandler( + $.proxy(function () { this.model.set('connection_status', Strophe.Status.DISCONNECTED); }, this), + null, "presence", null, presenceid); + converse.connection.send(presence); }, renderConfigurationForm: function (stanza) { @@ -30124,10 +29477,19 @@ define("converse-dependencies", [ }); $form.append(''); $form.append(''); - $form.on('submit', $.proxy(this.saveConfiguration, this)); + $form.on('submit', this.saveConfiguration.bind(this)); $form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this)); }, + sendConfiguration: function(config, onSuccess, onError) { + // Send an IQ stanza with the room configuration. + var iq = $iq({to: this.model.get('jid'), type: "set"}) + .c("query", {xmlns: Strophe.NS.MUC_OWNER}) + .c("x", {xmlns: "jabber:x:data", type: "submit"}); + _.each(config, function (node) { iq.cnode(node).up(); }); + return converse.connection.sendIQ(iq.tree(), onSuccess, onError); + }, + saveConfiguration: function (ev) { ev.preventDefault(); var that = this; @@ -30137,8 +29499,7 @@ define("converse-dependencies", [ $inputs.each(function () { configArray.push(utils.webForm2xForm(this)); if (!--count) { - converse.connection.muc.saveConfiguration( - that.model.get('jid'), + that.sendConfiguration( configArray, $.proxy(that.onConfigSaved, that), $.proxy(that.onErrorConfigSaved, that) @@ -30184,9 +29545,12 @@ define("converse-dependencies", [ ''+ ''+ '
')); - converse.connection.muc.configure( - this.model.get('jid'), - $.proxy(this.renderConfigurationForm, this) + converse.connection.sendIQ( + $iq({ + to: this.model.get('jid'), + type: "get" + }).c("query", {xmlns: Strophe.NS.MUC_OWNER}).tree(), + this.renderConfigurationForm.bind(this) ); }, @@ -30194,7 +29558,7 @@ define("converse-dependencies", [ ev.preventDefault(); var password = this.$el.find('.chatroom-form').find('input[type=password]').val(); this.$el.find('.chatroom-form-container').replaceWith(''); - this.connect(password); + this.join(password); }, renderPasswordForm: function () { @@ -30303,15 +29667,15 @@ define("converse-dependencies", [ }); $(x).find('status').each($.proxy(function (idx, stat) { var code = stat.getAttribute('code'); - if (is_self && _.contains(_.keys(this.newNicknameMessages), code)) { - this.model.save({'nick': Strophe.getResourceFromJid($el.attr('from'))}); + var from_nick = Strophe.unescapeNode(Strophe.getResourceFromJid($el.attr('from'))); + if (is_self && code === "210") { + msgs.push(__(this.newNicknameMessages[code], from_nick)); + } else if (is_self && code === "303") { msgs.push(__(this.newNicknameMessages[code], $item.attr('nick'))); } else if (is_self && _.contains(_.keys(this.disconnectMessages), code)) { disconnect_msgs.push(this.disconnectMessages[code]); } else if (!is_self && _.contains(_.keys(this.actionInfoMessages), code)) { - msgs.push( - __(this.actionInfoMessages[code], Strophe.unescapeNode(Strophe.getResourceFromJid($el.attr('from')))) - ); + msgs.push(__(this.actionInfoMessages[code], from_nick)); } else if (_.contains(_.keys(this.infoMessages), code)) { msgs.push(this.infoMessages[code]); } else if (code !== '110') { @@ -30329,7 +29693,7 @@ define("converse-dependencies", [ for (i=0; i this.$el.outerWidth(true)) { oldest_chat = this.getOldestMaximizedChat(); - if (oldest_chat) { + if (oldest_chat && oldest_chat.get('id') !== new_id) { oldest_chat.minimize(); } } @@ -30713,9 +30083,9 @@ define("converse-dependencies", [ }, showChat: function (attrs) { - /* Find the chat box and show it. - * If it doesn't exist, create it. + /* Find the chat box and show it. If it doesn't exist, create it. */ + // TODO: Send the chat state ACTIVE to the contact once the chat box is opened. var chatbox = this.model.get(attrs.jid); if (!chatbox) { chatbox = this.model.create(attrs, { @@ -30736,7 +30106,6 @@ define("converse-dependencies", [ this.MinimizedChatBoxView = Backbone.View.extend({ tagName: 'div', className: 'chat-head', - events: { 'click .close-chatbox-button': 'close', 'click .restore-chat': 'restore' @@ -30744,7 +30113,7 @@ define("converse-dependencies", [ initialize: function () { this.model.messages.on('add', function (m) { - if (!(m.get('composing') || m.get('paused'))) { + if (m.get('message')) { this.updateUnreadMessagesCounter(); } }, this); @@ -30787,18 +30156,15 @@ define("converse-dependencies", [ }, restore: _.debounce(function (ev) { - if (ev && ev.preventDefault) { - ev.preventDefault(); - } + if (ev && ev.preventDefault) { ev.preventDefault(); } this.model.messages.off('add',null,this); this.remove(); this.model.maximize(); - }, 200) + }, 200, true) }); this.MinimizedChats = Backbone.Overview.extend({ el: "#minimized-chats", - events: { "click #toggle-minimized-chats": "toggle" }, @@ -30923,6 +30289,8 @@ define("converse-dependencies", [ 'user_id': Strophe.getNodeFromJid(jid), 'resources': [], 'groups': [], + 'image_type': 'image/png', + 'image': "iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFAAAA4KdfIIRgjD9+/Pj8+fOpqSndslofEIQwHA6Pjo4mEon//qmFhYXHjx8vLi4ihBgDEnp7e9l8E0Jo165dQ0NDd+/eDYVC2/qsJElDQ0OEkKWlpa2tLZamxAhQo9EIBoOjo6MXL17csZLe3l5FUT59+lQul5l5JRaAVFWNRqN37tw5ceKEQVWRSOTw4cOFQuHbt2+iKLYCIISQLMu3b99OJpOmKAwEAgcPHszn8+vr6wzsiG6UQQhxuVyXLl0aGBgwUW0sFstkMl6v90fo1KyAMMYDAwPnzp0zXfPg4GAqlWo0Gk0MiBAiy/L58+edTqf5Aa4onj59OhaLYYybFRCEMBaL0fNxBw4cSCQStN0QRUBut3t4eJjq6U+dOiVJElVPRBFQIBDo6+ujCqirqyscDlONGykC2lYyYSR6pBoQQapHZwAoHo/TuARYAOrs7GQASFEUqn6aIiBJkhgA6ujooFpUo6iaTa7koFwnaoWadLNe81tbWwzoaJrWrICWl5cZAFpbW6OabVAEtLi4yABQsVjUNK0pAWWzWQaAcrlcswKanZ1VVZUqHYRQEwOq1Wpv3ryhCmh6erpcLjdrNl+v1ycnJ+l5UELI27dvv3//3qxxEADgy5cvExMT9Mznw4cPtFtAdAPFarU6Pj5eKpVM17yxsfHy5cvV1VXazXu62gVBKBQKT58+rdVqJqrFGL948eLdu3dU8/g/H4FBUaJYLAqC0NPTY9brMD4+PjY25mDSracOCABACJmZmXE6nUePHjWu8NWrV48ePSKEsGlAs7Agfd5nenq6Wq0mk0kjDzY2NvbkyRMIIbP2PLvhBUEQ8vl8NpuNx+M+n29bzhVjvLKycv/+/YmJCcazQuwA6YzW1tYmJyf1SY+2trZ/rRk1Go1SqfT69esHDx4UCgVmNaa/zZ/9ABUhRFXVYDB48uTJeDweiUQkSfL7/T9MA2NcqVTK5fLy8vL8/PzU1FSxWHS5XJaM4wGr9sUwxqqqer3eUCgkSZJuUBBCfTRvc3OzXC6vrKxUKhWn02nhCJ5lM4oQQo/HgxD6+vXr58+fHf8sDOp+HQDg8XgclorFU676dKLlo6yWRdItIBwQB8QBcUCtfosRQjRNQwhhjPUC4w46WXryBSHU1zgEQWBz99EFhDGu1+t+v//48ePxeFxRlD179ng8nh0Efgiher2+vr6ur3HMzMysrq7uTJVdACGEurq6Ll++nEgkPB7Pj9jPoDHqOxyqqubz+WfPnuVyuV9XPeyeagAAAoHArVu3BgcHab8CuVzu4cOHpVKJUnfA5GweY+xyuc6cOXPv3r1IJMLAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg==", 'status': '' }, attributes); this.set(attrs); @@ -30930,10 +30298,13 @@ define("converse-dependencies", [ showInRoster: function () { var chatStatus = this.get('chat_status'); - if (converse.show_only_online_users && chatStatus !== 'online') - return false; - if (converse.hide_offline_users && chatStatus === 'offline') + if ((converse.show_only_online_users && chatStatus !== 'online') || (converse.hide_offline_users && chatStatus === 'offline')) { + // If pending or requesting, show + if ((this.get('ask') === 'subscribe') || (this.get('subscription') === 'from') || (this.get('requesting') === true)) { + return true; + } return false; + } return true; } }); @@ -31024,17 +30395,7 @@ define("converse-dependencies", [ openChat: function (ev) { if (ev && ev.preventDefault) { ev.preventDefault(); } - // XXX: Can this.model.attributes be used here, instead of - // manually specifying all attributes? - return converse.chatboxviews.showChat({ - 'id': this.model.get('jid'), - 'jid': this.model.get('jid'), - 'fullname': this.model.get('fullname'), - 'image_type': this.model.get('image_type'), - 'image': this.model.get('image'), - 'url': this.model.get('url'), - 'status': this.model.get('status') - }); + return converse.chatboxviews.showChat(this.model.attributes); }, removeContact: function (ev) { @@ -31184,20 +30545,20 @@ define("converse-dependencies", [ /* The localstorage cache containing roster contacts might contain * some contacts that aren't actually in our roster anymore. We * therefore need to remove them now. + * + * TODO: The method is a performance bottleneck. + * Basically we need to chuck out strophe.roster and + * rewrite it with backbone.js and well integrated into + * converse.js. Then we won't need to have this method at all. */ - var id, i, contact; - for (i=0; i < this.models.length; ++i) { - id = this.models[i].get('id'); - if (_.indexOf(_.pluck(items, 'jid'), id) === -1) { - contact = this.get(id); - if (contact && !contact.get('requesting')) { - contact.destroy(); - } + _.each(_.difference(this.pluck('jid'), _.pluck(items, 'jid')), $.proxy(function (jid) { + var contact = this.get(jid); + if (contact && !contact.get('requesting')) { + contact.destroy(); } - } + }, this)); }, - // TODO: see if we can only use 2nd item par rosterHandler: function (items, item) { converse.emit('roster', items); this.clearCache(items); @@ -31907,7 +31268,7 @@ define("converse-dependencies", [ this.XMPPStatus = Backbone.Model.extend({ initialize: function () { this.set({ - 'status' : this.get('status') || 'online' + 'status' : this.getStatus() }); this.on('change', $.proxy(function (item) { if (this.get('fullname') === undefined) { @@ -31927,12 +31288,14 @@ define("converse-dependencies", [ }, this)); }, - sendPresence: function (type) { - if (type === undefined) { + sendPresence: function (type, status_message) { + if (typeof type === 'undefined') { type = this.get('status') || 'online'; } - var status_message = this.get('status_message'), - presence; + if (typeof status_message === 'undefined') { + status_message = this.get('status_message'); + } + var presence; // Most of these presence types are actually not explicitly sent, // but I add all of them here fore reference and future proofing. if ((type === 'unavailable') || @@ -31966,8 +31329,13 @@ define("converse-dependencies", [ this.save({'status': value}); }, + getStatus: function() { + return this.get('status') || 'online'; + }, + setStatusMessage: function (status_message) { - converse.connection.send($pres().c('show').t(this.get('status')).up().c('status').t(status_message)); + this.sendPresence(this.getStatus(), status_message); + var prev_status = this.get('status_message'); this.save({'status_message': status_message}); if (this.xhr_custom_status) { $.ajax({ @@ -31976,6 +31344,9 @@ define("converse-dependencies", [ data: {'msg': status_message} }); } + if (prev_status === status_message) { + this.trigger("update-status-ui", this); + } } }); @@ -31990,7 +31361,9 @@ define("converse-dependencies", [ }, initialize: function () { - this.model.on("change", this.updateStatusUI, this); + this.model.on("change:status", this.updateStatusUI, this); + this.model.on("change:status_message", this.updateStatusUI, this); + this.model.on("update-status-ui", this.updateStatusUI, this); }, render: function () { @@ -32041,8 +31414,7 @@ define("converse-dependencies", [ setStatusMessage: function (ev) { ev.preventDefault(); - var status_message = $(ev.target).find('input').val(); - this.model.setStatusMessage(status_message); + this.model.setStatusMessage($(ev.target).find('input').val()); }, setStatus: function (ev) { @@ -32075,9 +31447,6 @@ define("converse-dependencies", [ }, updateStatusUI: function (model) { - if (!(_.has(model.changed, 'status')) && !(_.has(model.changed, 'status_message'))) { - return; - } var stat = model.get('status'); // # For translators: the %1$s part gets replaced with the status // # Example, I am online @@ -32133,7 +31502,7 @@ define("converse-dependencies", [ * TODO: these features need to be added in the relevant * feature-providing Models, not here */ - converse.connection.disco.addFeature('http://jabber.org/protocol/chatstates'); // Limited support + converse.connection.disco.addFeature(Strophe.NS.CHATSTATES); converse.connection.disco.addFeature('http://jabber.org/protocol/rosterx'); // Limited support converse.connection.disco.addFeature('jabber:x:conference'); converse.connection.disco.addFeature('urn:xmpp:carbons:2'); @@ -32745,10 +32114,16 @@ define("converse-dependencies", [ // // Also, what do we do when the keepalive session values are // expired? Do we try to fall back? - if (!this.bosh_service_url) { - throw("Error: you must supply a value for the bosh_service_url"); + if (!this.bosh_service_url && ! this.websocket_url) { + throw("Error: you must supply a value for the bosh_service_url or websocket_url"); + } + if (('WebSocket' in window || 'MozWebSocket' in window) && this.websocket_url) { + this.connection = new Strophe.Connection(this.websocket_url); + } else if (this.bosh_service_url) { + this.connection = new Strophe.Connection(this.bosh_service_url); + } else { + throw("Error: this browser does not support websockets and no bosh_service_url specified."); } - this.connection = new Strophe.Connection(this.bosh_service_url); this.setUpXMLLogging(); if (this.prebind) { @@ -32765,11 +32140,32 @@ define("converse-dependencies", [ sid = this.session.get('sid'); jid = this.session.get('jid'); if (rid && jid && sid) { - this.session.save({rid: rid}); // The RID needs to be increased with each request. + // The RID needs to be increased with each request. + this.session.save({rid: rid}); this.connection.attach(jid, sid, rid, this.onConnect); } else if (this.prebind) { - delete this.connection; - this.emit('noResumeableSession'); + if (this.prebind_url) { + $.ajax({ + url: this.prebind_url, + type: 'GET', + success: function (response) { + this.session.save({rid: rid}); + this.connection.attach( + response.jid, + response.sid, + response.rid, + this.onConnect + ); + }.bind(this), + error: function (response) { + delete this.connection; + this.emit('noResumeableSession'); + }.bind(this) + }); + } else { + delete this.connection; + this.emit('noResumeableSession'); + } } } } @@ -32833,20 +32229,38 @@ define("converse-dependencies", [ }; var wrappedChatBox = function (chatbox) { + var view = converse.chatboxviews.get(chatbox.get('jid')); return { + 'close': $.proxy(view.close, view), 'endOTR': $.proxy(chatbox.endOTR, chatbox), + 'focus': $.proxy(view.focus, view), 'get': $.proxy(chatbox.get, chatbox), 'initiateOTR': $.proxy(chatbox.initiateOTR, chatbox), 'maximize': $.proxy(chatbox.maximize, chatbox), 'minimize': $.proxy(chatbox.minimize, chatbox), - 'set': $.proxy(chatbox.set, chatbox), - 'open': chatbox.trigger.bind(chatbox, 'show') + 'set': $.proxy(chatbox.set, chatbox) }; }; return { 'initialize': function (settings, callback) { converse.initialize(settings, callback); }, + 'settings': { + 'get': function (key) { + if (_.contains(Object.keys(converse.default_settings), key)) { + return converse[key]; + } + }, + 'set': function (key, val) { + var o = {}; + if (typeof key === "object") { + _.extend(converse, _.pick(key, Object.keys(converse.default_settings))); + } else if (typeof key === "string") { + o[key] = val; + _.extend(converse, _.pick(o, Object.keys(converse.default_settings))); + } + } + }, 'contacts': { 'get': function (jids) { var _transform = function (jid) { @@ -32856,14 +32270,16 @@ define("converse-dependencies", [ } return null; }; - if (typeof jids === "string") { + if (typeof jids === "undefined") { + jids = converse.roster.pluck('jid'); + } else if (typeof jids === "string") { return _transform(jids); } return _.map(jids, _transform); } }, 'chats': { - 'get': function (jids) { + 'open': function (jids) { var _transform = function (jid) { var chatbox = converse.chatboxes.get(jid); if (!chatbox) { @@ -32883,10 +32299,28 @@ define("converse-dependencies", [ } return wrappedChatBox(chatbox); }; - if (typeof jids === "string") { + if (typeof jids === "undefined") { + converse.log("chats.open: You need to provide at least one JID", "error"); + return null; + } else if (typeof jids === "string") { return _transform(jids); } return _.map(jids, _transform); + }, + 'get': function (jids) { + var _transform = function (jid) { + var chatbox = converse.chatboxes.get(jid); + if (!chatbox) { + return null; + } + return wrappedChatBox(chatbox); + }; + if (typeof jids === "undefined") { + jids = converse.roster.pluck('jid'); + } else if (typeof jids === "string") { + return _transform(jids); + } + return _.filter(_.map(jids, _transform), function (i) {return i !== null;}); } }, 'tokens': { @@ -32912,6 +32346,9 @@ define("converse-dependencies", [ converse.off(evt, handler); }, }, + 'send': function (stanza) { + converse.connection.send(stanza); + }, 'plugins': { 'add': function (name, callback) { converse.plugins[name] = callback; @@ -32946,43 +32383,12 @@ define("converse-dependencies", [ 'env': { 'jQuery': $, 'Strophe': Strophe, - '_': _ - }, - - // Deprecated API methods - 'getBuddy': function (jid) { - converse.log('WARNING: the "getBuddy" API method has been deprecated. Please use "contacts.get" instead'); - return this.contacts.get(jid); - }, - 'getChatBox': function (jid) { - converse.log('WARNING: the "getChatBox" API method has been deprecated. Please use "chats.get" instead'); - return this.chats.get(jid); - }, - 'openChatBox': function (jid) { - converse.log('WARNING: the "openChatBox" API method has been deprecated. Please use "chats.get(jid).open()" instead'); - var chat = this.chats.get(jid); - if (chat) { chat.open(); } - return chat; - }, - 'getRID': function () { - converse.log('WARNING: the "getRID" API method has been deprecated. Please use "tokens.get(\'rid\')" instead'); - return this.tokens.get('rid'); - }, - 'getSID': function () { - converse.log('WARNING: the "getSID" API method has been deprecated. Please use "tokens.get(\'sid\')" instead'); - return this.tokens.get('sid'); - }, - 'once': function (evt, handler) { - converse.log('WARNING: the "one" API method has been deprecated. Please use "listen.once" instead'); - return this.listen.once(evt, handler); - }, - 'on': function (evt, handler) { - converse.log('WARNING: the "on" API method has been deprecated. Please use "listen.on" instead'); - return this.listen.on(evt, handler); - }, - 'off': function (evt, handler) { - converse.log('WARNING: the "off" API method has been deprecated. Please use "listen.not" instead'); - return this.listen.not(evt, handler); + '$build': $build, + '$iq': $iq, + '$pres': $pres, + '$msg': $msg, + '_': _, + 'b64_sha1': b64_sha1 } }; })); @@ -32990,9 +32396,9 @@ define("converse-dependencies", [ var config; if (typeof(require) === 'undefined') { /* XXX: Hack to work around r.js's stupid parsing. - * We want to save the configuration in a variable so that we can reuse it in - * tests/main.js. - */ + * We want to save the configuration in a variable so that we can reuse it in + * tests/main.js. + */ require = { config: function (c) { config = c; @@ -33013,14 +32419,20 @@ require.config({ "eventemitter": "components/otr/build/dep/eventemitter", "jquery": "components/jquery/dist/jquery", "jquery-private": "src/jquery-private", - "jquery.browser": "components/jquery.browser/index", + "jquery.browser": "components/jquery.browser/dist/jquery.browser", "jquery.easing": "components/jquery-easing-original/index", // XXX: Only required for https://conversejs.org website "moment": "components/momentjs/moment", - "strophe": "components/strophe/strophe", + "strophe-base64": "components/strophejs/src/base64", + "strophe-bosh": "components/strophejs/src/bosh", + "strophe-core": "components/strophejs/src/core", + "strophe": "components/strophejs/src/wrapper", + "strophe-md5": "components/strophejs/src/md5", + "strophe-sha1": "components/strophejs/src/sha1", + "strophe-websocket": "components/strophejs/src/websocket", + "strophe-polyfill": "components/strophejs/src/polyfills", "strophe.disco": "components/strophejs-plugins/disco/strophe.disco", - "strophe.muc": "components/strophe.muc/index", "strophe.roster": "src/strophe.roster", - "strophe.vcard": "components/strophejs-plugins/vcard/strophe.vcard", + "strophe.vcard": "src/strophe.vcard", "text": 'components/requirejs-text/text', "tpl": 'components/requirejs-tpl-jcbrand/tpl', "typeahead": "components/typeahead.js/index", @@ -33045,22 +32457,24 @@ require.config({ "otr": "src/otr", // Locales paths - "locales": "locale/locales", + "locales": "src/locales", "jed": "components/jed/jed", - "af": "locale/af/LC_MESSAGES/af", - "de": "locale/de/LC_MESSAGES/de", - "en": "locale/en/LC_MESSAGES/en", - "es": "locale/es/LC_MESSAGES/es", - "fr": "locale/fr/LC_MESSAGES/fr", - "he": "locale/he/LC_MESSAGES/he", - "hu": "locale/hu/LC_MESSAGES/hu", - "id": "locale/id/LC_MESSAGES/id", - "it": "locale/it/LC_MESSAGES/it", - "ja": "locale/ja/LC_MESSAGES/ja", - "nl": "locale/nl/LC_MESSAGES/nl", - "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", - "ru": "locale/ru/LC_MESSAGES/ru", - "zh": "locale/zh/LC_MESSAGES/zh", + "af": "locale/af/LC_MESSAGES/converse.json", + "de": "locale/de/LC_MESSAGES/converse.json", + "en": "locale/en/LC_MESSAGES/converse.json", + "es": "locale/es/LC_MESSAGES/converse.json", + "fr": "locale/fr/LC_MESSAGES/converse.json", + "he": "locale/he/LC_MESSAGES/converse.json", + "hu": "locale/hu/LC_MESSAGES/converse.json", + "id": "locale/id/LC_MESSAGES/converse.json", + "it": "locale/it/LC_MESSAGES/converse.json", + "ja": "locale/ja/LC_MESSAGES/converse.json", + "nb": "locale/nb/LC_MESSAGES/converse.json", + "nl": "locale/nl/LC_MESSAGES/converse.json", + "pl": "locale/pl/LC_MESSAGES/converse.json", + "pt_BR": "locale/pt_BR/LC_MESSAGES/converse.json", + "ru": "locale/ru/LC_MESSAGES/converse.json", + "zh": "locale/zh/LC_MESSAGES/converse.json", // Templates "action": "src/templates/action", @@ -33148,9 +32562,7 @@ require.config({ 'crypto.sha1': { deps: ['crypto.core'] }, 'crypto.sha256': { deps: ['crypto.core'] }, 'bigint': { deps: ['crypto'] }, - 'strophe': { exports: 'Strophe' }, 'strophe.disco': { deps: ['strophe'] }, - 'strophe.muc': { deps: ['strophe'] }, 'strophe.register': { deps: ['strophe'] }, 'strophe.roster': { deps: ['strophe'] }, 'strophe.vcard': { deps: ['strophe'] } diff --git a/builds/converse-no-locales-no-otr.min.js b/builds/converse-no-locales-no-otr.min.js index 0cda95fce..bfd0fc9e4 100644 --- a/builds/converse-no-locales-no-otr.min.js +++ b/builds/converse-no-locales-no-otr.min.js @@ -1,5 +1,5 @@ /** - * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. + * @license almond 0.3.0 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ @@ -30,7 +30,7 @@ */ /** - * @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. + * @license RequireJS text 2.0.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/requirejs/text for details */ @@ -70,12 +70,6 @@ // } // }); -//! moment.js -//! version : 2.6.0 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com - /* jed.js v0.5.0beta @@ -131,38 +125,11 @@ in order to offer easy upgrades -- jsgettext.berlios.de SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -// Backbone may be freely distributed under the MIT license. -// For all details and documentation: -// http://backbonejs.org - -/*! - * Backbone.Overview - * - * Copyright (c) 2014, JC Brand - * Licensed under the Mozilla Public License (MPL) - */ - -/*! - * jQuery Browser Plugin v0.0.6 - * https://github.com/gabceb/jquery-browser-plugin - * - * Original jquery-browser code Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors - * http://jquery.org/license - * - * Modifications Copyright 2013 Gabriel Cebrian - * https://github.com/gabceb - * - * Released under the MIT license - * - * Date: 2013-07-29T17:23:27-07:00 - */ - -/*! - * typeahead.js 0.10.5 - * https://github.com/twitter/typeahead.js - * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT - */ +//! moment.js +//! version : 2.6.0 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com /* * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined @@ -193,6 +160,39 @@ in order to offer easy upgrades -- jsgettext.berlios.de Copyright 2010, François de Metz */ +// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors +// Backbone may be freely distributed under the MIT license. +// For all details and documentation: +// http://backbonejs.org + +/*! + * Backbone.Overview + * + * Copyright (c) 2014, JC Brand + * Licensed under the Mozilla Public License (MPL) + */ + +/*! + * jQuery Browser Plugin 0.0.7 + * https://github.com/gabceb/jquery-browser-plugin + * + * Original jquery-browser code Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors + * http://jquery.org/license + * + * Modifications Copyright 2014 Gabriel Cebrian + * https://github.com/gabceb + * + * Released under the MIT license + * + * Date: 12-12-2014 + */ + +/*! + * typeahead.js 0.10.5 + * https://github.com/twitter/typeahead.js + * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT + */ + /*! * Converse.js (Web-based XMPP instant messaging client) * http://conversejs.org @@ -201,4 +201,4 @@ in order to offer easy upgrades -- jsgettext.berlios.de * Licensed under the Mozilla Public License (MPL) */ -function b64_sha1(e){return binb2b64(core_sha1(str2binb(e),e.length*8))}function str_sha1(e){return binb2str(core_sha1(str2binb(e),e.length*8))}function b64_hmac_sha1(e,t){return binb2b64(core_hmac_sha1(e,t))}function str_hmac_sha1(e,t){return binb2str(core_hmac_sha1(e,t))}function core_sha1(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;var n=new Array(80),r=1732584193,i=-271733879,s=-1732584194,o=271733878,u=-1009589776,a,f,l,c,h,p,d,v;for(a=0;a16&&(n=core_sha1(n,e.length*8));var r=new Array(16),i=new Array(16);for(var s=0;s<16;s++)r[s]=n[s]^909522486,i[s]=n[s]^1549556828;var o=core_sha1(r.concat(str2binb(t)),512+t.length*8);return core_sha1(i.concat(o),672)}function safe_add(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function rol(e,t){return e<>>32-t}function str2binb(e){var t=[],n=255;for(var r=0;r>5]|=(e.charCodeAt(r/8)&n)<<24-r%32;return t}function binb2str(e){var t="",n=255;for(var r=0;r>5]>>>24-r%32&n);return t}function binb2b64(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",r,i;for(var s=0;s>2]>>8*(3-s%4)&255)<<16|(e[s+1>>2]>>8*(3-(s+1)%4)&255)<<8|e[s+2>>2]>>8*(3-(s+2)%4)&255;for(i=0;i<4;i++)s*8+i*6>e.length*32?n+="=":n+=t.charAt(r>>6*(3-i)&63)}return n}var requirejs,require,define;(function(e){function h(e,t){return f.call(e,t)}function p(e,t){var n,r,i,s,o,a,f,l,h,p,d,v=t&&t.split("/"),m=u.map,g=m&&m["*"]||{};if(e&&e.charAt(0)===".")if(t){v=v.slice(0,v.length-1),e=e.split("/"),o=e.length-1,u.nodeIdCompat&&c.test(e[o])&&(e[o]=e[o].replace(c,"")),e=v.concat(e);for(h=0;h0&&(e.splice(h-1,2),h-=2)}}e=e.join("/")}else e.indexOf("./")===0&&(e=e.substring(2));if((v||g)&&m){n=e.split("/");for(h=n.length;h>0;h-=1){r=n.slice(0,h).join("/");if(v)for(p=v.length;p>0;p-=1){i=m[v.slice(0,p).join("/")];if(i){i=i[r];if(i){s=i,a=h;break}}}if(s)break;!f&&g&&g[r]&&(f=g[r],l=h)}!s&&f&&(s=f,a=l),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function d(t,r){return function(){return n.apply(e,l.call(arguments,0).concat([t,r]))}}function v(e){return function(t){return p(t,e)}}function m(e){return function(t){s[e]=t}}function g(n){if(h(o,n)){var r=o[n];delete o[n],a[n]=!0,t.apply(e,r)}if(!h(s,n)&&!h(a,n))throw new Error("No "+n);return s[n]}function y(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function b(e){return function(){return u&&u.config&&u.config[e]||{}}}var t,n,r,i,s={},o={},u={},a={},f=Object.prototype.hasOwnProperty,l=[].slice,c=/\.js$/;r=function(e,t){var n,r=y(e),i=r[0];return e=r[1],i&&(i=p(i,t),n=g(i)),i?n&&n.normalize?e=n.normalize(e,v(t)):e=p(e,t):(e=p(e,t),r=y(e),i=r[0],e=r[1],i&&(n=g(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},i={require:function(e){return d(e)},exports:function(e){var t=s[e];return typeof t!="undefined"?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:b(e)}}},t=function(t,n,u,f){var l,c,p,v,y,b=[],w=typeof u,E;f=f||t;if(w==="undefined"||w==="function"){n=!n.length&&u.length?["require","exports","module"]:n;for(y=0;y0&&t-1 in e}function x(e,t,n){if(p.isFunction(t))return p.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return p.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(S.test(t))return p.filter(t,e,n);t=p.filter(t,e)}return p.grep(e,function(e){return p.inArray(e,t)>=0!==n})}function O(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function D(e){var t=_[e]={};return p.each(e.match(M)||[],function(e,n){t[n]=!0}),t}function H(){N.addEventListener?(N.removeEventListener("DOMContentLoaded",B,!1),e.removeEventListener("load",B,!1)):(N.detachEvent("onreadystatechange",B),e.detachEvent("onload",B))}function B(){if(N.addEventListener||event.type==="load"||N.readyState==="complete")H(),p.ready()}function R(e,t,n){if(n===undefined&&e.nodeType===1){var r="data-"+t.replace(q,"-$1").toLowerCase();n=e.getAttribute(r);if(typeof n=="string"){try{n=n==="true"?!0:n==="false"?!1:n==="null"?null:+n+""===n?+n:I.test(n)?p.parseJSON(n):n}catch(i){}p.data(e,t,n)}else n=undefined}return n}function U(e){var t;for(t in e){if(t==="data"&&p.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function z(e,t,r,i){if(!p.acceptData(e))return;var s,o,u=p.expando,a=e.nodeType,f=a?p.cache:e,l=a?e[u]:e[u]&&u;if((!l||!f[l]||!i&&!f[l].data)&&r===undefined&&typeof t=="string")return;l||(a?l=e[u]=n.pop()||p.guid++:l=u),f[l]||(f[l]=a?{}:{toJSON:p.noop});if(typeof t=="object"||typeof t=="function")i?f[l]=p.extend(f[l],t):f[l].data=p.extend(f[l].data,t);return o=f[l],i||(o.data||(o.data={}),o=o.data),r!==undefined&&(o[p.camelCase(t)]=r),typeof t=="string"?(s=o[t],s==null&&(s=o[p.camelCase(t)])):s=o,s}function W(e,t,n){if(!p.acceptData(e))return;var r,i,s=e.nodeType,o=s?p.cache:e,u=s?e[p.expando]:p.expando;if(!o[u])return;if(t){r=n?o[u]:o[u].data;if(r){p.isArray(t)?t=t.concat(p.map(t,p.camelCase)):t in r?t=[t]:(t=p.camelCase(t),t in r?t=[t]:t=t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!U(r):!p.isEmptyObject(r))return}}if(!n){delete o[u].data;if(!U(o[u]))return}s?p.cleanData([e],!0):c.deleteExpando||o!=o.window?delete o[u]:o[u]=null}function tt(){return!0}function nt(){return!1}function rt(){try{return N.activeElement}catch(e){}}function it(e){var t=st.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Et(e,t){var n,r,i=0,s=typeof e.getElementsByTagName!==j?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==j?e.querySelectorAll(t||"*"):undefined;if(!s)for(s=[],n=e.childNodes||e;(r=n[i])!=null;i++)!t||p.nodeName(r,t)?s.push(r):p.merge(s,Et(r,t));return t===undefined||t&&p.nodeName(e,t)?p.merge([e],s):s}function St(e){K.test(e.type)&&(e.defaultChecked=e.checked)}function xt(e,t){return p.nodeName(e,"table")&&p.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Tt(e){return e.type=(p.find.attr(e,"type")!==null)+"/"+e.type,e}function Nt(e){var t=mt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ct(e,t){var n,r=0;for(;(n=e[r])!=null;r++)p._data(n,"globalEval",!t||p._data(t[r],"globalEval"))}function kt(e,t){if(t.nodeType!==1||!p.hasData(e))return;var n,r,i,s=p._data(e),o=p._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r")).appendTo(t.documentElement),t=(At[0].contentWindow||At[0].contentDocument).document,t.write(),t.close(),n=Mt(e,t),At.detach();Ot[e]=n}return n}function Ft(e,t){return{get:function(){var n=e();if(n==null)return;if(n){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function $t(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Vt.length;while(i--){t=Vt[i]+n;if(t in e)return t}return r}function Jt(e,t){var n,r,i,s=[],o=0,u=e.length;for(;o=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||p.type(e)!=="object"||e.nodeType||p.isWindow(e))return!1;try{if(e.constructor&&!f.call(e,"constructor")&&!f.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(c.ownLast)for(t in e)return f.call(e,t);for(t in e);return t===undefined||f.call(e,t)},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?u[a.call(e)]||"object":typeof e},globalEval:function(t){t&&p.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(v,"ms-").replace(m,g)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=y(e);if(n)if(o)for(;ir.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function st(e){return e[y]=!0,e}function ot(e){var t=c.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ut(e,t){var n=e.split("|"),i=e.length;while(i--)r.attrHandle[n[i]]=t}function at(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||k)-(~e.sourceIndex||k);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function ct(e){return st(function(t){return t=+t,st(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ht(e){return e&&typeof e.getElementsByTagName!==C&&e}function pt(){}function dt(e,t){var n,i,s,o,u,a,f,l=x[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){if(!n||(i=U.exec(u)))i&&(u=u.slice(i[0].length)||u),a.push(s=[]);n=!1;if(i=z.exec(u))n=i.shift(),s.push({value:n,type:i[0].replace(R," ")}),u=u.slice(n.length);for(o in r.filter)(i=$[o].exec(u))&&(!f[o]||(i=f[o](i)))&&(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?rt.error(e):x(e,a).slice(0)}function vt(e){var t=0,n=e.length,r="";for(;t1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function yt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}else g=yt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):_.apply(o,g)})}function wt(e){var t,n,i,s=e.length,o=r.relative[e[0].type],a=o||r.relative[" "],f=o?1:0,l=mt(function(e){return e===t},a,!0),c=mt(function(e){return P.call(t,e)>-1},a,!0),h=[function(e,n,r){return!o&&(r||n!==u)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;f1&>(h),f>1&&vt(e.slice(0,f-1).concat({value:e[f-2].type===" "?"*":""})).replace(R,"$1"),n,f0,i=e.length>0,s=function(s,o,a,f,l){var h,p,d,v=0,m="0",g=s&&[],y=[],b=u,E=s||i&&r.find.TAG("*",l),S=w+=b==null?1:Math.random()||.1,x=E.length;l&&(u=o!==c&&o);for(;m!==x&&(h=E[m])!=null;m++){if(i&&h){p=0;while(d=e[p++])if(d(h,o,a)){f.push(h);break}l&&(w=S)}n&&((h=!d&&h)&&v--,s&&g.push(h))}v+=m;if(n&&m!==v){p=0;while(d=t[p++])d(g,y,o,a);if(s){if(v>0)while(m--)!g[m]&&!y[m]&&(y[m]=O.call(f));y=yt(y)}_.apply(f,y),l&&!s&&y.length>0&&v+t.length>1&&rt.uniqueSort(f)}return l&&(w=S,u=b),g};return n?st(s):s}function St(e,t,n){var r=0,i=t.length;for(;r2&&(f=a[0]).type==="ID"&&n.getById&&t.nodeType===9&&p&&r.relative[a[1].type]){t=(r.find.ID(f.matches[0].replace(et,tt),t)||[])[0];if(!t)return i;e=e.slice(a.shift().value.length)}u=$.needsContext.test(e)?0:a.length;while(u--){f=a[u];if(r.relative[l=f.type])break;if(c=r.find[l])if(s=c(f.matches[0].replace(et,tt),Y.test(a[0].type)&&ht(t.parentNode)||t)){a.splice(u,1),e=s.length&&vt(a);if(!e)return _.apply(i,s),i;break}}}return o(e,h)(s,t,!p,i,Y.test(e)&&ht(t.parentNode)||t),i}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y="sizzle"+ -(new Date),b=e.document,w=0,E=0,S=it(),x=it(),T=it(),N=function(e,t){return e===t&&(f=!0),0},C=typeof undefined,k=1<<31,L={}.hasOwnProperty,A=[],O=A.pop,M=A.push,_=A.push,D=A.slice,P=A.indexOf||function(e){var t=0,n=this.length;for(;t+~]|"+B+")"+B+"*"),W=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),X=new RegExp(q),V=new RegExp("^"+F+"$"),$={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Z=/'|\\/g,et=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),tt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{_.apply(A=D.call(b.childNodes),b.childNodes),A[b.childNodes.length].nodeType}catch(nt){_={apply:A.length?function(e,t){M.apply(e,D.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=rt.support={},s=rt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},l=rt.setDocument=function(e){var t,i=e?e.ownerDocument||e:b,o=i.defaultView;if(i===c||i.nodeType!==9||!i.documentElement)return c;c=i,h=i.documentElement,p=!s(i),o&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",function(){l()},!1):o.attachEvent&&o.attachEvent("onunload",function(){l()})),n.attributes=ot(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ot(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(i.getElementsByClassName)&&ot(function(e){return e.innerHTML="
",e.firstChild.className="i",e.getElementsByClassName("i").length===2}),n.getById=ot(function(e){return h.appendChild(e).id=y,!i.getElementsByName||!i.getElementsByName(y).length}),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==C&&p){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==C&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==C)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==C&&p)return t.getElementsByClassName(e)},v=[],d=[];if(n.qsa=Q.test(i.querySelectorAll))ot(function(e){e.innerHTML="",e.querySelectorAll("[t^='']").length&&d.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||d.push("\\["+B+"*(?:value|"+H+")"),e.querySelectorAll(":checked").length||d.push(":checked")}),ot(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&d.push("name"+B+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||d.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),d.push(",.*:")});return(n.matchesSelector=Q.test(m=h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ot(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),v.push("!=",q)}),d=d.length&&new RegExp(d.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),g=t||Q.test(h.contains)?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,r&1||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===b&&g(b,e)?-1:t===i||t.ownerDocument===b&&g(b,t)?1:a?P.call(a,e)-P.call(a,t):0:r&4?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,s=e.parentNode,o=t.parentNode,u=[e],l=[t];if(!s||!o)return e===i?-1:t===i?1:s?-1:o?1:a?P.call(a,e)-P.call(a,t):0;if(s===o)return at(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)l.unshift(n);while(u[r]===l[r])r++;return r?at(u[r],l[r]):u[r]===b?-1:l[r]===b?1:0},i},rt.matches=function(e,t){return rt(e,null,null,t)},rt.matchesSelector=function(e,t){(e.ownerDocument||e)!==c&&l(e),t=t.replace(W,"='$1']");if(n.matchesSelector&&p&&(!v||!v.test(t))&&(!d||!d.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&e.document.nodeType!==11)return r}catch(i){}return rt(t,c,null,[e]).length>0},rt.contains=function(e,t){return(e.ownerDocument||e)!==c&&l(e),g(e,t)},rt.attr=function(e,t){(e.ownerDocument||e)!==c&&l(e);var i=r.attrHandle[t.toLowerCase()],s=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!p):undefined;return s!==undefined?s:n.attributes||!p?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},rt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},rt.uniqueSort=function(e){var t,r=[],i=0,s=0;f=!n.detectDuplicates,a=!n.sortStable&&e.slice(0),e.sort(N);if(f){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return a=null,e},i=rt.getText=function(e){var t,n="",r=0,s=e.nodeType;if(!s)while(t=e[r++])n+=i(t);else if(s===1||s===9||s===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(s===3||s===4)return e.nodeValue;return n},r=rt.selectors={cacheLength:50,createPseudo:st,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||rt.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&rt.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return $.CHILD.test(e[0])?null:(e[3]&&e[4]!==undefined?e[2]=e[4]:n&&X.test(n)&&(t=dt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(et,tt).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&S(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!==C&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=rt.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),b=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&b){l=m[y]||(m[y]={}),f=l[e]||[],p=f[0]===w&&f[1],h=f[0]===w&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[w,p,h];break}}else if(b&&(f=(t[y]||(t[y]={}))[e])&&f[0]===w)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){b&&((c[y]||(c[y]={}))[e]=[w,h]);if(c===t)break}return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||rt.error("unsupported pseudo: "+e);return i[y]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?st(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=P.call(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:st(function(e){var t=[],n=[],r=o(e.replace(R,"$1"));return r[y]?st(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:st(function(e){return function(t){return rt(e,t).length>0}}),contains:st(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:st(function(e){return V.test(e||"")||rt.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===c.activeElement&&(!c.hasFocus||c.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:ct(function(){return[0]}),last:ct(function(e,t){return[t-1]}),eq:ct(function(e,t,n){return[n<0?n+t:n]}),even:ct(function(e,t){var n=0;for(;n=0;)e.push(r);return e}),gt:ct(function(e,t,n){var r=n<0?n+t:n;for(;++r(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;p.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?p.find.matchesSelector(r,e)?[r]:[]:p.find.matches(e,p.grep(t,function(e){return e.nodeType===1}))},p.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if(typeof e!="string")return this.pushStack(p(e).filter(function(){for(t=0;t1?p.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,typeof e=="string"&&w.test(e)?p(e):e||[],!1).length}});var T,N=e.document,C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=p.fn.init=function(e,t){var n,r;if(!e)return this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?n=[null,e,null]:n=C.exec(e);if(n&&(n[1]||!t)){if(n[1]){t=t instanceof p?t[0]:t,p.merge(this,p.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:N,!0));if(E.test(n[1])&&p.isPlainObject(t))for(n in t)p.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}r=N.getElementById(n[2]);if(r&&r.parentNode){if(r.id!==n[2])return T.find(e);this.length=1,this[0]=r}return this.context=N,this.selector=e,this}return!t||t.jquery?(t||T).find(e):this.constructor(t).find(e)}return e.nodeType?(this.context=this[0]=e,this.length=1,this):p.isFunction(e)?typeof T.ready!="undefined"?T.ready(e):e(p):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),p.makeArray(e,this))};k.prototype=p.fn,T=p(N);var L=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};p.extend({dir:function(e,t,n){var r=[],i=e[t];while(i&&i.nodeType!==9&&(n===undefined||i.nodeType!==1||!p(i).is(n)))i.nodeType===1&&r.push(i),i=i[t];return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}}),p.fn.extend({has:function(e){var t,n=p(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:n.nodeType===1&&p.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?p.unique(s):s)},index:function(e){return e?typeof e=="string"?p.inArray(this[0],p(e)):p.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(p.unique(p.merge(this.get(),p(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),p.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return p.dir(e,"parentNode")},parentsUntil:function(e,t,n){return p.dir(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return p.dir(e,"nextSibling")},prevAll:function(e){return p.dir(e,"previousSibling")},nextUntil:function(e,t,n){return p.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return p.dir(e,"previousSibling",n)},siblings:function(e){return p.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return p.sibling(e.firstChild)},contents:function(e){return p.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:p.merge([],e.childNodes)}},function(e,t){p.fn[e]=function(n,r){var i=p.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(i=p.filter(r,i)),this.length>1&&(A[e]||(i=p.unique(i)),L.test(e)&&(i=i.reverse())),this.pushStack(i)}});var M=/\S+/g,_={};p.Callbacks=function(e){e=typeof e=="string"?_[e]||D(e):p.extend({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(c){n=e.memory&&c,r=!0,s=o||0,o=0,i=u.length,t=!0;for(;u&&s-1)u.splice(r,1),t&&(r<=i&&i--,r<=s&&s--)}),this},has:function(e){return e?p.inArray(e,u)>-1:!!u&&!!u.length},empty:function(){return u=[],i=0,this},disable:function(){return u=a=n=undefined,this},disabled:function(){return!u},lock:function(){return a=undefined,n||l.disable(),this},locked:function(){return!a},fireWith:function(e,n){return u&&(!r||a)&&(n=n||[],n=[e,n.slice?n.slice():n],t?a.push(n):f(n)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},p.extend({Deferred:function(e){var t=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return p.Deferred(function(n){p.each(t,function(t,s){var o=p.isFunction(e[t])&&e[t];i[s[1]](function(){var e=o&&o.apply(this,arguments);e&&p.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===r?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return e!=null?p.extend(e,r):r}},i={};return r.pipe=r.then,p.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=r.call(arguments),i=n.length,s=i!==1||e&&p.isFunction(e.promise)?i:0,o=s===1?e:p.Deferred(),u=function(e,t,n){return function(i){t[e]=this,n[e]=arguments.length>1?r.call(arguments):i,n===a?o.notifyWith(t,n):--s||o.resolveWith(t,n)}},a,f,l;if(i>1){a=new Array(i),f=new Array(i),l=new Array(i);for(;t0)return;P.resolveWith(N,[p]),p.fn.trigger&&p(N).trigger("ready").off("ready")}}),p.ready.promise=function(t){if(!P){P=p.Deferred();if(N.readyState==="complete")setTimeout(p.ready);else if(N.addEventListener)N.addEventListener("DOMContentLoaded",B,!1),e.addEventListener("load",B,!1);else{N.attachEvent("onreadystatechange",B),e.attachEvent("onload",B);var n=!1;try{n=e.frameElement==null&&N.documentElement}catch(r){}n&&n.doScroll&&function i(){if(!p.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}H(),p.ready()}}()}}return P.promise(t)};var j=typeof undefined,F;for(F in p(c))break;c.ownLast=F!=="0",c.inlineBlockNeedsLayout=!1,p(function(){var e,t,n=N.getElementsByTagName("body")[0];if(!n)return;e=N.createElement("div"),e.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",t=N.createElement("div"),n.appendChild(e).appendChild(t);if(typeof t.style.zoom!==j){t.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1";if(c.inlineBlockNeedsLayout=t.offsetWidth===3)n.style.zoom=1}n.removeChild(e),e=t=null}),function(){var e=N.createElement("div");if(c.deleteExpando==null){c.deleteExpando=!0;try{delete e.test}catch(t){c.deleteExpando=!1}}e=null}(),p.acceptData=function(e){var t=p.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return n!==1&&n!==9?!1:!t||t!==!0&&e.getAttribute("classid")===t};var I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;p.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?p.cache[e[p.expando]]:e[p.expando],!!e&&!U(e)},data:function(e,t,n){return z(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return z(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)}}),p.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(e===undefined){if(this.length){i=p.data(s);if(s.nodeType===1&&!p._data(s,"parsedAttrs")){n=o.length;while(n--)r=o[n].name,r.indexOf("data-")===0&&(r=p.camelCase(r.slice(5)),R(s,r,i[r]));p._data(s,"parsedAttrs",!0)}}return i}return typeof e=="object"?this.each(function(){p.data(this,e)}):arguments.length>1?this.each(function(){p.data(this,e,t)}):s?R(s,e,p.data(s,e)):undefined},removeData:function(e){return this.each(function(){p.removeData(this,e)})}}),p.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=p._data(e,t),n&&(!r||p.isArray(n)?r=p._data(e,t,p.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=p.queue(e,t),r=n.length,i=n.shift(),s=p._queueHooks(e,t),o=function(){p.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return p._data(e,n)||p._data(e,n,{empty:p.Callbacks("once memory").add(function(){p._removeData(e,t+"queue"),p._removeData(e,n)})})}}),p.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length
a",c.leadingWhitespace=t.firstChild.nodeType===3,c.tbody=!t.getElementsByTagName("tbody").length,c.htmlSerialize=!!t.getElementsByTagName("link").length,c.html5Clone=N.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",n.type="checkbox",n.checked=!0,e.appendChild(n),c.appendChecked=n.checked,t.innerHTML="",c.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),t.innerHTML="",c.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,c.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){c.noCloneEvent=!1}),t.cloneNode(!0).click());if(c.deleteExpando==null){c.deleteExpando=!0;try{delete t.test}catch(r){c.deleteExpando=!1}}e=t=n=null})(),function(){var t,n,r=N.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(c[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),c[t+"Bubbles"]=r.attributes[n].expando===!1);r=null}();var Q=/^(?:input|select|textarea)$/i,G=/^key/,Y=/^(?:mouse|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,et=/^([^.]*)(?:\.(.+)|)$/;p.event={global:{},add:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,d,v,m,g=p._data(e);if(!g)return;n.handler&&(a=n,n=a.handler,i=a.selector),n.guid||(n.guid=p.guid++),(o=g.events)||(o=g.events={}),(l=g.handle)||(l=g.handle=function(e){return typeof p===j||!!e&&p.event.triggered===e.type?undefined:p.event.dispatch.apply(l.elem,arguments)},l.elem=e),t=(t||"").match(M)||[""],u=t.length;while(u--){s=et.exec(t[u])||[],d=m=s[1],v=(s[2]||"").split(".").sort();if(!d)continue;f=p.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=p.event.special[d]||{},c=p.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&p.expr.match.needsContext.test(i),namespace:v.join(".")},a);if(!(h=o[d])){h=o[d]=[],h.delegateCount=0;if(!f.setup||f.setup.call(e,r,v,l)===!1)e.addEventListener?e.addEventListener(d,l,!1):e.attachEvent&&e.attachEvent("on"+d,l)}f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),p.event.global[d]=!0}e=null},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,d,v,m,g=p.hasData(e)&&p._data(e);if(!g||!(l=g.events))return;t=(t||"").match(M)||[""],f=t.length;while(f--){u=et.exec(t[f])||[],d=m=u[1],v=(u[2]||"").split(".").sort();if(!d){for(d in l)p.event.remove(e,d+t[f],n,r,!0);continue}c=p.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,h=l[d]||[],u=u[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=h.length;while(s--)o=h[s],(i||m===o.origType)&&(!n||n.guid===o.guid)&&(!u||u.test(o.namespace))&&(!r||r===o.selector||r==="**"&&o.selector)&&(h.splice(s,1),o.selector&&h.delegateCount--,c.remove&&c.remove.call(e,o));a&&!h.length&&((!c.teardown||c.teardown.call(e,v,g.handle)===!1)&&p.removeEvent(e,d,g.handle),delete l[d])}p.isEmptyObject(l)&&(delete g.handle,p._removeData(e,"events"))},trigger:function(t,n,r,i){var s,o,u,a,l,c,h,d=[r||N],v=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];u=c=r=r||N;if(r.nodeType===3||r.nodeType===8)return;if(Z.test(v+p.event.triggered))return;v.indexOf(".")>=0&&(m=v.split("."),v=m.shift(),m.sort()),o=v.indexOf(":")<0&&"on"+v,t=t[p.expando]?t:new p.Event(v,typeof t=="object"&&t),t.isTrigger=i?2:3,t.namespace=m.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=n==null?[t]:p.makeArray(n,[t]),l=p.event.special[v]||{};if(!i&&l.trigger&&l.trigger.apply(r,n)===!1)return;if(!i&&!l.noBubble&&!p.isWindow(r)){a=l.delegateType||v,Z.test(a+v)||(u=u.parentNode);for(;u;u=u.parentNode)d.push(u),c=u;c===(r.ownerDocument||N)&&d.push(c.defaultView||c.parentWindow||e)}h=0;while((u=d[h++])&&!t.isPropagationStopped())t.type=h>1?a:l.bindType||v,s=(p._data(u,"events")||{})[t.type]&&p._data(u,"handle"),s&&s.apply(u,n),s=o&&u[o],s&&s.apply&&p.acceptData(u)&&(t.result=s.apply(u,n),t.result===!1&&t.preventDefault());t.type=v;if(!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&p.acceptData(r)&&o&&r[v]&&!p.isWindow(r)){c=r[o],c&&(r[o]=null),p.event.triggered=v;try{r[v]()}catch(g){}p.event.triggered=undefined,c&&(r[o]=c)}return t.result},dispatch:function(e){e=p.event.fix(e);var t,n,i,s,o,u=[],a=r.call(arguments),f=(p._data(this,"events")||{})[e.type]||[],l=p.event.special[e.type]||{};a[0]=e,e.delegateTarget=this;if(l.preDispatch&&l.preDispatch.call(this,e)===!1)return;u=p.event.handlers.call(this,e,f),t=0;while((s=u[t++])&&!e.isPropagationStopped()){e.currentTarget=s.elem,o=0;while((i=s.handlers[o++])&&!e.isImmediatePropagationStopped())if(!e.namespace_re||e.namespace_re.test(i.namespace))e.handleObj=i,e.data=i.data,n=((p.event.special[i.origType]||{}).handle||i.handler).apply(s.elem,a),n!==undefined&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation())}return l.postDispatch&&l.postDispatch.call(this,e),e.result},handlers:function(e,t){var n,r,i,s,o=[],u=t.delegateCount,a=e.target;if(u&&a.nodeType&&(!e.button||e.type!=="click"))for(;a!=this;a=a.parentNode||this)if(a.nodeType===1&&(a.disabled!==!0||e.type!=="click")){i=[];for(s=0;s=0:p.find(n,this,null,[a]).length),i[n]&&i.push(r);i.length&&o.push({elem:a,handlers:i})}return u]","i"),at=/^\s+/,ft=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,lt=/<([\w:]+)/,ct=/\s*$/g,yt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:c.htmlSerialize?[0,"",""]:[1,"X
","
"]},bt=it(N),wt=bt.appendChild(N.createElement("div"));yt.optgroup=yt.option,yt.tbody=yt.tfoot=yt.colgroup=yt.caption=yt.thead,yt.th=yt.td,p.extend({clone:function(e,t,n){var r,i,s,o,u,a=p.contains(e.ownerDocument,e);c.html5Clone||p.isXMLDoc(e)||!ut.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(wt.innerHTML=e.outerHTML,wt.removeChild(s=wt.firstChild));if((!c.noCloneEvent||!c.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!p.isXMLDoc(e)){r=Et(s),u=Et(e);for(o=0;(i=u[o])!=null;++o)r[o]&&Lt(i,r[o])}if(t)if(n){u=u||Et(e),r=r||Et(s);for(o=0;(i=u[o])!=null;o++)kt(i,r[o])}else kt(e,s);return r=Et(s,"script"),r.length>0&&Ct(r,!a&&Et(e,"script")),r=u=i=null,s},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,l,h=e.length,d=it(t),v=[],m=0;for(;m")+l[2],i=l[0];while(i--)u=u.lastChild;!c.leadingWhitespace&&at.test(s)&&v.push(t.createTextNode(at.exec(s)[0]));if(!c.tbody){s=a==="table"&&!ct.test(s)?u.firstChild:l[1]===""&&!ct.test(s)?u:0,i=s&&s.childNodes.length;while(i--)p.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}p.merge(v,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=d.lastChild}}u&&d.removeChild(u),c.appendChecked||p.grep(Et(v,"input"),St),m=0;while(s=v[m++]){if(r&&p.inArray(s,r)!==-1)continue;o=p.contains(s.ownerDocument,s),u=Et(d.appendChild(s),"script"),o&&Ct(u);if(n){i=0;while(s=u[i++])vt.test(s.type||"")&&n.push(s)}}return u=null,d},cleanData:function(e,t){var r,i,s,o,u=0,a=p.expando,f=p.cache,l=c.deleteExpando,h=p.event.special;for(;(r=e[u])!=null;u++)if(t||p.acceptData(r)){s=r[a],o=s&&f[s];if(o){if(o.events)for(i in o.events)h[i]?p.event.remove(r,i):p.removeEvent(r,i,o.handle);f[s]&&(delete f[s],l?delete r[a]:typeof r.removeAttribute!==j?r.removeAttribute(a):r[a]=null,n.push(s))}}}}),p.fn.extend({text:function(e){return J(this,function(e){return e===undefined?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||N).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=xt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=xt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?p.filter(e,this):this,i=0;for(;(n=r[i])!=null;i++)!t&&n.nodeType===1&&p.cleanData(Et(n)),n.parentNode&&(t&&p.contains(n.ownerDocument,n)&&Ct(Et(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&p.cleanData(Et(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&p.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return p.clone(this,e,t)})},html:function(e){return J(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return t.nodeType===1?t.innerHTML.replace(ot,""):undefined;if(typeof e=="string"&&!pt.test(e)&&(c.htmlSerialize||!ut.test(e))&&(c.leadingWhitespace||!at.test(e))&&!yt[(lt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ft,"<$1>");try{for(;n1&&typeof v=="string"&&!c.checkClone&&dt.test(v))return this.each(function(n){var r=h.eq(n);m&&(e[0]=v.call(this,n,r.html())),r.domManip(e,t)});if(l){a=p.buildFragment(e,this[0].ownerDocument,!1,this),n=a.firstChild,a.childNodes.length===1&&(a=n);if(n){o=p.map(Et(a,"script"),Tt),s=o.length;for(;f
a",e=n.getElementsByTagName("a")[0],e.style.cssText="float:left;opacity:.5",c.opacity=/^0.5/.test(e.style.opacity),c.cssFloat=!!e.style.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",c.clearCloneStyle=n.style.backgroundClip==="content-box",e=n=null,c.shrinkWrapBlocks=function(){var e,n,i,s;if(t==null){e=N.getElementsByTagName("body")[0];if(!e)return;s="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",n=N.createElement("div"),i=N.createElement("div"),e.appendChild(n).appendChild(i),t=!1,typeof i.style.zoom!==j&&(i.style.cssText=r+";width:1px;padding:1px;zoom:1",i.innerHTML="
",i.firstChild.style.width="5px",t=i.offsetWidth!==3),e.removeChild(n),e=n=i=null}return t}})();var Dt=/^margin/,Pt=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ht,Bt,jt=/^(top|right|bottom|left)$/;e.getComputedStyle?(Ht=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Bt=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Ht(e),o=n?n.getPropertyValue(t)||n[t]:undefined,n&&(o===""&&!p.contains(e.ownerDocument,e)&&(o=p.style(e,t)),Pt.test(o)&&Dt.test(t)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),o===undefined?o:o+""}):N.documentElement.currentStyle&&(Ht=function(e){return e.currentStyle},Bt=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Ht(e),o=n?n[t]:undefined,o==null&&u&&u[t]&&(o=u[t]),Pt.test(o)&&!jt.test(t)&&(r=u.left,i=e.runtimeStyle,s=i&&i.left,s&&(i.left=e.currentStyle.left),u.left=t==="fontSize"?"1em":o,o=u.pixelLeft+"px",u.left=r,s&&(i.left=s)),o===undefined?o:o+""||"auto"}),function(){function l(){var t,n,u=N.getElementsByTagName("body")[0];if(!u)return;t=N.createElement("div"),n=N.createElement("div"),t.style.cssText=a,u.appendChild(t).appendChild(n),n.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",p.swap(u,u.style.zoom!=null?{zoom:1}:{},function(){r=n.offsetWidth===4}),i=!0,s=!1,o=!0,e.getComputedStyle&&(s=(e.getComputedStyle(n,null)||{}).top!=="1%",i=(e.getComputedStyle(n,null)||{width:"4px"}).width==="4px"),u.removeChild(t),n=u=null}var t,n,r,i,s,o,u=N.createElement("div"),a="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",f="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";u.innerHTML="
a",t=u.getElementsByTagName("a")[0],t.style.cssText="float:left;opacity:.5",c.opacity=/^0.5/.test(t.style.opacity),c.cssFloat=!!t.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",c.clearCloneStyle=u.style.backgroundClip==="content-box",t=u=null,p.extend(c,{reliableHiddenOffsets:function(){if(n!=null)return n;var e,t,r,i=N.createElement("div"),s=N.getElementsByTagName("body")[0];if(!s)return;return i.setAttribute("className","t"),i.innerHTML="
a",e=N.createElement("div"),e.style.cssText=a,s.appendChild(e).appendChild(i),i.innerHTML="
t
",t=i.getElementsByTagName("td"),t[0].style.cssText="padding:0;margin:0;border:0;display:none",r=t[0].offsetHeight===0,t[0].style.display="",t[1].style.display="none",n=r&&t[0].offsetHeight===0,s.removeChild(e),i=s=null,n},boxSizing:function(){return r==null&&l(),r},boxSizingReliable:function(){return i==null&&l(),i},pixelPosition:function(){return s==null&&l(),s},reliableMarginRight:function(){var t,n,r,i;if(o==null&&e.getComputedStyle){t=N.getElementsByTagName("body")[0];if(!t)return;n=N.createElement("div"),r=N.createElement("div"),n.style.cssText=a,t.appendChild(n).appendChild(r),i=r.appendChild(N.createElement("div")),i.style.cssText=r.style.cssText=f,i.style.marginRight=i.style.width="0",r.style.width="1px",o=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(n)}return o}})}(),p.swap=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i};var It=/alpha\([^)]*\)/i,qt=/opacity\s*=\s*([^)]*)/,Rt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+X+")(.*)$","i"),zt=new RegExp("^([+-])=("+X+")","i"),Wt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:0,fontWeight:400},Vt=["Webkit","O","Moz","ms"];p.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Bt(e,"opacity");return n===""?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":c.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var i,s,o,u=p.camelCase(t),a=e.style;t=p.cssProps[u]||(p.cssProps[u]=$t(a,u)),o=p.cssHooks[t]||p.cssHooks[u];if(n===undefined)return o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:a[t];s=typeof n,s==="string"&&(i=zt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(p.css(e,t)),s="number");if(n==null||n!==n)return;s==="number"&&!p.cssNumber[u]&&(n+="px"),!c.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(a[t]="inherit");if(!o||!("set"in o)||(n=o.set(e,n,r))!==undefined)try{a[t]="",a[t]=n}catch(f){}},css:function(e,t,n,r){var i,s,o,u=p.camelCase(t);return t=p.cssProps[u]||(p.cssProps[u]=$t(e.style,u)),o=p.cssHooks[t]||p.cssHooks[u],o&&"get"in o&&(s=o.get(e,!0,n)),s===undefined&&(s=Bt(e,t,r)),s==="normal"&&t in Xt&&(s=Xt[t]),n===""||n?(i=parseFloat(s),n===!0||p.isNumeric(i)?i||0:s):s}}),p.each(["height","width"],function(e,t){p.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&Rt.test(p.css(e,"display"))?p.swap(e,Wt,function(){return Gt(e,t,r)}):Gt(e,t,r)},set:function(e,n,r){var i=r&&Ht(e);return Kt(e,n,r?Qt(e,t,r,c.boxSizing()&&p.css(e,"boxSizing",!1,i)==="border-box",i):0)}}}),c.opacity||(p.cssHooks.opacity={get:function(e,t){return qt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=p.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if((t>=1||t==="")&&p.trim(s.replace(It,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(t===""||r&&!r.filter)return}n.filter=It.test(s)?s.replace(It,i):s+" "+i}}),p.cssHooks.marginRight=Ft(c.reliableMarginRight,function(e,t){if(t)return p.swap(e,{display:"inline-block"},Bt,[e,"marginRight"])}),p.each({margin:"",padding:"",border:"Width"},function(e,t){p.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+V[r]+t]=s[r]||s[r-2]||s[0];return i}},Dt.test(e)||(p.cssHooks[e+t].set=Kt)}),p.fn.extend({css:function(e,t){return J(this,function(e,t,n){var r,i,s={},o=0;if(p.isArray(t)){r=Ht(e),i=t.length;for(;o1)},show:function(){return Jt(this,!0)},hide:function(){return Jt(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){$(this)?p(this).show():p(this).hide()})}}),p.Tween=Yt,Yt.prototype={constructor:Yt,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(p.cssNumber[n]?"":"px")},cur:function(){var e=Yt.propHooks[this.prop];return e&&e.get?e.get(this):Yt.propHooks._default.get(this)},run:function(e){var t,n=Yt.propHooks[this.prop];return this.options.duration?this.pos=t=p.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yt.propHooks._default.set(this),this}},Yt.prototype.init.prototype=Yt.prototype,Yt.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=p.css(e.elem,e.prop,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){p.fx.step[e.prop]?p.fx.step[e.prop](e):e.elem.style&&(e.elem.style[p.cssProps[e.prop]]!=null||p.cssHooks[e.prop])?p.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yt.propHooks.scrollTop=Yt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},p.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},p.fx=Yt.prototype.init,p.fx.step={};var Zt,en,tn=/^(?:toggle|show|hide)$/,nn=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),rn=/queueHooks$/,sn=[ln],on={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=nn.exec(t),s=i&&i[3]||(p.cssNumber[e]?"":"px"),o=(p.cssNumber[e]||s!=="px"&&+r)&&nn.exec(p.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,p.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&u!==1&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};p.Animation=p.extend(hn,{tweener:function(e,t){p.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r
a",e=i.getElementsByTagName("a")[0],n=N.createElement("select"),r=n.appendChild(N.createElement("option")),t=i.getElementsByTagName("input")[0],e.style.cssText="top:1px",c.getSetAttribute=i.className!=="t",c.style=/top/.test(e.getAttribute("style")),c.hrefNormalized=e.getAttribute("href")==="/a",c.checkOn=!!t.value,c.optSelected=r.selected,c.enctype=!!N.createElement("form").enctype,n.disabled=!0,c.optDisabled=!r.disabled,t=N.createElement("input"),t.setAttribute("value",""),c.input=t.getAttribute("value")==="",t.value="t",t.setAttribute("type","radio"),c.radioValue=t.value==="t",e=t=n=r=i=null}();var pn=/\r/g;p.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i)return t=p.valHooks[i.type]||p.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,typeof n=="string"?n.replace(pn,""):n==null?"":n);return}return r=p.isFunction(e),this.each(function(n){var i;if(this.nodeType!==1)return;r?i=e.call(this,n,p(this).val()):i=e,i==null?i="":typeof i=="number"?i+="":p.isArray(i)&&(i=p.map(i,function(e){return e==null?"":e+""})),t=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,i,"value")===undefined)this.value=i})}}),p.extend({valHooks:{option:{get:function(e){var t=p.find.attr(e,"value");return t!=null?t:p.text(e)}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0)try{r.selected=n=!0}catch(u){r.scrollHeight}else r.selected=!1}return n||(e.selectedIndex=-1),i}}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]={set:function(e,t){if(p.isArray(t))return e.checked=p.inArray(p(e).val(),t)>=0}},c.checkOn||(p.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var dn,vn,mn=p.expr.attrHandle,gn=/^(?:checked|selected)$/i,yn=c.getSetAttribute,bn=c.input;p.fn.extend({attr:function(e,t){return J(this,p.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){p.removeAttr(this,e)})}}),p.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(!e||s===3||s===8||s===2)return;if(typeof e.getAttribute===j)return p.prop(e,t,n);if(s!==1||!p.isXMLDoc(e))t=t.toLowerCase(),r=p.attrHooks[t]||(p.expr.match.bool.test(t)?vn:dn);if(n===undefined)return r&&"get"in r&&(i=r.get(e,t))!==null?i:(i=p.find.attr(e,t),i==null?undefined:i);if(n!==null)return r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n);p.removeAttr(e,t)},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(M);if(s&&e.nodeType===1)while(n=s[i++])r=p.propFix[n]||n,p.expr.match.bool.test(n)?bn&&yn||!gn.test(n)?e[r]=!1:e[p.camelCase("default-"+n)]=e[r]=!1:p.attr(e,n,""),e.removeAttribute(yn?n:r)},attrHooks:{type:{set:function(e,t){if(!c.radioValue&&t==="radio"&&p.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),vn={set:function(e,t,n){return t===!1?p.removeAttr(e,n):bn&&yn||!gn.test(n)?e.setAttribute(!yn&&p.propFix[n]||n,n):e[p.camelCase("default-"+n)]=e[n]=!0,n}},p.each(p.expr.match.bool.source.match(/\w+/g),function(e,t){var n=mn[t]||p.find.attr;mn[t]=bn&&yn||!gn.test(t)?function(e,t,r){var i,s;return r||(s=mn[t],mn[t]=i,i=n(e,t,r)!=null?t.toLowerCase():null,mn[t]=s),i}:function(e,t,n){if(!n)return e[p.camelCase("default-"+t)]?t.toLowerCase():null}});if(!bn||!yn)p.attrHooks.value={set:function(e,t,n){if(!p.nodeName(e,"input"))return dn&&dn.set(e,t,n);e.defaultValue=t}};yn||(dn={set:function(e,t,n){var r=e.getAttributeNode(n);r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="";if(n==="value"||t===e.getAttribute(n))return t}},mn.id=mn.name=mn.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&r.value!==""?r.value:null},p.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:dn.set},p.attrHooks.contenteditable={set:function(e,t,n){dn.set(e,t===""?!1:t,n)}},p.each(["width","height"],function(e,t){p.attrHooks[t]={set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}}})),c.style||(p.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var wn=/^(?:input|select|textarea|button|object)$/i,En=/^(?:a|area)$/i;p.fn.extend({prop:function(e,t){return J(this,p.prop,e,t,arguments.length>1)},removeProp:function(e){return e=p.propFix[e]||e,this.each(function(){try{this[e]=undefined,delete this[e]}catch(t){}})}}),p.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(!e||o===3||o===8||o===2)return;return s=o!==1||!p.isXMLDoc(e),s&&(t=p.propFix[t]||t,i=p.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&(r=i.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=p.find.attr(e,"tabindex");return t?parseInt(t,10):wn.test(e.nodeName)||En.test(e.nodeName)&&e.href?0:-1}}}}),c.hrefNormalized||p.each(["href","src"],function(e,t){p.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),c.optSelected||(p.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),p.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){p.propFix[this.toLowerCase()]=this}),c.enctype||(p.propFix.enctype="encoding");var Sn=/[\t\r\n\f]/g;p.fn.extend({addClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f=typeof e=="string"&&e;if(p.isFunction(e))return this.each(function(t){p(this).addClass(e.call(this,t,this.className))});if(f){t=(e||"").match(M)||[];for(;u=0)r=r.replace(" "+i+" "," ");o=e?p.trim(r):"",n.className!==o&&(n.className=o)}}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):p.isFunction(e)?this.each(function(n){p(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var t,r=0,i=p(this),s=e.match(M)||[];while(t=s[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else if(n===j||n==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||e===!1?"":p._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0)return!0;return!1}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){p.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),p.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});var xn=p.now(),Tn=/\?/,Nn=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;p.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=p.trim(t+"");return i&&!p.trim(i.replace(Nn,function(e,t,i,s){return n&&t&&(r=0),r===0?e:(n=i||t,r+=!s-!i,"")}))?Function("return "+i)():p.error("Invalid JSON: "+t)},p.parseXML=function(t){var n,r;if(!t||typeof t!="string")return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=undefined}return(!n||!n.documentElement||n.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+t),n};var Cn,kn,Ln=/#.*$/,An=/([?&])_=[^&]*/,On=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Mn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,_n=/^(?:GET|HEAD)$/,Dn=/^\/\//,Pn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hn={},Bn={},jn="*/".concat("*");try{kn=location.href}catch(Fn){kn=N.createElement("a"),kn.href="",kn=kn.href}Cn=Pn.exec(kn.toLowerCase())||[],p.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kn,type:"GET",isLocal:Mn.test(Cn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rn(Rn(e,p.ajaxSettings),t):Rn(p.ajaxSettings,e)},ajaxPrefilter:In(Hn),ajaxTransport:In(Bn),ajax:function(e,t){function x(e,t,n,r){var f,g,y,w,S,x=t;if(b===2)return;b=2,o&&clearTimeout(o),a=undefined,s=r||"",E.readyState=e>0?4:0,f=e>=200&&e<300||e===304,n&&(w=Un(l,E,n)),w=zn(l,w,E,f);if(f)l.ifModified&&(S=E.getResponseHeader("Last-Modified"),S&&(p.lastModified[i]=S),S=E.getResponseHeader("etag"),S&&(p.etag[i]=S)),e===204||l.type==="HEAD"?x="nocontent":e===304?x="notmodified":(x=w.state,g=w.data,y=w.error,f=!y);else{y=x;if(e||!x)x="error",e<0&&(e=0)}E.status=e,E.statusText=(t||x)+"",f?d.resolveWith(c,[g,x,E]):d.rejectWith(c,[E,x,y]),E.statusCode(m),m=undefined,u&&h.trigger(f?"ajaxSuccess":"ajaxError",[E,l,f?g:y]),v.fireWith(c,[E,x]),u&&(h.trigger("ajaxComplete",[E,l]),--p.active||p.event.trigger("ajaxStop"))}typeof e=="object"&&(t=e,e=undefined),t=t||{};var n,r,i,s,o,u,a,f,l=p.ajaxSetup({},t),c=l.context||l,h=l.context&&(c.nodeType||c.jquery)?p(c):p.event,d=p.Deferred(),v=p.Callbacks("once memory"),m=l.statusCode||{},g={},y={},b=0,w="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(b===2){if(!f){f={};while(t=On.exec(s))f[t[1].toLowerCase()]=t[2]}t=f[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return b===2?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else E.always(e[E.status]);return this},abort:function(e){var t=e||w;return a&&a.abort(t),x(0,t),this}};d.promise(E).complete=v.add,E.success=E.done,E.error=E.fail,l.url=((e||l.url||kn)+"").replace(Ln,"").replace(Dn,Cn[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=p.trim(l.dataType||"*").toLowerCase().match(M)||[""],l.crossDomain==null&&(n=Pn.exec(l.url.toLowerCase()),l.crossDomain=!(!n||n[1]===Cn[1]&&n[2]===Cn[2]&&(n[3]||(n[1]==="http:"?"80":"443"))===(Cn[3]||(Cn[1]==="http:"?"80":"443")))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),qn(Hn,l,t,E);if(b===2)return E;u=l.global,u&&p.active++===0&&p.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!_n.test(l.type),i=l.url,l.hasContent||(l.data&&(i=l.url+=(Tn.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=An.test(i)?i.replace(An,"$1_="+xn++):i+(Tn.test(i)?"&":"?")+"_="+xn++)),l.ifModified&&(p.lastModified[i]&&E.setRequestHeader("If-Modified-Since",p.lastModified[i]),p.etag[i]&&E.setRequestHeader("If-None-Match",p.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&E.setRequestHeader("Content-Type",l.contentType),E.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+jn+"; q=0.01":""):l.accepts["*"]);for(r in l.headers)E.setRequestHeader(r,l.headers[r]);if(!l.beforeSend||l.beforeSend.call(c,E,l)!==!1&&b!==2){w="abort";for(r in{success:1,error:1,complete:1})E[r](l[r]);a=qn(Bn,l,t,E);if(!a)x(-1,"No Transport");else{E.readyState=1,u&&h.trigger("ajaxSend",[E,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){E.abort("timeout")},l.timeout));try{b=1,a.send(g,x)}catch(S){if(!(b<2))throw S;x(-1,S)}}return E}return E.abort()},getJSON:function(e,t,n){return p.get(e,t,n,"json")},getScript:function(e,t){return p.get(e,undefined,t,"script")}}),p.each(["get","post"],function(e,t){p[t]=function(e,n,r,i){return p.isFunction(n)&&(i=i||r,r=n,n=undefined),p.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),p.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){p.fn[t]=function(e){return this.on(t,e)}}),p._evalUrl=function(e){return p.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},p.fn.extend({wrapAll:function(e){if(p.isFunction(e))return this.each(function(t){p(this).wrapAll(e.call(this,t))});if(this[0]){var t=p(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return p.isFunction(e)?this.each(function(t){p(this).wrapInner(e.call(this,t))}):this.each(function(){var t=p(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=p.isFunction(e);return this.each(function(n){p(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()}}),p.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!c.reliableHiddenOffsets()&&(e.style&&e.style.display||p.css(e,"display"))==="none"},p.expr.filters.visible=function(e){return!p.expr.filters.hidden(e)};var Wn=/%20/g,Xn=/\[\]$/,Vn=/\r?\n/g,$n=/^(?:submit|button|image|reset|file)$/i,Jn=/^(?:input|select|textarea|keygen)/i;p.param=function(e,t){var n,r=[],i=function(e,t){t=p.isFunction(t)?t():t==null?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};t===undefined&&(t=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(e)||e.jquery&&!p.isPlainObject(e))p.each(e,function(){i(this.name,this.value)});else for(n in e)Kn(n,e[n],t,i);return r.join("&").replace(Wn,"+")},p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=p.prop(this,"elements");return e?p.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!p(this).is(":disabled")&&Jn.test(this.nodeName)&&!$n.test(e)&&(this.checked||!K.test(e))}).map(function(e,t){var n=p(this).val();return n==null?null:p.isArray(n)?p.map(n,function(e){return{name:t.name,value:e.replace(Vn,"\r\n")}}):{name:t.name,value:n.replace(Vn,"\r\n")}}).get()}}),p.ajaxSettings.xhr=e.ActiveXObject!==undefined?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zn()||er()}:Zn;var Qn=0,Gn={},Yn=p.ajaxSettings.xhr();e.ActiveXObject&&p(e).on("unload",function(){for(var e in Gn)Gn[e](undefined,!0)}),c.cors=!!Yn&&"withCredentials"in Yn,Yn=c.ajax=!!Yn,Yn&&p.ajaxTransport(function(e){if(!e.crossDomain||c.cors){var t;return{send:function(n,r){var i,s=e.xhr(),o=++Qn;s.open(e.type,e.url,e.async,e.username,e.password);if(e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(i in n)n[i]!==undefined&&s.setRequestHeader(i,n[i]+"");s.send(e.hasContent&&e.data||null),t=function(n,i){var u,a,f;if(t&&(i||s.readyState===4)){delete Gn[o],t=undefined,s.onreadystatechange=p.noop;if(i)s.readyState!==4&&s.abort();else{f={},u=s.status,typeof s.responseText=="string"&&(f.text=s.responseText);try{a=s.statusText}catch(l){a=""}!u&&e.isLocal&&!e.crossDomain?u=f.text?200:404:u===1223&&(u=204)}}f&&r(u,a,f,s.getAllResponseHeaders())},e.async?s.readyState===4?setTimeout(t):s.onreadystatechange=Gn[o]=t:t()},abort:function(){t&&t(undefined,!0)}}}}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return p.globalEval(e),e}}}),p.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),p.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=N.head||p("head")[0]||N.documentElement;return{send:function(r,i){t=N.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){if(n||!t.readyState||/loaded|complete/.test(t.readyState))t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success")},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(undefined,!0)}}}});var tr=[],nr=/(=)\?(?=&|$)|\?\?/;p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tr.pop()||p.expando+"_"+xn++;return this[e]=!0,e}}),p.ajaxPrefilter("json jsonp",function(t,n,r){var i,s,o,u=t.jsonp!==!1&&(nr.test(t.url)?"url":typeof t.data=="string"&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nr.test(t.data)&&"data");if(u||t.dataTypes[0]==="jsonp")return i=t.jsonpCallback=p.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(nr,"$1"+i):t.jsonp!==!1&&(t.url+=(Tn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||p.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){o=arguments},r.always(function(){e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,tr.push(i)),o&&p.isFunction(s)&&s(o[0]),o=s=undefined}),"script"}),p.parseHTML=function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||N;var r=E.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=p.buildFragment([e],t,i),i&&i.length&&p(i).remove(),p.merge([],r.childNodes))};var rr=p.fn.load;p.fn.load=function(e,t,n){if(typeof e!="string"&&rr)return rr.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(" ");return u>=0&&(r=e.slice(u,e.length),e=e.slice(0,u)),p.isFunction(t)?(n=t,t=undefined):t&&typeof t=="object"&&(s="POST"),o.length>0&&p.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){i=arguments,o.html(r?p("
").append(p.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this},p.expr.filters.animated=function(e){return p.grep(p.timers,function(t){return e===t.elem}).length};var ir=e.document.documentElement;p.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=p.css(e,"position"),c=p(e),h={};l==="static"&&(e.style.position="relative"),u=c.offset(),s=p.css(e,"top"),a=p.css(e,"left"),f=(l==="absolute"||l==="fixed")&&p.inArray("auto",[s,a])>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),p.isFunction(t)&&(t=t.call(e,n,u)),t.top!=null&&(h.top=t.top-u.top+o),t.left!=null&&(h.left=t.left-u.left+i),"using"in t?t.using.call(e,h):c.css(h)}},p.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){p.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],s=i&&i.ownerDocument;if(!s)return;return t=s.documentElement,p.contains(t,i)?(typeof i.getBoundingClientRect!==j&&(r=i.getBoundingClientRect()),n=sr(s),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(!this[0])return;var e,t,n={top:0,left:0},r=this[0];return p.css(r,"position")==="fixed"?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),p.nodeName(e[0],"html")||(n=e.offset()),n.top+=p.css(e[0],"borderTopWidth",!0),n.left+=p.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-p.css(r,"marginTop",!0),left:t.left-n.left-p.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||ir;while(e&&!p.nodeName(e,"html")&&p.css(e,"position")==="static")e=e.offsetParent;return e||ir})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);p.fn[e]=function(r){return J(this,function(e,r,i){var s=sr(e);if(i===undefined)return s?t in s?s[t]:s.document.documentElement[r]:e[r];s?s.scrollTo(n?p(s).scrollLeft():i,n?i:p(s).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),p.each(["top","left"],function(e,t){p.cssHooks[t]=Ft(c.pixelPosition,function(e,n){if(n)return n=Bt(e,t),Pt.test(n)?p(e).position()[t]+"px":n})}),p.each({Height:"height",Width:"width"},function(e,t){p.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){p.fn[r]=function(r,i){var s=arguments.length&&(n||typeof r!="boolean"),o=n||(r===!0||i===!0?"margin":"border");return J(this,function(t,n,r){var i;return p.isWindow(t)?t.document.documentElement["client"+e]:t.nodeType===9?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===undefined?p.css(t,n,o):p.style(t,n,r,o)},t,s?r:undefined,s,null)}})}),p.fn.size=function(){return this.length},p.fn.andSelf=p.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return p});var or=e.jQuery,ur=e.$;return p.noConflict=function(t){return e.$===p&&(e.$=ur),t&&e.jQuery===p&&(e.jQuery=or),p},typeof t===j&&(e.jQuery=e.$=p),p}),define("jquery-private",["jquery"],function(e){return e.noConflict(!0)}),define("text",["module"],function(e){var t,n,r,i,s,o=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],u=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/]*>\s*([\s\S]+)\s*<\/body>/im,f=typeof location!="undefined"&&location.href,l=f&&location.protocol&&location.protocol.replace(/\:/,""),c=f&&location.hostname,h=f&&(location.port||undefined),p={},d=e.config&&e.config()||{};t={version:"2.0.12",strip:function(e){if(e){e=e.replace(u,"");var t=e.match(a);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:d.createXhr||function(){var e,t,n;if(typeof XMLHttpRequest!="undefined")return new XMLHttpRequest;if(typeof ActiveXObject!="undefined")for(t=0;t<3;t+=1){n=o[t];try{e=new ActiveXObject(n)}catch(r){}if(e){o=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,s=e.indexOf("."),o=e.indexOf("./")===0||e.indexOf("../")===0;return s!==-1&&(!o||s>1)?(t=e.substring(0,s),n=e.substring(s+1,e.length)):t=e,r=n||t,s=r.indexOf("!"),s!==-1&&(i=r.substring(s+1)==="strip",r=r.substring(0,s),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,i){var s,o,u,a=t.xdRegExp.exec(e);return a?(s=a[2],o=a[3],o=o.split(":"),u=o[1],o=o[0],(!s||s===n)&&(!o||o.toLowerCase()===r.toLowerCase())&&(!u&&!o||u===i)):!0},finishLoad:function(e,n,r,i){r=n?t.strip(r):r,d.isBuild&&(p[e]=r),i(r)},load:function(e,n,r,i){if(i&&i.isBuild&&!i.inlineText){r();return}d.isBuild=i&&i.isBuild;var s=t.parseName(e),o=s.moduleName+(s.ext?"."+s.ext:""),u=n.toUrl(o),a=d.useXhr||t.useXhr;if(u.indexOf("empty:")===0){r();return}!f||a(u,l,c,h)?t.get(u,function(n){t.finishLoad(e,s.strip,n,r)},function(e){r.error&&r.error(e)}):n([o],function(e){t.finishLoad(s.moduleName+"."+s.ext,s.strip,e,r)})},write:function(e,n,r,i){if(p.hasOwnProperty(n)){var s=t.jsEscape(p[n]);r.asModule(e+"!"+n,"define(function () { return '"+s+"';});\n")}},writeFile:function(e,n,r,i,s){var o=t.parseName(n),u=o.ext?"."+o.ext:"",a=o.moduleName+u,f=r.toUrl(o.moduleName+u)+".js";t.load(a,r,function(n){var r=function(e){return i(f,e)};r.asModule=function(e,t){return i.asModule(e,f,t)},t.write(e,a,r,s)},s)}};if(d.env==="node"||!d.env&&typeof process!="undefined"&&process.versions&&!!process.versions.node&&!process.versions["node-webkit"])n=require.nodeRequire("fs"),t.get=function(e,t,r){try{var i=n.readFileSync(e,"utf8");i.indexOf("")===0&&(i=i.substring(1)),t(i)}catch(s){r&&r(s)}};else if(d.env==="xhr"||!d.env&&t.createXhr())t.get=function(e,n,r,i){var s=t.createXhr(),o;s.open("GET",e,!0);if(i)for(o in i)i.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),i[o]);d.onXhr&&d.onXhr(s,e),s.onreadystatechange=function(t){var i,o;s.readyState===4&&(i=s.status||0,i>399&&i<600?(o=new Error(e+" HTTP status: "+i),o.xhr=s,r&&r(o)):n(s.responseText),d.onXhrComplete&&d.onXhrComplete(s,e))},s.send(null)};else if(d.env==="rhino"||!d.env&&typeof Packages!="undefined"&&typeof java!="undefined")t.get=function(e,t){var n,r,i="utf-8",s=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),u=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),i)),a="";try{n=new java.lang.StringBuffer,r=u.readLine(),r&&r.length()&&r.charAt(0)===65279&&(r=r.substring(1)),r!==null&&n.append(r);while((r=u.readLine())!==null)n.append(o),n.append(r);a=String(n.toString())}finally{u.close()}t(a)};else if(d.env==="xpconnect"||!d.env&&typeof Components!="undefined"&&Components.classes&&Components.interfaces)r=Components.classes,i=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in r,t.get=function(e,t){var n,o,u,a={};s&&(e=e.replace(/\//g,"\\")),u=new FileUtils.File(e);try{n=r["@mozilla.org/network/file-input-stream;1"].createInstance(i.nsIFileInputStream),n.init(u,1,0,!1),o=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(i.nsIConverterInputStream),o.init(n,"utf-8",n.available(),i.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),o.readString(n.available(),a),o.close(),n.close(),t(a.value)}catch(f){throw new Error((u&&u.path||"")+": "+f)}};return t}),function(){var e=this,t=e._,n={},r=Array.prototype,i=Object.prototype,s=Function.prototype,o=r.push,u=r.slice,a=r.concat,f=i.toString,l=i.hasOwnProperty,c=r.forEach,h=r.map,p=r.reduce,d=r.reduceRight,v=r.filter,m=r.every,g=r.some,y=r.indexOf,b=r.lastIndexOf,w=Array.isArray,E=Object.keys,S=s.bind,x=function(e){if(e instanceof x)return e;if(!(this instanceof x))return new x(e);this._wrapped=e};typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=x),exports._=x):e._=x,x.VERSION="1.6.0";var T=x.each=x.forEach=function(e,t,r){if(e==null)return e;if(c&&e.forEach===c)e.forEach(t,r);else if(e.length===+e.length){for(var i=0,s=e.length;i2;e==null&&(e=[]);if(p&&e.reduce===p)return r&&(t=x.bind(t,r)),i?e.reduce(t,n):e.reduce(t);T(e,function(e,s,o){i?n=t.call(r,n,e,s,o):(n=e,i=!0)});if(!i)throw new TypeError(N);return n},x.reduceRight=x.foldr=function(e,t,n,r){var i=arguments.length>2;e==null&&(e=[]);if(d&&e.reduceRight===d)return r&&(t=x.bind(t,r)),i?e.reduceRight(t,n):e.reduceRight(t);var s=e.length;if(s!==+s){var o=x.keys(e);s=o.length}T(e,function(u,a,f){a=o?o[--s]:--s,i?n=t.call(r,n,e[a],a,f):(n=e[a],i=!0)});if(!i)throw new TypeError(N);return n},x.find=x.detect=function(e,t,n){var r;return C(e,function(e,i,s){if(t.call(n,e,i,s))return r=e,!0}),r},x.filter=x.select=function(e,t,n){var r=[];return e==null?r:v&&e.filter===v?e.filter(t,n):(T(e,function(e,i,s){t.call(n,e,i,s)&&r.push(e)}),r)},x.reject=function(e,t,n){return x.filter(e,function(e,r,i){return!t.call(n,e,r,i)},n)},x.every=x.all=function(e,t,r){t||(t=x.identity);var i=!0;return e==null?i:m&&e.every===m?e.every(t,r):(T(e,function(e,s,o){if(!(i=i&&t.call(r,e,s,o)))return n}),!!i)};var C=x.some=x.any=function(e,t,r){t||(t=x.identity);var i=!1;return e==null?i:g&&e.some===g?e.some(t,r):(T(e,function(e,s,o){if(i||(i=t.call(r,e,s,o)))return n}),!!i)};x.contains=x.include=function(e,t){return e==null?!1:y&&e.indexOf===y?e.indexOf(t)!=-1:C(e,function(e){return e===t})},x.invoke=function(e,t){var n=u.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){return(r?t:e[t]).apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matches(t))},x.findWhere=function(e,t){return x.find(e,x.matches(t))},x.max=function(e,t,n){if(!t&&x.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);var r=-Infinity,i=-Infinity;return T(e,function(e,s,o){var u=t?t.call(n,e,s,o):e;u>i&&(r=e,i=u)}),r},x.min=function(e,t,n){if(!t&&x.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);var r=Infinity,i=Infinity;return T(e,function(e,s,o){var u=t?t.call(n,e,s,o):e;ur||n===void 0)return 1;if(n>>1;n.call(r,e[u])=0;n--)t=[e[n].apply(this,t)];return t[0]}},x.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},x.keys=function(e){if(!x.isObject(e))return[];if(E)return E(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return t},x.values=function(e){var t=x.keys(e),n=t.length,r=new Array(n);for(var i=0;i":">",'"':""","'":"'"}};_.unescape=x.invert(_.escape);var D={escape:new RegExp("["+x.keys(_.escape).join("")+"]","g"),unescape:new RegExp("("+x.keys(_.unescape).join("|")+")","g")};x.each(["escape","unescape"],function(e){x[e]=function(t){return t==null?"":(""+t).replace(D[e],function(t){return _[e][t]})}}),x.result=function(e,t){if(e==null)return void 0;var n=e[t];return x.isFunction(n)?n.call(e):n},x.mixin=function(e){T(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return o.apply(e,arguments),F.call(this,n.apply(x,e))}})};var P=0;x.uniqueId=function(e){var t=++P+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var H=/(.)^/,B={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},j=/\\|'|\r|\n|\t|\u2028|\u2029/g;x.template=function(e,t,n){var r;n=x.defaults({},n,x.templateSettings);var i=new RegExp([(n.escape||H).source,(n.interpolate||H).source,(n.evaluate||H).source].join("|")+"|$","g"),s=0,o="__p+='";e.replace(i,function(t,n,r,i,u){return o+=e.slice(s,u).replace(j,function(e){return"\\"+B[e]}),n&&(o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),r&&(o+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),i&&(o+="';\n"+i+"\n__p+='"),s=u+t.length,t}),o+="';\n",n.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{r=new Function(n.variable||"obj","_",o)}catch(u){throw u.source=o,u}if(t)return r(t,x);var a=function(e){return r.call(this,e,x)};return a.source="function("+(n.variable||"obj")+"){\n"+o+"}",a},x.chain=function(e){return x(e).chain()};var F=function(e){return this._chain?x(e).chain():e};x.mixin(x),T(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),(e=="shift"||e=="splice")&&n.length===0&&delete n[0],F.call(this,n)}}),T(["concat","join","slice"],function(e){var t=r[e];x.prototype[e]=function(){return F.call(this,t.apply(this._wrapped,arguments))}}),x.extend(x.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),typeof define=="function"&&define.amd&&define("underscore",[],function(){return x})}.call(this),define("tpl",["text","underscore"],function(e,t){var n={},r="define('{pluginName}!{moduleName}', function () { return {source}; });\n";return{version:"0.0.2",load:function(r,i,s,o){o.tpl&&o.tpl.templateSettings&&(t.templateSettings=o.tpl.templateSettings);if(n[r])s(n[r]);else{var u=o.tpl&&o.tpl.extension||".html",a=o.tpl&&o.tpl.path||"";e.load(a+r+u,i,function(e){n[r]=t.template(e),s(n[r])},o)}},write:function(e,t,i){var s=n[t],o=s&&s.source;o&&i.asModule(e+"!"+t,r.replace("{pluginName}",e).replace("{moduleName}",t).replace("{source}",o))}}}),define("tpl!action",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
\n '+((__t=time)==null?"":__t)+" **"+((__t=username)==null?"":__t)+' \n '+((__t=message)==null?"":__t)+"\n
\n";return __p}}),define("tpl!add_contact_dropdown",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='\n';return __p}}),define("tpl!add_contact_form",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
  • \n
    \n \n \n
    \n
  • \n";return __p}}),define("tpl!change_status_message",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
    \n \n \n
    \n";return __p}}),define("tpl!chat_status",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='\n';return __p}}),define("tpl!chatarea",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
    \n
    \n
    \n ',show_toolbar&&(__p+='\n
      \n '),__p+='\n \n";return __p}}),define("tpl!form_username",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+="",label&&(__p+="\n\n"),__p+='\n
      \n \n
      \n";return __p}}),define("tpl!group_header",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+=''+((__t=label_group)==null?"":__t)+"\n";return __p}}),define("tpl!info",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      '+((__t=message)==null?"":__t)+"
      \n";return __p}}),define("tpl!login_panel",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='\n \n \n \n \n \n \n
      \n';return __p}}),define("tpl!login_tab",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
    • '+((__t=label_sign_in)==null?"":__t)+"
    • \n";return __p}}),define("tpl!message",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      \n '+((__t=time)==null?"":__t)+" "+((__t=username)==null?"":__t)+': \n '+((__t=message)==null?"":__t)+"\n
      \n";return __p}}),define("tpl!new_day",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='\n";return __p}}),define("tpl!occupant",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
    • \n";return __p}}),define("tpl!pending_contact",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+=''+((__t=fullname)==null?"":__t)+' \n';return __p}}),define("tpl!pending_contacts",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      '+((__t=label_pending_contacts)==null?"":__t)+"
      \n";return __p}}),define("tpl!register_panel",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      \n \n \n \n

      '+((__t=help_providers)==null?"":__t)+' '+((__t=help_providers_link)==null?"":__t)+'.

      \n \n
      \n';return __p}}),define("tpl!register_tab",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
    • '+((__t=label_register)==null?"":__t)+"
    • \n";return __p}}),define("tpl!registration_form",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='

      '+((__t=domain)==null?"":__t)+"

      \n\n xmpp.net score\n\n

      "+((__t=title)==null?"":__t)+'

      \n

      '+((__t=instructions)==null?"":__t)+"

      \n";return __p}}),define("tpl!registration_request",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      '+((__t=label_contact_requests)==null?"":__t)+"
      \n";return __p}}),define("tpl!room_description",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='\n
      \n

      '+((__t=label_desc)==null?"":__t)+" "+((__t=desc)==null?"":__t)+'

      \n

      '+((__t=label_occ)==null?"":__t)+" "+((__t=occ)==null?"":__t)+'

      \n

      '+((__t=label_features)==null?"":__t)+"\n

        \n ",passwordprotected&&(__p+='\n
      • '+((__t=label_requires_auth)==null?"":__t)+"
      • \n "),__p+="\n ",hidden&&(__p+='\n
      • '+((__t=label_hidden)==null?"":__t)+"
      • \n "),__p+="\n ",membersonly&&(__p+='\n
      • '+((__t=label_requires_invite)==null?"":__t)+"
      • \n "),__p+="\n ",moderated&&(__p+='\n
      • '+((__t=label_moderated)==null?"":__t)+"
      • \n "),__p+="\n ",nonanonymous&&(__p+='\n
      • '+((__t=label_non_anon)==null?"":__t)+"
      • \n "),__p+="\n ",open&&(__p+='\n
      • '+((__t=label_open_room)==null?"":__t)+"
      • \n "),__p+="\n ",persistent&&(__p+='\n
      • '+((__t=label_permanent_room)==null?"":__t)+"
      • \n "),__p+="\n ",publicroom&&(__p+='\n
      • '+((__t=label_public)==null?"":__t)+"
      • \n "),__p+="\n ",semianonymous&&(__p+='\n
      • '+((__t=label_semi_anon)==null?"":__t)+"
      • \n "),__p+="\n ",temporary&&(__p+='\n
      • '+((__t=label_temp_room)==null?"":__t)+"
      • \n "),__p+="\n ",unmoderated&&(__p+='\n
      • '+((__t=label_unmoderated)==null?"":__t)+"
      • \n "),__p+="\n
      \n

      \n
      \n";return __p}}),define("tpl!room_item",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      \n'+((__t=name)==null?"":__t)+'\n \n
      \n';return __p}}),define("tpl!room_panel",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
      \n \n \n \n \n \n
      \n
      \n';return __p}}),define("tpl!roster",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='\n\n";return __p}}),define("tpl!roster_item",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+=''+((__t=fullname)==null?"":__t)+'\n\n';return __p}}),define("tpl!search_contact",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='
    • \n
      \n \n \n
      \n
    • \n";return __p}}),define("tpl!select_option",[],function(){return function(obj){var __t,__p="",__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,"")};with(obj||{})__p+='