File Submitter: Minddigger
File Submitted: 3 Oct 2007
File Category: Menus & Navigation
Need to have a site in more than one language ?
Here's the answer with thanks to toniVR who has made the first solution. (see topic http://www.etomite.com/index.php?ac...f=13&t=6961 )
How it works :
Place language flags into assets/images/lang
Add snippet LangChooser to your template where you want the language flags to display.
Make sure your folder structure looks like the example on the forumlink of toniVR :
It's of no importance to have a incremental order in the language root folders. It's only of great importance that the root folders have an alias named and the name reflect the language with an underscore e.g. :
alias NL_Dutch or just NL_ for the Dutch root folder
alias EN_English or just EN_ for the English root folder
Each document under the language folder must have an alias wich starts with the language code :
NL_Start , EN_Start, GE_Start
NL_Contact , EN_Contact , GE_Contact
When the structure is made and the language chooser is activated, the chooser will first select the start pages for each language and collect the ID's of those documents .
Then it will search for the documents wich have the same alias as the selected active document and replaces the default documents of the other with the translated documents with the same alias as the active document. So if you switch language while in a certain document is active, the translated document will show up if available.
Click here to download this file










