Bug 514220 - Wrong language day names in weather widget
Summary: Wrong language day names in weather widget
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_regionandlang (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-06 09:40 UTC by RFOG
Modified: 2026-01-07 15:06 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Capture showing the wrong translations (95.50 KB, image/png)
2026-01-06 09:40 UTC, RFOG
Details
Showing right locale in System Preferences but wrong in console (216.26 KB, text/plain)
2026-01-06 13:40 UTC, RFOG
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RFOG 2026-01-06 09:40:45 UTC
Created attachment 188261 [details]
Capture showing the wrong translations

SUMMARY


STEPS TO REPRODUCE
1. KDE in Spanish living in the Netherlands, AFAIK, all is in Spanish in the configuration
2. Set Widget to get weather from your NL city (Schiedam)
3. Check the weather

Check the annotated part in the sent capture. "Hoy" (Today) is in Spanish, the remaining days of the week are in Dutch.

EXPECTED RESULT

Remaining days must be in Spanish, that must be (lu = Monday, ma, mi, ju, vi, sa, do = Sunday)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6 - Debian 13 in a 2017 27" iMac updated as today
KDE Plasma Version: 6.3.6
KDE Frameworks Version:  6.13.0
Qt Version: 6.8.2

Kernel 6.12.57+deb13-amd64 (64 bits)
Wayland.
Comment 1 cwo 2026-01-06 13:25:21 UTC
Can you please post the output of `locale`?
Comment 2 RFOG 2026-01-06 13:35:31 UTC
Yes, of course:

LANG=es_ES.UTF-8
LANGUAGE=
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

BTW, this same issue happens in my other PC running KDE Neon full updated.
Comment 3 RFOG 2026-01-06 13:39:34 UTC
Mmmmm... It seems it is more a KDE bug than a Weather. I'm adding a new captured image.
Comment 4 RFOG 2026-01-06 13:40:51 UTC
Created attachment 188265 [details]
Showing right locale in System Preferences but wrong in console
Comment 5 cwo 2026-01-06 13:45:45 UTC
What's the contents of ~/.config/plasma-localerc?
Comment 6 RFOG 2026-01-06 13:59:27 UTC
[Formats]
LANG=es_ES.UTF-8

[Translations]
LANGUAGE=es_ES:en_US

However, setting /etc/locale.conf to all in es_ES, after logout/login, the Weather app shows right language:

LANG=es_ES.UTF-8
LANGUAGE=
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY=es_ES.UTF-8
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_IDENTIFICATION=es_ES.UTF-8
LC_ALL=

I left telephone in Ducth becasue I want phone numbers in Dutch format.
Comment 7 cwo 2026-01-06 14:11:11 UTC
Might be a distribution issue, but I'm actually not quite sure what the order of precedence here is and if Plasma is doing things correctly.

If there is an error, I'd guess it's in the Region and Language system settings module, and certainly not in the weather widget which just respects the locale as set. Moving it there.
Comment 8 RFOG 2026-01-06 14:16:16 UTC
Yes, I see that puting the right locale, your Widget works as expected. 

I had a similar issue when installing KDE Neon (but not Debian 13): I had to install Spanish and other locale stuff because Neon itself didn't did automatically on installation. If I remember well, it only installed the language to show KDE in Spanish and the keyboard layout. However, it seems there is something weird when installing a foreing language in other country different of the native country language.
Comment 9 hanyoung 2026-01-06 14:24:04 UTC
Seems like it's a plasma-localerc from older version of systemsettings - The LC_* vars are not set by default.
This MR should already fix it: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5248.

You can check by changing language in "Region and Language" in systemsettings to Dutch, then changing back to Spanish.
Then check ~/.config/plasma-localerc, the LC_* vars under "[Formats]" should be set to Spanish.
Comment 10 Nate Graham 2026-01-06 23:04:24 UTC
.
Comment 11 RFOG 2026-01-07 11:32:34 UTC
I'm now with NEON, as I'm at home and the Debian machine is at work, but the issue is the same. 

I changed to Dutch (Netherlands) in Region and Language. It complained some not installed packages, switched back to Spanish and complained same not installed packages. Switched back to Dutch, then installed 

language-pack-es
hunspell-es
wspanish

And re-selected Spanish. No complains. Restarted. Now Weather texts are right and:

Locale result:
LANG=es_ES.UTF-8
LANGUAGE=es
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY=es_ES.UTF-8
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

plasma-localerc:
[Formats]
LANG=es_ES.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_PAPER=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_TIME=es_ES.UTF-8

[Translations]
LANGUAGE=es

Now all seems right, and I think all the issue comes from the installer, that does not install the right packages on selecting other language than English, or the post-install that does not do the same. I normally install offline, and that could be the cause.