From baa85ff93b09b9e5c8245394acb85de6bc140bb5 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Mon, 19 Aug 2013 17:22:15 -0400 Subject: [PATCH] few multilang support for test and showcase. Change-Id: If6690f20ad40f7ace2c32f71fc9dffe3b603b136 --- release/src/router/www/Makefile | 2 +- release/src/router/www/en-us.dict | 10 ++++++++++ release/src/router/www/status-overview.asp | 24 ++++++++++++------------ release/src/router/www/zh-cn.dict | 10 ++++++++++ 4 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 release/src/router/www/en-us.dict mode change 100644 => 100755 release/src/router/www/status-overview.asp create mode 100644 release/src/router/www/zh-cn.dict diff --git a/release/src/router/www/Makefile b/release/src/router/www/Makefile index 3527d0628a..da3e828e05 100644 --- a/release/src/router/www/Makefile +++ b/release/src/router/www/Makefile @@ -9,7 +9,7 @@ install: rm -rf $(INSTALLDIR)/www mkdir -p $(INSTALLDIR)/www - cp *.gif *.png *.ico *.html robots.txt $(INSTALLDIR)/www + cp *.gif *.png *.ico *.html robots.txt *.dict $(INSTALLDIR)/www # squish some of the files by trimming whitespace... diff --git a/release/src/router/www/en-us.dict b/release/src/router/www/en-us.dict new file mode 100644 index 0000000000..ee5e1da6fd --- /dev/null +++ b/release/src/router/www/en-us.dict @@ -0,0 +1,10 @@ +status_overiew=Status: Overview +ethernet_ports_state=Ethernet Ports State +tomato=Tomato +verstion=Version +attention=Attention +did_not_configure_tomatoanon=You did not configure TomatoAnon project setting +tomatoanon_choice=Please go to TomatoAnon configuration page and make a choice. +system=System +hide=hide +address=Address diff --git a/release/src/router/www/status-overview.asp b/release/src/router/www/status-overview.asp old mode 100644 new mode 100755 index b08a3d45bd..631bfc6713 --- a/release/src/router/www/status-overview.asp +++ b/release/src/router/www/status-overview.asp @@ -15,7 +15,7 @@ -[<% ident(); %>] Status: Overview +[<% ident(); %>] status_overiew <% css(); %> @@ -114,7 +114,7 @@ function ethstates() if (port == "disabled") { return 0; } var state, state1, state2; - var code = '
Ethernet Ports State
'; + var code = '
<#ethernet_ports_state#>
'; code += ''; if (port == "DOWN") { @@ -338,8 +338,8 @@ function toggleVisibility(whichone) {
WAN
LAN 1
LAN 2
LAN 3
LAN 4
@@ -350,13 +350,13 @@ function toggleVisibility(whichone) { -
System (hide)
+
<#system#> (<#hide#>)