Paste #yJAOhPswMLNkWz9YgpCH

diff --git a/Makefile b/Makefile
index 03d69b9..bab674e 100644
a/Makefile
b/Makefile
7 7 VERSION += (Rev. $(REVNO))
8 8 endif
9 9
10 # Change at what percent we translate
11 ifneq ($(PERCREQ),)
12 PERREQ = -t $(PERCREQ)
13 endif
14
10 15 # All available translations
11 16 TRANSALLUSER = $(shell basename -s .po -a user-docs/po/*.po)
12 17 TRANSALLCONTR = $(shell basename -s .po -a contributor-docs/po/*.po)
53 58 ifeq ($(TRANSLATIONS),)
54 59 ifneq ($(wildcard user-docs/po/LINGUAS),)
55 60 cd user-docs; \
56 ../scripts/translate.sh -u
61 ../scripts/translate.sh $(PERREQ) -u
57 62 @touch user-docs/update-translations
58 63 endif
59 64 endif
78 83 ifeq ($(TRANSLATIONS),)
79 84 ifneq ($(wildcard contributor-docs/po/LINGUAS),)
80 85 cd contributor-docs; \
81 ../scripts/translate.sh -u
86 ../scripts/translate.sh $(PERREQ) -u
82 87 @touch contributor-docs/update-translations
83 88 endif
84 89 endif
112 117 $(MAKE) -C user-docs translate
113 118
114 119 user-html-translations:
115 $(MAKE) -C user-docs html-translations
120 $(MAKE) -C user-docs html-translations PERREQ="$(PERREQ)"
116 121
117 122 user-pdf-translations:
118 $(MAKE) -C user-docs pdf-translations
123 $(MAKE) -C user-docs pdf-translations PERREQ="$(PERREQ)"
119 124
120 125 contributor-html:
121 126 $(MAKE) -C contributor-docs html
130 135 $(MAKE) -C contributor-docs translate
131 136
132 137 contributor-html-translations:
133 $(MAKE) -C contributor-docs html-translations
138 $(MAKE) -C contributor-docs html-translations PERREQ="$(PERREQ)"
134 139
135 140 contributor-pdf-translations:
136 $(MAKE) -C contributor-docs pdf-translations
141 $(MAKE) -C contributor-docs pdf-translations PERREQ="$(PERREQ)"
137 142
138 143 test:
139 144 $(MAKE) -C user-docs test
diff --git a/contributor-docs/Makefile b/contributor-docs/Makefile
index 59407c8..0ede5ed 100644
a/contributor-docs/Makefile
b/contributor-docs/Makefile
78 78 update-translations:
79 79 ifeq ($(TRANSLATIONS),)
80 80 ifneq ($(wildcard po/LINGUAS),)
81 ../scripts/translate.sh -u
81 ../scripts/translate.sh $(PERREQ) -u
82 82 @touch update-translations
83 83 endif
84 84 endif
diff --git a/contributor-docs/po/LINGUAS b/contributor-docs/po/LINGUAS
index e69de29..4e3d476 100644
a/contributor-docs/po/LINGUAS
b/contributor-docs/po/LINGUAS
1 de
2 en_GB
3 ru
diff --git a/scripts/translate.sh b/scripts/translate.sh
index 448364b..77b60f4 100755
a/scripts/translate.sh
b/scripts/translate.sh
49 49 }
50 50
51 51 shipped_languages () {
52 percreq="70"
53 52 echo "Updating LINGUAS ..."
54 53 langs=$(get_all_languages)
55 54 for lang in $langs; do
60 59 done | tee po/LINGUAS
61 60 }
62 61
63 while getopts ":gl:u" opt; do
62 percreq="70"
63
64 while getopts ":gl:t:u" opt; do
64 65 case $opt in
65 66 g)
66 67 generated="yes";;
67 68 l)
68 69 languages="$OPTARG";;
70 t)
71 percreq="$OPTARG";;
69 72 u)
70 73 shipped_languages
71 74 exit;;
diff --git a/user-docs/Makefile b/user-docs/Makefile
index 25a735a..a0799da 100644
a/user-docs/Makefile
b/user-docs/Makefile
74 74 update-translations:
75 75 ifeq ($(TRANSLATIONS),)
76 76 ifneq ($(wildcard po/LINGUAS),)
77 ../scripts/translate.sh -u
77 ../scripts/translate.sh $(PERREQ) -u
78 78 @touch update-translations
79 79 endif
80 80 endif