From 1f4c21256fd4e51b27891a9566007abff446501f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 25 Oct 2019 18:37:50 +0200 Subject: [PATCH] generate_lang_file.php : add ignore choice in interactive mode --- public_html/lang/generate_lang_file.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 11585fce..c0497acc 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -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