* luci/themes/openwrt.org: use language from i18n context
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Oct 2008 16:09:52 +0000 (16:09 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 5 Oct 2008 16:09:52 +0000 (16:09 +0000)
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 05ee94f..72240cd 100644 (file)
@@ -34,9 +34,10 @@ require("luci.i18n").loadc("default")
 require("luci.http").prepare_content("application/xhtml+xml")
 
 -%>
+
 <?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">
-<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>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta http-equiv="Content-Script-Type" content="text/javascript" />
@@ -130,7 +131,7 @@ end
 <ul id="modemenu"><%
 for k,node in pairs(tree.nodes) do
        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
 %>