Bug 1145197

Summary: Yast2 Control Center with wrong language
Product: [openSUSE] openSUSE Tumbleweed Reporter: Frank Krüger <fkrueger>
Component: YaST2Assignee: Fabian Vogt <fvogt>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: dgonzalez, fkrueger, fvogt, i, lnussel
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
URL: https://trello.com/c/ku8xZ0OF
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1146886    
Attachments: Yast2 Control Center with system language set to German
Yast2 Logs

Description Frank Krüger 2019-08-11 22:21:23 UTC
Created attachment 813630 [details]
Yast2 Control Center with system language set to German

TW20190809 with KDE Plasma 5.16.4 and a German environment, i.e. 

> locale 
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

gives Yast2 Control Center in English (see attachment).
Comment 1 David Diaz 2019-08-12 07:39:35 UTC
Thanks for the report, Frank.

Could you please also attach the YaST logs?. To collect them, use the `save_y2logs` tool. More information available at https://en.opensuse.org/openSUSE:Report_a_YaST_bug#logfiles
Comment 2 Frank Krüger 2019-08-12 17:45:05 UTC
Created attachment 813724 [details]
Yast2 Logs

There you are.
Comment 3 Frank Krüger 2019-08-12 19:00:55 UTC
JFYI: yast2-trans-de was not installed on the system (actually it is neither required nor recommended by other packages). Unfortunately, installing it does not solve the above-mentioned issue.
Comment 4 David Diaz 2019-08-13 08:08:30 UTC
Thank you Frank!

Yesterday I could reproduce the scenario after receive your mail about your hesitate to attach the logs. But I didn't have time to investigate it further. Let's track it in our queue.
Comment 5 Frank Krüger 2019-08-20 10:57:58 UTC
I am not sure whether this helps: In /usr/share/applications/YaST2 I have one file "messages.desktop", which is displayed correctly in German in Yast2 Control Center, while the others "org.opensuse.yast.*.desktop" are shown in English. I vaguely remember that there was a change some time ago from "*.desktop" to "org.opensuse.yast.*.desktop".
Comment 6 David Diaz 2019-08-20 11:34:12 UTC
Hi Frank!

Thank you so much for the hints.

You're right. And this is exactly what we were discussing this morning during a planning meeting when adding this bug report for the current sprint.

Probably, it is only a matter of time and we just need to wait a bit more until having available the changes made into the .desktop files.

Thanks!
Comment 7 David Diaz 2019-08-21 15:24:39 UTC
After investigating a bit in an old TW that I had installed (VERSION_ID="20190630"), we found that translations are not in the Desktop itself files but in the desktop-translations package[1], which 

> contains a _service file referring to the desktop-file-translations GitHub repository

So, if I understood the README[2] correctly, we need either, to wait 
until the `.po` files will be updated automatically or to force the update manually following the instructions. 

Since seems there is a problem[3] with the automated process, I am not sure what to do and I'd say that it's time to request help :)

Fabian Vogt, could you help us with this?

Thanks!

[1] https://build.opensuse.org/package/show/X11:common:Factory/desktop-translations
[2] https://github.com/openSUSE/desktop-file-translations/blob/master/README.md
[3] https://bugzilla.suse.com/show_bug.cgi?id=1143722
Comment 8 Fabian Vogt 2019-08-22 15:12:22 UTC
(In reply to David Diaz from comment #7)
> After investigating a bit in an old TW that I had installed
> (VERSION_ID="20190630"), we found that translations are not in the Desktop
> itself files but in the desktop-translations package[1], which 
> 
> > contains a _service file referring to the desktop-file-translations GitHub repository
> 
> So, if I understood the README[2] correctly, we need either, to wait 
> until the `.po` files will be updated automatically or to force the update
> manually following the instructions. 
> 
> Since seems there is a problem[3] with the automated process, I am not sure
> what to do and I'd say that it's time to request help :)

The desktop translation files would need regeneration as the basename of the .desktop files is used as key.

The translations are taken from the latest Leap release, but 15.2 doesn't have them generated yet. That should be done next week.
Comment 9 David Diaz 2019-08-22 15:21:49 UTC
Thanks!
Comment 10 Fabian Vogt 2019-08-28 07:00:08 UTC
*** Bug 1147613 has been marked as a duplicate of this bug. ***
Comment 11 Frank Krüger 2019-09-17 20:14:10 UTC
(In reply to Fabian Vogt from comment #8)
> (In reply to David Diaz from comment #7)
> > After investigating a bit in an old TW that I had installed
> > (VERSION_ID="20190630"), we found that translations are not in the Desktop
> > itself files but in the desktop-translations package[1], which 
> > 
> > > contains a _service file referring to the desktop-file-translations GitHub repository
> > 
> > So, if I understood the README[2] correctly, we need either, to wait 
> > until the `.po` files will be updated automatically or to force the update
> > manually following the instructions. 
> > 
> > Since seems there is a problem[3] with the automated process, I am not sure
> > what to do and I'd say that it's time to request help :)
> 
> The desktop translation files would need regeneration as the basename of the
> .desktop files is used as key.
> 
> The translations are taken from the latest Leap release, but 15.2 doesn't
> have them generated yet. That should be done next week.

Maybe I missed it, but I have not seen any newly generated translations in Leap 15.2 so far. Is there any progress to be expected soon? Thx.
Comment 12 Fabian Vogt 2019-09-18 11:11:09 UTC
(In reply to Frank Kruger from comment #11)
> (In reply to Fabian Vogt from comment #8)
> > The translations are taken from the latest Leap release, but 15.2 doesn't
> > have them generated yet. That should be done next week.
> 
> Maybe I missed it, but I have not seen any newly generated translations in
> Leap 15.2 so far. Is there any progress to be expected soon? Thx.

The issue is that while the rebuild happened and was complete, build-compare was still on which means that for most packages the old binaries were simply kept.

This weekend a full rebuild without build-compare is planned, then the translations can be regenerated.
Comment 14 Swamp Workflow Management 2019-09-24 11:50:10 UTC
This is an autogenerated message for OBS integration:
This bug (1145197) was mentioned in
https://build.opensuse.org/request/show/732916 Factory / desktop-translations
Comment 15 Fabian Vogt 2019-09-24 13:11:46 UTC
(In reply to Fabian Vogt from comment #12)
> (In reply to Frank Kruger from comment #11)
> > (In reply to Fabian Vogt from comment #8)
> > > The translations are taken from the latest Leap release, but 15.2 doesn't
> > > have them generated yet. That should be done next week.
> > 
> > Maybe I missed it, but I have not seen any newly generated translations in
> > Leap 15.2 so far. Is there any progress to be expected soon? Thx.
> 
> The issue is that while the rebuild happened and was complete, build-compare
> was still on which means that for most packages the old binaries were simply
> kept.
> 
> This weekend a full rebuild without build-compare is planned, then the
> translations can be regenerated.

Was more work than expected as the .desktop file renames and some .desktop file key changes had to be done manually to not lose translations. It's submitted to TW and SLE now.
Comment 16 David Diaz 2019-09-24 14:41:26 UTC
(In reply to Fabian Vogt from comment #15)
> > 
> > This weekend a full rebuild without build-compare is planned, then the
> > translations can be regenerated.
> 
> Was more work than expected as the .desktop file renames and some .desktop
> file key changes had to be done manually to not lose translations. It's
> submitted to TW and SLE now.


Thanks a lot!
Comment 17 Frank Krüger 2019-09-24 18:19:28 UTC
Using desktop-translations-84.87.20190924.7050555c-238.1.noarch solves the issue. Thx.