Generalized UCI changes display
authorSteven Barth <steven@midlink.org>
Tue, 15 Jul 2008 13:42:54 +0000 (13:42 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 15 Jul 2008 13:42:54 +0000 (13:42 +0000)
i18n: some nicer looking translations

i18n/english/luasrc/i18n/cbi.en.lua
i18n/german/luasrc/i18n/admin-core.de.lua
i18n/german/luasrc/i18n/cbi.de.lua
modules/admin-full/luasrc/controller/admin/index.lua
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 6069cec..b681cfb 100644 (file)
@@ -1,4 +1,4 @@
 cbi_add = "Add entry"
 cbi_del = "Remove entry"
 cbi_invalid = "Error: Invalid input value"
-cbi_addopt = "-- Field --"
\ No newline at end of file
+cbi_addopt = "-- Additional Field --"
\ No newline at end of file
index 3667fb1..0c3c06a 100644 (file)
@@ -10,6 +10,7 @@ a_i_i_team = [[Das LuCI-Team]]
 a_i_keepflash = [[Zu übernehmende Dateien bei Firmwareupgrade]]
 a_i_keepflash1 = [[Die folgenden Dateien und Verzeichnisse werden beim Aktualisieren der Firmware
 über die Oberfläche automatisch in die neue Firmware übernommen.]]
+a_i_luci1 = "Hier können Eigenschaften und die Funktionalität der Oberfläche angepasst werden."
 a_i_ucicommit = [[UCI-Befehle beim Anwenden]]
 a_i_ucicommit1 = [[Beim Anwenden
 der Konfiguration aus der Oberflächliche heraus können automatisch die relevanten Dienste neugestart werden,
index ed4a091..baa3a80 100644 (file)
@@ -1,4 +1,4 @@
 cbi_add = "Eintrag hinzufügen"
 cbi_del = "Eintrag entfernen"
 cbi_invalid = "Error: Ungültige Eingabe"
-cbi_addopt = "-- Feld --"
\ No newline at end of file
+cbi_addopt = "-- Zusätzliches Feld --"
\ No newline at end of file
index eb58e00..430c5b8 100644 (file)
@@ -30,6 +30,7 @@ function index()
        page.order   = 10
        page.i18n    = "admin-core"
        page.sysauth = "root"
+       page.ucidata = true
        
        local page  = node("admin", "index")
        page.target = template("admin_index/index")
index 1ae5df9..7b711d0 100644 (file)
@@ -157,7 +157,7 @@ end
        </div>
 
        <%
-               if "admin" == request[1] then
+               if tree.nodes[category].ucidata then
                        local ucic = 0
                        for i, j in pairs(require("luci.model.uci").changes()) do
                                for k, l in pairs(j) do
@@ -170,10 +170,10 @@ end
        <div class="mainmenu" style="float:right; margin-right:2em">
                <div>
                        <% if ucic > 0 then %>
-                       <a href="<%=controller%>/admin/uci/changes"><%:changes%>: <%=ucic%></a>
+                       <a href="<%=controller%>/<%=category%>/uci/changes"><%:changes%>: <%=ucic%></a>
                        <ul>
-                               <li><a href="<%=controller%>/admin/uci/apply"><%:apply%></a></li>
-                               <li><a href="<%=controller%>/admin/uci/revert"><%:revert%></a></li>
+                               <li><a href="<%=controller%>/<%=category%>/uci/apply"><%:apply%></a></li>
+                               <li><a href="<%=controller%>/<%=category%>/uci/revert"><%:revert%></a></li>
                        </ul>
                        <% else %>
                        <a href="#"><%:changes%>: 0</a>