Permalink
Browse files

BUG Make original field label translatable

  • Loading branch information...
1 parent 17195d4 commit 53a7b6a633238bafb87df532d9e008b55ec543a8 @drzax drzax committed with chillu Feb 19, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 code/model/Translatable.php
@@ -1765,7 +1765,12 @@ protected function baseTransform($nonEditableField, $originalField) {
$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;

0 comments on commit 53a7b6a

Please sign in to comment.