I have added a special field so all the categories are translated into a second langauge.This works great for the main categories, but it does nto work for the subcategories even though they both are named CATNAME. This is what I have:
<!-- BEGIN CATSBODY --> <!-- BEGIN REGULAR --> <td {CATWIDTH} valign="top" class="category"> <img src="templates/default/images/folder.gif" alt="folder"> <a href="{CATURL}" class="categoryname"><IF {VISITORLANGUAGE} is English>{CATNAME} <OTHERWISE IF {VISITORLANGUAGE} is Italian>{CATITALIAN}</IF></a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br> {CATDESCRIPTION} <br> <IF {SWITCH_FORUMVIEWS}>{CATVIEWS} {LANG_GENERAL_VIEWS}<br></IF> <IF {SWITCH_ONLINEFORUM}>{CATNUMONLINE} {LANG_GENERAL_VIEWING}<br></IF> <!-- BEGIN SUBSUB --> <a href="index.php?action=displaycat&catid={CATID}"><IF {VISITORLANGUAGE} is English>{CATNAME} <OTHERWISE IF {VISITORLANGUAGE} is Italian>{CATITALIAN}</IF></a>, <!-- END SUBSUB -->
Comments on Alternative language on Subcats in main
Member
Usergroup: Customer
Joined: May 13, 2007
Total Topics: 16
Total Comments: 37
I have added a special field so all the categories are translated into a second langauge.This works great for the main categories, but it does nto work for the subcategories even though they both are named CATNAME. This is what I have:
<!-- BEGIN CATSBODY -->
<!-- BEGIN REGULAR -->
<td {CATWIDTH} valign="top" class="category">
<img src="templates/default/images/folder.gif" alt="folder"> <a href="{CATURL}" class="categoryname"><IF {VISITORLANGUAGE} is English>{CATNAME}
<OTHERWISE IF {VISITORLANGUAGE} is Italian>{CATITALIAN}</IF></a> ({CATNUMLINKS}) {CATHASNEW} {CATADMIN}<br>
{CATDESCRIPTION} <br>
<IF {SWITCH_FORUMVIEWS}>{CATVIEWS} {LANG_GENERAL_VIEWS}<br></IF>
<IF {SWITCH_ONLINEFORUM}>{CATNUMONLINE} {LANG_GENERAL_VIEWING}<br></IF>
<!-- BEGIN SUBSUB -->
<a href="index.php?action=displaycat&catid={CATID}"><IF {VISITORLANGUAGE} is English>{CATNAME}
<OTHERWISE IF {VISITORLANGUAGE} is Italian>{CATITALIAN}</IF></a>,
<!-- END SUBSUB -->
can someone offer any suggestions? Thanks guys...
Member
Usergroup: Customer
Joined: May 13, 2007
Total Topics: 16
Total Comments: 37
solution, thanks to Paul:
The subcats are cached to speed up so you need to regenerate them via Maintenance > Regenerate Counters. works like a charm.