Jenkins change language intermitentily

588 views
Skip to first unread message

Eduardo Dias

unread,
Jun 12, 2014, 10:52:10 AM6/12/14
to jenkinsci-users, cassio...@gmail.com
Hi All,

we are experiencing a weird Jenkins behavior, without any change in Jenkins configuration, the language changes from English to Portuguese.The Jenkins is configured to use English.
To set the language back to English we just open the Jenkins configuration and save without change nothing. The users that has admin access use English browser, but has some viewers that can be using Portuguese browsers, we have a team split in US and Brazil.

Has anyone that has experienced this behavior before?

Thanks in advance.

Regards,

Eduardo

Daniel Beck

unread,
Jun 12, 2014, 3:55:44 PM6/12/14
to jenkins...@googlegroups.com
Please be more specific what you mean by 'Jenkins is configured to use English'.

By default, Jenkins tries to return responses in the language preferred by the user (Accept-Language header).

Use Locale Plugin to have Jenkins ignore your users' preferences.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Eduardo Dias

unread,
Jun 13, 2014, 1:34:25 PM6/13/14
to jenkinsci-users
we are using locale plugin but the language changes.

$ ps -ef | grep jenkins
jenkins    850     1  0 Apr05 ?        00:00:00 /usr/bin/daemon --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xms512m -Xmx2048m -XX:MaxPermSize=2048m -Duser.language=en -Duser.country=US -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1
jenkins    851   850  6 Apr08 ?        4-07:24:47 /usr/bin/java -Xms512m -Xmx2048m -XX:MaxPermSize=2048m -Duser.language=en -Duser.country=US -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1

Imagem inline 1
--

Atenciosamente,

Eduardo

Christopher Orr

unread,
Jun 17, 2014, 7:30:30 PM6/17/14
to jenkins...@googlegroups.com
It seems that the "Default Language" field could do with some (better)
documentation.

You could try entering "en" or "en_US" instead of "ENGLISH" in the field
you mentioned and see if that improves things, as this value should be
compatible with the Java Locale class. Not having read the Java source,
but perhaps entering "ENGLISH" causes some indeterminate behaviour
somewhere along the line...

Regards,
Chris


On 06/13/2014 07:34 PM, Eduardo Dias wrote:
> we are using locale plugin but the language changes.
>
> $ ps -ef | grep jenkins
> jenkins 850 1 0 Apr05 ? 00:00:00 /usr/bin/daemon
> --name=jenkins --inherit --env=JENKINS_HOME=/var/lib/jenkins
> --output=/var/log/jenkins/jenkins.log
> --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -Xms512m
> -Xmx2048m -XX:MaxPermSize=2048m *-Duser.language=en -Duser.country=US*
> -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war
> --httpPort=8080 --ajp13Port=-1
> jenkins 851 850 6 Apr08 ? 4-07:24:47 /usr/bin/java -Xms512m
> -Xmx2048m -XX:MaxPermSize=2048m -Duser.language=en -Duser.country=US
> -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war
> --httpPort=8080 --ajp13Port=-1
>
> Imagem inline 1
>
>
> 2014-06-12 16:56 GMT-03:00 Daniel Beck <m...@beckweb.net
> <mailto:m...@beckweb.net>>:
>
> Please be more specific what you mean by 'Jenkins is configured to
> use English'.
>
> By default, Jenkins tries to return responses in the language
> preferred by the user (Accept-Language header).
>
> Use Locale Plugin to have Jenkins ignore your users' preferences.
>
> On 12.06.2014, at 16:52, Eduardo Dias <eduard...@gmail.com
> <mailto:eduard...@gmail.com>> wrote:
>
> > Hi All,
> >
> > we are experiencing a weird Jenkins behavior, without any change
> in Jenkins configuration, the language changes from English to
> Portuguese.The Jenkins is configured to use English.
> > To set the language back to English we just open the Jenkins
> configuration and save without change nothing. The users that has
> admin access use English browser, but has some viewers that can be
> using Portuguese browsers, we have a team split in US and Brazil.
> >
> > Has anyone that has experienced this behavior before?
> >
> > Thanks in advance.
> >
> > Regards,
> >
> > Eduardo
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email tojenkinsci-us...@googlegroups.com
> <mailto:jenkinsci-users%2Bunsu...@googlegroups.com>.
> > For more options, visithttps://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-users%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
>
> Atenciosamente,
>
> Eduardo
>
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-use...@googlegroups.com
> <mailto:jenkinsci-use...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages