Flat XML 檔案

也參考

Flat XML

在 5.13 版的變更: The tag and attribute names can now be customized using 檔案格式參數.

Example of flat XML files:

<?xml version='1.0' encoding='UTF-8'?>
<root>
  <str key="hello_world">Hello World!</str>
  <str key="resource_key">Translated value.</str>
</root>
<?xml version='1.0' encoding='UTF-8'?>
<dictionary>
  <entry name="hello_world">Hello World!</entry>
  <entry name="resource_key">Translated value.</entry>
</dictionary>
支援的功能

副檔名

.xml

語言能力

單語言

支援複數

No

支援描述

No

支援解釋

No

Supports context

No

Supports location

No

Supports flags

Yes

API 識別碼

flatxml

支援唯讀字串

No

Weblate 配置

典型的 Weblate 組件配置

檔案遮罩

locale/*.xml

單語言基底語言檔案

locale/en.xml

新翻譯的範本

空白

檔案格式

Flat XML file