<a id="flatxml"></a>

# フラット化した XML ファイル

<a id="index-0"></a>

#### SEE ALSO
[Flat XML](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/flatxml.html)

#### Versionchanged
バージョン 5.13 で変更: タグ名と属性名は、[ファイル形式パラメータ](https://docs.weblate.org/ja/latest/formats.md#file-format-params) を使用してカスタマイズできるようになりました。

フラット形式の XML ファイルの例:

```xml
<?xml version='1.0' encoding='UTF-8'?>
<root>
  <str key="hello_world">Hello World!</str>
  <str key="resource_key">Translated value.</str>
</root>
```

```xml
<?xml version='1.0' encoding='UTF-8'?>
<dictionary>
  <entry name="hello_world">Hello World!</entry>
  <entry name="resource_key">Translated value.</entry>
</dictionary>
```

<!-- AUTOGENERATED START: format-features flatxml -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### 対応機能

| File extensions                                                                                      | `.xml`      |
|------------------------------------------------------------------------------------------------------|-------------|
| Linguality [ⓘ](https://docs.weblate.org/ja/latest/formats.md#bimono)                                   | Monolingual |
| Supports plural [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-plurals)                      | `No`        |
| Supports descriptions [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-description)            | `No`        |
| Supports explanation [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-explanation)             | `No`        |
| Supports context [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-context)                     | `No`        |
| Supports location [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-location)                   | `No`        |
| Supports flags [ⓘ](https://docs.weblate.org/ja/latest/formats.md#format-flags)                         | `Yes`       |
| API identifier                                                                                       | `flatxml`   |
| Supports read-only strings [ⓘ](https://docs.weblate.org/ja/latest/formats.md#read-only-strings)        | `No`        |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/ja/latest/formats.md#obsolete-strings) | `No`        |
<!-- AUTOGENERATED END: format-features flatxml -->

## Weblate の設定

|                      | 典型的な Weblate [コンポーネント構成](https://docs.weblate.org/ja/latest/admin/projects.md#component)   |
|----------------------|-----------------------------------------------------------------------------------|
| ファイル マスク             | `locale/*.xml`                                                                    |
| モノリンガル用の、基礎となる言語ファイル | `locale/en.xml`                                                                   |
| 新しい翻訳のテンプレート         | Empty（空）                                                                          |
| ファイル形式               | Flat化した XML ファイル                                                                  |
