diff --git a/inc/RSCDSSession.php b/inc/RSCDSSession.php index 6509292b..fcab612d 100644 --- a/inc/RSCDSSession.php +++ b/inc/RSCDSSession.php @@ -169,24 +169,21 @@ class RSCDSSession extends Session if ( $this->logged_in && $groups == "" ) return; if ( ! $this->logged_in ) { - $c->messages[] = "You must log in to use this system."; + $c->messages[] = i18n("You must log in to use this system."); include_once("page-header.php"); if ( function_exists("local_index_not_logged_in") ) { local_index_not_logged_in(); } else { if ( $this->login_failed ) { - echo <<Invalid user name or password.

-EOHTML; + $c->messages[] = i18n("Invalid user name or password."); } - echo <<Log On Please -

For access to the $c->system_name you should log on with -the username and password that have been issued to you.

- -

If you would like to request access, please e-mail $c->admin_email.

-EOHTML; + echo "

".translate("Log On Please")."

\n"; + echo "

".translate("For access to the") + ." ".translate($c->system_name)." " + .translate("you should log on with the username and password that have been issued to you.") + ."

\n"; + echo "

".translate("If you would like to request access, please e-mail")." ".$c->admin_email."

\n"; echo $this->RenderLoginPanel(); } } @@ -195,7 +192,7 @@ EOHTML; foreach( $valid_groups AS $k => $v ) { if ( $this->AllowedTo($v) ) return; } - $c->messages[] = "You are not authorised to use this function."; + $c->messages[] = i18n("You are not authorised to use this function."); include_once("page-header.php"); }