diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 12:33:35 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 12:33:35 +0000 |
commit | 6151812920880233d953dd840e4f0bee59321ae7 (patch) | |
tree | e46bb9f08c55cac8fd510661c53be9f4cc078882 /themes/oxygen/luasrc | |
parent | c1d69d0146f05c41a9ab0e8951947e57b3b77174 (diff) |
themes: filter menu entry title through translate()
Diffstat (limited to 'themes/oxygen/luasrc')
-rw-r--r-- | themes/oxygen/luasrc/view/themes/oxygen/header.htm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/oxygen/luasrc/view/themes/oxygen/header.htm b/themes/oxygen/luasrc/view/themes/oxygen/header.htm index 86ba77596..56bb52260 100644 --- a/themes/oxygen/luasrc/view/themes/oxygen/header.htm +++ b/themes/oxygen/luasrc/view/themes/oxygen/header.htm @@ -44,7 +44,7 @@ require("luci.http").prepare_content("application/xhtml+xml") <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/dashboard.css" /> <% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" /> <% end -%> -<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. node.title or '')) %> - LuCI</title> +<title><%=striptags( hostname .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title> </head> <body class="lang_<%=luci.i18n.context.lang%>"> <div id="screen"> @@ -77,7 +77,7 @@ local function ucimenu(prefix, node) local href = controller .. prefix .. v.name .. "/" href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href %> -<span><a class="menulink<% if nnode._menu_selected then %> active<%end%>" href="<%=pcdata(href)%>"> > <%=pcdata(striptags(nnode.title))%></a></span> +<span><a class="menulink<% if nnode._menu_selected then %> active<%end%>" href="<%=pcdata(href)%>"> > <%=pcdata(striptags(translate(nnode.title)))%></a></span> <%- end end @@ -119,7 +119,7 @@ ucimenu("/" .. category .. "/uci/", tree.nodes[category].nodes["uci"], "changes" if pointer.nodes and pointer.nodes[v] then pointer = pointer.nodes[v] %> - » <a href="<%=luci.dispatcher.build_url(unpack(crequest, 1, k))%>"><%=pcdata(striptags(pointer.title or v))%></a> + » <a href="<%=luci.dispatcher.build_url(unpack(crequest, 1, k))%>"><%=pcdata(striptags(translate(pointer.title) or v))%></a> <% end end |