[luci] [LuCI] #107: Nodes Routes and DHCP->Leases in menu network do not show up because translation is not loaded

LuciTrac trac at luci.subsignal.org
Mon Feb 8 16:17:18 CET 2010


#107: Nodes Routes and DHCP->Leases in menu network do not show up because
translation is not loaded
-----------------------+----------------------------------------------------
 Reporter:  reporter   |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  major      |   Milestone:     
Component:  LuCI Base  |    Keywords:     
-----------------------+----------------------------------------------------
 It seems that the line for loading the translation strings is missing in
 modules/admin-full/luasrc/controller/admin/network.lua. Therefore some of
 the nodes do not show up in the menu.

 Suggestion:

 --- luci-0.8.8/modules/admin-full/luasrc/controller/admin/network.lua.orig
 2010-02-08 16:20:23.000000000 +0100
 +++ luci-0.8.8/modules/admin-full/luasrc/controller/admin/network.lua
 2010-02-08 16:21:48.000000000 +0100
 @@ -14,6 +14,7 @@
  module("luci.controller.admin.network", package.seeall)

  function index()
 +       luci.i18n.loadc("admin-core")
         require("luci.i18n")
         local uci = require("luci.model.uci").cursor()
         local i18n = luci.i18n.translate

 Best regards,
 Tobias Waldvogel

-- 
Ticket URL: <http://luci.subsignal.org/trac/ticket/107>
LuCI <http://luci.subsignal.org/trac>
LuCI - Lua Configuration Interface


More information about the luci mailing list