mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +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;
|
$translation = $msg;
|
||||||
}
|
}
|
||||||
else {
|
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));
|
$in = trim(fgets(STDIN));
|
||||||
if ($in) {
|
if ($in) {
|
||||||
|
if ($in=="i")
|
||||||
|
return True;
|
||||||
if ($in=="c")
|
if ($in=="c")
|
||||||
$translation = $msg;
|
$translation = $msg;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue