Skip to content

Commit

Permalink
Fix non-translated length target string (#9)
Browse files Browse the repository at this point in the history
The default length target string was broken on a not translated install
  • Loading branch information
TheBnl authored and jonom committed Mar 30, 2017
1 parent 4e727f7 commit 73d35d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/TextTargetLengthExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function setTargetLength($idealCharCount, $minCharCount = null, $maxCharC
$field->setAttribute('data-target-min-length', $minCharCount);
$field->setAttribute('data-target-max-length', $maxCharCount);

$field->setAttribute('data-hint-length-target', _t('TextTargetLength.LengthTarget', 'Length target: <b>%s%</b> <i>%s</i>'));
$field->setAttribute('data-hint-length-target', _t('TextTargetLength.LengthTarget', 'Length target: <b>{value}%</b> <i>{remark}</i>'));
$field->setAttribute('data-hint-length-tooshort', _t('TextTargetLength.LengthTooShort', 'Keep going!'));
$field->setAttribute('data-hint-length-toolong', _t('TextTargetLength.LengthTooLong', 'Too long'));
$field->setAttribute('data-hint-length-adequate', _t('TextTargetLength.LengthAdequate', 'Okay'));
Expand Down

0 comments on commit 73d35d8

Please sign in to comment.