Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.9
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2010 at 06:47 UTC
Updated:
18 Mar 2011 at 15:11 UTC
I'm working on translating the module and found out that line 30-33 in print_mail.inc does not count for the plural form.
It's currently
<?php
$form['flood'] = array(
'#type' => 'markup',
'#value' => '<p>'. t('You cannot send more than %number messages per hour. Please try again later.', array('%number' => $print_mail_hourly_threshold)) .'</p>',
);
?>
It should be
<?php
$form['flood'] = array(
'#type' => 'markup',
'#value' => '<p>'. format_plural($print_mail_hourly_threshold,'You cannot send more than 1 message per hour. Please try again later.', 'You cannot send more than @count messages per hour. Please try again later.') . '</p>',
);
?>
ِAttached patch
| Comment | File | Size | Author |
|---|---|---|---|
| print_mail.pluralform.patch | 665 bytes | shadysamir |
Comments
Comment #1
shadysamir commentedChanging Status
Comment #2
jcnventuraThanks for the patch! I've committed it to git.