Set Up A Mutlilingual Website

Introduction

The language navigation system is based on _template and the variable %%page_name%%.
We need one _template per category language:

_templates

_template

%%content%%
[[include include:language-flags pagename=start]]

All non language page will have also links to all languages start pages.

xy:_templates

en:_template
fr:_template
es:_template

with the following content

%%content%%
[[include include:language-flags pagename=%%page_name%%]]

include

include:language-flags

[[div style="position:fixed; top: 100px; right: 0px;  margin: 0px; text-align:right"]]
[[table]]
[[row]]
[[cell]]
[[image http://handbook.wikidot.com/local--files/include:language-flags/en.gif link="en:{$pagename}" style="border:1px solid black"]]
[[/cell]]
[[/row]]
[[row]]
[[cell]]
[[image http://handbook.wikidot.com/local--files/include:language-flags/es.gif link="es:{$pagename}" style="border:1px solid black"]]
[[/cell]]
[[/row]]
[[row]]
[[cell]] [[image http://handbook.wikidot.com/local--files/include:language-flags/fr.gif link="fr:{$pagename}" style="border:1px solid black"]] [[/cell]]
[[/row]]
[[/table]]
[[/div]]

Navigation

For each language category xy,
1. create a nav:side-xy
2. go to SiteManager, Appearance, Navigation elements and associate, choose the category xy, uncheck "No individual nav elements" and set the side-bar field to nav:side-xy

nav:side-xy

Sitemap

[[include include:pagetree language=fr]]

Tags

[[include include:tagcloud language=fr]]

New page

[[include include:newpage language=fr|caption=creer une page]]

include:pagetree

[[module PageTree root="{$language}:start" showRoot="true" depth={$depth}]]

include:newpage

[[module NewPage category="{$language}" size="15" button="{$caption}" parent="{$parent}"]]

include:tagcloud

[[module TagCloud minFontSize="80%" maxFontSize="200%" maxColor="8,8,64" minColor="100,100,128" limit="100" category="{$language}" target="{$language}:page-tags"]]

The standard target/landing page is system:page-tags.
Hence you should have one landing page per language category xy
xy:page-tags

xy-pagetags

en.gif
es.gif
fr.gif
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License