Jump to content


[Snippet] Multi Language in Front-End


  • You cannot reply to this topic
1 reply to this topic

#1 Minddigger

    Etomite Forum Newbie

  • Member
  • 39 posts

Posted 03 October 2007 - 02:57 PM

File Name: Multi Language in Front-End
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 :
Posted Image

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

#2 St4ck3r

    Etomite Forum Newbie

  • Member
  • 1 posts

Posted 16 November 2010 - 09:57 PM

I think this snippet is outdated. Images won't work anymore and so does the snippet ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users