From: Jo-Philipp Wich Date: Fri, 22 Jul 2022 14:11:42 +0000 (+0200) Subject: luci.mk: ignore language directories not explicitly mentioned X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5650e163d1fdbdc0e0b0754678bed3cf79f8583b;p=project%2Fluci.git 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 --- 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))))