From ce08a08823bf7771dda0e17d36a5727deb146008 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 3 Jul 2008 09:51:15 +0000 Subject: [PATCH] Update HTTP-POST and HTTP-Redirect debug pages to be translateable. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@762 44740490-163a-0410-bde0-09ae8108e29a --- dictionaries/admin.php | 21 +++++++++++++++++++++ templates/default/httpredirect-debug.php | 16 ++++++++-------- templates/default/post-debug.php | 12 +++++++----- 3 files changed, 36 insertions(+), 13 deletions(-) diff --git a/dictionaries/admin.php b/dictionaries/admin.php index 70c6905e5..2f0aa695e 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 78cb0e661..c459342cd 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 ad37b6185..be50b9691 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 -- GitLab