テキスト ファイル

Added in version 4.6.

プレーン テキスト ファイルから翻訳するコンテンツを抽出し、翻訳のために使用します。各段落は、個別の文字列として翻訳します。

ファイル形式の種類:

  • プレーン テキスト ファイル

  • DokuWiki テキスト ファイル

  • MediaWiki テキスト ファイル

  • Markdown ファイル

注釈

他の多くのフォーマットとは異なり、翻訳ファイルの変更は確実に Weblate にインポートされない点に注意してください。翻訳の正確な情報源は翻訳ファイルではなく Weblate です。

ファイルの例:

Hello, world!

Orangutan has %d banana.

Try Weblate at http://demo.weblate.org/!

Thank you for using Weblate.

Weblate の設定

典型的な Weblate コンポーネント構成

ファイル マスク

path/*.txt

モノリンガル用の、基礎となる言語ファイル

path/en.txt

新しい翻訳のテンプレート

path/en.txt

ファイル形式

プレーン テキスト ファイル

ファイル形式パラメータ

txt_merge_duplicates=True

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.