Ver código fonte

Allow translation of “Uploading file:”.

Emmanuel Gil Peyrot 6 anos atrás
pai
commit
73e2d44d22
2 arquivos alterados com 4 adições e 2 exclusões
  1. 3 1
      dist/converse.js
  2. 1 1
      src/templates/file_progress.html

+ 3 - 1
dist/converse.js

@@ -101772,7 +101772,9 @@ __p += '<!-- src/templates/file_progress.html -->\n<div class="message chat-msg"
 __e(o.time) +
 __e(o.time) +
 '" data-msgid="' +
 '" data-msgid="' +
 __e(o.msgid) +
 __e(o.msgid) +
-'">\n    <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n    <div class="chat-msg__content">\n        <span class="chat-msg__text">Uploading file: <strong>' +
+'">\n    <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n    <div class="chat-msg__content">\n        <span class="chat-msg__text">' +
+__e(o.__('Uploading file:')) +
+' <strong>' +
 __e(o.filename) +
 __e(o.filename) +
 '</strong>, ' +
 '</strong>, ' +
 __e(o.filesize) +
 __e(o.filesize) +

+ 1 - 1
src/templates/file_progress.html

@@ -1,7 +1,7 @@
 <div class="message chat-msg" data-isodate="{{{o.time}}}" data-msgid="{{{o.msgid}}}">
 <div class="message chat-msg" data-isodate="{{{o.time}}}" data-msgid="{{{o.msgid}}}">
     <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>
     <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>
     <div class="chat-msg__content">
     <div class="chat-msg__content">
-        <span class="chat-msg__text">Uploading file: <strong>{{{o.filename}}}</strong>, {{{o.filesize}}}</span>
+        <span class="chat-msg__text">{{{o.__('Uploading file:')}}} <strong>{{{o.filename}}}</strong>, {{{o.filesize}}}</span>
         <progress value="{{{o.progress}}}"/>
         <progress value="{{{o.progress}}}"/>
     </div>
     </div>
 </div>
 </div>