Update language support knowledge record
This commit is contained in:
parent
f68f98cbdd
commit
cad84b1e0b
@ -190,7 +190,7 @@ if ($action == 'create') {
|
|||||||
//Language of question/response
|
//Language of question/response
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("Language").'</td><td>';
|
print '<tr class="oddeven"><td>'.$langs->trans("Language").'</td><td>';
|
||||||
print img_picto('', 'language', 'class="pictofixedwidth"');
|
print img_picto('', 'language', 'class="pictofixedwidth"');
|
||||||
print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'default_lang', 0, null, 1, 0, 0, 'minwidth300', 2);
|
print $formadmin->select_language('', 'default_lang', 0, null, 1, 0, 0, 'minwidth300', 2);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -237,7 +237,7 @@ if (($id || $ref) && $action == 'edit') {
|
|||||||
//Language of question/response
|
//Language of question/response
|
||||||
print '<tr class="oddeven"><td>'.$langs->trans("Language").'</td><td>';
|
print '<tr class="oddeven"><td>'.$langs->trans("Language").'</td><td>';
|
||||||
print img_picto('', 'language', 'class="pictofixedwidth"');
|
print img_picto('', 'language', 'class="pictofixedwidth"');
|
||||||
print $formadmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'default_lang', 0, null, 1, 0, 0, 'minwidth300', 2);
|
print $formadmin->select_language($object->default_lang, 'default_lang', 0, null, 1, 0, 0, 'minwidth300', 2);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
@ -607,9 +607,9 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
|||||||
}
|
}
|
||||||
print $user_temp->getNomUrl(-1);
|
print $user_temp->getNomUrl(-1);
|
||||||
}
|
}
|
||||||
}else if($key == 'lang'){
|
}else if($key == 'default_lang'){
|
||||||
$labellang = ($object->lang ? $langs->trans('Language_'.$object->lang) : '');
|
$labellang = ($object->default_lang ? $langs->trans('Language_'.$object->default_lang) : '');
|
||||||
print picto_from_langcode($object->lang, 'class="paddingrightonly saturatemedium opacitylow"');
|
print picto_from_langcode($object->default_lang, 'class="paddingrightonly saturatemedium opacitylow"');
|
||||||
print $labellang;
|
print $labellang;
|
||||||
} else {
|
} else {
|
||||||
print $object->showOutputField($val, $key, $object->$key, '');
|
print $object->showOutputField($val, $key, $object->$key, '');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user