mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-19 23:13:51 +01:00
generate_lang_file.php : Show context in interactive mode
This commit is contained in:
parent
37e0db032b
commit
72e98ae2a1
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue