kde5.eclass: install all translations when LINGUAS is undefined
authorMichael Palimaka <kensington@gentoo.org>
Fri, 20 May 2016 19:46:11 +0000 (21:46 +0200)
committerJohannes Huber <johu@gentoo.org>
Fri, 20 May 2016 19:47:15 +0000 (21:47 +0200)
This mirrors the behaviour of the gettext autotools macros.

Gentoo-bug: 581382

Signed-off-by: Johannes Huber <johu@gentoo.org>
eclass/kde5.eclass

index 377d2c566734a71e01f1a9e31ea27f20e6fb7742..eaffb9e27cf94066177e3ea39f7ba0457ace4ce6 100644 (file)
@@ -397,7 +397,7 @@ kde5_src_prepare() {
 
        # enable only the requested translations
        # when required
-       if [[ -d po ]] ; then
+       if [[ -d po && -v LINGUAS ]] ; then
                pushd po > /dev/null || die
                for lang in *; do
                        if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then