themes: filter menu entry title through translate()

This commit is contained in:
Jo-Philipp Wich 2011-08-12 12:33:35 +00:00
parent c1d69d0146
commit 6151812920
8 changed files with 33 additions and 33 deletions

View file

@ -44,7 +44,7 @@ require("luci.http").prepare_content("text/html")
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" /> <meta http-equiv="content-script-type" content="text/javascript" />
<script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<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>
<!--[if lt IE 7]> <!--[if lt IE 7]>
<script type="text/javascript"> <script type="text/javascript">
@ -85,7 +85,7 @@ for k,v in pairs(request) do
if c.nodes and c.nodes[v] then if c.nodes and c.nodes[v] then
c = c.nodes[v] c = c.nodes[v]
url = url .. "/" .. v url = url .. "/" .. v
%><a href="<%=url%>"><%=pcdata(striptags(c.title or v))%></a> <% if k ~= #request then %>&#187; <% end %><a href="<%=url%>"><%=pcdata(striptags(translate(c.title) or v))%></a> <% if k ~= #request then %>&#187; <% end
end end
end end
%> %>
@ -119,7 +119,7 @@ local function submenu(prefix, node)
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li> <li>
<span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(nnode.title))%></a></span> <span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a></span>
<%- submenu(prefix .. v.name .. "/", nnode) %> <%- submenu(prefix .. v.name .. "/", nnode) %>
</li> </li>
<%- end %> <%- end %>
@ -142,7 +142,7 @@ if cattree and cattree.nodes then
if not node.hidden and node.title and node.target then if not node.hidden and node.title and node.target then
local href = controller.."/"..category.."/"..k.name local href = controller.."/"..category.."/"..k.name
href = (k.query) and href .. luci.http.build_querystring(k.query) or href %> href = (k.query) and href .. luci.http.build_querystring(k.query) or href %>
<div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(node.title))%></a> <div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(node.title)))%></a>
<%submenu("/" .. category .. "/" .. k.name .. "/", node)%> <%submenu("/" .. category .. "/" .. k.name .. "/", node)%>
</div> </div>
<% end <% end
@ -154,7 +154,7 @@ end
<ul><% <ul><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=pcdata(striptags(node.title))%></a></li> <li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=pcdata(striptags(translate(node.title)))%></a></li>
<% end <% end
end%> end%>
</ul> </ul>

View file

@ -45,7 +45,7 @@ require("luci.http").prepare_content("text/html")
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" /> <meta http-equiv="content-script-type" content="text/javascript" />
<script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<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>
<!--[if lt IE 7]> <!--[if lt IE 7]>
<script type="text/javascript"> <script type="text/javascript">
@ -99,7 +99,7 @@ for k,v in pairs(request) do
if c.nodes and c.nodes[v] then if c.nodes and c.nodes[v] then
c = c.nodes[v] c = c.nodes[v]
url = url .. "/" .. v url = url .. "/" .. v
%><a href="<%=url%>"><%=pcdata(striptags(c.title or v))%></a> <% if k ~= #request then %>&#187; <% end %><a href="<%=url%>"><%=pcdata(striptags(translate(c.title) or v))%></a> <% if k ~= #request then %>&#187; <% end
end end
end end
%> %>
@ -133,7 +133,7 @@ local function submenu(prefix, node)
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li> <li>
<span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(nnode.title))%></a></span> <span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a></span>
<%- submenu(prefix .. v.name .. "/", nnode) %> <%- submenu(prefix .. v.name .. "/", nnode) %>
</li> </li>
<%- end %> <%- end %>
@ -156,7 +156,7 @@ if cattree and cattree.nodes then
if not node.hidden and node.title and node.target then if not node.hidden and node.title and node.target then
local href = controller.."/"..category.."/"..k.name local href = controller.."/"..category.."/"..k.name
href = (k.query) and href .. luci.http.build_querystring(k.query) or href %> href = (k.query) and href .. luci.http.build_querystring(k.query) or href %>
<div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(node.title))%></a> <div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(node.title)))%></a>
<%submenu("/" .. category .. "/" .. k.name .. "/", node)%> <%submenu("/" .. category .. "/" .. k.name .. "/", node)%>
</div> </div>
<% end <% end
@ -168,7 +168,7 @@ end
<ul><% <ul><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=pcdata(striptags(node.title))%></a></li> <li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=pcdata(striptags(translate(node.title)))%></a></li>
<% end <% end
end%> end%>
</ul> </ul>

View file

