You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Francesco Pasqualini <f....@cpsinformatica.it> on 2000/08/29 14:58:13 UTC

multilanguage site

can someone suggest me the best way to build a multilanguage web site
(english, french, ..).
I'm using Apache + mod_perl + Apache::asp (for applications)

Can be usefull XML/XSL whit AxKit ?
Is there any example/guideline ?

Thanks
Francesco Pasqualini


Re: multilanguage site

Posted by David Hodgkinson <da...@hodgkinson.org>.
"Francesco Pasqualini" <f....@cpsinformatica.it> writes:

> can someone suggest me the best way to build a multilanguage web site
> (english, french, ..).
> I'm using Apache + mod_perl + Apache::asp (for applications)
> 
> Can be usefull XML/XSL whit AxKit ?
> Is there any example/guideline ?

I'm interested in this too :-) The Deep Purple site just went vaguely
multilingual, but I'm doing this with straight Apache MultiViews
(which _are_ honoured by SSI, which is nice) and I can see this
becoming a huge headache.

I'd like to do it with the Template Toolkit if at all possible.

Dave

-- 
Dave Hodgkinson,                             http://www.hodgkinson.org
Editor-in-chief, The Highway Star           http://www.deep-purple.com
      Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -----------------------------------------------------------------

Re: multilanguage site

Posted by Paul Lindner <pl...@redhat.com>.
On Tue, Aug 29, 2000 at 01:10:46PM -0700, Joshua Chamas wrote:
> Francesco Pasqualini wrote:
> > 
> > can someone suggest me the best way to build a multilanguage web site
> > (english, french, ..).
> > I'm using Apache + mod_perl + Apache::asp (for applications)
> > 
> > Can be usefull XML/XSL whit AxKit ?
> > Is there any example/guideline ?
> > 
> 
> The approach used by Paul at RedHat seems to have been
> to wrap internationalized messages with <tag>message</tag>
> where <tag> is an XMLSub, which would do a lookup at runtime
> into a message catalog for the right message, based on what
> language the client was set to.  I'm sure its much more
> complicated than that, but that was the gist of it.

Yeah, it's more complicated than that.  :-)

Basically there are four tools that we use, based on a hacked version
of Locale::PGetText, and the standard .po file format provided by GNU
gettext.  The tools are:


XText      - extracts <msg>xxx</msg> text, Apps::gettext() strings into
             messages.po

... then we cp messages.po to messages.<LANGCODE>.po and convert

MsgProcess - processes messages.<LANGCODE>.po into messages.db

msgmerge   - standard GNU gettext stuff.


At runtime the code dynamically looks up the message text in the local
messages.db file.

Let me know if anyone is interested in this stuff.  It's a bit rough
at this point but works quite well for us.


-- 
Paul Lindner
plindner@redhat.com
Red Hat Inc.

Re: multilanguage site

Posted by Joshua Chamas <jo...@chamas.com>.
Francesco Pasqualini wrote:
> 
> can someone suggest me the best way to build a multilanguage web site
> (english, french, ..).
> I'm using Apache + mod_perl + Apache::asp (for applications)
> 
> Can be usefull XML/XSL whit AxKit ?
> Is there any example/guideline ?
> 

The approach used by Paul at RedHat seems to have been
to wrap internationalized messages with <tag>message</tag>
where <tag> is an XMLSub, which would do a lookup at runtime
into a message catalog for the right message, based on what
language the client was set to.  I'm sure its much more
complicated than that, but that was the gist of it.

-- Joshua
_________________________________________________________________
Joshua Chamas			        Chamas Enterprises Inc.
NodeWorks >> free web link monitoring	Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Re: multilanguage site

Posted by Matt Sergeant <ma...@sergeant.org>.
On Tue, 29 Aug 2000, Stas Bekman wrote:

> On Tue, 29 Aug 2000, Matt Sergeant wrote:
> 
> > On Tue, 29 Aug 2000, Francesco Pasqualini wrote:
> > 
> > > can someone suggest me the best way to build a multilanguage web site
> > > (english, french, ..).
> > > I'm using Apache + mod_perl + Apache::asp (for applications)
> > > 
> > > Can be usefull XML/XSL whit AxKit ?
> > > Is there any example/guideline ?
> > 
> > This month's Web Techniques is all about this (albeit in a framework
> > independant manner). I suggest you try as hard as you can to get a copy as
> > it covers way more than I could possibly type here.
> 
> You can get as many copies as want :) it's online:
> http://www.webtechniques.com/

Ah - I thought they had a lead time before it went online - guess
not! They also didn't used to include all articles online, but I guess
that has changed. Maybe I won't buy a subscription again (especially since
its free to US readers!)...

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org



Re: multilanguage site

Posted by Stas Bekman <st...@stason.org>.
On Tue, 29 Aug 2000, Matt Sergeant wrote:

> On Tue, 29 Aug 2000, Francesco Pasqualini wrote:
> 
> > can someone suggest me the best way to build a multilanguage web site
> > (english, french, ..).
> > I'm using Apache + mod_perl + Apache::asp (for applications)
> > 
> > Can be usefull XML/XSL whit AxKit ?
> > Is there any example/guideline ?
> 
> This month's Web Techniques is all about this (albeit in a framework
> independant manner). I suggest you try as hard as you can to get a copy as
> it covers way more than I could possibly type here.

You can get as many copies as want :) it's online:
http://www.webtechniques.com/

> Also look up content negotiation in the Apache docs.
> 
> -- 
> <Matt/>
> 
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org | AxKit: http://axkit.org
> 
> 



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:stas@stason.org   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org



Re: multilanguage site

Posted by Matt Sergeant <ma...@sergeant.org>.
On Tue, 29 Aug 2000, Francesco Pasqualini wrote:

> can someone suggest me the best way to build a multilanguage web site
> (english, french, ..).
> I'm using Apache + mod_perl + Apache::asp (for applications)
> 
> Can be usefull XML/XSL whit AxKit ?
> Is there any example/guideline ?

This month's Web Techniques is all about this (albeit in a framework
independant manner). I suggest you try as hard as you can to get a copy as
it covers way more than I could possibly type here.

Also look up content negotiation in the Apache docs.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org