From 72e98ae2a121b3e1dfe645f971be54086c014751 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 5 Jun 2019 13:48:46 +0200 Subject: [PATCH] generate_lang_file.php : Show context in interactive mode --- public_html/lang/generate_lang_file.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 97084121..f055491d 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -169,6 +169,8 @@ function add($msg, $context=null) { $translation = _($msg); } elseif ($interactive && $format != 'pot') { + if ($context) + fwrite(STDERR, "\n# $context\n"); if ($copyoriginalvalue) { fwrite(STDERR, "\"$msg\"\n\n => Please enter translated string (or leave empty to copy original string) : "); $in = trim(fgets(STDIN));