mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 17:03:47 +01:00
generate_lang_file.php : try translating message using gettext before asking it
This commit is contained in:
parent
1294d5f392
commit
37e0db032b
1 changed files with 3 additions and 0 deletions
|
@ -165,6 +165,9 @@ function add($msg, $context=null) {
|
|||
if (array_key_exists($msg, $translations)) {
|
||||
$translation = $translations[$msg];
|
||||
}
|
||||
elseif (_($msg) != $msg) {
|
||||
$translation = _($msg);
|
||||
}
|
||||
elseif ($interactive && $format != 'pot') {
|
||||
if ($copyoriginalvalue) {
|
||||
fwrite(STDERR, "\"$msg\"\n\n => Please enter translated string (or leave empty to copy original string) : ");
|
||||
|
|
Loading…
Reference in a new issue