HTML dosyaları¶
Added in version 4.1.
Çevrilebilir içerik HTML dosyalarından ayıklanır ve çevrilmek üzere sunulur.
Not
Diğer biçimlerin çoğunun aksine, çeviri dosyalarındaki değişiklikler güvenilir bir şekilde yapılamadığından Weblate üzerine aktarılmayacak. Çevirilerin doğruluğunun kaynağı çevrilmiş dosya değil Weblate olur.
Ayrıca bakınız
Örnek dosya:
<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>
</html>
Weblate yapılandırması¶
Tipik Weblate Bileşen yapılandırması |
|
|---|---|
Dosya maskesi |
|
Tek dilli temel dil dosyası |
|
Yeni çeviriler kalıbı |
|
Dosya biçimi |
HTML dosyası |
Dosya biçimi parametreleri |
|
Handling duplicate strings¶
By default, Weblate treats each occurrence of a string as a separate translation unit to provide line-based context. This can be problematic in HTML files, where moving elements changes the context and can lead to translation loss.
To consolidate identical strings into a single translation unit, enable Deduplicate identical strings in the Dosya biçimi parametreleri.
Not
Enabling this option disables line-based context for the merged units, ensuring that translations remain stable even if elements are moved within the document.