开发者

Sonar display violation message in french

开发者 https://www.devze.com 2023-03-12 14:48 出处:网络
I recently install sonar server and some plug in and i have a strange language issue when sonar displays violation messages, it displays messages in French.

I recently install sonar server and some plug in and i have a strange language issue when sonar displays violation messages, it displays messages in French.

How can i force sonar to display message in Engli开发者_JS百科sh?


Have you tried looking at the settings on the sonar admin page?

Worse case you could set '-Duser.region=GB -Duser.language=EN' on the script that runs the sonar java process.

Sounds like an odd one


As emeraldjava said, some message are localized according to the settings of the JVM which ran the analysis.

If you are using Jenkins you will find the solution here.

If, like me, you are using the maven plugin (mvn sonar:sonar), you can define the environment variable MAVEN_OPTS as -Duser.region=US -Duser.language=en...

For example, the message '31' devrait être défini comme une constante became '31' is a magic number after I set the variable and ran an other analysis.

0

精彩评论

暂无评论...
验证码 换一张
取 消