@ -75,7 +75,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<% end -%> <% end -%>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<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> </head>
<body class="lang_<%=luci.i18n.context.lang%>"> <body class="lang_<%=luci.i18n.context.lang%>">
@ -151,7 +151,7 @@ local function submenu(prefix, node)
local href = controller .. prefix .. v.name .. "/" local href = controller .. prefix .. v.name .. "/"
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=luci.util.pcdata(href)%>"><%=nnode.title%></a><%- <li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=luci.util.pcdata(href)%>"><%=translate(nnode.title)%></a><%-
submenu(prefix .. v.name .. "/", nnode) submenu(prefix .. v.name .. "/", nnode)
%></li> %></li>
<%- <%-
@ -177,7 +177,7 @@ if cattree and cattree.nodes then
local href = controller.."/"..category.."/"..k.name.."/" local href = controller.."/"..category.."/"..k.name.."/"
href = (k.query) and href .. luci.http.build_querystring(k.query) or href href = (k.query) and href .. luci.http.build_querystring(k.query) or href
%> %>
<li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=href%>"><%=node.title%></a><% <li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=href%>"><%=translate(node.title)%></a><%
submenu("/" .. category .. "/" .. k.name .. "/", node) submenu("/" .. category .. "/" .. k.name .. "/", node)
%></li><% end %></li><% end
end end
@ -188,7 +188,7 @@ end
<ul id="modemenu"><% <ul id="modemenu"><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=node.title%></a></li><% <li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=translate(node.title)%></a></li><%
end end
end end
%> %>

View file

@ -51,7 +51,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script> <script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<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> </head>
<body class="lang_<%=luci.i18n.context.lang%>"> <body class="lang_<%=luci.i18n.context.lang%>">
@ -106,7 +106,7 @@ local function submenu(prefix, node)
local href = controller .. prefix .. v.name .. "/" local href = controller .. prefix .. v.name .. "/"
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(nnode.title))%></a><%- <li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a><%-
submenu(prefix .. v.name .. "/", nnode) submenu(prefix .. v.name .. "/", nnode)
%></li> %></li>
<%- <%-
@ -132,7 +132,7 @@ if cattree and cattree.nodes then
local href = controller.."/"..category.."/"..k.name.."/" local href = controller.."/"..category.."/"..k.name.."/"
href = (k.query) and href .. luci.http.build_querystring(k.query) or href href = (k.query) and href .. luci.http.build_querystring(k.query) or href
%> %>
<li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=pcdata(href)%>"><%=pcdata(node.title)%></a><% <li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=pcdata(href)%>"><%=pcdata(translate(node.title))%></a><%
submenu("/" .. category .. "/" .. k.name .. "/", node) submenu("/" .. category .. "/" .. k.name .. "/", node)
%></li><% end %></li><% end
end end
@ -143,7 +143,7 @@ end
<ul id="modemenu"><% <ul id="modemenu"><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=pcdata(node.title)%></a></li><% <li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=pcdata(translate(node.title))%></a></li><%
end end
end end
%> %>

View file

@ -43,7 +43,7 @@ require("luci.http").prepare_content("text/html")
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="content-script-type" content="text/javascript" /> <meta http-equiv="content-script-type" content="text/javascript" />
<script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<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>
<!--[if lt IE 7]> <!--[if lt IE 7]>
<script type="text/javascript"> <script type="text/javascript">
@ -97,7 +97,7 @@ for k,v in pairs(request) do
if c.nodes and c.nodes[v] then if c.nodes and c.nodes[v] then
c = c.nodes[v] c = c.nodes[v]
url = url .. "/" .. v url = url .. "/" .. v
%><a href="<%=url%>"><%=pcdata(striptags(c.title or v))%></a> <% if k ~= #request then %>&#187; <% end %><a href="<%=url%>"><%=pcdata(striptags(translate(c.title) or v))%></a> <% if k ~= #request then %>&#187; <% end
end end
end end
%> %>
@ -131,7 +131,7 @@ local function submenu(prefix, node)
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li> <li>
<span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(nnode.title))%></a></span> <span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a></span>
<%- submenu(prefix .. v.name .. "/", nnode) %> <%- submenu(prefix .. v.name .. "/", nnode) %>
</li> </li>
<%- end %> <%- end %>
@ -154,7 +154,7 @@ if cattree and cattree.nodes then
if not node.hidden and node.title and node.target then if not node.hidden and node.title and node.target then
local href = controller.."/"..category.."/"..k.name local href = controller.."/"..category.."/"..k.name
href = (k.query) and href .. luci.http.build_querystring(k.query) or href %> href = (k.query) and href .. luci.http.build_querystring(k.query) or href %>
<div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(node.title))%></a> <div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(node.title)))%></a>
<%submenu("/" .. category .. "/" .. k.name .. "/", node)%> <%submenu("/" .. category .. "/" .. k.name .. "/", node)%>
</div> </div>
<% end <% end
@ -166,7 +166,7 @@ end
<ul><% <ul><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=pcdata(node.title)%></a></li> <li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=pcdata(translate(node.title))%></a></li>
<% end <% end
end%> end%>
</ul> </ul>

View file

