Check if all the translations are done by dgettext('domframework',
Update locales git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2541 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -73,7 +73,7 @@ class authentication
|
||||
$authsession->logout ();
|
||||
unset ($_SESSION["domframework"]["authentication"]);
|
||||
$_SESSION["domframework"]["authentication"]["message"] =
|
||||
_("You have been logged out");
|
||||
dgettext("domframework", "You have been logged out");
|
||||
if ($this->debug) echo "Redirect to authentication page";
|
||||
if ($this->debug) $this->route->debug = $this->debug;
|
||||
$this->route->redirect ("/authentication", "");
|
||||
@@ -115,7 +115,7 @@ class authentication
|
||||
{
|
||||
trigger_error ("Ratelimiting for $ipClient", E_USER_WARNING);
|
||||
$_SESSION["domframework"]["authentication"]["message"] =
|
||||
_("Too much connections");
|
||||
dgettext("domframework", "Too much connections");
|
||||
if ($url === "")
|
||||
{
|
||||
$this->route->redirect ("/authentication", "");
|
||||
@@ -200,7 +200,7 @@ class authentication
|
||||
{
|
||||
// Authentication error
|
||||
if ($this->debug) echo "Previous session not found";
|
||||
$msg = _("Previous session not found");
|
||||
$msg = dgettext("domframework", "Previous session not found");
|
||||
$_SESSION["domframework"]["authentication"]["message"] = $msg;
|
||||
trigger_error ("Previous session not found for '$authparams->email'",
|
||||
E_USER_WARNING);
|
||||
@@ -276,7 +276,7 @@ class authentication
|
||||
}
|
||||
}
|
||||
trigger_error ("Bad login/password for '$email'", E_USER_WARNING);
|
||||
return _("Bad login/password");
|
||||
return dgettext("domframework", "Bad login/password");
|
||||
}
|
||||
|
||||
/** Add the authentication routes to the routing model */
|
||||
|
||||
Reference in New Issue
Block a user