nhovehn
06-27-2005, 04:44 PM
Hi,
I design a website by asp and in two languages (English & Vietnamese).
I have lang directory and contain 2 files: vn.asp and en.asp
Content of 2 files:
File vn.asp:
CONST MSG_TITLE = "Word in Vietnamese here"
and File en.asp:
CONST MSG_TITLE = "Word in English here"
I have index.asp file in root directory, in this file have some contents:
<%
lang=Request.QueryString("lang")
Select Case lang
Case "vn"
%>
<!--
#include file="lang/vn.asp"
-->
<%
Case "en"
%>
<!--
#include file="lang/en.asp"
-->
<%
End Select
%>
...
<A Href="index.asp?lang=vn">Vietnamese</A>
<A Href="index.asp?lang=en">English</A>
...
But have problem when I access this index.asp:
Error Type:
Microsoft VBScript compilation (0x800A0411)
Name redefined
/lang/en.lang.asp, line 3, column 6
CONST MSG_TITLE = "Word in Vietnamese here"
Someone help me plz!
Thks
I design a website by asp and in two languages (English & Vietnamese).
I have lang directory and contain 2 files: vn.asp and en.asp
Content of 2 files:
File vn.asp:
CONST MSG_TITLE = "Word in Vietnamese here"
and File en.asp:
CONST MSG_TITLE = "Word in English here"
I have index.asp file in root directory, in this file have some contents:
<%
lang=Request.QueryString("lang")
Select Case lang
Case "vn"
%>
<!--
#include file="lang/vn.asp"
-->
<%
Case "en"
%>
<!--
#include file="lang/en.asp"
-->
<%
End Select
%>
...
<A Href="index.asp?lang=vn">Vietnamese</A>
<A Href="index.asp?lang=en">English</A>
...
But have problem when I access this index.asp:
Error Type:
Microsoft VBScript compilation (0x800A0411)
Name redefined
/lang/en.lang.asp, line 3, column 6
CONST MSG_TITLE = "Word in Vietnamese here"
Someone help me plz!
Thks