Do not write key if translation error.
This commit is contained in:
parent
d7d969f88a
commit
4b3d8bb246
@ -125,7 +125,7 @@ FILE_SKIP_EMPTY_LINES);
|
|||||||
// If translated return
|
// If translated return
|
||||||
//print "destKey=".$destKey."\n";
|
//print "destKey=".$destKey."\n";
|
||||||
if ( trim($destKey) == trim($key) )
|
if ( trim($destKey) == trim($key) )
|
||||||
{ // Found already existing translation
|
{ // Found already existing translation (key already exits in dest file)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,6 +136,8 @@ FILE_SKIP_EMPTY_LINES);
|
|||||||
|
|
||||||
if ($key == 'CHARSET') $val=$this->outputpagecode;
|
if ($key == 'CHARSET') $val=$this->outputpagecode;
|
||||||
|
|
||||||
|
if (empty(trim($val))) return 0;
|
||||||
|
|
||||||
$this->translatedFiles[$file][] = $key . '=' . $val ;
|
$this->translatedFiles[$file][] = $key . '=' . $val ;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user