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

@@ -17,10 +17,10 @@ class inifile
public function getFile ($file, $sections=false)
{
if (! file_exists ($file))
throw new \Exception (sprintf (dgettext("domframework",
throw new \Exception (sprintf (dgettext ("domframework",
"File '%s' not found"), $file), 404);
if (! is_readable ($file))
throw new \Exception (sprintf (dgettext("domframework",
throw new \Exception (sprintf (dgettext ("domframework",
"File '%s' not readable"), $file), 500);
return $this->getString (file_get_contents ($file, $sections));
}
@@ -75,7 +75,7 @@ class inifile
{
if (! is_array ($array))
throw new \Exception (
dgettext("domframework",
dgettext ("domframework",
"inifile::setString : provided data is not an array"),
500);
$content = "";
@@ -85,7 +85,7 @@ class inifile
{
if (! is_array ($sub))
throw new \Exception (
dgettext("domframework",
dgettext ("domframework",
"inifile::setString : provided data is not an array"),
500);
$content .= "[$section]\n";
@@ -97,7 +97,7 @@ class inifile
{
if (!is_scalar ($v) && ! is_null ($v))
throw new \Exception (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Provided value for '%s' is not scalar"),
$key), 500);
if ($v === null) $v = "null";
@@ -123,7 +123,7 @@ class inifile
{
if (!is_scalar ($v) && ! is_null ($v))
throw new \Exception (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Provided value for '%s' is not scalar"),
$key), 500);
if ($v === null) $v = "null";
@@ -155,11 +155,11 @@ class inifile
$dir = basename ($file);
if (! file_exists ($dir) || ! is_readable ($dir) || ! is_writeable ($dir))
throw new \Exception (sprintf (
dgettext("domframework",
dgettext ("domframework",
"Directory '%s' available or not readable or not writeable"),
$dir), 500);
if (file_exists ($file) && ! is_writeable ($file))
throw new \Exception (sprintf (dgettext("domframework",
throw new \Exception (sprintf (dgettext ("domframework",
"File '%s' is not writeable"), $file),
500);
$content = $this->setString ($array, $sections);