"understand run_lang for settings, to NOT return already translated phrases with replaced placeholders"

This commit is contained in:
Ralf Becker 2010-05-21 07:21:30 +00:00
parent 2b872f65fa
commit 04601a486e

View File

@ -172,7 +172,11 @@ class solangfile
{
if (isset($data[$key]) && !empty($data[$key]))
{
$this->plist[$data[$key]] = $app;
// run_lang: NULL, true --> help + label, false --> help only, -1 => none
if (!isset($data['run_lang']) || !$data['run_lang'] && $key == 'help' || $data['run_lang'] != -1)
{
$this->plist[$data[$key]] = $app;
}
}
}
}