From 2b7055a4fcebe6c65922637a08225c65ade8c7d6 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 28 Apr 2017 10:03:49 +0000 Subject: [PATCH] Update getopts to have a valid gettext entry git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3554 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- getopts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getopts.php b/getopts.php index 18cd6df..468683d 100644 --- a/getopts.php +++ b/getopts.php @@ -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",