From a7b09df7cd94e534048d3e14d0e31cd24f7e24f9 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 3 Jul 2008 09:51:00 +0000
Subject: [PATCH] Consent: Make noconsent-page translateable.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@761 44740490-163a-0410-bde0-09ae8108e29a
---
 dictionaries/consent.php        | 6 ++++++
 templates/default/noconsent.php | 9 +++------
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/dictionaries/consent.php b/dictionaries/consent.php
index bfc8ed707..6707b6d0d 100644
--- a/dictionaries/consent.php
+++ b/dictionaries/consent.php
@@ -164,6 +164,12 @@ $lang = array(
 		'hr' => 'prikaĹľi/sakrij atribute',
 		'hu' => 'attribútumok mutatása/elrejtése',
 	),
+	'noconsent_title' => array (
+		'en' => 'No consent given',
+	),
+	'noconsent_text' => array (
+		'en' => 'You did not give consent for transfering your attributes to the service provider.',
+	),
 
 );
 
diff --git a/templates/default/noconsent.php b/templates/default/noconsent.php
index dac22d765..40e4f5e16 100644
--- a/templates/default/noconsent.php
+++ b/templates/default/noconsent.php
@@ -1,5 +1,5 @@
 <?php 
-	$this->data['header'] = 'No consent was given';
+	$this->data['header'] = $this->t('{consent:noconsent_title}');;
 	$this->data['icon'] = 'bomb_l.png';
 	$this->includeAtTemplateBase('includes/header.php'); 
 ?>
@@ -7,10 +7,7 @@
 
 <div id="content">
 
-	<h2><?php echo $this->data['title']; ?></h2>
-
-
-You did not accept to give consent.
-
+	<h2><?php echo($this->data['header']); ?></h2>
+	<p><?php echo($this->t('{consent:noconsent_text}')); ?></p>
 
 <?php $this->includeAtTemplateBase('includes/footer.php'); ?>
\ No newline at end of file
-- 
GitLab