* 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
|
||||
$(call Package/luci/template)
|
||||
MENU:=1
|
||||
DEPENDS:=+lua +luaposix +luci-addons
|
||||
endef
|
||||
|
||||
define Package/luci/conffiles
|
||||
/etc/config/luci
|
||||
DEPENDS:=+lua +luaposix
|
||||
endef
|
||||
|
||||
define Package/luci/install
|
||||
$(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)
|
||||
endef
|
||||
|
||||
|
||||
|
||||
### Community Packages ###
|
||||
|
||||
define Package/luci-ff-halle
|
||||
|
@ -111,7 +124,7 @@ endef
|
|||
|
||||
define Package/luci-mod-admin-core
|
||||
$(call Package/luci/template)
|
||||
DEPENDS:=luci
|
||||
DEPENDS:=luci +luci-web
|
||||
TITLE:=Core administrative pages
|
||||
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
|
|
@ -127,7 +127,10 @@ function dispatch()
|
|||
tpl.viewns.uploadctrl = luci.http.dispatcher_upload()
|
||||
tpl.viewns.media = luci.config.main.mediaurlbase
|
||||
tpl.viewns.resource = luci.config.main.resourcebase
|
||||
|
||||
|
||||
-- Load default translation
|
||||
require("luci.i18n").loadc("default")
|
||||
|
||||
|
||||
if c and type(c.target) == "function" then
|
||||
dispatched = c
|
Loading…
Reference in a new issue