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
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("Language").'</td><td>';
|
||||
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 '</tr>';
|
||||
|
||||
@ -237,7 +237,7 @@ if (($id || $ref) && $action == 'edit') {
|
||||
//Language of question/response
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("Language").'</td><td>';
|
||||
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 '</tr>';
|
||||
|
||||
|
||||
@ -607,9 +607,9 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
||||
}
|
||||
print $user_temp->getNomUrl(-1);
|
||||
}
|
||||
}else if($key == 'lang'){
|
||||
$labellang = ($object->lang ? $langs->trans('Language_'.$object->lang) : '');
|
||||
print picto_from_langcode($object->lang, 'class="paddingrightonly saturatemedium opacitylow"');
|
||||
}else if($key == 'default_lang'){
|
||||
$labellang = ($object->default_lang ? $langs->trans('Language_'.$object->default_lang) : '');
|
||||
print picto_from_langcode($object->default_lang, 'class="paddingrightonly saturatemedium opacitylow"');
|
||||
print $labellang;
|
||||
} else {
|
||||
print $object->showOutputField($val, $key, $object->$key, '');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user