Forum Discussion

zoe's avatar
zoe
Mentor
14 years ago

Help needed on using Freemarker to display languages

We are trying on using Freemarker to display the language.

 

Our community has 3 languages, the default language is English

English page, display Spanish and German

Spansh page, display English and German

German page, display English and Spanish

 

Here is the code we are using

<#if page.name == "CategoryPage" && coreNode.id == "Spanish">
<li><a href="/community/?category.id=English">English</a></li>
<li><a href="/community/?category.id=German">Deutsch</a></li>
<#elseif page.name == "CategoryPage" && coreNode.id == "German">
<li><a href="/community/?category.id=English">English</a></li>
<li><a href="/community/?category.id=Spanish">Espanol</a></li>
<#else>
<li><a href="/community/?category.id=Spanish">Espanol</a></li>
<li><a href="/community/?category.id=German">Deutsch</a></li>
</#if>

 

It display what we intended on the language category page, but the subcategories, board, and thread doesn't inherit this logic.

 

Please help if anyone has an idea.

Recent Discussions