summaryrefslogtreecommitdiff
blob: a9084627df57df3a898b890e7178dd51b35a5e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/src/app/translations.pri b/src/app/translations.pri
index b2dd2c4..87c55f7 100755
--- a/src/app/translations.pri
+++ b/src/app/translations.pri
@@ -9,22 +9,27 @@ PMSYSTEMS += \
     p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30 \
     p31 p32 p33 p34 p35 p36 p37 p38 p39 p40 p41 p42 p43 p44 p45 p46 p47 p48 p49 p50 p51 p52 p53 p54 p998
 
-LANGUAGES += \
-    ru_RU \
-    uk_UA \
-    de_DE \
-    cs_CZ \
-    he_IL \
-    fr_FR \
-    it_IT \
-    nl_NL \
-    id_ID \
-    es_ES \
-    fi_FI \
-    en_US \
-    en_CA \
-    en_IN \
-    ro_RO
+isEmpty(LOCALES){
+ LANGUAGES += \
+ ru_RU \
+ uk_UA \
+ de_DE \
+ cs_CZ \
+ he_IL \
+ fr_FR \
+ it_IT \
+ nl_NL \
+ id_ID \
+ es_ES \
+ fi_FI \
+ en_US \
+ en_CA \
+ en_IN \
+ ro_RO \
+ zh_CN
+ } else {
+ LANGUAGES = $${LOCALES}
+ }
 
 for(lang, LANGUAGES) {
     INSTALL_TRANSLATIONS += $${TRANSLATIONS_PATH}/valentina_$${lang}.qm