文本文件¶
Added in version 4.6.
可翻译的内容从纯文本文件中提取出来并提供给翻译。每个段落都被翻译成一个单独的字符串。
这种格式有几种风格:
纯文本文件
DokuWiki 文本文件
MediaWiki 文本文件
备注
和其他多数格式不同,翻译文件的更改不会被导入到 Weblate,因为无法可靠地完成这一任务。翻译真实性源自 Weblate 而不是已翻译的文件。
示例文件:
Hello, world!
Orangutan has %d banana.
Try Weblate at http://demo.weblate.org/!
Thank you for using Weblate.
Weblate 配置¶
典型的 Weblate 部件配置 |
|
|---|---|
文件掩码 |
|
单语言译文模版语言文件 |
|
新语种的翻译模版 |
|
文件格式 |
纯文本文件 |
文件格式参数 |
|
Handling duplicate strings¶
By default, Weblate treats each paragraph as a separate translation unit to provide line-based context. This can be problematic in text files where paragraphs are frequently reordered, as it changes the context and can lead to translation loss.
To consolidate identical strings into a single translation unit, enable Deduplicate identical strings in the 文件格式参数.
备注
This parameter is shared with DokuWiki and MediaWiki formats. Enabling this option disables line-based context for the merged units.