Update gettext : add spaces

DomCi : remove line too longs on all the files


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-05-23 14:19:30 +00:00
parent a79b59685f
commit 17168aaaef
39 changed files with 588 additions and 565 deletions

View File

@@ -336,12 +336,12 @@ class dblayeroo
{
$this->debugLog ("Entering createTable");
if ($this->sep === "")
$this->DBException (dgettext("domframework", "Database not connected"),
$this->DBException (dgettext ("domframework", "Database not connected"),
500);
if (count ($this->fields) === 0)
$this->DBException (dgettext("domframework", "No Field defined"), 500);
$this->DBException (dgettext ("domframework", "No Field defined"), 500);
if ($this->table === null)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"No table name defined to create the table"), 500);
switch (self::$instance[$this->dsn]->getAttribute(\PDO::ATTR_DRIVER_NAME))
{
@@ -381,7 +381,7 @@ class dblayeroo
break;
default:
$this->DBException (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Unknown type '%s' provided for field '%s'"),
$this->fieldTypeLight ($field), $field), 500);
}
@@ -400,13 +400,13 @@ class dblayeroo
case "autoincrement":
if ($this->primary !== $field)
throw new \Exception (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Field '%s' is autoincrement but not primary"),
$field), 500);
$sql .= " AUTOINCREMENT";
break;
default:
$this->DBException (sprintf (dgettext("domframework",
$this->DBException (sprintf (dgettext ("domframework",
"Unknown additionnal parameter '%s' for field '%s'"),
$p, $field), 500);
}
@@ -417,7 +417,7 @@ class dblayeroo
if ($this->unique !== null)
{
if (!is_array ($this->unique))
$this->DBException (dgettext("domframework",
$this->DBException (dgettext ("domframework",
"The Unique field definition is not an array"),
500);
foreach ($this->unique as $u)
@@ -483,7 +483,7 @@ class dblayeroo
break;
default:
$this->DBException (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Unknown type provided for field '%s'"),
$field), 500);
}
@@ -502,14 +502,14 @@ class dblayeroo
case "autoincrement":
if ($this->primary !== $field)
throw new \Exception (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Field '%s' is autoincrement but not primary"),
$field), 500);
$sql .= " AUTO_INCREMENT";
break;
default:
$this->DBException (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Unknown additionnal '%s' parameter for field '%s'"),
$p, $field), 500);
}
@@ -560,7 +560,7 @@ class dblayeroo
{
if ($this->primary !== $field)
throw new \Exception (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Field '%s' is autoincrement but not primary"),
$field), 500);
$sql .= "SERIAL";
@@ -592,7 +592,7 @@ class dblayeroo
break;
default:
$this->DBException (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Unknown type provided for field '%s'"),
$field), 500);
}
@@ -610,7 +610,7 @@ class dblayeroo
case "not null": $sql .= " NOT NULL"; break;
default:
$this->DBException (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Unknown additionnal parameter '%s' for field '%s'"),
$p, $field), 500);
}
@@ -648,7 +648,7 @@ class dblayeroo
$sql .=")";
break;
default:
$this->DBException (dgettext("domframework",
$this->DBException (dgettext ("domframework",
"PDO Engine not supported in dbLayeroo"), 500);
}
@@ -664,9 +664,9 @@ class dblayeroo
{
$this->debugLog ("Entering dropTable ()");
if ($this->sep === "")
$this->DBException (dgettext("domframework", "Database not connected"));
$this->DBException (dgettext ("domframework", "Database not connected"));
if ($this->table === null)
throw new \Exception (dgettext("domframework",
throw new \Exception (dgettext ("domframework",
"No table name defined to drop the table"), 500);
$sql = "DROP TABLE $this->sep$this->tableprefix$this->table$this->sep";
$this->debugLog ($sql);
@@ -1024,7 +1024,7 @@ class dblayeroo
"foreignUsed" => $foreignUsed);
break;
default:
$this->DBException (dgettext("domframework",
$this->DBException (dgettext ("domframework",
"PDO Engine not supported in dbLayeroo"), 500);
}
}