diff --git a/dictionaries/admin.php b/dictionaries/admin.php index 70c6905e5858ab6d5e536e975861b26cdfdfc5a3..2f0aa695e47087be0cffdc372b6292c6e3355ee5 100644 --- a/dictionaries/admin.php +++ b/dictionaries/admin.php @@ -211,6 +211,27 @@ $lang = array( 'sv' => 'Skicka metadata till %FEDERATION%', 'es' => 'Enviar mis metadatos a %FEDERATION%', ), + 'debug_sending_message_title' => array ( + 'en' => 'Sending message', + ), + 'debug_sending_message_text_button' => array ( + 'en' => 'You are about to send a message. Hit the submit message button to continue.', + ), + 'debug_sending_message_text_link' => array ( + 'en' => 'You are about to send a message. Hit the submit message link to continue.', + ), + 'debug_sending_message_send' => array ( + 'en' => 'Submit message', + ), + 'debug_sending_message_msg_title' => array ( + 'en' => 'Message', + ), + 'debug_sending_message_msg_text' => array ( + 'en' => 'As you are in debug mode, you get to see the content of the message you are sending:', + ), + 'debug_disable_debug_mode' => array ( + 'en' => 'You can turn off debug mode in the global simpleSAMLphp configuration file <tt>config/config.php</tt>.', + ), ); diff --git a/templates/default/httpredirect-debug.php b/templates/default/httpredirect-debug.php index 78cb0e66101ad8e8c8e2c602405f34779b58a02a..c459342cd9e69d79daa1e044c6243a5fff93e714 100644 --- a/templates/default/httpredirect-debug.php +++ b/templates/default/httpredirect-debug.php @@ -8,18 +8,18 @@ - <h2>Sending a SAML message using HTTP-REDIRECT</h2> + <h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2> - <p>You are about to send a SAML message using HTTP REDIRECT. Here is the message:</p> + <p><?php echo($this->t('{admin:debug_sending_message_text_link}')); ?></p> - <pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['message']; ?></pre> - - <p>[ <a id="sendlink" href="<?php echo htmlentities($this->data['url']); ?>">send SAML message</a> ]</p> - - <h2>Debug mode</h2> + <p>[ <a id="sendlink" href="<?php echo htmlentities($this->data['url']); ?>"><?php echo($this->t('{admin:debug_sending_message_send}')); ?></a> ]</p> - <p>As you are in debug mode you are lucky to see the content of the response you are sending. You can turn off debug mode in the global simpleSAMLphp configuration file <tt>config/config.php</tt>.</p> + <h2><?php echo($this->t('{admin:debug_sending_message_msg_title}')); ?></h2> + <p><?php echo($this->t('{admin:debug_sending_message_msg_text}')); ?></p> + <pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['message']; ?></pre> + + <p><?php echo($this->t('{admin:debug_disable_debug_mode}')); ?></p> <?php $this->includeAtTemplateBase('includes/footer.php'); ?> \ No newline at end of file diff --git a/templates/default/post-debug.php b/templates/default/post-debug.php index ad37b618550b8796927170e391f8f83f0c8dad1d..be50b96910ea60e3f7af8af14e81a478dd6a07e6 100644 --- a/templates/default/post-debug.php +++ b/templates/default/post-debug.php @@ -10,20 +10,22 @@ - <h2>Sending a SAML response to the service</h2> + <h2><?php echo($this->t('{admin:debug_sending_message_title}')); ?></h2> - <p>You are about to send a SAML response back to the service. Hit the send response button to continue.</p> + <p><?php echo($this->t('{admin:debug_sending_message_text_button}')); ?></p> <form method="post" action="<?php echo htmlspecialchars($this->data['destination']); ?>"> <input type="hidden" name="SAMLResponse" value="<?php echo htmlspecialchars($this->data['response']); ?>" /> <input type="hidden" name="<?php echo htmlspecialchars($this->data['RelayStateName']); ?>" value="<?php echo htmlspecialchars($this->data['RelayState']); ?>" /> - <input type="submit" value="Submit the response to the service" id="sendbutton" /> + <input type="submit" value="<?php echo($this->t('{admin:debug_sending_message_send}')); ?>" id="sendbutton" /> </form> - <h2>Debug mode</h2> + <h2><?php echo($this->t('{admin:debug_sending_message_msg_title}')); ?></h2> - <p>As you are in debug mode you are lucky to see the content of the response you are sending:</p> + <p><?php echo($this->t('{admin:debug_sending_message_msg_text}')); ?></p> <pre style="overflow: scroll; border: 1px solid #eee"><?php echo $this->data['responseHTML']; ?></pre> + <p><?php echo($this->t('{admin:debug_disable_debug_mode}')); ?></p> + <?php $this->includeAtTemplateBase('includes/footer.php'); ?> \ No newline at end of file