Update getopts to have a valid gettext entry

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3554 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-04-28 10:03:49 +00:00
parent 73a4f0edb1
commit 2b7055a4fc

View File

@@ -316,9 +316,9 @@ class getopts
if (array_key_exists ($pos+1, $tokens) &&
$tokens[$pos+1] === "--" &&
! array_key_exists ($pos+2, $tokens))
throw new \Exception (dgettext ("domframework",
"Mandatory value for parameter '$opt' is not provided ".
"after double-dash"), 500);
throw new \Exception (sprintf (dgettext ("domframework",
"Mandatory value for parameter '%s' is not provided after double-dash"),
$opt), 500);
if (! array_key_exists ($pos+1, $tokens) ||
substr ($tokens[$pos+1], 0, 1) === "-")
throw new \Exception (dgettext ("domframework",