Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv10100/phpwiki/lib
Modified Files:
WikiUser.php
Log Message:
very minor gettext & sprintf cleanups
Index: WikiUser.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiUser.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** WikiUser.php 2001/12/21 00:50:51 1.7
--- WikiUser.php 2001/12/28 09:46:09 1.8
***************
*** 95,103 ****
{
if ($action)
! $to_what = sprintf(gettext("to perform action '%s'"), $action);
else
$to_what = gettext("to do that");
! ExitWiki(gettext("You must be logged in as an administrator")
! . " $to_what");
}
}
--- 95,103 ----
{
if ($action)
! $to_what = sprintf(_("to perform action '%s'"), $action);
else
$to_what = gettext("to do that");
! ExitWiki(sprintf(_("You must be logged in as an administrator %s"),
! $to_what));
}
}
***************
*** 178,182 ****
|| ADMIN_USER == '' || ADMIN_PASSWD =='') {
echo '<html><body>';
! ExitWiki(gettext("You must set the administrator account and password before you can log in."));
}
--- 178,182 ----
|| ADMIN_USER == '' || ADMIN_PASSWD =='') {
echo '<html><body>';
! ExitWiki(_("You must set the administrator account and password before you can log in."));
}
***************
*** 189,197 ****
header('WWW-Authenticate: Basic realm="' . $this->realm . '"');
$request->setStatus("HTTP/1.0 401 Unauthorized");
! echo "<p>" . gettext ("You entered an invalid login or password.") . "\n";
if (ALLOW_BOGO_LOGIN) {
echo "<p>";
! echo gettext ("You can log in using any valid WikiWord as a user ID.") . "\n";
! echo gettext ("(Any password will work, except, of course for the admin user.)") . "\n";
}
--- 189,197 ----
header('WWW-Authenticate: Basic realm="' . $this->realm . '"');
$request->setStatus("HTTP/1.0 401 Unauthorized");
! echo "<p>" . _("You entered an invalid login or password.") . "\n";
if (ALLOW_BOGO_LOGIN) {
echo "<p>";
! echo _("You can log in using any valid WikiWord as a user ID.") . "\n";
! echo _("(Any password will work, except, of course for the admin user.)") . "\n";
}
|