# User interface displays in English

**URL:** <https://community.jenkins.io/t/user-interface-displays-in-english/22643>\
**Category:** Using Jenkins\
**Created:** [October 30, 2024, 7:56am UTC](https://community.jenkins.io/t/user-interface-displays-in-english/22643 "2024-10-30T07:56:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nafmo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/nafmo/32/11219_2.png) [@nafmo](https://community.jenkins.io/u/nafmo)\
**Post date:** [October 30, 2024, 7:56am UTC](https://community.jenkins.io/t/user-interface-displays-in-english/22643/1 "2024-10-30T07:56:27Z")

</div>

Hi!  
I am having problems getting the Jenkins UI to show up in anything but English. My browser correctly outputs an Accept-Language string:

```auto
Accept-Language: sv,nb;q=0.9,en-US;q=0.8,en;q=0.7

```

but the user interface still displays in English.

If I request the same document with my phone browser, the UI shows in Swedish, so I know it is capable. The mobile version sends

```auto
Accept-Language: sv-SE,sv;q=0.9,nb-NO;q=0.8,nb;q=0.7,en-GB;q=0.6,en;q=0.5,en-US;q=0.4

```

I am running Jenkins 2.462.3 installed from .deb package, running on an Ubuntu 24.04 LTS server. The Jenkins Java app is responding directly on port 80, there is no intermediates to rewrite the queries.

Using Vivaldi (7.0.3495.6) on Debian desktop (displays English) and Vivaldi for Android (6.9.3451.114).

---

<div class="post-metadata">

**Author:** ![sodul](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/sodul/32/7828_2.png) [@sodul](https://community.jenkins.io/u/sodul)\
**Post date:** [October 30, 2024, 5:56pm UTC](https://community.jenkins.io/t/user-interface-displays-in-english/22643/2 "2024-10-30T17:56:55Z")

</div>

I know little about this topic, but if that’s acceptable you could force the default language globally: [Locale](https://plugins.jenkins.io/locale/)

That said I think I found the bug here:

> **[Blaming locale-plugin/src/main/java/hudson/plugins/locale/PluginImpl.java at...](https://github.com/jenkinsci/locale-plugin/blame/main/src/main/java/hudson/plugins/locale/PluginImpl.java#L45)**
>
> Jenkins locale plugin. Contribute to jenkinsci/locale-plugin development by creating an account on GitHub.

```java
    private static final Set<String> ALLOWED_LOCALES = new HashSet<>(Arrays.asList(
3 months ago

Use en locale and include core fix for help text (#233)
            "bg", "ca", "cs", "da", "de", "el", "en", "es", "es_AR", "et", "fi", "fr", "he", "hu", "it", "ja", "ko",
4 months ago

Dropdown feature for Locale selection (#215)
            "lt", "lv", "nb_NO", "nl", "pl", "pt_BR", "pt_PT", "ro", "ru", "sk", "sl", "sr", "sv_SE", "tr", "uk",
            "zh_CN", "zh_TW"));

```

There is a list of allowed locales and it has `sv_SE` but not `sv` or `sv_FI` either. So your problem is that your desktop browser only sends `sv` and not `sv-SE` which your phone does, the plugin then does not find a match and defaults to English.

You should file a bug report with the `locale` plugin:

> **[jenkinsci/locale-plugin](https://github.com/jenkinsci/locale-plugin/issues)**
>
> Jenkins locale plugin. Contribute to jenkinsci/locale-plugin development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![nafmo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/nafmo/32/11219_2.png) [@nafmo](https://community.jenkins.io/u/nafmo)\
**Post date:** [October 31, 2024, 6:56am UTC](https://community.jenkins.io/t/user-interface-displays-in-english/22643/3 "2024-10-31T06:56:47Z")

</div>

Thanks, that does indeed look like the problem. A website can chose to return a generic language when given a language-country pair, but not the other way, so it is allowed to return sv when passed sv-SE, but not the opposite.

I’ll file a bug for it.
