Просмотр исходного кода

Text fixes based on feedback from translator

JC Brand 7 лет назад
Родитель
Сommit
fa7ca46d12
4 измененных файлов с 7 добавлено и 7 удалено
  1. 2 2
      src/converse-chatview.js
  2. 3 3
      src/converse-muc.js
  3. 1 1
      src/converse-notification.js
  4. 1 1
      src/converse-register.js

+ 2 - 2
src/converse-chatview.js

@@ -523,8 +523,8 @@
                     if (text.length > 8000) {
                         text = text.substring(0, 10) + '...';
                         this.showStatusNotification(
-                            __("A very large message has been received."+
-                               "This might be due to an attack meant to degrade the chat performance."+
+                            __("A very large message has been received. "+
+                               "This might be due to an attack meant to degrade the chat performance. "+
                                "Output has been shortened."),
                             true, true);
                     }

+ 3 - 3
src/converse-muc.js

@@ -1737,10 +1737,10 @@
                     if (notification.disconnected) {
                         this.showDisconnectMessage(notification.disconnection_message);
                         if (notification.actor) {
-                            this.showDisconnectMessage(__('This action was done by %1$s.', notification.actor));
+                            this.showDisconnectMessage(__('This action was done by %1$s', notification.actor));
                         }
                         if (notification.reason) {
-                            this.showDisconnectMessage(__('The reason given is: "%1$s".', notification.reason));
+                            this.showDisconnectMessage(__('The reason given is: "%1$s"', notification.reason));
                         }
                         this.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
                         return;
@@ -1749,7 +1749,7 @@
                         this.$content.append(tpl_info({'message': message}));
                     });
                     if (notification.reason) {
-                        this.showStatusNotification(__('The reason given is: "%1$s "', notification.reason), true);
+                        this.showStatusNotification(__('The reason given is: "%1$s"', notification.reason), true);
                     }
                     if (notification.messages.length) {
                         this.scrollDown();

+ 1 - 1
src/converse-notification.js

@@ -142,7 +142,7 @@
                         return;
                     }
                 } else if (!_.includes(from_jid, '@')) {
-                    // XXX: workaround for Prosody which doesn't give type "headline"
+                    // workaround for Prosody which doesn't give type "headline"
                     title = __("Notification from %1$s", from_jid);
                 } else if (message.getAttribute('type') === 'groupchat') {
                     title = __("%1$s says", Strophe.getResourceFromJid(full_from_jid));

+ 1 - 1
src/converse-register.js

@@ -256,7 +256,7 @@
                     if (stanza.getAttribute("type") === "error") {
                         _converse.connection._changeConnectStatus(
                             Strophe.Status.REGIFAIL,
-                            __('Something went wrong while establishing a connection with "%1$s".'+
+                            __('Something went wrong while establishing a connection with "%1$s". '+
                                'Are you sure it exists?', this.domain)
                         );
                         return false;