Technology Tools for Ministry

Community

Web-Empowered Church Developer's Community
All Categories > Developers > Templates > Siteslogan in multi-language site
Total Posts: 3 - Pages (1): [1]
Author: Juraj Michelik
Posted: Oct 19 2007 - 04:52 AM
Subject: Siteslogan in multi-language site
Hi developers,

exist any way to change siteslogan in different language localization?

Georgesk
Author: Jeff Segars
Posted: Oct 19 2007 - 10:49 AM
Subject: re: Siteslogan in multi-language site
The site slogan is ultimately defined through the following Typoscript, in the setup portion of the main Typoscript template.
CODE:

lib.siteslogan = TEXT
lib.siteslogan.value =  {$constants.wec.slogan}
lib.siteslogan.wrap = <h2>|</h2>


Typoscript offers some built in abilities to define different content for different languages, so we can rely on that.
CODE:

lib.siteslogan = TEXT
[globalVar = GP:L =2]
  lib.siteslogan.value =  Slogan for alternate language.
[else]
  lib.siteslogan.value =  {$constants.wec.slogan}
[end]
lib.siteslogan.wrap = <h2>|</h2>

This means that when language #2 is encountered, the translated slogan will be used. Otherwise, it will stick to the default slogan defined in WEC Constants.

This same concept will work for the site title, contact info, and any other WEC constants.

Hope that helps
Jeff
Author: Juraj Michelik
Posted: Oct 23 2007 - 04:02 AM
Subject: re: Siteslogan in multi-language site
Hi Jeff,

it works very fine!
Thanx a lot,

Georgesk
Total Posts: 3 - Pages (1): [1]
You must login to post a message to this conference.