Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-07-22 17:11:42 +0300
committerJo-Philipp Wich <jo@mein.io>2022-07-22 17:21:23 +0300
commit5650e163d1fdbdc0e0b0754678bed3cf79f8583b (patch)
treef80fe3d6a07fe40870ad500be44ba1bf0d60ab4a /luci.mk
parent5d7af486725ec94e4879b6c00e3047c88cb62293 (diff)
luci.mk: ignore language directories not explicitly mentioned
Only create translation packages for languages mentioned in luci.mk Fixes: #5886 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'luci.mk')
-rw-r--r--luci.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/luci.mk b/luci.mk
index 42264c07cc..7fa1e215bc 100644
--- a/luci.mk
+++ b/luci.mk
@@ -282,10 +282,10 @@ ifeq ($(PKG_NAME),luci-base)
bool "Minify CSS files"
default y
- menu "Translations"$(foreach lang,$(LUCI_LANGUAGES),
+ menu "Translations"$(foreach lang,$(LUCI_LANGUAGES),$(if $(LUCI_LANG.$(lang)),
config LUCI_LANG_$(lang)
- tristate "$(shell echo '$(LUCI_LANG.$(lang))' | sed -e 's/^.* (\(.*\))$$/\1/') ($(lang))")
+ tristate "$(shell echo '$(LUCI_LANG.$(lang))' | sed -e 's/^.* (\(.*\))$$/\1/') ($(lang))"))
endmenu
endef
@@ -333,5 +333,5 @@ define LuciTranslation
endef
-$(foreach lang,$(LUCI_LANGUAGES),$(eval $(call LuciTranslation,$(firstword $(LUCI_LC_ALIAS.$(lang)) $(lang)),$(lang))))
+$(foreach lang,$(LUCI_LANGUAGES),$(if $(LUCI_LANG.$(lang)),$(eval $(call LuciTranslation,$(firstword $(LUCI_LC_ALIAS.$(lang)) $(lang)),$(lang)))))
$(foreach pkg,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(pkg))))