mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08: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:
parent
5d7af48672
commit
5650e163d1
6
luci.mk
6
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))))
|
||||
|
Loading…
Reference in New Issue
Block a user