Skip to content
Snippets Groups Projects
Commit e382d85e authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Added translation to english and danish of some attributes. And lowercased...

Added translation to english and danish of some attributes. And lowercased attribute translation name lookup

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@326 44740490-163a-0410-bde0-09ae8108e29a
parent b763c6e8
No related branches found
No related tags found
No related merge requests found
<?php
$lang = array(
'en' => array(
'attribute_mail' => 'E-Mail',
'en' => array(
'attribute_edupersonaffiliation' => 'Affiliation',
'attribute_title' => 'Title',
'attribute_uid' => 'User ID',
'attribute_sn' => 'Surname',
'attribute_gn' => 'Given name',
'attribute_cn' => 'Common name',
'attribute_mail' => 'Email address',
'attribute_preferredlanguage' => 'Preferred language',
'attribute_noredupersonnin' => 'Social security number',
'attribute_schachomeorganization' => 'Unique home organization ID',
'attribute_organisationname' => 'Organisation name',
'attribute_edupersonentitlement' => 'Entitlement regarding the service',
'attribute_edupersonscopedaffiliation' => 'Group membership',
'attribute_edupersontargetedid' => 'Persistent anonymous ID at the service',
'attribute_edupersonprincipalname' => 'Person principal name at home organization'
),
'no' => array(
'attribute_mail' => 'E-post',
'no' => array(
'attribute_mail' => 'E-post',
'attribute_edupersonaffiliation' => 'Tilhørighet',
'attribute_title' => 'Tittel',
'attribute_uid' => 'BrukerID',
)
),
'dk' => array(
'attribute_sn' => 'Efternavn',
'attribute_gn' => 'Fornavne',
'attribute_cn' => 'Kaldenavn',
'attribute_mail' => 'Emailadresse',
'attribute_preferredlanguage' => 'Foretrukne sprog',
'attribute_noredupersonnin' => 'CPR nummer',
'attribute_schachomeorganization' => 'Hjemmeorganisationens entydige ID',
'attribute_organisationname' => 'Hjemmeorganisationens kaldenavn',
'attribute_edupersonentitlement' => 'Specifik rolle i forhold til tjenesten',
'attribute_edupersonscopedaffiliation' => 'Gruppemedlemskab',
'attribute_edupersontargetedid' => 'Vedholdende anonymt bruger-ID hos tjenesten',
'attribute_edupersonprincipalname' => 'Bruger-ID hos hjemmeorganisationen',
),
);
\ No newline at end of file
......@@ -18,8 +18,8 @@
$attributes = $data['attributes'];
foreach ($attributes AS $name => $value) {
if (isset($this->data['attribute_' . htmlspecialchars($name) ])) {
$name = $this->data['attribute_' . htmlspecialchars($name) ];
if (isset($this->data['attribute_' . htmlspecialchars(strtolower($name)) ])) {
$name = $this->data['attribute_' . htmlspecialchars(strtolower($name))];
}
if (sizeof($value) > 1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment