translates prompts using lang file.

pull/3524/head
ovargasp 2022-07-11 15:49:31 -06:00 committed by GitHub
parent 8973c72c77
commit d9be8def3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -467,6 +467,7 @@ foreach (array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as $
foreach ($configCat as $name=>$value) {
$shortName = preg_replace('/^ZM_/', '', $name);
$optionPromptText = !empty($OLANG[$shortName])?$OLANG[$shortName]['Prompt']:$value['Prompt'];
$optionPromptText = translate(optionPromptText);
$optionCanEdit = $canEdit && !$value['System'];
?>
<div class="form-group form-row">