From 6151812920880233d953dd840e4f0bee59321ae7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 12 Aug 2011 12:33:35 +0000 Subject: themes: filter menu entry title through translate() --- .../luasrc/view/themes/freifunk-generic/header.htm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'themes/freifunk-generic/luasrc/view') diff --git a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index 412b7e0cf6..513471da50 100644 --- a/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -75,7 +75,7 @@ require("luci.http").prepare_content("application/xhtml+xml") <% end -%> -<%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI +<%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI @@ -151,7 +151,7 @@ local function submenu(prefix, node) local href = controller .. prefix .. v.name .. "/" href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href %> -
  • class="active"<%end%> href="<%=luci.util.pcdata(href)%>"><%=nnode.title%><%- +
  • class="active"<%end%> href="<%=luci.util.pcdata(href)%>"><%=translate(nnode.title)%><%- submenu(prefix .. v.name .. "/", nnode) %>
  • <%- @@ -177,7 +177,7 @@ if cattree and cattree.nodes then local href = controller.."/"..category.."/"..k.name.."/" href = (k.query) and href .. luci.http.build_querystring(k.query) or href %> -
  • class="preactive"<%end%> href="<%=href%>"><%=node.title%><% +
  • class="preactive"<%end%> href="<%=href%>"><%=translate(node.title)%><% submenu("/" .. category .. "/" .. k.name .. "/", node) %>
  • <% end end @@ -188,7 +188,7 @@ end