aboutsummaryrefslogtreecommitdiffstats
path: root/english/international
diff options
context:
space:
mode:
authorHolger Wansing <hwansing@mailbox.org>2024-01-03 21:05:40 +0100
committerHolger Wansing <hwansing@mailbox.org>2024-01-03 21:05:40 +0100
commit48851f7eeb8a95953d931b64518a469d8aff03be (patch)
treefce4aa5d02cde947013c983b7cf31fa3bd034b71 /english/international
parentf0443e0d4d8eadde0598b60f460b22f504c82c41 (diff)
Revert e59bdd1e. Calling strip-langs.sh from cron script does not work as intended, so reverting to my previous version.
Diffstat (limited to 'english/international')
-rw-r--r--english/international/l10n/po/Makefile4
-rwxr-xr-xenglish/international/l10n/scripts/strip-langs.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/english/international/l10n/po/Makefile b/english/international/l10n/po/Makefile
index 2058a11b95b..db6d0da4600 100644
--- a/english/international/l10n/po/Makefile
+++ b/english/international/l10n/po/Makefile
@@ -45,6 +45,10 @@ $(ENGLISHDIR)/$(CUR_DIR)/gen/main.exc $(ENGLISHDIR)/$(CUR_DIR)/gen/rank.inc $(L1
$(L10N_DIR)/scripts/isoquery.pl
# This is effectively the only place, where gen-files.pl is executed. The other ones in ../podebconf and ../po4a are not called.
perl $(L10N_DIR)/scripts/gen-files.pl --sort=$(SORT_PKGS) --dist=$(DIST) --l10ndir=$(L10N_DIR) --langs --po --podebconf --po4a
+# In the following we strip out wrong or unwanted language entries (to be defined in strip-langs.sh):
+ $(L10N_DIR)/scripts/strip-langs.sh
+# Variable LANGS_PO has to be refreshed here, since it has been modified by strip-langs.sh:
+LANGS_PO := $(shell grep 'po:' $(L10N_DIR)/data/langs | sed -e 's/po: *//')
clean::
-rm -rf gen
diff --git a/english/international/l10n/scripts/strip-langs.sh b/english/international/l10n/scripts/strip-langs.sh
index 3282d98bd99..dbb384757e9 100755
--- a/english/international/l10n/scripts/strip-langs.sh
+++ b/english/international/l10n/scripts/strip-langs.sh
@@ -7,11 +7,11 @@
unwanted='api app apt aym ber bos_DE bos_ES bos_FI bos_FR bos_HU bos_IT bos_LT bos_NL bos_SV bos_TR bos_NG bwr_NG ckl_NG cpf cz dcc_DE dcc_ES dcc_FR dcc_HU dcc_HR dcc_NL dcc_IT dcc_PL dcc_PT dcc_RU dcc_SR dcc_TR dk doc en en_BR en_DE en_FR en_HK en_PR en@arabic en@boldquot en@cyrillic en@greek en@hebrew en@piglatin en@quot en@shaw en@truecase en_AU en_CA en_GB en_IE en_NZ en_US en_ZA fil_PH gui hia_NG ibo kde log log_DE log_ES log_FI log_FR log_HR log_HU log_IT log_NL log_PL log_PT log_RU log_SR log_TR mac map mfi_NG mnw_MM mrt_NG nah new_DE new_ES new_FR new_IT raw tag xml sp src str'
-cp ./data/langs ./data/langs_saved
+cp ../data/langs ../data/langs_saved
for l in $unwanted
do
- sed -i s/\ $l\ /\ / ./data/langs
+ sed -i s/\ $l\ /\ / ../data/langs
done

© 2014-2024 Faster IT GmbH | imprint | privacy policy