[Bug 1011132] New: Not all packages required by localization(s) are installed by default
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132 Bug ID: 1011132 Summary: Not all packages required by localization(s) are installed by default Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: All OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: KDE Workspace (Plasma) Assignee: opensuse-kde-bugs@opensuse.org Reporter: software@legisign.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0 Build Identifier: I’m a member of KDE’s Finnish localization team and noticed that openSUSE (both Leap 42.2 and Tumbleweed) do not install all the packages that successful localization requires. Tumbleweed does not install libKF5*-lang (total of 31 packages). Leap does this. Neither Tumbleweed nor Leap 42.2 installs libqt5-qttranslations. Both of these result in unfinished localization in dialogs, for example. The buttons in system dialogs (OK, Cancel, etc.) might appear in English even though the rest of the dialog is localized. Reproducible: Always Steps to Reproduce: 1. Install openSUSE in a language other than English 2. Look especially at the dialog buttons in System Settings, Desktop Settings etc. Actual Results: Unlocalized strings appearing Expected Results: Localized strings I didn’t do full testing on the Tumbleweed installation. Now I’m using Leap 42.2 and it seems most of the problems go away once libqt5-qttranslations is installed. (There are problems still in some programs but the bugs causing these are probably on the KDE Plasma layer.) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c1
Wolfgang Bauer
Tumbleweed does not install libKF5*-lang (total of 31 packages). Leap does this.
Tumbleweed uses bundle-lang-xxx packages instead that contain all translations for one particular language.
Neither Tumbleweed nor Leap 42.2 installs libqt5-qttranslations.
Shouldn't cause a problem though. I don't have it installed here either and everything is translated in a Plasma5 session.
Both of these result in unfinished localization in dialogs, for example. The buttons in system dialogs (OK, Cancel, etc.) might appear in English even though the rest of the dialog is localized.
This happens if the LANGUAGE environment variable is not set. Setting the language in "Configure Desktop" (systemsettings5) should fix that *without* installing libqttranslations. I will check if installing libqttranslations will have an influence on that... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c2
--- Comment #2 from Wolfgang Bauer
Both of these result in unfinished localization in dialogs, for example. The buttons in system dialogs (OK, Cancel, etc.) might appear in English even though the rest of the dialog is localized.
This happens if the LANGUAGE environment variable is not set. Setting the language in "Configure Desktop" (systemsettings5) should fix that *without* installing libqttranslations.
I will check if installing libqttranslations will have an influence on that...
As I expected, that problem persists if libqt5-qttranslations is installed. It's probably some problem in KDE Frameworks5, that should be worked on upstream. So i don't see anything to "fix" here from the packaging side. It might make sense to somehow pull in libqt5-qttranslations, I'm not sure. Though normal users probably will not need the translations for assistant, designer, and so on, (or even the Qt libraries themselves), and the README states this: All translations are contributed by the Qt community. They are provided without guarantees, will often be stale, and may even disappear entirely from future Qt releases. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c3
--- Comment #3 from Tommi Nieminen
Tumbleweed uses bundle-lang-xxx packages instead that contain all translations for one particular language.
That may be, but the localization clearly needed at least one of the libKF5*-lang packages, namely libKF5WidgetsAddons5-lang, before the dialog buttons got localized.
Neither Tumbleweed nor Leap 42.2 installs libqt5-qttranslations.
Shouldn't cause a problem though.
I don't have it installed here either and everything is translated in a Plasma5 session.
Again, my experience is contrary to this :) although of course I didn’t know about the LANGUAGE environment variable trick. By the way, if it is necessary to set that for localization to work, maybe it should be set by default once the target language is selected during the installation? I will set up VirtualBox and check this in a virtual machine ASAP. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c4
--- Comment #4 from Wolfgang Bauer
(In reply to Wolfgang Bauer from comment #1)
Tumbleweed uses bundle-lang-xxx packages instead that contain all translations for one particular language.
That may be, but the localization clearly needed at least one of the libKF5*-lang packages, namely libKF5WidgetsAddons5-lang, before the dialog buttons got localized.
Well, that one may be missing from bundle-lang-kde-xxx. Though the -lang package should be pulled in in that case, because libKF5WidgetsAddons5 does recommend libKF5WidgetsAddons5-lang.
Neither Tumbleweed nor Leap 42.2 installs libqt5-qttranslations.
Shouldn't cause a problem though.
I don't have it installed here either and everything is translated in a Plasma5 session.
Again, my experience is contrary to this :)
Well, I just tried installing libqt5-translations here, and it didn't change anything. The only thing it did affect was Qt's native file dialog. But inside a KDE session, KDE's file dialog is used which isn't affected by qttranslations. Again, there may be cases where qttranslations may be good to have, but not having it installed is *not* the reason for the problem you mentioned.
although of course I didn’t know about the LANGUAGE environment variable trick. By the way, if it is necessary to set that for localization to work, maybe it should be set by default once the target language is selected during the installation?
KDE's language settings do set LANGUAGE, but normally it should not be necessary (if you don't set two or more languages), and LANG is in fact set by the system. The installation obviously cannot set it for the user... But as I said, for me this is a bug somewhere in KDE Frameworks (or wherever). It's definitely not caused by missing -lang packages... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c5
--- Comment #5 from Wolfgang Bauer
Well, that one may be missing from bundle-lang-kde-xxx.
Though the -lang package should be pulled in in that case, because libKF5WidgetsAddons5 does recommend libKF5WidgetsAddons5-lang.
I had a look, and libKF5WidgetsAddons-land *is* in fact included in bundle-lang-kde-xxx. So, did you have bundle-lang-kde-fi installed? If not, it's a problem of the installer, not in the KDE packages. Though you need to use YaST to switch the system language to get the necessary translation packages installed automatically. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c6
--- Comment #6 from Wolfgang Bauer
(In reply to Wolfgang Bauer from comment #4)
Well, that one may be missing from bundle-lang-kde-xxx.
Though the -lang package should be pulled in in that case, because libKF5WidgetsAddons5 does recommend libKF5WidgetsAddons5-lang.
I had a look, and libKF5WidgetsAddons-land *is* in fact included in bundle-lang-kde-xxx.
For some reasons the actual files are missing in bundle-lang-kde-xxx though. I will try to find out what went wrong there and fix it... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c7
--- Comment #7 from Wolfgang Bauer
For some reasons the actual files are missing in bundle-lang-kde-xxx though. I will try to find out what went wrong there and fix it...
Ok, the problem seems to be that kwidgetaddons only provides Qt translations (.qm files), while only .po files are moved into the bundle-lang packages. I suppose we should remove the Provides for kwidgetaddons-lang then, Qt won't be able to load the translations from /usr/share/locale-bundle/ anyway I think... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c8
--- Comment #8 from Wolfgang Bauer
Ok, the problem seems to be that kwidgetaddons only provides Qt translations (.qm files), while only .po files are moved into the bundle-lang packages.
Correction, only .mo files are moved into the bundle-lang packages of course.
I suppose we should remove the Provides for kwidgetaddons-lang then, Qt won't be able to load the translations from /usr/share/locale-bundle/ anyway I think...
I will work on that, but it will take a while because there are likely other translations with that problem. (and the list is quite long... :-( ) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c9
--- Comment #9 from Tommi Nieminen
Ok, the problem seems to be that kwidgetaddons only provides Qt translations (.qm files), while only .po files are moved into the bundle-lang packages.
Correction, only .mo files are moved into the bundle-lang packages of course.
And that I guess is the reason why installing libqt5-qttranslations package helps: it installs the .qm files in /usr/share/qt5/translations? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c10
--- Comment #10 from Wolfgang Bauer
(In reply to Wolfgang Bauer from comment #8)
Ok, the problem seems to be that kwidgetaddons only provides Qt translations (.qm files), while only .po files are moved into the bundle-lang packages.
Correction, only .mo files are moved into the bundle-lang packages of course.
And that I guess is the reason why installing libqt5-qttranslations package helps: it installs the .qm files in /usr/share/qt5/translations?
No, that's why installing libQt5WidgetAddons-lang helps. Otherwise the translations are not installed at all, as they are missing from bundle-lang-kde-xx. But bundle-lang-kde-xx provides libQt5WidgetAddons-lang, so that is not installed by default. Maybe libqt5-qttranslations contains (some) of the translation texts as well so installing it may be a "workaround". -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c11
Lasse Liehu
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c12
--- Comment #12 from Wolfgang Bauer
Qt translation includes not only the file dialog but context menus for various widgets (text boxes, scroll bars etc.), print dialogs, font dialogs, translations for keyboard keys like Volume Up, Space, Backspace and more.
Well, as mentioned the KDE file dialog is translated by KDE (Qt's built-in one not, that indeed needs libqt5-qttranslations). But yes, I now noticed that e.g. the Cut/Copy/Paste/Select All and Undo/Redo context menu entries of text fields are not translated without libqt5-qttranslations installed, and the print dialog neither. So thanks for mentioning that, never really noticed that myself. I suppose then we really should make it recommended by libQt5Core5 (as it's basically needed for everything). Alternatively we probably could split it up and recommend the parts by the corresponding package(s). Though that would be quite some work that's probably not worth it, at least for now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132
http://bugzilla.opensuse.org/show_bug.cgi?id=1011132#c13
Wolfgang Bauer
participants (1)
-
bugzilla_noreply@novell.com