@ -51,7 +51,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<script type="text/javascript" src="<%=resource%>/VarType.js"></script> <script type="text/javascript" src="<%=resource%>/VarType.js"></script>
<script type="text/javascript" src="<%=resource%>/XHTML1.js"></script> <script type="text/javascript" src="<%=resource%>/XHTML1.js"></script>
<script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script> <script type="text/javascript" src="<%=resource%>/Dropdowns.js"></script>
<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> </head>
<body class="lang_<%=luci.i18n.context.lang%>"> <body class="lang_<%=luci.i18n.context.lang%>">
@ -98,7 +98,7 @@ local function submenu(prefix, node)
local href = controller .. prefix .. v.name .. "/" local href = controller .. prefix .. v.name .. "/"
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(nnode.title))%></a><%- <li><a<% if nnode._menu_selected then %> class="active"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(nnode.title)))%></a><%-
submenu(prefix .. v.name .. "/", nnode) submenu(prefix .. v.name .. "/", nnode)
%></li> %></li>
<%- <%-
@ -124,7 +124,7 @@ if cattree and cattree.nodes then
local href = controller.."/"..category.."/"..k.name.."/" local href = controller.."/"..category.."/"..k.name.."/"
href = (k.query) and href .. luci.http.build_querystring(k.query) or href href = (k.query) and href .. luci.http.build_querystring(k.query) or href
%> %>
<li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(node.title))%></a><% <li><a<% if node._menu_selected then %> class="preactive"<%end%> href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(node.title)))%></a><%
submenu("/" .. category .. "/" .. k.name .. "/", node) submenu("/" .. category .. "/" .. k.name .. "/", node)
%></li><% end %></li><% end
end end
@ -135,7 +135,7 @@ end
<ul id="modemenu"><% <ul id="modemenu"><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=pcdata(striptags(node.title))%></a></li><% <li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=pcdata(striptags(translate(node.title)))%></a></li><%
end end
end end
%> %>

View file

@ -82,7 +82,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
end end
%> %>
<li class="tabmenu-item-<%=v.name%><% if nnode._menu_selected or (node.leaf and v.name == leaf) then %> active<% end %>"> <li class="tabmenu-item-<%=v.name%><% if nnode._menu_selected or (node.leaf and v.name == leaf) then %> active<% end %>">
<a href="<%=nodeurl(prefix, v.name, nnode.query)%>"><%=striptags(nnode.title)%></a> <a href="<%=nodeurl(prefix, v.name, nnode.query)%>"><%=striptags(translate(nnode.title))%></a>
</li> </li>
<% <%
end end
@ -116,7 +116,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" /> <% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
<% end -%> <% end -%>
<script type="text/javascript" src="<%=resource%>/xhr.js"></script> <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
<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> </head>
<body class="lang_<%=luci.i18n.context.lang%>"> <body class="lang_<%=luci.i18n.context.lang%>">
@ -136,7 +136,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<ul id="modemenu"><% <ul id="modemenu"><%
for k,node in pairs(tree.nodes) do for k,node in pairs(tree.nodes) do
if node.title and not node.hidden then %> if node.title and not node.hidden then %>
<li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=striptags(node.title)%></a></li><% <li><a<% if request[1] == k then %> class="active"<%end%> href="<%=controller%>/<%=k%>/"><%=striptags(translate(node.title))%></a></li><%
end end
end end
%> %>

View file

@ -44,7 +44,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
<link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/dashboard.css" /> <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%>" /> <% if node and node.css then %><link rel="stylesheet" type="text/css" media="screen" href="<%=resource%>/<%=node.css%>" />
<% end -%> <% 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> </head>
<body class="lang_<%=luci.i18n.context.lang%>"> <body class="lang_<%=luci.i18n.context.lang%>">
<div id="screen"> <div id="screen">
@ -77,7 +77,7 @@ local function ucimenu(prefix, node)
local href = controller .. prefix .. v.name .. "/" local href = controller .. prefix .. v.name .. "/"
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href 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)%>"> &gt; <%=pcdata(striptags(nnode.title))%></a></span> <span><a class="menulink<% if nnode._menu_selected then %> active<%end%>" href="<%=pcdata(href)%>"> &gt; <%=pcdata(striptags(translate(nnode.title)))%></a></span>
<%- <%-
end end
end end
@ -119,7 +119,7 @@ ucimenu("/" .. category .. "/uci/", tree.nodes[category].nodes["uci"], "changes"
if pointer.nodes and pointer.nodes[v] then if pointer.nodes and pointer.nodes[v] then
pointer = pointer.nodes[v] pointer = pointer.nodes[v]
%> %>
&#187; <a href="<%=luci.dispatcher.build_url(unpack(crequest, 1, k))%>"><%=pcdata(striptags(pointer.title or v))%></a> &#187; <a href="<%=luci.dispatcher.build_url(unpack(crequest, 1, k))%>"><%=pcdata(striptags(translate(pointer.title) or v))%></a>
<% <%
end end
end end