增加srt翻译支持
This commit is contained in:
20
docutranslate/template/srt.html
Normal file
20
docutranslate/template/srt.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ tittle }}</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% for sub in subtitles %}
|
||||
<p>
|
||||
<b>{{ sub.index }}</b><br>
|
||||
{{ sub.start }} --> {{ sub.end }}<br>
|
||||
{{ sub.content | safe }}
|
||||
</p>
|
||||
{% else %}
|
||||
<p>没有字幕内容可显示。</p>
|
||||
{% endfor %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user