* Separated the MVC-Webframework from core
* Separated i18n from core to prepare translations
This commit is contained in:
parent
d4399bf618
commit
b8124f18f8
35 changed files with 27 additions and 21 deletions
|
@ -46,19 +46,32 @@ endef
|
||||||
define Package/luci
|
define Package/luci
|
||||||
$(call Package/luci/template)
|
$(call Package/luci/template)
|
||||||
MENU:=1
|
MENU:=1
|
||||||
DEPENDS:=+lua +luaposix +luci-addons
|
DEPENDS:=+lua +luaposix
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/luci/conffiles
|
|
||||||
/etc/config/luci
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/luci/install
|
define Package/luci/install
|
||||||
$(call Package/luci/install/template,$(1),core)
|
$(call Package/luci/install/template,$(1),core)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
### Web Packages ###
|
||||||
|
define Package/luci-web
|
||||||
|
$(call Package/luci/template)
|
||||||
|
DEPENDS:=luci +luci-addons
|
||||||
|
TITLE:=LuCI - Webframework
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/luci-web/conffiles
|
||||||
|
/etc/config/luci
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/luci-web/install
|
||||||
|
$(call Package/luci/install/template,$(1),web)
|
||||||
$(call Package/luci/install/template,$(1),themes/fledermaus)
|
$(call Package/luci/install/template,$(1),themes/fledermaus)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Community Packages ###
|
### Community Packages ###
|
||||||
|
|
||||||
define Package/luci-ff-halle
|
define Package/luci-ff-halle
|
||||||
|
@ -111,7 +124,7 @@ endef
|
||||||
|
|
||||||
define Package/luci-mod-admin-core
|
define Package/luci-mod-admin-core
|
||||||
$(call Package/luci/template)
|
$(call Package/luci/template)
|
||||||
DEPENDS:=luci
|
DEPENDS:=luci +luci-web
|
||||||
TITLE:=Core administrative pages
|
TITLE:=Core administrative pages
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
add = "Add"
|
|
||||||
save = "Save"
|
|
||||||
reset = "Reset"
|
|
||||||
|
|
||||||
load = "Load"
|
|
||||||
webif = "Webinterface"
|
|
||||||
public = "Public"
|
|
||||||
admin = "Administration"
|
|
||||||
apply = "Apply"
|
|
||||||
changes = "Changes"
|
|
||||||
revert = "Revert"
|
|
||||||
|
|
||||||
config = "Configuration"
|
|
||||||
path = "Path"
|
|
2
i18n/english/Makefile
Normal file
2
i18n/english/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
include ../../build/config.mk
|
||||||
|
include ../../build/module.mk
|
2
web/Makefile
Normal file
2
web/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
include ../build/config.mk
|
||||||
|
include ../build/module.mk
|
|
@ -128,6 +128,9 @@ function dispatch()
|
||||||
tpl.viewns.media = luci.config.main.mediaurlbase
|
tpl.viewns.media = luci.config.main.mediaurlbase
|
||||||
tpl.viewns.resource = luci.config.main.resourcebase
|
tpl.viewns.resource = luci.config.main.resourcebase
|
||||||
|
|
||||||
|
-- Load default translation
|
||||||
|
require("luci.i18n").loadc("default")
|
||||||
|
|
||||||
|
|
||||||
if c and type(c.target) == "function" then
|
if c and type(c.target) == "function" then
|
||||||
dispatched = c
|
dispatched = c
|
Loading…
Reference in a new issue