瀏覽代碼

[enh] make some torrent strings translatable

Thomas Pointhuber 10 年之前
父節點
當前提交
08f820d74c
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      searx/templates/oscar/result_templates/torrent.html

+ 2
- 2
searx/templates/oscar/result_templates/torrent.html 查看文件

@@ -15,8 +15,8 @@
15 15
     </span>{% endif %}
16 16
 {% if result.files %}</br>{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}</p>
17 17
 <p class="result-content">
18
-    <a href="{{ result.magnetlink }}" class="magnetlink">{{ icon('magnet') }} magnet link</a>
19
-    {% if result.torrentfile %}</br><a href="{{ result.torrentfile }}" class="torrentfile">{{ icon('download-alt') }} torrent file</a>{% endif %}
18
+    <a href="{{ result.magnetlink }}" class="magnetlink">{{ icon('magnet') }} {{ _('magnet link') }}</a>
19
+    {% if result.torrentfile %}</br><a href="{{ result.torrentfile }}" class="torrentfile">{{ icon('download-alt') }} {{ _('torrent file') }}</a>{% endif %}
20 20
 </p>
21 21
 
22 22
 {% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %}