mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-20 07:23:47 +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);
|
$translation = _($msg);
|
||||||
}
|
}
|
||||||
elseif ($interactive && $format != 'pot') {
|
elseif ($interactive && $format != 'pot') {
|
||||||
|
if ($context)
|
||||||
|
fwrite(STDERR, "\n# $context\n");
|
||||||
if ($copyoriginalvalue) {
|
if ($copyoriginalvalue) {
|
||||||
fwrite(STDERR, "\"$msg\"\n\n => Please enter translated string (or leave empty to copy original string) : ");
|
fwrite(STDERR, "\"$msg\"\n\n => Please enter translated string (or leave empty to copy original string) : ");
|
||||||
$in = trim(fgets(STDIN));
|
$in = trim(fgets(STDIN));
|
||||||
|
|
Loading…
Reference in a new issue