Author |
Message |
17/04/2007 14:30:53
|
aapdesign
Beginner
Joined: 17/04/2007 13:55:45
Messages: 5
Location: Bosschenhoofd - NL
Offline
|
I've read several posts about changing languages while opening the Guestbook, but it doesn't fit to my situation.
In the website menu there are three differant languages : dutch, english and german.The three seperate links to the guestbook is normaly : ././index.php
Is it possible to give an extra parameter so that the correct language wil be added to the lay-out? E.g. what you have to change in the adminsection - general settings?
Now I have filled up the dutch langmodule with english and german phrases, but this is not a good solution whole the way.
Using some german characters like ä or ü will give a unreadble characters. (Strange - the german langmodule seems to work correctly if you use that mod., but even when I copy phrases from there into the dutch langmodule it failed.
But that problem is solved if it is possible to extend the link with a parameter for correct language.)
But anyway, it is a great Guestbook and nice scripts to work with!
|
|
17/04/2007 21:27:04
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
The guestbook will honour the language you have set in the lang variable of a cookie. Just have your site write a cookie dependant on what language the guest is using.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
18/04/2007 13:08:32
|
aapdesign
Beginner
Joined: 17/04/2007 13:55:45
Messages: 5
Location: Bosschenhoofd - NL
Offline
|
Thanks for reply.
How should this cooky loke like?
I'm no so familiar in writing cookies?
And how does this works?
Does it means that a viewer in Germany gets the german lang layout?
And a dutch viewer the dutch langmod?
And all this in one link from the menu?
On what preferences on viewers PC is this depending?
(I hope you understand my poor English...)
|
|
18/04/2007 18:24:02
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
YThe easiest way would be to use PHP pages for each section and put this right at the start of the page before everything else.
<?php setcookie("lang", "german"); ?>
Changing the german to dutch or english as appropriate.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
18/04/2007 18:53:10
|
aapdesign
Beginner
Joined: 17/04/2007 13:55:45
Messages: 5
Location: Bosschenhoofd - NL
Offline
|
aha, I have to made a new php page myself as link to the guestbook with this:
<?php setcookie("lang", "german"); ?>
and than redirect to index.php ?
Btw how do I redirect in php?...
|
|
18/04/2007 18:56:07
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
header("Location: http://yourdomain/guestbook/index.php");
Again it must be at the start of the page but after the cookie bit.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
18/04/2007 19:31:06
|
aapdesign
Beginner
Joined: 17/04/2007 13:55:45
Messages: 5
Location: Bosschenhoofd - NL
Offline
|
Perhaps you will check out this testsite:
http://85.92.144.84/~daytona/test/
and then pls tell me where to past the php rule you give me first...
|
|
|