generate_lang_file.php : add ignore choice in interactive mode

This commit is contained in:
Benjamin Renard 2019-10-25 18:37:50 +02:00
parent 4c8a4b71e8
commit 1f4c21256f

View file

@ -180,9 +180,11 @@ function add($msg, $context=null) {
$translation = $msg;
}
else {
fwrite(STDERR, "\"$msg\"\n\n => Please enter translated string (or 'c' to copy original message, leave empty to pass) : ");
fwrite(STDERR, "\"$msg\"\n\n => Please enter translated string (or 'c' to copy original message, 'i' to ignore this message, leave empty to pass) : ");
$in = trim(fgets(STDIN));
if ($in) {
if ($in=="i")
return True;
if ($in=="c")
$translation = $msg;
else