Forums / Setup & design / Switch language

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Switch language

Author Message

Ola Norman

Monday 02 January 2006 12:47:42 pm

I've set up my site with two languages. English and norwegian where norwegian is default. My content is translated and everything seems to be fine in siteadmin. The question is; how do I switch between the languages when browsing the site? I'd like to add a link for each language so the users can change language. Where should these links point to? I haven't been able to find anything about this in the documentation.

Patrice DUCLAUD

Monday 02 January 2006 11:48:15 pm

You can follow this link.

http://ez.no/products/ez_publish_cms/documentation/configuration/configuration/language_and_charset/how_to_setup_a_multilingual_site

Patrice

Rafal Zrobecki

Saturday 02 December 2006 6:15:03 am

       {def $locales=fetch( 'content', 'translation_list' )}
               {foreach $locales as $locale}
                       <li>
                               <a href ={concat("../",$locale.country_code|downcase(),"/",$module_result.content_info.url_alias)|ezurl}>
							   {$locale.language_name}
							   </a>
                      </li>
                {/foreach}
        {undef}

http://www.zrobecki.com