Chapter 16. Repository hooks Red Hat Process Automation Manager 7.2

您所在的位置:网站首页 git-hooks Chapter 16. Repository hooks Red Hat Process Automation Manager 7.2

Chapter 16. Repository hooks Red Hat Process Automation Manager 7.2

#Chapter 16. Repository hooks Red Hat Process Automation Manager 7.2 | 来源: 网络整理| 查看: 265

16.3.1. Internationalize git hook notifications

You can internationalize the notification messages by placing different *.properties files in the directory specified for the appformer.git.hooks.bundle system property. The names of the localized files have the format _.properties. These files must contain the same entries as in the original file.

For example, you have specified the system property to point to Messages.properties. Now you can create localized message properties files like Messages_en.properties for English, Messages_fr.properties for French, Messages_it.properties for Italian, and so on. The notification service will choose the one based on the user language and if there are no available translations for a language then it will use the default ones specified in the Messages.properties file.

Important

The notification service only supports the ISO 8859-1 (LATIN 1) character set in the *.properties file. If you want to use extended characters, please escape them using their Unicode code.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3