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/staffsitelayout.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" xml:lang="en" i18n:domain="waeup.sirp">
    63  <head>
    74    <title>WAeUP - your way up
     
    2926          <ul class="nav secondary-nav">
    3027            <li tal:condition="not: layout/isAuthenticated">
    31             <a href="#" i18n:translate="login"
     28            <a href="#" i18n:translate=""
    3229                tal:attributes="href python: view.url(layout.site, 'login')">
    3330                Login
     
    3532            </li>
    3633            <li tal:condition="layout/isAuthenticated">
    37             <a href="#" tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
     34            <a href="#" i18n:translate=""
     35               tal:attributes="href python: view.url(layout.site, '@@contactadmin')">
    3836                Contact
    3937            </a>
    4038            </li>
    4139            <li tal:condition="layout/isAuthenticated">
    42             <a href="#" tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
     40            <a href="#" i18n:translate=""
     41               tal:attributes="href python: view.url(context, '@@logout')">Logout</a>
    4342            </li>
    4443          </ul>
     44          <span class="language">
     45            <tal:languages
     46                  tal:content="structure provider:languages" /> |
     47          </span>
    4548        </div>
    4649      </div>
Note: See TracChangeset for help on using the changeset viewer.