diff --git a/dictionaries/disco.php b/dictionaries/disco.php
new file mode 100644
index 0000000000000000000000000000000000000000..071aa09a35086f10215937bacb6a946badf16efa
--- /dev/null
+++ b/dictionaries/disco.php
@@ -0,0 +1,21 @@
+<?php
+
+$lang = array(
+	'selectidp' => array (
+		'en' => 'Select your identity privider',
+		'no' => 'Velg din identitetsleverandør',
+	),
+
+	'selectidp_full' => array (
+		'en' => 'Please select the identity provider where you want to authenticate:',
+		'no' => 'Vennligst velg hvilken identitetsleverandør du vil bruke for å logge inn:',
+	),
+
+	'select' => array (
+		'en' => 'Select',
+		'no' => 'Velg',
+	),
+
+);
+
+?>
\ No newline at end of file
diff --git a/templates/default/selectidp-dropdown.php b/templates/default/selectidp-dropdown.php
index 614b8e4d6e1dcf8b1c3635b8fe4a97d525b17926..ff27869b6f58e8cf33ab57112c99fdb1ea19a8f0 100644
--- a/templates/default/selectidp-dropdown.php
+++ b/templates/default/selectidp-dropdown.php
@@ -1,12 +1,18 @@
-<?php $this->includeAtTemplateBase('includes/header.php'); ?>
+<?php
 
+if(!array_key_exists('header', $this->data)) {
+	$this->data['header'] = 'selectidp';
+}
+$this->data['header'] = $this->t($this->data['header']);
 
-	
+$this->includeAtTemplateBase('includes/header.php');
+
+?>
 	<div id="content">
 
-		<h2><?php if (isset($this->data['header'])) { echo $this->data['header']; } else { echo "Select your IdP"; } ?></h2>
+		<h2><?php echo $this->data['header']; ?></h2>
 		
-		<p>Please select the identity provider where you want to authenticate:</p>
+		<p><?php echo $this->t('selectidp_full'); ?></p>
 
 		<form method="get" action="<?php echo $this->data['urlpattern']; ?>">
 		<input type="hidden" name="entityID" value="<?php echo htmlspecialchars($this->data['entityID']); ?>" />
@@ -27,7 +33,7 @@
 		}
 		?>
 		</select>
-		<input type="submit" value="Select"/>
+		<input type="submit" value="<?php echo $this->t('select'); ?>"/>
 		</form>
 
 		
diff --git a/templates/default/selectidp-links.php b/templates/default/selectidp-links.php
index e57cdf6d03f5d9358993cb333959d6b1894b8142..c0a5a0ed7d0e541e299ce0c89de8229c430ab54d 100644
--- a/templates/default/selectidp-links.php
+++ b/templates/default/selectidp-links.php
@@ -1,11 +1,18 @@
-<?php $this->includeAtTemplateBase('includes/header.php'); ?>
+<?php
 
-	
+if(!array_key_exists('header', $this->data)) {
+	$this->data['header'] = 'selectidp';
+}
+$this->data['header'] = $this->t($this->data['header']);
+
+$this->includeAtTemplateBase('includes/header.php');
+
+?>
 	<div id="content">
 
-		<h2><?php if (isset($this->data['header'])) { echo $this->data['header']; } else { echo "Select your IdP"; } ?></h2>
+		<h2><?php echo $this->data['header']; ?></h2>
 		
-		<p>Please select the identity provider where you want to authenticate:</p>
+		<p><?php echo $this->t('selectidp_full'); ?></p>
 		
 		
 		<?php
diff --git a/www/saml2/sp/idpdisco.php b/www/saml2/sp/idpdisco.php
index 0e3202de5587b91aa2deacb0cd7794292f807225..add6a3620c225b2f68b121c171b9b6c431cf5cb0 100644
--- a/www/saml2/sp/idpdisco.php
+++ b/www/saml2/sp/idpdisco.php
@@ -62,8 +62,7 @@ if (!empty($_COOKIE['preferedidp'])) {
  * Currently the supported options is either a drop down menu or a list view.
  */
 $templatefile = ($config->getValue('idpdisco.layout') == 'dropdown' ? 'selectidp-dropdown.php' : 'selectidp-links.php');
-$t = new SimpleSAML_XHTML_Template($config, $templatefile);
-$t->data['header'] = 'Select your identity provider';
+$t = new SimpleSAML_XHTML_Template($config, $templatefile, 'disco.php');
 $t->data['idplist'] = $idplist;
 $t->data['preferredidp'] = $preferredidp;
 
@@ -71,11 +70,11 @@ if ($config->getValue('idpdisco.layout') == 'dropdown') {
 	$t->data['return']= $return;
 	$t->data['returnIDParam'] = $returnidparam;
 	$t->data['entityID'] = $spentityid;
-	$t->data['urlpattern'] = htmlentities(SimpleSAML_Utilities::selfURLNoQuery());
+	$t->data['urlpattern'] = htmlspecialchars(SimpleSAML_Utilities::selfURLNoQuery());
 	$t->show();
 
 } else {
-	$t->data['urlpattern'] = htmlentities(SimpleSAML_Utilities::selfURL() . '&idpentityid=');
+	$t->data['urlpattern'] = htmlspecialchars(SimpleSAML_Utilities::selfURL() . '&idpentityid=');
 	$t->show();
 }
 
diff --git a/www/shib13/sp/idpdisco.php b/www/shib13/sp/idpdisco.php
index ea3aa503724708c3f7ab39aa5e03953c2dc138ae..6f7e5c3c0e9968d02620c1cc754e90f00bb7cf7c 100644
--- a/www/shib13/sp/idpdisco.php
+++ b/www/shib13/sp/idpdisco.php
@@ -48,22 +48,20 @@ try {
 }
 
 if ($config->getValue('idpdisco.layout') == 'dropdown') {
-	$t = new SimpleSAML_XHTML_Template($config, 'selectidp-dropdown.php');
-	$t->data['header'] = 'Select your identity provider';
+	$t = new SimpleSAML_XHTML_Template($config, 'selectidp-dropdown.php', 'disco.php');
 	$t->data['idplist'] = $idplist;
 	$t->data['return']= $return;
 	$t->data['returnIDParam'] = $returnidparam;
 	$t->data['entityID'] = $spentityid;
 	$t->data['preferedidp'] = (!empty($_COOKIE['preferedidp'])) ? $_COOKIE['preferedidp'] : null;
-	$t->data['urlpattern'] = htmlentities(SimpleSAML_Utilities::selfURLNoQuery());
+	$t->data['urlpattern'] = htmlspecialchars(SimpleSAML_Utilities::selfURLNoQuery());
 	$t->show();
 }
 else
 {
-	$t = new SimpleSAML_XHTML_Template($config, 'selectidp-links.php');
-	$t->data['header'] = 'Select your identity provider';
+	$t = new SimpleSAML_XHTML_Template($config, 'selectidp-links.php', 'disco.php');
 	$t->data['idplist'] = $idplist;
-	$t->data['urlpattern'] = htmlentities(SimpleSAML_Utilities::selfURL() . '&idpentityid=');
+	$t->data['urlpattern'] = htmlspecialchars(SimpleSAML_Utilities::selfURL() . '&idpentityid=');
 	$t->show();
 }