Page 1 of 1

How can I change to spanish languaje guestbook?

Posted: Sat Feb 06, 2010 12:50 am
by CoUdErMaNn
Script URL: http://www.elfaroensenada.com/gbook.php?a=sign
Version of script:1.7 from 20th August 2009
Hosting company:bluehost.com
URL of phpinfo.php: http://www.elfaroensenada.com/gbook.php
URL of session_test.php:http://www.elfaroensenada.com/gbook.php
What terms did you try when SEARCHING for a solution:

Write your message below: Tell me how can I change guestbook to spanish languaje?

Posted: Sat Feb 06, 2010 8:13 am
by Henrie
Hello CoUdErMaNn,

You can find how to do it in the readme. htm file which is in the zip-file of the GBook you downloaded.
Inside the readme.htm file look in the index and click the Translate GBook to your language link to get to the right place in the document.

You can use one of the translations for version 1.6 as a base:
viewtopic.php?t=2222
viewtopic.php?t=1977
But strings were added and changed as you can see when you look at the original english version file langauge.inc.php

Greetings,
Henrie

Posted: Sun Feb 07, 2010 2:39 am
by CoUdErMaNn
Thanks Henry! I`l do it :lol:

Posted: Tue Feb 09, 2010 5:03 pm
by Henrie
CoUdErMaNn wrote:Thanks Henry! I`l do it :lol:
I saw you have translated the guestbook. Would you be willing to share it in the GBook - guestbook add-ons section so other users can use it when needed?

Greetings,
Henrie

Posted: Fri Mar 05, 2010 10:04 am
by elgüero
Hi, I've translated a *few* of the new 1.7 texts into Spanish (only the ones I needed). Some of the "updated" ones don't really need to be changed from the 1.6 Spanish file, they're just subtle wording differences.

I also had an issue with the mail() function, if you set the guestbook to need manual approval. If there are any Spanish characters in the email, they don't get rendered properly when the admin receives it (ex. ñ becomes amp-hash-241;). I got around this by changing the parameter of the mail function in gbook.php to "Content-type: text/html;"

/* Added or modified in version 1.7 */
$lang['t01']='Número de mensajes: %d';
$lang['t75']='Número de páginas: %d';
$lang['t02']='« Primera';
$lang['t03']='‹ Anterior';
$lang['t04']='Siguiente ›';
$lang['t05']='última »';

$lang['t11']='« Libro de Visitas';

$lang['t72']='Cerrar Ventana';
$lang['m01']='enero';
$lang['m02']='febrero';
$lang['m03']='marzo';
$lang['m04']='abril';
$lang['m05']='mayo';
$lang['m06']='junio';
$lang['m07']='julio';
$lang['m08']='agosto';
$lang['m09']='septiembre';
$lang['m10']='octubre';
$lang['m11']='noviembre';
$lang['m12']='diciembre';
$lang['t81']='Ya tienes un mensaje esperando ser aprobado';
$lang['t85']='Gracias. Tu mensaje ha sido enviado para su aprobación.';

/* Added 25th November 2009 */
$lang['t88']='Enviar mi comentario';