About Babel. Understanding the setup

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
markjl
New Member
New Member
Posts: 8
Joined: Thu Nov 11, 2010 9:27 am

About Babel. Understanding the setup

Post by markjl »

Quoting from the help. Part 1. Set up menus ok but I don't know what this means
In order to display menu correctly all you have to do is add the start_level="2" to your menu tags: {menu start_level="2"}
Part 2: ok

Part 3: Language menu. Where do I put this? How do I use a tag and where?
To get a language menu, you may use the following tag:
{babel action="menu"}
or, to use a template other than the default one:
{babel action="menu" template="template_name"}

The "show" parameter can be used to choose which languages should be displayed.
Thanks in advance
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am

Re: About Babel. Understanding the setup

Post by nicmare »

you have to insert these tags {…} in your template. this is basically the main idea of cmsms.
markjl
New Member
New Member
Posts: 8
Joined: Thu Nov 11, 2010 9:27 am

Re: About Babel. Understanding the setup

Post by markjl »

OK, but more specifically.
I followed the Marcos Cruz solution. My menu starts at level 2, OK
I placed language tags on a pair of pages like so: fr_FR=Traduction, en_GB=Translation
I get a word 'English' that I click on but nothing happens when I have 'Use hierarchy for redirection' ticked in options.
When I untick 'Use hierarchy for redirection', the 'menu' disappears.

Also there seems to be some automatic processing based on the browser language? How can I set this?

How can I or a user select manually the language in which to view the site?

Thanks in advance
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm

Re: About Babel. Understanding the setup

Post by M@rtijn »

Babel has two methods of redirection/multilingual website.

1. Marco Cruz method:
You have some pages which should be multi-lingual and some that don't.
Read the help file closely, it will explain that you need to add {content block='languages' label='Other Languages' oneline='true' assign=other_languages wysiwyg='false'} to your page template.
Then you have to specify for *all* pages the url of the page in another language. (ie. en_GB=e_home)

2. Hierarchy method:
You have an identical page tree for both languages.
Select the redirect on hierarchy option in settings tab and will automaticly redirect people based on cookies or browser language (select one of these options too!)

Bottomline, marco cruz method will not work with the option 'Use hierarchy for redirection'
Make your community a better place!
markjl
New Member
New Member
Posts: 8
Joined: Thu Nov 11, 2010 9:27 am

Re: About Babel. Understanding the setup

Post by markjl »

Hello

I think I've gone through all the steps.
If you look at the following page http://mjl-it.com/, it displays in French as expected with a menu in the footer: English / French

However the addresses that the menu lead to cannot be displayed on clicking.

http://mjl-it.com/index.php?page=francais/acceuil
http://mjl-it.com/index.php?page=english/welcome

Any clues?
Many thanks in advance
Post Reply

Return to “Modules/Add-Ons”