documentation
documentation copied to clipboard
Update information about localizations
Environment
- Documentation version: 7.2
- Part of the documentation: Manual
- Existing page: 3.2.10.1. Message Packs, Appendix B: Application Properties
Description of the enhancement
See Cuba #2524
Since Cuba 7.2 locales could include script part, e.g. sr-Latn. But locales with script should be defined using IETF BCP 47 language tag and language suffix of associated message pack should also be that language tag.
Locales with country and variant also supported, e.g. en_US (language + country, was supported previously) and ja_JP_JP (language + country + variant, was not supported previously, but it was supposed to be).
I suppose it should also be explained for cuba.availableLocales app property ({language_code} part).
Messages are retrieved from the packs according to the following priority:
- Check message packs with full name (e.g.
messages_sr-Latn.propertiesforsr-Latn,messages_ja_JP_JP.propertiesforja_JP_JP) - If not found previously, check language message packs (e.g.
messages_sr.propertiesforsr-Latn,messages_ja.propertiesforja_JP_JP) - rules explained in "Message Packs" section starts from that step.