Skip to content

Commit

Permalink
Create a translation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Lundin committed Jan 8, 2013
1 parent 7e8fbea commit 788143f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions templates/home/about.html
@@ -0,0 +1,23 @@
<html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">

<py:def function="page_title">About</py:def>

<div py:match="content">
<h2>About ${g.site_title}</h2>
<py:choose>
<py:when test='h.lang() == "sv"'>
<p>About på Svenska</p>
</py:when>
<py:when test='h.lang() == "en"'>
<p>About in English</p>
</py:when>
<py:otherwise>
<p>${h.lang()}</p>
</py:otherwise>
</py:choose>
</div>
<xi:include href="layout.html" />
</html>

0 comments on commit 788143f

Please sign in to comment.