Print Page | Close Window

Change language (ASP)

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20374
Printed Date: 11 April 2026 at 10:09am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Change language (ASP)
Posted By: Locturian
Subject: Change language (ASP)
Date Posted: 20 June 2006 at 5:53pm

Hi

I'm set up with 2 sets of language files. The english language is located in a subfolder called eng - My questions is, how to include the proper file, depending on what language the rest of the site is running?
 
Cause - This doesn't work as the site will load the inc files firs
 
If language = "english" then
<!--#include file="language_files/ENG/language_file_inc.asp" -->
else
<!--#include file="language_files/language_file_inc_no_const.asp" -->
end if
 
Hope that someone can tell me the proper way to do it :)
 
(Sorry for the respost, made a mistake posting it in the old part)
 
In advance, thanx



Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 June 2006 at 5:57pm
When you declare and set the value for a Const it can not be changed as it is a constent.

What you would need to do it remove the 'const' part from both files, then create a file with all the variables in, but with Dim were the Const part is.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Locturian
Date Posted: 20 June 2006 at 6:12pm
thx, it worked great ;)



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