Bug 437738 - Missing Translation tab in About dialogues
Summary: Missing Translation tab in About dialogues
Status: RESOLVED NOT A BUG
Alias: None
Product: frameworks-kxmlgui
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-27 12:59 UTC by Tyson Tan
Modified: 2021-06-04 15:49 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tyson Tan 2021-05-27 12:59:24 UTC
For some KDE applications that directly use kxmlgui for their About dialogue, the Translation tab has been missing in recent versions.

So far I have noticed digiKam (7.3.0 Nightly), Elisa (21.04.1 Release) having this issue. They have been 100% translated, and the Translation tabs were there in earlier versions.
Comment 1 Nate Graham 2021-05-27 13:56:37 UTC
*** Bug 436666 has been marked as a duplicate of this bug. ***
Comment 2 Ahmad Samir 2021-06-03 15:56:02 UTC
Dolphin works, as in I see the Translation tab, however Konsole and KWrite don't.
Comment 3 Tyson Tan 2021-06-03 16:34:20 UTC
*** Bug 437736 has been marked as a duplicate of this bug. ***
Comment 4 Tyson Tan 2021-06-03 16:36:40 UTC
(In reply to Ahmad Samir from comment #2)
> Dolphin works, as in I see the Translation tab, however Konsole and KWrite
> don't.

Konsole and KWrite 21.04.1 are showing proper translator tabs for me...
Comment 5 Ahmad Samir 2021-06-03 19:14:01 UTC
I meant with git master. :)
Comment 6 Albert Astals Cid 2021-06-03 19:40:09 UTC
Please list application & language you have this problem.
Comment 7 Albert Astals Cid 2021-06-03 19:40:51 UTC
And application version
Comment 8 Albert Astals Cid 2021-06-03 19:57:15 UTC
and kxmlgui version ^_^
Comment 9 Ahmad Samir 2021-06-03 22:20:03 UTC
I've found out that for the Translation tab to show up the translation files (.mo files) have to be installed, of course with git master that isn't the case, i.e. the translations are packaged into the release tarballs by the release team(s).
Comment 10 Ahmad Samir 2021-06-03 22:23:39 UTC
I've checked the po dir in http://download.kde.org/stable/release-service/21.04.1/src/elisa-21.04.1.tar.xz and the en* translation files have the translators info filled. What language are you using for Elisa? (please check the tarball, and make sure the translations are installed on your system, some distros split the translations in separate sub-packages).

As for digikam, since it's nightly, I expect the translations aren't bundled with that?
Comment 11 Tyson Tan 2021-06-04 02:55:50 UTC
System info:
Operating System: Arch Linux
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

Elisa:
Version 21.04.1 (KDE Frameworks 5.82.0 Qt 5.15.2) installed from Archlinux's official repo.

digiKam:
the latest nightly appimage from https://files.kde.org/digikam/

1) I use the Simplified Chinese (zh_CN) locale.
 
2) The apps I mentioned are 100% translated and verified. They already have their translations installed, showing proper translation across the interface.

3) digiKam nightly always packages translation for some reason.

4) Elisa and digiKam nightly used to work.
Comment 12 Luigi Toscano 2021-06-04 12:10:46 UTC
(In reply to Tyson Tan from comment #11)
> 2) The apps I mentioned are 100% translated and verified. They already have
> their translations installed, showing proper translation across the
> interface.
> 
> 3) digiKam nightly always packages translation for some reason.

No, there are no translations. Try to explore the content:

./digikam-<...>.appimage --appimage-mount

there are no .po files.
Comment 13 Luigi Toscano 2021-06-04 12:14:46 UTC
Sorry, a stupid search error: there are indeed .mo files (.po files would make no sense there).

That said, when I it in Italian:
LANG=it_IT.UTF-8 ./digikam....appimage


I confirm I don't see the Translation tab.

The question is: can you reproduce the issue with *non*-appimage packages?

Is the Elisa nightly an appimage too?
Comment 14 Tyson Tan 2021-06-04 13:00:02 UTC
(In reply to Luigi Toscano from comment #13)
> Sorry, a stupid search error: there are indeed .mo files (.po files would
> make no sense there).
> 
> That said, when I it in Italian:
> LANG=it_IT.UTF-8 ./digikam....appimage
> 
> 
> I confirm I don't see the Translation tab.
> 
> The question is: can you reproduce the issue with *non*-appimage packages?
> 
> Is the Elisa nightly an appimage too?

The Elisa package (21.0.4.1 / KF 5.82 / Qt 5.15.2) I mentioned came from Archlinux's official repository. It's NOT an appimage. It's a released, distro repo build.

digiKam 7.2.0 (KF 5.78.0 / Qt 5.14.2 / Both Arch repo and Appimage) has Translator tab. I'm sure about a month ago the 7.3.0 nightly also had the tab.

Apper 1.0.0 (KF 5.82.0/ Qt 5.15.2 / Archlinux official build) also has no Translator tab. But for this one it has been missing the tab for quite some time now.
Comment 15 Albert Astals Cid 2021-06-04 13:50:12 UTC
> Elisa

That's an elisa bug, open a bug for them, they either need to use KMainWindow (or some class that inherits from it) or call
      setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"),
                    i18nc("EMAIL OF TRANSLATORS", "Your emails"));
manually on their KAboutData as stated in the KAboutData documentation

> Digikam
it works on the last official release both using appimage and not using appimage, if it doesn't work on the nightly, i'd say that is their bug and not a kxmlgui bug either.

> Apper 

I'd say it's the same problem of not using KMainWindow or similar (at least i can't find one)
Comment 16 Tyson Tan 2021-06-04 15:49:28 UTC
(In reply to Albert Astals Cid from comment #15)
> > Elisa
> 
> That's an elisa bug, open a bug for them, they either need to use
> KMainWindow (or some class that inherits from it) or call
>       setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"),
>                     i18nc("EMAIL OF TRANSLATORS", "Your emails"));
> manually on their KAboutData as stated in the KAboutData documentation
> 
> > Digikam
> it works on the last official release both using appimage and not using
> appimage, if it doesn't work on the nightly, i'd say that is their bug and
> not a kxmlgui bug either.
> 
> > Apper 
> 
> I'd say it's the same problem of not using KMainWindow or similar (at least
> i can't find one)

Thanks, I will renew those reports separately.