Răsfoiți Sursa

Remove order constraint in chatstate message.

Emmanuel Gil Peyrot 7 ani în urmă
părinte
comite
3fcf9acfcc
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      src/converse-message-view.js

+ 3 - 3
src/converse-message-view.js

@@ -208,16 +208,16 @@
                         if (this.model.get('sender') === 'me') {
                         if (this.model.get('sender') === 'me') {
                             text = __('Typing from another device');
                             text = __('Typing from another device');
                         } else {
                         } else {
-                            text = name +' '+__('is typing');
+                            text = __('%1$s is typing', name);
                         }
                         }
                     } else if (this.model.get('chat_state') === _converse.PAUSED) {
                     } else if (this.model.get('chat_state') === _converse.PAUSED) {
                         if (this.model.get('sender') === 'me') {
                         if (this.model.get('sender') === 'me') {
                             text = __('Stopped typing on the other device');
                             text = __('Stopped typing on the other device');
                         } else {
                         } else {
-                            text = name +' '+__('has stopped typing');
+                            text = __('%1$s has stopped typing', name);
                         }
                         }
                     } else if (this.model.get('chat_state') === _converse.GONE) {
                     } else if (this.model.get('chat_state') === _converse.GONE) {
-                        text = name +' '+__('has gone away');
+                        text = __('%1$s has gone away', name);
                     } else {
                     } else {
                         return;
                         return;
                     }
                     }