Multi-language pages with radiant?

Hi

I didn’t find an answer to my question through Google, maybe I didn’t
know how to look. Anyway – how do you make a multi-language website
with radiant?

Is it so that you make your site structure under Radiant’s “PAGES”-tab
like this:

Home (redirects)
en (home)
Services
People
Contacts
de (home)
Dienste
Leute
Kontakte

… or is there a better practice? And if there isn’t, how do you
redirect? Is there an “official” Radiant solution or I need the language
redirect extension?

Thanks!
Tõnu

Tonu,

If there is an “official” Radiant approach it is as you detailed, with
a separate root for each language using the Language Redirect
extension which is available here on the “ThirdPartyExtensions” wiki
page: http://wiki.radiantcms.org/Thirdparty_Extensions

I have not tested it against any recent builds of Radiant, so I will
assume for now it’s up to date and working.

In addition to this option I wrote a “Language Switch” extension
recently for a client and they allowed me to share. While for most
cases I am a fan of the multiple roots approach, in this case they
really wanted to have a conditional tag to switch out parts of a page
or layout to another language without having to manage two separate
sites. It’s not a particularly refined extension and it turns-off
caching for all pages, but at least there is a bit of documentation in
the README file :slight_smile: :
http://svn.fn-group.com/radiant_extensions/language_switch

Finally, take a look at the mailing list archive for another recent
discussion of this topic:

http://lists.radiantcms.org/pipermail/radiant/2007-September/thread.html#6356

Good luck!

Loren

Tonu,

If there is an “official” Radiant approach it is as you detailed, with
a separate root for each language using the Language Redirect
extension which is available here on the “ThirdPartyExtensions” wiki
page: http://wiki.radiantcms.org/Thirdparty_Extensions

I have not tested it against any recent builds of Radiant, so I will
assume for now it’s up to date and working.

In addition to this option I wrote a “Language Switch” extension
recently for a client and they allowed me to share. While for most
cases I am a fan of the multiple roots approach, in this case they
really wanted to have a conditional tag to switch out parts of a page
or layout to another language without having to manage two separate
sites. It’s not a particularly refined extension and it turns-off
caching for all pages, but at least there is a bit of documentation in
the README file :slight_smile: :
http://svn.fn-group.com/radiant_extensions/language_switch

Finally, take a look at the mailing list archive for another recent
discussion of this topic:

http://lists.radiantcms.org/pipermail/radiant/2007-September/thread.html#6356

Good luck!

Loren

Tõnu Runnel wrote:

en (home)
redirect extension?

Thanks!
Tõnu
I think there is no “official” solution. I think the language redirect
extension works like you say. In addition, I wrote a simple extension
that works well enough for me.

If you take a look at http://t-engine.onghu.com/cn/ you will see that it
draws a language bar with links to the articles that exist. It’s a bit
fragile but it works. It also relies on convention, but it works (for
me). I mentioned the idea and the solution somewhat in this thread.
Let me know if it interests you.

[1] The first concept -
http://lists.radiantcms.org/pipermail/radiant/2007-September/006364.html
[2] The details -
http://lists.radiantcms.org/pipermail/radiant/2007-October/006881.html

Unlike Loren’s solution, mine doesn’t disable caching, but it is more
difficult if you have multiple page parts that are common to each of the
pages. Mine works quite well if you you want to assume that each
translation is completely independent.

Cheers
Mohit.