diff options
author | Steven Barth <steven@midlink.org> | 2008-07-15 13:42:54 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-15 13:42:54 +0000 |
commit | 012af10360aba063b96d34c3af81c1d50a8d3579 (patch) | |
tree | 998950a0f65070c3b20cd4d8197ecf0925fa62c6 | |
parent | d0a622dce8163cb1f9d0a178127b7abda6c4e818 (diff) |
Generalized UCI changes display
i18n: some nicer looking translations
-rw-r--r-- | i18n/english/luasrc/i18n/cbi.en.lua | 2 | ||||
-rw-r--r-- | i18n/german/luasrc/i18n/admin-core.de.lua | 1 | ||||
-rw-r--r-- | i18n/german/luasrc/i18n/cbi.de.lua | 2 | ||||
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/index.lua | 1 | ||||
-rw-r--r-- | themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 8 |
5 files changed, 8 insertions, 6 deletions
diff --git a/i18n/english/luasrc/i18n/cbi.en.lua b/i18n/english/luasrc/i18n/cbi.en.lua index 6069cec453..b681cfb092 100644 --- a/i18n/english/luasrc/i18n/cbi.en.lua +++ b/i18n/english/luasrc/i18n/cbi.en.lua @@ -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 diff --git a/i18n/german/luasrc/i18n/admin-core.de.lua b/i18n/german/luasrc/i18n/admin-core.de.lua index 3667fb196b..0c3c06a85d 100644 --- a/i18n/german/luasrc/i18n/admin-core.de.lua +++ b/i18n/german/luasrc/i18n/admin-core.de.lua @@ -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, diff --git a/i18n/german/luasrc/i18n/cbi.de.lua b/i18n/german/luasrc/i18n/cbi.de.lua index ed4a091599..baa3a80da1 100644 --- a/i18n/german/luasrc/i18n/cbi.de.lua +++ b/i18n/german/luasrc/i18n/cbi.de.lua @@ -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 diff --git a/modules/admin-full/luasrc/controller/admin/index.lua b/modules/admin-full/luasrc/controller/admin/index.lua index eb58e00422..430c5b82c5 100644 --- a/modules/admin-full/luasrc/controller/admin/index.lua +++ b/modules/admin-full/luasrc/controller/admin/index.lua @@ -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") diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm index 1ae5df9229..7b711d0625 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -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> |