ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Multi Language and Multiple Sites

August 04, 2009 4:06am

Subscribe [4]
  • #1 / Aug 04, 2009 4:06am

    netlinkblueEE

    39 posts

    Hi,

    Can anyone tell me how can i develop multi language and multiple sites in EE ?. below is my Overview.

    i have 5 countries Sites ie 1)UAE 2) Oman 3) Kuwait 4) KSA 5) Egypt Each country had dual languages ie English and Arabic.i had developed two templates one for English and other for Arabic.

    how can i use the same two templates for all the countries ?.

    how can i make directories for my sites.ie if user click on the UAE-en then it will display all the content related to uae http://www.mydomain.com/ae/english

    Can anyone suggest me how to do this

    Thanks.

  • #2 / Aug 04, 2009 7:03am

    Joel Bradbury

    18 posts

    We use this method:
    http://expressionengine.com/wiki/Multi_language_site_alternative/

    where each subdirectory (ie. ae,en,  etc) has it’s path with the various lang variables.

    Then you just need to test against the various variables in the templates - so we end up doing:

    {title{lang_suffix}}

    where {lang_suffix} is something like _fr or _cy, which corresponds to the way we’ve named the fields.

    Brandon Kelly’s Gypsy plugin is a lifesaver here, and gets around issues with duplicating fields such as title_cy..etc.

    Also for paths we use {county_path}/path/to which for the root language would be empty - giving just /path/to, but for other langs is /cy giving /cy/path/to.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases