mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
BUG Make original field label translatable
This commit is contained in:
parent
17195d4e86
commit
53a7b6a633
@ -1765,7 +1765,12 @@ class Translatable_Transformation extends FormTransformation {
|
|||||||
$nonEditableField->setValue($this->original->$fieldname);
|
$nonEditableField->setValue($this->original->$fieldname);
|
||||||
$nonEditableField->setName($fieldname.'_original');
|
$nonEditableField->setName($fieldname.'_original');
|
||||||
$nonEditableField->addExtraClass('originallang');
|
$nonEditableField->addExtraClass('originallang');
|
||||||
$nonEditableField->setTitle('Original '.$originalField->Title());
|
$nonEditableField->setTitle(_t(
|
||||||
|
'Translatable_Transform.OriginalFieldLabel',
|
||||||
|
'Original {title}',
|
||||||
|
'Label for the original value of the translatable field.',
|
||||||
|
array('title'=>$originalField->Title())
|
||||||
|
));
|
||||||
|
|
||||||
$nonEditableField_holder->insertBefore($originalField, $fieldname.'_original');
|
$nonEditableField_holder->insertBefore($originalField, $fieldname.'_original');
|
||||||
return $nonEditableField_holder;
|
return $nonEditableField_holder;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user