commit:     29a365a10f3c046fbff9ec8b25bf829ffe425dc1
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 12:50:13 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jul  4 19:39:30 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29a365a1

kde5.eclass: install linguas-related files unconditionally for kconfigwidgets

See 
https://api.kde.org/frameworks/kconfigwidgets/html/klanguagename_8cpp_source.html#l00040
for source reference.

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

 eclass/kde5.eclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 6b2712efc36..f58d991bc58 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -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

Reply via email to