mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
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>
This commit is contained in:
6
luci.mk
6
luci.mk
@@ -282,10 +282,10 @@ ifeq ($(PKG_NAME),luci-base)
|
|||||||
bool "Minify CSS files"
|
bool "Minify CSS files"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
menu "Translations"$(foreach lang,$(LUCI_LANGUAGES),
|
menu "Translations"$(foreach lang,$(LUCI_LANGUAGES),$(if $(LUCI_LANG.$(lang)),
|
||||||
|
|
||||||
config 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
|
endmenu
|
||||||
endef
|
endef
|
||||||
@@ -333,5 +333,5 @@ define LuciTranslation
|
|||||||
|
|
||||||
endef
|
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))))
|
$(foreach pkg,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(pkg))))
|
||||||
|
|||||||
Reference in New Issue
Block a user