Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MultiLingual
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MultiLingual

 Post Reply Post Reply
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: MultiLingual
    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.
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.