generate_lang_file.php : Show context in interactive mode

This commit is contained in:
Benjamin Renard 2019-06-05 13:48:46 +02:00
parent 37e0db032b
commit 72e98ae2a1

View file

@ -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));