Alter language vars to match conventions - refs #4467

1.10.x
Yannick Warnier 10 years ago
parent 71d6a1d5f4
commit 3b3323ef12
  1. 12
      main/auth/shibboleth/app/controller/shibboleth_controller.class.php
  2. 6
      main/auth/shibboleth/app/view/shibboleth_display.class.php
  3. 4
      main/auth/shibboleth/app/view/shibboleth_email_form.class.php
  4. 8
      main/auth/shibboleth/app/view/shibboleth_status_request_form.class.php

@ -44,7 +44,7 @@ class ShibbolethController
if ($user->is_empty())
{
$message = get_lang('no_login');
$message = get_lang('SystemCouldNotLogYouIn');
Shibboleth::display()->error_page($message);
}
@ -86,7 +86,7 @@ class ShibbolethController
*/
public function admin_login()
{
$title = get_lang('internal_login');
$title = get_lang('InternalLogin');
if (Shibboleth::session()->is_logged_in())
{
$message = get_lang('already_logged_in');
@ -125,7 +125,7 @@ class ShibbolethController
if ($reason = $form->get_reason())
{
$subject = get_lang('request_status');
$subject = get_lang('RequestStatus');
$status = $form->get_status();
$status = Shibboleth::format_status($status);
@ -139,17 +139,17 @@ EOT;
$success = Shibboleth::email_admin($subject, $message);
if ($success)
{
$request_submitted = get_lang('request_submitted');
$request_submitted = get_lang('RequestSubmitted');
Shibboleth::display()->message_page($request_submitted);
}
else
{
$request_failed = get_lang('request_failed');
$request_failed = get_lang('RequestFailed');
Shibboleth::display()->error_page($request_failed);
}
}
$title = get_lang('request_status');
$title = get_lang('RequestStatus');
Display :: display_header($title);
echo $form->display();
Display :: display_footer();

@ -29,7 +29,7 @@ class ShibbolethDisplay
public function error_page($message)
{
$page_title = get_lang('page_title');
$page_title = get_lang('ShibbolethLogin');
Display :: display_header($page_title);
Display :: display_error_message($message);
@ -39,7 +39,7 @@ class ShibbolethDisplay
public function message_page($message, $title = '')
{
$title = $title ? $title : get_lang('page_title');
$title = $title ? $title : get_lang('ShibbolethLogin');
Display :: display_header($title);
Display :: display_confirmation_message($message);
@ -49,7 +49,7 @@ class ShibbolethDisplay
public function page($content, $title = '')
{
$title = $title ? $title : get_lang('page_title');
$title = $title ? $title : get_lang('ShibbolethLogin');
Display :: display_header($title);
echo $content;

@ -31,8 +31,8 @@ class ShibbolethEmailForm
function display()
{
$email = get_lang('email');
$submit = get_lang('submit');
$email = get_lang('Email');
$submit = get_lang('Submit');
return <<<EOT
<form id="email_form" action="" method="post">
<label for="">$email</label>

@ -32,13 +32,13 @@ class ShibbolethStatusRequestForm
{
if ($this->is_submitted() && $this->get_reason() == '')
{
$reason_is_mandatory = get_lang('reason_is_mandatory');
$reason_is_mandatory = get_lang('ReasonIsMandatory');
Display::display_error_message($reason_is_mandatory);
}
$status_request_message = get_lang('status_request_message');
$label_new_status = get_lang('new_status');
$label_reason = get_lang('reason');
$status_request_message = get_lang('StatusRequestMessage');
$label_new_status = get_lang('NewStatus');
$label_reason = get_lang('Reason');
$label_ok = get_lang('Ok');
$label_cancel = get_lang('Cancel');

Loading…
Cancel
Save