Bug 1167317 - RPM locale supplements don't work for /usr/share/locale/kf5/
Summary: RPM locale supplements don't work for /usr/share/locale/kf5/
Status: IN_PROGRESS
: 1167318 (view as bug list)
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: 64bit Other
: P5 - None : Major with 5 votes (vote)
Target Milestone: ---
Assignee: Fabian Vogt
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-21 19:14 UTC by Steffen S.
Modified: 2020-04-01 13:30 UTC (History)
6 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Screenshot of TW KDE Plasma 5.18 Language mixing (106.48 KB, image/jpeg)
2020-03-21 19:14 UTC, Steffen S.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen S. 2020-03-21 19:14:12 UTC
Created attachment 833569 [details]
Screenshot of TW KDE Plasma 5.18 Language mixing

Hi everyone!

A fresh installation of Tumbleweed with KDE Plasma 5.18 german language leads to a mixture of english and german. For example "Zu Favoriten hinzufügen" is still "Add to Favorites".
The Startmenu has "Applications" instead of "Anwendungen", or"Leave" instead of "Verlassen", etc.
Switching the language to english and then back to german does not help, neither does a „sudo zypper inr“. It only occures if you install TW from a current DVD or network image, if you upgrade an old KDE Plasma 5.17, everything stays german. 

This problem is not limited to german, I opened a thread on reddit and it is the same with the spanish an portuguese versions.

https://www.reddit.com/r/openSUSE/comments/flv87i/germanenglish_mixture_since_kde_518/

I also added a screenshot of a new TW installation on a Virtualbox. (It is the same on a real machine).

Greetings,

Steffen
Comment 1 Rafa Llandres 2020-03-22 18:09:14 UTC
The same with català and spanish languages
Comment 2 Wolfgang Bauer 2020-03-22 18:33:08 UTC
*** Bug 1167318 has been marked as a duplicate of this bug. ***
Comment 3 Wolfgang Bauer 2020-03-22 18:33:50 UTC
Install plasma5-desktop-lang and those strings should be translated.
Comment 4 Rafa Llandres 2020-03-23 16:42:08 UTC
I installed plasma5-desktop-lang and all is ok now.
Comment 5 Dariy Koba 2020-03-29 13:27:48 UTC
A similar problem with the Russian language.
Comment 6 Frank Krüger 2020-03-29 14:29:02 UTC
(In reply to Wolfgang Bauer from comment #3)
> Install plasma5-desktop-lang and those strings should be translated.

It seems that plasm5-desktop-lang is neither required nor recommended. Regarding the latter, is this on purpose?
Comment 7 Fabian Vogt 2020-03-29 14:57:50 UTC
The issue seems to be that the new locale provides don't work for /usr/share/locale/kf5/*/LC_MESSAGES/*.mo: https://github.com/openSUSE/rpm-config-SUSE/commit/fca03384a5a48e1274b604279625b364b0f67889
Comment 8 Dariy Koba 2020-03-29 15:42:04 UTC
(In reply to Frank Kruger from comment #6)
> (В ответ на Вольфганга Бауэра из комментария № 3 )
>  > Установите plasma5-desktop-lang, и эти строки должны быть переведены. 
> 
> Кажется, что plasm5-desktop-lang не требуется и не рекомендуется. Что
> касается последнего, это специально?

Previously, when you selected any language other than English, the plasma 5-desktop-lang package was installed automatically, but now this does not happen.
Comment 9 Fabian Vogt 2020-03-30 09:40:15 UTC
Actually, it probably makes more sense to take advantage of the modularity here and do this in kf5-filesystem instead.
Comment 10 Ludwig Nussel 2020-03-31 12:03:29 UTC
Is there a reason why a subdir is used in /usr/share/locale?
Comment 11 Fabian Vogt 2020-03-31 12:32:32 UTC
(In reply to Ludwig Nussel from comment #10)
> Is there a reason why a subdir is used in /usr/share/locale?

AFAIK, coinstability with Qt 4/KDE4 applications and libraries.
Comment 12 Fabian Vogt 2020-04-01 13:14:28 UTC
(In reply to Fabian Vogt from comment #9)
> Actually, it probably makes more sense to take advantage of the modularity
> here and do this in kf5-filesystem instead.

Just an .attr file was needed, the .prov worked OOTB:

https://build.opensuse.org/request/show/790597
Comment 13 Ludwig Nussel 2020-04-01 13:24:17 UTC
I don't know how exactly but I'd suggest to have some kind of check somewhere to make sure this keeps working in the future. It would be all too easy to break the .prov file without noticing the use case by KDE. Alternatively move the attr file to rpm-config-SUSE too.
Comment 14 Fabian Vogt 2020-04-01 13:30:38 UTC
(In reply to Ludwig Nussel from comment #13)
> I don't know how exactly but I'd suggest to have some kind of check
> somewhere to make sure this keeps working in the future.

There aren't any openQA tests of openSUSE for non-english languages unfortunately :-(

> It would be all too
> easy to break the .prov file without noticing the use case by KDE.
> Alternatively move the attr file to rpm-config-SUSE too.

I assume you mean kf5-filesystem? Ok, sr superseded.