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
0f2f463677
commit
73c11663ab
@ -1765,7 +1765,12 @@ class Translatable_Transformation extends FormTransformation {
|
||||
$nonEditableField->setValue($this->original->$fieldname);
|
||||
$nonEditableField->setName($fieldname.'_original');
|
||||
$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');
|
||||
return $nonEditableField_holder;
|
||||
|
Loading…
x
Reference in New Issue
Block a user