AsciiDoc files

Added in version 5.16.1.

备注

我们正在开发对这种格式的支持。某些功能也许上不可用,且不同版本间的行为也不一样。欢迎从测试得来的反馈。

The translatable content is extracted from the AsciiDoc files and offered for the translation.

备注

和其他多数格式不同,翻译文件的更改不会被导入到 Weblate,因为无法可靠地完成这一任务。翻译真实性源自 Weblate 而不是已翻译的文件。

参见

AsciiDoc

示例文件:

== Ahoj světe!

Orangutan has five bananas.

Try Weblate at https://demo.weblate.org/[weblate.org]!

_Thank you for using Weblate._

Weblate 配置

典型的 Weblate 部件配置

文件掩码

path/*.adoc

单语言译文模版语言文件

path/en.adoc

新语种的翻译模版

path/en.adoc

文件格式

AsciiDoc file

文件格式参数

merge_duplicates=True

处理重复的字符串

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.

整合相同字符串到单一翻译单元,在 文件格式参数 中启用 Deduplicate identical strings.

备注

启用此选项为已合并单元禁用基于行的上下文,确保即使行或部分在文档内移动译文也保持稳定。