Author |
Message |
12/04/2005 15:55:24
|
killerfrog
Newbie
Joined: 12/04/2005 15:51:55
Messages: 3
Offline
|
Hi,
I'm looking for a way for my users to switch language on the guestbook on my website cause it's avaible in french and english, but the link to the guestbook is the same for both language.
If anyone has a piece of code I could add, it would be very nice to share.
Thx
|
|
12/04/2005 16:45:47
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
You could either do it by using cookies or use two different guestbook folders and make a new MySQL table called book_cfg2. Copy the config.inc.php file from your current guestbook to the new guestbook but change $GB_TBL["cfg"] = "book_config"; to $GB_TBL["cfg"] = "book_config2";. You can now specify one book to use English and one French.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
13/04/2005 00:34:17
|
killerfrog
Newbie
Joined: 12/04/2005 15:51:55
Messages: 3
Offline
|
thx for explanations, but I would prefer people using like a drop down menu to switch language. Idea of using cookies look like good to me.
Actualy, I use Mambo 4.5.2.1 with mambelfish 1.5 to translate the website, and I redirect a link as wrapper (iframe) to the guestbook but i'dd like people could change the language really easily. I'm not a programmer either a webmaster (just doing this for a family member) so explanations from you or someone else would be very gratefull.
I speak about cookies cause mambelfish use cookies too.
So if I want to add a drop down menu in witch people could switch language of the inferface (not comments : I want to keep comments in English and in French toguether), what can I do?
Thx
|
|
13/04/2005 00:43:17
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
With mamblefish did you have to supply the wording for the other language or is it a web based translator that translates the whole page for you?
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
13/04/2005 01:25:55
|
killerfrog
Newbie
Joined: 12/04/2005 15:51:55
Messages: 3
Offline
|
it only replace text with translation you have written and use the language file installed for the core part.
Have a look on the website : http://www.danybouchard.com
|
|
|