Skip to content

Commit

Permalink
add more i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
joostd committed Sep 17, 2015
1 parent 7fd05c2 commit c57126d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
1 change: 1 addition & 0 deletions www/tiqr/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ login:
otp: One time password
button: Go
no_account: No account yet? Please create a new account %link_start%here%link_end%.
cancel: Cancel
enrol:
title: Register new Tiqr account
status:
Expand Down
1 change: 1 addition & 0 deletions www/tiqr/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ login:
otp: One time password
button: Go
no_account: Geen account? Maak er dan %link_start%hier%link_end% eerst een aan.
cancel: Annuleren
enrol:
title: Registreer nieuw Tiqr-account
status:
Expand Down
39 changes: 19 additions & 20 deletions www/tiqr/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>Inloggen met tiqr</title>
<title>tiqr login</title>
<link rel="shortcut icon" href="/images/favicon.ico" />
<link rel="stylesheet" href="/bootstrap.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down Expand Up @@ -38,14 +38,14 @@
<img src="/images/surfnet.jpg" class="pull-right" alt="SURFnet">
</div>

{% include "localeform.html" %}
<h2>{{ 'login.title' | trans }}</h2>
{% include "localeform.html" %}
<h2>{{ 'login.title' | trans }}</h2>

<p>
{% if id %}
<!--U logt in met tiqr account {{ id }}-->
{{ 'login.push.message' | trans }}
<ul>
{% if id %}
<!-- logging in with tiqr id {{ id }}-->
{{ 'login.push.message' | trans }}
<ul>
<li>{{ 'login.push.instructions.1' | trans }}</li>
<li>{{ 'login.push.instructions.2' | trans }}</li>
</ul>
Expand All @@ -69,25 +69,24 @@ <h2>{{ 'login.title' | trans }}</h2>

{% endif %}
</p>
<script>
$(function(){
$('a.scan').click(function(){
$( "img.qr" ).show( "slow" );
});
});
</script>
{{ 'login.qr.no_account' | trans({'%link_start%': '<a href=\'/tiqr/enrol?return='~return_url~'\'>', '%link_end%': '</a>'}) | raw }}
<!--TODO fix URL -->
<script>
$(function(){
$('a.scan').click(function(){
$( "img.qr" ).show( "slow" );
});
});
</script>
{{ 'login.qr.no_account' | trans({'%link_start%': '<a href=\'/tiqr/enrol?return='~return_url~'\'>', '%link_end%': '</a>'}) | raw }}
<!--TODO fix URL -->

</div><!-- /content -->
</div><!-- /content -->

<footer>
<footer>
<div class="row-fluid">
<div class="span8 offset2">
<hr>
<ul class="nav nav-pills">
<li><a href="#" onclick="window.history.back();return false;">Annuleren</a></li><!-- TODO: Send Response with status Failed -->

<li><a href="#" onclick="window.history.back();return false;">{{ 'login.cancel' | trans }}</a></li><!-- TODO Send Response with status Failed -->
</ul>
</div>
</div>
Expand Down

0 comments on commit c57126d

Please sign in to comment.