--- petition-cvs/petition.module 2006-07-17 13:20:33.000000000 -0400
+++ petition/petition.module 2006-07-27 10:32:29.000000000 -0400
@@ -156,9 +156,9 @@
);
$form['statistics'] = array(
'#type' => 'radios',
- '#title' => 'Display Signee Statistics',
+ '#title' => t('Display Signee Statistics'),
'#default_value' => ($node->statistics ? $node->statistics : 0),
- '#options' => array('No', 'Yes'),
+ '#options' => array(t('No'), t('Yes')),
'#description' => t('Controls whether or not public users can see the number of people who have signed this petition.'),
'#required' => TRUE,
);
@@ -388,8 +388,8 @@
if ($node->statistics) {
$output .= '
';
- $output .= t('%x of %y people have signed this petition.',
- array('%x' => $node->signatures, '%y' => $node->target));
+ $output .= t('%signatures of %target people have signed this petition.',
+ array('%signatures' => $node->signatures, '%target' => $node->target));
$output .= '
';
}
@@ -610,7 +610,7 @@
}
$output = ''.$node->title.'
';
- $output .= l('Export this petition in CSV format', 'admin/petition/signatories/csv/'.$pid);
+ $output .= l(t('Export this petition in CSV format'), 'admin/petition/signatories/csv/'.$pid);
$output .= theme('table', $headers, $rows);
$output .= theme('pager', NULL, 50);
return $output;
@@ -623,7 +623,7 @@
civicrm_initialize(true);
$rows = array();
- $headers = array('Week Starting', 'Signatures', 'Trend');
+ $headers = array(t('Week Starting'), t('Signatures'), t('Trend'));
$results = db_query('SELECT COUNT(DISTINCT(cid)) AS signups, MAKEDATE(YEAR(NOW()), (WEEK(FROM_UNIXTIME(created)) * 7)-6) AS week_starting FROM {petition_signatories} WHERE pid = %d GROUP BY week_starting', $pid);
$old_val = 0;
@@ -689,8 +689,8 @@
$header[] = $field['title'];
$fields[$key] = 1;
}
- $header[] = 'Contact ID';
- $header[] = 'Date Signed';
+ $header[] = t('Contact ID');
+ $header[] = t('Date Signed');
$headers = $header;
$rows = array();
@@ -822,9 +822,9 @@
*/
function _petition_location_types(){
return array(
- 1 => 'Home',
- 2 => 'Work',
- 3 => 'Main',
- 4 => 'Other'
+ 1 => t('Home'),
+ 2 => t('Work'),
+ 3 => t('Main'),
+ 4 => t('Other)'
);
}