Ignore:
Timestamp:
22 Feb 2012, 08:27:56 (13 years ago)
Author:
Henrik Bettermann
Message:

Implement Language switch in the topbar and add some German translations for demonstration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/studentsitelayout.pt

    r7669 r7674  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2 <html xmlns="http://www.w3.org/1999/xhtml"
    3       xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    4       i18n:domain="waeup.sirp"
    5       xml:lang="en">
     2<html xmlns="http://www.w3.org/1999/xhtml" i18n:domain="waeup.sirp">
    63  <head>
    74    <title>WAeUP - your way up
     
    3431          <ul class="nav secondary-nav">
    3532            <li tal:condition="not: layout/isAuthenticated">
    36             <a href="#" tal:attributes="href python: view.url(layout.site, 'login')">
     33            <a href="#" i18n:translate=""
     34               tal:attributes="href python: view.url(layout.site, 'login')">
    3735                Login
    3836            </a>
    3937            </li>
    4038            <li tal:condition="layout/isAuthenticated">
    41             <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
     39            <a href="#" i18n:translate=""
     40               tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
    4241                Contact
    4342            </a>
    4443            </li>
    4544            <li tal:condition="layout/isAuthenticated">
    46             <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
     45            <a href="#" i18n:translate=""
     46               tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
    4747            </li>
    4848          </ul>
     49          <span class="language">
     50            <tal:languages
     51                  tal:content="structure provider:languages" /> |
     52          </span>
    4953        </div>
    5054      </div>
    5155    </div>
     56
    5257    <div class="container">
    5358      <ul class="student-info-bar" tal:condition="layout/isAuthenticated">
Note: See TracChangeset for help on using the changeset viewer.