commit:     0957f99dcbfa6585b93828a9f3373601c3e71ca9
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 12:50:13 2019 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 12:53:24 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=0957f99d

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>

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

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 14aa80ef27..40a146e33c 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -497,7 +497,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