HTML 檔案#

在 4.1 版新加入.

可翻譯內容從HTML文件中提取,並為翻譯提供。

備註

Unlike most other formats, the changes in the translation files will not be imported to Weblate because it can not be done reliably. The source of truth for the translations is Weblate not the translated file.

也參考

HTML

範例檔案:

<html>
<body>
<p>Ahoj světe!</p>

<p>Orangutan has five bananas.</p>

<p>Try Weblate at <a href="https://demo.weblate.org/">weblate.org</a>!</p>

<p>Thank you for using Weblate.</p>
</body>

Weblate 設定組態#

典型的 Weblate 組件組態

檔案遮罩

path/*.html

單語的基底語言檔

path/en.html

新翻譯的模板

path/en.html

檔案格式

HTML file