Jelajahi Sumber

Add missing closing quote in label_download.

Emmanuel Gil Peyrot 7 tahun lalu
induk
melakukan
d518596a2e
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      spec/messages.js
  2. 1 1
      src/utils/core.js

+ 1 - 1
spec/messages.js

@@ -1693,7 +1693,7 @@
                     var media = view.el.querySelector('.chat-msg .chat-msg-media');
                     expect(media.innerHTML.replace(/(\r\n|\n|\r)/gm, "")).toEqual(
                         '<!-- src/templates/file.html -->'+
-                        '<a target="_blank" rel="noopener" href="http://localhost/funny.pdf">Download: "funny.pdf</a>');
+                        '<a target="_blank" rel="noopener" href="http://localhost/funny.pdf">Download "funny.pdf"</a>');
                     done();
                 });
             }));

+ 1 - 1
src/utils/core.js

@@ -267,7 +267,7 @@
         }
         return tpl_file({
             'url': url,
-            'label_download': __('Download: "%1$s', filename)
+            'label_download': __('Download "%1$s"', filename)
         })
     };