Print Page | Close Window

MultiLingual

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14419
Printed Date: 30 March 2026 at 11:29am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: MultiLingual
Posted By: zMaestro
Subject: MultiLingual
Date Posted: 25 March 2005 at 2:56am
I'm doing a multilingual script, language text are stored as Constant,
like in the English file:

Const TxtWelcome = "Welcome"
while in the arabic file:

Const TxtWelcome = "مرحباً"
 
How can I make the language file loads depending on the users choose? If he chose Arabic so to include Lang_File_Arabic.inc, else it includes Lang_File_English.inc.
 
Doing so as an IF Statment gives a name redifined error?
 
any help?
Thanks.



Replies:
Posted By: dj air
Date Posted: 25 March 2005 at 6:09am
the only way i think it is to dim each veriable within the common.asp (where its included) file   

the just set the veriable.. not using const.. into each languge file...


Posted By: zMaestro
Date Posted: 26 March 2005 at 3:18am
That what I was doing, but when it comes to WWF it is difficult to Dim all the const in the Language file Confused
 
Will this affect the speed or loads on the server memory?


Posted By: dj air
Date Posted: 26 March 2005 at 10:26am
it is a bit server slowmess. but mainly its better programming as it then creates the allocation for the veriable within memory


but as said its not required but does help server performance and in turn site performance a bit.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net