Page 1 of 1
About Babel. Understanding the setup
Posted: Fri Jan 28, 2011 1:55 pm
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
Re: About Babel. Understanding the setup
Posted: Fri Jan 28, 2011 3:33 pm
by nicmare
you have to insert these tags {…} in your template. this is basically the main idea of cmsms.
Re: About Babel. Understanding the setup
Posted: Fri Jan 28, 2011 5:10 pm
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
Re: About Babel. Understanding the setup
Posted: Fri Jan 28, 2011 5:39 pm
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'
Re: About Babel. Understanding the setup
Posted: Wed Feb 16, 2011 11:14 am
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