Closed (fixed)
Project:
Content Complete
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2009 at 10:22 UTC
Updated:
18 Feb 2009 at 11:00 UTC
Hey
Fine module, a little bug though. The text in the block isn't surrounded by the t() function.
content_complete.module
line: 432
if ($complete_data['nextfield'] && $complete_data['nextpercent']) {
$output .= 'Filling out <i>'. l($complete_data['nextfield'], 'node/'. $complete_data['nid'] .'/edit', array(
'query' => 'content_complete_fieldname='. $complete_data['nextname']
)) .'</i> will bring '. $complete_data['name'] .' to '. t('!complete%.', array(
'!complete' => $complete_data['nextpercent']
));
}
should be replaced by something like:
if ($complete_data['nextfield'] && $complete_data['nextpercent']) {
$output .= t('Filling out <i>!nextfield</i> will bring !completename to !complete%.', array(
'!nextfield' => l($complete_data['nextfield'], 'node/'. $complete_data['nid'] .'/edit', array('query' => 'content_complete_fieldname='. $complete_data['nextname'])),
'!completename' => $complete_data['name'],
'!complete' => $complete_data['nextpercent']
));
}
Comments
Comment #1
pvhee commentedThanks for the fix! Committed to HEAD.