Sonar display violation message 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.
精彩评论