mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
generate_lang_file.php : add ignore choice in interactive mode
This commit is contained in:
parent
4c8a4b71e8
commit
1f4c21256f
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue