Turn language selection into a tristate, this allows building language
packages without having them included in the image.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
menu "Translations"$(foreach lang,$(LUCI_LANGUAGES),
config LUCI_LANG_$(lang)
- bool "$(shell echo '$(LUCI_LANG.$(lang))' | sed -e 's/^.* (\(.*\))$$/\1/') ($(lang))")
+ tristate "$(shell echo '$(LUCI_LANG.$(lang))' | sed -e 's/^.* (\(.*\))$$/\1/') ($(lang))")
endmenu
endef
CATEGORY:=LuCI
TITLE:=$(PKG_NAME) - $(1) translation
HIDDEN:=1
+ DEFAULT:=m if ALL||LUCI_LANG_$(1)
endef
define Package/luci-i18n-$(LUCI_BASENAME)-$(1)/install