Debug generic translation of fields
This commit is contained in:
parent
1ef89eb1a1
commit
7b99ebfca5
@ -348,6 +348,7 @@ class Form
|
|||||||
return ''; // No extralang field to show
|
return ''; // No extralang field to show
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$result .= '<!-- Widget for translation -->'."\n";
|
||||||
$result .= '<div class="inline-block paddingleft image-'.$object->element.'-'.$fieldname.'">';
|
$result .= '<div class="inline-block paddingleft image-'.$object->element.'-'.$fieldname.'">';
|
||||||
$s = img_picto($langs->trans("ShowOtherLanguages"), 'language', '', false, 0, 0, '', 'fa-15 editfieldlang');
|
$s = img_picto($langs->trans("ShowOtherLanguages"), 'language', '', false, 0, 0, '', 'fa-15 editfieldlang');
|
||||||
$result .= $s;
|
$result .= $s;
|
||||||
@ -7408,9 +7409,14 @@ class Form
|
|||||||
$htmltext = '';
|
$htmltext = '';
|
||||||
// If there is extra languages
|
// If there is extra languages
|
||||||
foreach ($arrayoflangcode as $extralangcode) {
|
foreach ($arrayoflangcode as $extralangcode) {
|
||||||
$s = picto_from_langcode($extralangcode, 'class="pictoforlang paddingright"');
|
$htmltext .= picto_from_langcode($extralangcode, 'class="pictoforlang paddingright"');
|
||||||
$htmltext .= $s.$object->array_languages['name'][$extralangcode];
|
if ($object->array_languages['name'][$extralangcode]) {
|
||||||
|
$htmltext .= $object->array_languages['name'][$extralangcode];
|
||||||
|
} else {
|
||||||
|
$htmltext .= '<span class="opacitymedium">'.$langs->trans("SwitchInEditModeToAddTranslation").'</span>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
$ret .= '<!-- Show translations of name -->'."\n";
|
||||||
$ret .= $this->textwithpicto('', $htmltext, -1, 'language', 'opacitymedium paddingleft');
|
$ret .= $this->textwithpicto('', $htmltext, -1, 'language', 'opacitymedium paddingleft');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1028,3 +1028,5 @@ YAxis=Y-Axis
|
|||||||
StatusOfRefMustBe=Status of %s must be %s
|
StatusOfRefMustBe=Status of %s must be %s
|
||||||
DeleteFileHeader=Confirm file delete
|
DeleteFileHeader=Confirm file delete
|
||||||
DeleteFileText=Do you really want delete this file?
|
DeleteFileText=Do you really want delete this file?
|
||||||
|
ShowOtherLanguages=Show other languages
|
||||||
|
SwitchInEditModeToAddTranslation=Switch in edit mode to add translations for this language
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user