Gossamer Forum
Home : Products : DBMan : Customization :

one .cfg file but two html.pl files!!!!!

Quote Reply
one .cfg file but two html.pl files!!!!!
Hello,

I have one question:

I want to have two html.pl files in my database: (german html.pl and english html.pl) and I want to use only one database. What would be the best solution for my problem?

thanks in advance
Quote Reply
Re: [uhrwerk] one .cfg file but two html.pl files!!!!! In reply to
I show you what I have already made:

In order to let visitors to choose different language versions of dbman, I made a copy of my current relational dbman scripts and gave them different name. Then I changed the settings in the newly copied .cfg file to specify the new .cgi and .pl files. The entire files will look like this:

english version:

html.pl

default.cfg

db.cgi

default.db

default.count

default.pass

auth.pl

default.log



german version:

html_de.pl

db_de.cgi

default_de.cfg



In db_de.cgi I have changed:

$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');
with

$in{'db'} ? ($db_setup = "$in{'db'}_de") : ($db_setup = 'default');

But it doesn't work!
Quote Reply
Re: [uhrwerk] one .cfg file but two html.pl files!!!!! In reply to
Have you by any chance search the forum or the FAQ for a solution? I know that there have been posts which covered how to setup your databases to use various languages.

Try searhing on "language" both here and in the DBMan FAQ noted below.

I'm sorry I don't have time to locate it myself right now.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/