Explorar o código

gluon-core: add i18n support

Matthias Schiffer %!s(int64=9) %!d(string=hai) anos
pai
achega
dce26de28c
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      package/gluon-core/Makefile

+ 15 - 0
package/gluon-core/Makefile

@@ -15,6 +15,21 @@ define Package/gluon-core
   DEPENDS:=+gluon-config +lua-platform-info +luci-lib-nixio +odhcp6c +firewall
 endef
 
+
+define LangConfig
+config GLUON_LANG_$(1)
+	bool "$(GLUON_LANG_$(1)) language support"
+	depends on PACKAGE_gluon-core
+	default n
+
+endef
+
+
+define Package/gluon-core/config
+$(foreach lang,$(GLUON_SUPPORTED_LANGS),$(call LangConfig,$(lang)))
+endef
+
+
 define Package/gluon-core/description
 	Gluon community wifi mesh firmware framework: core
 endef