浏览代码

SONAR-7878 Update docs about l10n

tags/8.0
Siegfried Ehret 5 年前
父节点
当前提交
a746e93757
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      server/sonar-docs/src/pages/extend/i18n.md

+ 3
- 0
server/sonar-docs/src/pages/extend/i18n.md 查看文件

@@ -26,6 +26,9 @@ Localized messages are stored in properties files:
* The names of these files must follow the convention `<key of the plugin to translate>_<language>.properties`, for example `widgetlabs_fr.properties` or `core_fr.properties` for the core bundle. See `sonar-packaging-maven-plugin` for details on plugin key derivation.
* Messages can accept arguments. Such entries would look like:
* `myplugin.foo=This is a message with 2 params: the first "{0}" and the second "{1}".`
* Messages can accept pluralization. Such entries would look like:
* `myplugin.foo={x, number} {x, plural, one {thing} other {things}}`
* Learn more about this syntax [here](https://formatjs.io/guides/message-syntax/#plural-format).
[[warning]]
| **UTF-8 encoding**

正在加载...
取消
保存