Update domframework to be gettext package compliant

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1661 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-08-06 13:16:43 +00:00
parent ab7f76d0bb
commit b8a3e1aa23
13 changed files with 223 additions and 111 deletions

View File

@@ -64,7 +64,7 @@ class dblayer extends PDO
public function databasename ()
{
if ($this->db === null)
throw new Exception (_("Database not connected"));
throw new Exception (dgettext("domframework", "Database not connected"));
$vals = explode (";", substr (strstr ($this->dsn, ":"), 1));
$dsnExplode = array ();
foreach ($vals as $val)
@@ -81,7 +81,7 @@ class dblayer extends PDO
public function listTables ()
{
if ($this->db === null)
throw new Exception (_("Database not connected"));
throw new Exception (dgettext("domframework", "Database not connected"));
switch ($this->db->getAttribute(PDO::ATTR_DRIVER_NAME))
{
case "sqlite":
@@ -113,7 +113,8 @@ class dblayer extends PDO
$res[] = $d["tablename"];
break;
default:
throw new Exception (_("Unknown database driver in listTables"));
throw new Exception (dgettext("domframework",
"Unknown database driver in listTables"));
}
return $res;
}