Ver código fonte

gluon-core: add i18n support

Matthias Schiffer 9 anos atrás
pai
commit
dce26de28c
1 arquivos alterados com 15 adições e 0 exclusões
  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