Browse Source

SONAR-7878 Update docs about l10n

tags/8.0
Siegfried Ehret 4 years ago
parent
commit
a746e93757
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      server/sonar-docs/src/pages/extend/i18n.md

+ 3
- 0
server/sonar-docs/src/pages/extend/i18n.md View File

@@ -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**

Loading…
Cancel
Save