1 |
commit: 0510e917c31b3097087f08d4932c8347ee1efaf9 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 18:47:38 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 18:49:00 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=0510e917 |
7 |
|
8 |
kde5.eclass: install all translations when LINGUAS is undefined |
9 |
|
10 |
This mirrors the behaviour of the gettext autotools macros. |
11 |
|
12 |
Gentoo-bug: 581382 |
13 |
|
14 |
eclass/kde5.eclass | 2 +- |
15 |
1 file changed, 1 insertion(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass |
18 |
index 80f8a7d..7620966 100644 |
19 |
--- a/eclass/kde5.eclass |
20 |
+++ b/eclass/kde5.eclass |
21 |
@@ -472,7 +472,7 @@ kde5_src_prepare() { |
22 |
|
23 |
# enable only the requested translations |
24 |
# when required |
25 |
- if [[ -d po ]] ; then |
26 |
+ if [[ -d po && -v LINGUAS ]] ; then |
27 |
pushd po > /dev/null || die |
28 |
for lang in *; do |
29 |
if [[ -d ${lang} ]] && ! has ${lang} ${LINGUAS} ; then |