diff --git a/dictionaries/attributes.php b/dictionaries/attributes.php new file mode 100644 index 0000000000000000000000000000000000000000..2a6a389df453d55de54bd2ad46fb66bf852dd53e --- /dev/null +++ b/dictionaries/attributes.php @@ -0,0 +1,18 @@ +<?php + +$lang = array( + 'en' => array( + 'attribute_mail' => 'E-Mail', + 'attribute_edupersonaffiliation' => 'Affiliation', + 'attribute_title' => 'Title', + 'attribute_uid' => 'User ID', + + ), + 'no' => array( + 'attribute_mail' => 'E-post', + 'attribute_edupersonaffiliation' => 'Tilhørighet', + 'attribute_title' => 'Tittel', + 'attribute_uid' => 'BrukerID', + ) + +); \ No newline at end of file diff --git a/templates/default/en/status.php b/templates/default/en/status.php index a766dbc15f460efb64408ef89687fb7618be251e..8918d341e0b75e0a51237863e6c2db888f4641ce 100644 --- a/templates/default/en/status.php +++ b/templates/default/en/status.php @@ -17,6 +17,11 @@ $attributes = $data['attributes']; foreach ($attributes AS $name => $value) { + + if (isset($this->data['attribute_' . htmlspecialchars($name) ])) { + $name = $this->data['attribute_' . htmlspecialchars($name) ]; + } + if (sizeof($value) > 1) { echo '<tr><td>' . htmlspecialchars($name) . '</td><td><ul>'; foreach ($value AS $v) {