HTML-bestanden

Added in version 4.1.

De vertaalbare inhoud wordt uitgenomen uit de HTML-bestanden en aangeboden voor vertalen.

Notitie

Anders dan voor de meeste indelingen zullen de wijzigingen in de vertaalbestanden niet worden geïmporteerd in Weblate, omdat dat het niet betrouwbaar genoeg kan worden gedaan. De waarheid voor de bron van de vertalingen is Weblate, niet het vertaalde bestand.

Zie ook

HTML

Voorbeeld bestand:

<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-configuratie

Typisch Weblate Configuratie onderdeel

Bestandsmasker

path/*.html

Enkeltalig basistaalbestand

path/en.html

Sjabloon voor nieuwe vertalingen

path/en.html

Bestandsformaat

HTML-bestand

Parameters bestandsindeling

html_merge_duplicates=True

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 Parameters bestandsindeling.

Notitie

Enabling this option disables line-based context for the merged units, ensuring that translations remain stable even if elements are moved within the document.