Elxis CMS Forum

Support => Language => Topic started by: acmail on September 26, 2013, 19:10:44

Title: Language Flags - Translation of Title Text
Post by: acmail on September 26, 2013, 19:10:44
Hello All,

I have an Elxis 2009.3 site running in English as the main language as well as four other languages.

Problem is, the Title text for the flag images does not translate into the native language selected - it stays in English :-(

Does anyone know if I can I change something so that the Title text displays in the native language selected?
Title: Re: Language Flags - Translation of Title Text
Post by: nikos on September 26, 2013, 19:45:06
You can simply do it with a user module setting and displaying each flag title link in the native language (unpublishing of course the language module).
Title: Re: Language Flags - Translation of Title Text
Post by: acmail on September 26, 2013, 19:55:41
Thanks nikos, but can you also tell me where to find (or what is) a ‘user module setting’?
Title: Re: Language Flags - Translation of Title Text
Post by: nikos on September 26, 2013, 20:10:49
When you login to the administrator console selecting from the menu Modules-->Site modules there you see all modules of your elxis installation, their positions and status. Clicking on New on top right you can create a new Site Module which i call also user module. There in Custom Output you can do this which you want with the flags. After that you have to publish the module in a position which exists at the template which you use and you have to set All in Pages / Items tab.

To help you more...

Lets suppose that you have a site with 3 languages (English, French and Italian) and default language is English.

In custom output clicking on HTML (top right on editor buttons) you can insert this

Code: [Select]

<p><a title="English" href="http://www.mysite.xz/"><img title="English" src="http://www.mysite.xz/images/stories/english_flag.png" alt="English" width="32" height="32" /></a>
<a title="Francais" href="http://www.mysite.xz/fr"><img title="Francais" src="http://www.mysite.xz/images/stories/french_flag.png" alt="Francais" width="32" height="32" /></a>
<a title="Italiano" href="http://www.mysite.xz/it"><img title="Italiano" src="http://www.mysite.xz/images/stories/italian_flag.png" alt="Italiano" width="32" height="32" /></a></p>



In this way you have this you want. Remember to copy the flags images files into folder images/stories of your elxis installation. 
Title: Re: Language Flags - Translation of Title Text
Post by: acmail on September 26, 2013, 20:45:09
Brilliant, brilliant, brilliant. Thanks nikos. Fully understood and much appreciated.
Title: Re: Language Flags - Translation of Title Text
Post by: nikos on September 26, 2013, 20:51:57
You are welcome....to Elxis CMS  :)