Page 1 of 1

Bilingual Guestbook-Installation

Posted: Fri Nov 27, 2009 5:15 pm
by molse
/*************************************
Title: Molse's Guestbook
Version: 1.7
Author: self
Demo: not available
Download: not available
Website: http://gb.molse.de (it's not a demo!)

Short description:
Bilingual Instalation of Guestbook - German and English.
More languages should be possible
*************************************/

If someone (more than 2) here are interested for this bilingual solution, let me know. This modification is easy and you need 5 minutes for it, with testing. It's possible to install a demoversion for you and write a step by step-instruction.

Falls einige (mehr als 2) daran interessiert sind, eine zweisprachige Version des Gästebuchs zu nutzen, lasst es mich wissen. Die Modifikation ist leicht und dauert mit Test etwa 5 Minuten. Es ist möglich, eine Demoversion für euch zu installieren und eine Schritt für Schritt Anleitung zu schreiben.

Posted: Mon Nov 30, 2009 7:59 pm
by redstar82
I for shure am interested. I need a German/Slovenian version of this fantastic gbook.


So far what i have done: I created a copy of gbook.php and named it gbookde.php. I copied that on to the server into the gbook folder. I also created a copy of settings.php and copied that on the server into the gbook folder. I also added the german translations. I moddified the settingsde file in such way, that it calls for the german language file and have set the default path for the gbook php file to gbookde.php. I also modified the gbookde.php file in such way
('IN_SCRIPT',true);
require('settingsde.php');
require($settings['language']);

And i changed all the gbook.php entries to gbookde.php.

I modified the html on my german page and set the adress in the iframe, where i have put the gbook to gbookde.php.

So here is the problem.

When i load the german page, the translations change fine. But when i click the add new entry button it automaticly switches to default gbook.php slovenian translation.

So here is my question as i am a tootal n00b when it comes to php and this is actualy the first time i am doing this, and trying to use simple logic.

Where do i change the url of the add new entry button so it would point me to gbookde.php? I looked thorough the whole code and frankly i do not have a clue.


Thanks for your help!

Posted: Mon Nov 30, 2009 8:25 pm
by Klemen
My guess is you didn't change ALL instances of gbook.php to gbookde.php in the code. Check the <form action... > tag in the templates/default/sign_form.php file.

Pa lep pozdrav :wink:

Posted: Mon Nov 30, 2009 8:46 pm
by molse
Hallo Redstar,

es könnte an der Verwendung des Iframe liegen, zumindest falls du das Gästebuch in einer Frameumgebung benutzt. Ansonsten hast du praktisch den selben Weg gewählt, den auch ich verwendet habe.
Was ich bei dir vermisse bzw. was ich getan habe, ist ein eigenes Template für die zweite Sprache zu verwenden.

Checke auch noch einmal alle Links (die Toplinks) in der overall_header.php - diese steht nämlich im Template und muss daher variiert eingesetzt werden, je Sprachversion.

Posted: Mon Nov 30, 2009 10:45 pm
by redstar82
Thank you very much. I did not see that the code that i was looking for was in the templates folder.

It works like a charm now.

Klemen, za tole si definitivno zasluzis pivo :)

Posted: Tue Dec 01, 2009 4:11 pm
by Klemen
Hvala :lol: