From 29a365a10f3c046fbff9ec8b25bf829ffe425dc1 Mon Sep 17 00:00:00 2001
From: Michael Palimaka <kensington@gentoo.org>
Date: Sun, 28 Apr 2019 22:50:13 +1000
Subject: [PATCH] kde5.eclass: install linguas-related files unconditionally
 for kconfigwidgets
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

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 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 6b2712efc36d..f58d991bc584 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
-- 
2.26.2