add proper language links

This commit is contained in:
Frédéric Péters 2012-05-10 10:19:51 +02:00
parent b8ccd7eed9
commit be3adf3425
2 changed files with 9 additions and 4 deletions

View File

@ -22,10 +22,10 @@
<div id="languages">
<ul>
<li><a class="active" href="#" title="fr">fr</a></li>
<li><a href="#" title="nl">nl</a></li>
<li><a href="#" title="en">en</a></li>
<li><a href="#" title="de">de</a></li>
<li><a id="lang-fr" class="active" href="/" title="fr">fr</a></li>
<li><a id="lang-nl" class="active" href="/nl/" title="nl">nl</a></li>
<li><a id="lang-en" class="active" href="/en/" title="en">en</a></li>
<li><a id="lang-de" class="active" href="/de/" title="de">de</a></li>
</ul>
</div>

View File

@ -7,6 +7,11 @@
<theme href="index.html" />
</rules>
<drop attributes="class" css:theme="#lang-fr" if="//meta[@name='DC.language']/@content != 'fr'"/>
<drop attributes="class" css:theme="#lang-nl" if="//meta[@name='DC.language']/@content != 'nl'"/>
<drop attributes="class" css:theme="#lang-de" if="//meta[@name='DC.language']/@content != 'de'"/>
<drop attributes="class" css:theme="#lang-en" if="//meta[@name='DC.language']/@content != 'en'"/>
<replace content="/html/head/title" theme="/html/head/title" />
<replace content="/html/head/base" theme="/html/head/base" />
<replace content="/html/head/meta" theme="/html/head/meta" />