international(english/spanish) self signup mod

Karl Hiramoto karl at hiramoto.org
Tue Mar 1 07:05:25 PST 2005


If anyone is interested..   I've started, but not translated the error 
pages yet.  What i could use some help on is how to modify 
$FREESIDE_DIR/bin/populate-msgcat  

What I did was introduce a variable hlang so you can link to 
signup.cgi?hlang=es

and it will output spanish.   I translated the parts of signup.html I am 
using to signup_es.html    I also had to modify the perl to accept the 
accent marks spanish can possibly use on the vowls and the N.  These 
chars are all in the western european charset=iso-8859-1

I'm providing links to an internal server with english and spanish 
versions of the signup form, so i just link to signup.cgi?hlang=es for 
the spanish version.   I've attaced a tar.gz of the code.

Code snip:

$cgi = new CGI;

if($cgi->param('hlang') eq 'es')
{
    $signup_html = -e 'signup_es.html'
                 ? 'signup_es.html'
                 : '/usr/local/freeside/signup.html';

}
else
{
    $signup_html = -e 'signup.html'
                 ? 'signup.html'
                 : '/usr/local/freeside/signup.html';
}


-- 

---
Karl Hiramoto <karl at hiramoto.org>
US VOIP: 603.966.4448
Spain Home from US 011(34) 952.827.554
Spain Home from EU 00 (34) 952.827.554
Spain Mobil 011 (34) 617.463.826
Yahoo_IM = karl_hiramoto   jabber.org=karl_hiramoto
------
-
Matz's Law:
	A conclusion is the place where you got tired of thinking.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signup_hlang.tar.gz
Type: application/x-gzip
Size: 29472 bytes
Desc: not available
Url : http://420.am/pipermail/freeside-users/attachments/20050301/c3927017/signup_hlang.tar.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: karl.vcf
Type: text/x-vcard
Size: 101 bytes
Desc: not available
Url : http://420.am/pipermail/freeside-users/attachments/20050301/c3927017/karl.vcf


More information about the freeside-users mailing list