<a id="properties"></a>

<a id="javaprop"></a>

# Java 属性

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

Java 原生翻译格式。

Java 属性通常用作单语言翻译。

Weblate 支持这个格式的 ISO-8859-1、UTF-8 和 UTF-16 变体。它们所有都支持存储 Unicode 字符，只是编码不同。在 ISO-8859-1 中，使用了 Unicode 转义序列（例如 `zkou\u0161ka`），所有其他编码字符直接或者在 UTF-8 中或者在 UTF-16 中。

#### NOTE
加载转义序列也在 UTF-8 模式中工作，因此请小心选择正确的编码组，与您应用的需要匹配。

#### SEE ALSO
* [维基百科上的 Java 属性](https://en.wikipedia.org/wiki/.properties)
* [Mozilla and Java properties files](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/properties.html)
* [draggable/i18n lang 文件](https://docs.weblate.org/zh-cn/latest/formats/mi18n.md#mi18n-lang)
* [GWT 属性](https://docs.weblate.org/zh-cn/latest/formats/gwt.md#gwt)
* [更新目标语言文件](https://docs.weblate.org/zh-cn/latest/devel/integration.md#updating-target-files)
* [格式化 Java 属性文件](https://docs.weblate.org/zh-cn/latest/admin/addons.md#addon-weblate-properties-sort)
* [清理翻译文件](https://docs.weblate.org/zh-cn/latest/admin/addons.md#addon-weblate-cleanup-generic)

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

#### 支持的功能

| 文件扩展名                                                                       | `.properties`             |
|-----------------------------------------------------------------------------|---------------------------|
| Linguality [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#bimono)          | 单语和双语                     |
| 支持复数 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-plurals)        | `No`                      |
| 支持描述 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-description)    | `Yes`                     |
| 支持解释 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-explanation)    | `No`                      |
| 支持上下文 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-context)       | `No`                      |
| 支持位置 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-location)       | `No`                      |
| 支持标记 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#format-flags)          | `No`                      |
| API 标识符                                                                     | `properties`              |
| 支持只读字符串 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#read-only-strings)  | `No`                      |
| 支持删除过时字符串 [ⓘ](https://docs.weblate.org/zh-cn/latest/formats.md#obsolete-strings) | `No`                      |
| 检查此格式添加的标记 [ⓘ](https://docs.weblate.org/zh-cn/latest/admin/checks.md#custom-checks)   | `auto-java-messageformat` |
<!-- AUTOGENERATED END: format-features properties -->

## Weblate 配置

|             | 典型的 Weblate [部件配置](https://docs.weblate.org/zh-cn/latest/admin/projects.md#component)   |
|-------------|-----------------------------------------------------------------------------|
| 文件掩码        | `src/app/Bundle_*.properties`                                               |
| 单语言译文模版语言文件 | `src/app/Bundle.properties`                                                 |
| 新语种的翻译模版    | 空                                                                           |
| 文件格式        | Java 属性                                                                     |
| 文件编码        | ISO-8859-1                                                                  |
