Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Database - ASP - Languages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Database - ASP - Languages

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


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Topic: Database - ASP - Languages
    Posted: 19 May 2003 at 9:50pm

I want to use several instances of the forum in the same database. Each instance will store a seperate language.

Can I do a global search and replace in every file in the forum code to change table and stored proceedure names like this:

tblAuthors becomes:

LCtblAuthors

Where LC is the ISO639 2 character language code - the one you get from HTTP headers. e.g English = en, Spanish = es, Japanese = ja, etc.

Is this possible? I don't know the internal code well enough to know whether this is possible.

The reason is that I want to use more than one language for the forums, but I also want to be able to integrate the forum into an already multilingual database driven website.

Thanks for any help

 

 

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 9:57pm

OK - Silly me...

From the msSQL_server_setup.asp file

'Set up the database table name prefix and stored procedure prefix
'(This is useful if you are running multiple forums from one database)
' - make sure you also change this in the common.asp files

Const strDbTable = "tbl"
Const strDbProc = "wwfSp"

And from the common.asp file

'Set up the database table name prefix and stored procedure prefix
'(This is useful if you are running multiple forums from one database)
' - make sure you also change this in the msSQL_server_setup.asp file if setting up an ms SQL server database)

Const strDbTable = "tbl"
Const strDbProc = "wwfSp"

Does this answer my question? It looks like it does.

Has anyone done this? Are there any other issues that I might need to take care of? Is it that simple? It looks too darn easy...

 

Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2003 at 10:54pm

Didn't work...

Changed the two instances in the common.asp and the DB setup file.

Used different directories for each instance of the forum, same database, but... I ended up with everything going into the default installation...

So I dropped the testing database, recreated it, redid it all, noticed that there are 2 common.asp files - kicked myself for not reading that final s... (think I'm going blind) - fixed that, monkeyed around and got stuff working.

So... no - it's not that easy if you are blind, but over-all - yes - it is that easy...

Cheers

 

 

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.