* luci/themes/openwrt.org: use language from i18n context
This commit is contained in:
parent
255449a1e2
commit
9b13d8a403
1 changed files with 3 additions and 2 deletions
|
@ -34,9 +34,10 @@ require("luci.i18n").loadc("default")
|
||||||
require("luci.http").prepare_content("application/xhtml+xml")
|
require("luci.http").prepare_content("application/xhtml+xml")
|
||||||
|
|
||||||
-%>
|
-%>
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=luci.config.main.lang%>" lang="<%=luci.config.main.lang%>">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=luci.i18n.context.lang%>" lang="<%=luci.i18n.context.lang%>">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||||
|
@ -130,7 +131,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%>/"><%=node.title%></a></li><%
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
|
Loading…
Reference in a new issue