AsciiDoc files¶
Добавлено в версии 5.16.1.
Примечание
Поддержка этого формата находится в стадии разработки. Некоторые функции могут быть ещё недоступны, и поведение может меняться в зависимости от выпуска. Отзывы о тестировании приветствуются.
The translatable content is extracted from the AsciiDoc files and offered for the translation.
Примечание
В отличие от большинства других форматов, изменения в файлах перевода не будут импортированы в Weblate, поскольку это невозможно сделать надёжно. Источником достоверности переводов является Weblate, а не переведённый файл.
См. также
Пример файла:
== Ahoj světe!
Orangutan has five bananas.
Try Weblate at https://demo.weblate.org/[weblate.org]!
_Thank you for using Weblate._
Настройка Weblate¶
Typical Weblate Настройки компонента |
|
|---|---|
Маска файла |
|
Одноязычный базовый файл |
|
Шаблон для новых переводов |
|
Формат файла |
AsciiDoc file |
Параметры формата файла |
|
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 AsciiDoc tables, where reordering rows changes the context and can lead to translation loss.
To consolidate identical strings into a single translation unit, enable Deduplicate identical strings in the Параметры формата файла.
Примечание
Enabling this option disables line-based context for the merged units, ensuring that translations remain stable even if rows or sections are moved within the document.