kde5.eclass: install linguas-related files unconditionally for kconfigwidgets
authorMichael Palimaka <kensington@gentoo.org>
Sun, 28 Apr 2019 12:50:13 +0000 (22:50 +1000)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 4 Jul 2019 19:39:30 +0000 (21:39 +0200)
See https://api.kde.org/frameworks/kconfigwidgets/html/klanguagename_8cpp_source.html#l00040
for source reference.

Reported-by: Andrius Štikonas <andrius@stikonas.eu>
Signed-off-by: Michael Palimaka <kensington@gentoo.org>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/kde5.eclass

index 6b2712efc36d3a5c606a035a65adabe43df03672..f58d991bc584543c93f4bce845b09a91daf5e6b7 100644 (file)
@@ -495,7 +495,10 @@ kde5_src_prepare() {
        fi
 
        # enable only the requested translations when required
-       if [[ -v LINGUAS ]] ; then
+       # always install unconditionally for kconfigwidgets - if you use language
+       # X as system language, and there is a combobox with language names, the
+       # translated language name for language Y is taken from /usr/share/locale/Y/kf5_entry.desktop
+       if [[ -v LINGUAS && ${PN} != kconfigwidgets ]] ; then
                local po
                for po in ${KDE_PO_DIRS}; do
                if [[ -d ${po} ]] ; then