Closed (fixed)
Project:
Notify
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Oct 2008 at 13:53 UTC
Updated:
31 Oct 2009 at 09:53 UTC
Jump to comment: Most recent file
If there is new content, the e-mail says "Recent content - !count new posts." It shows the t() variable !count instead of the actual number.
I remedied by changing line 428 from:
. t('Recent content - !count', array('!count' => format_plural(count($nodes), '1 new post', '!count new posts'))) ."\n"
to
. t('Recent content - !count', array('!count' => format_plural(count($nodes), '1 new post', count($nodes) . ' new posts'))) ."\n"
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | notify-6--1-316234.patch | 2.13 KB | Standart |
Comments
Comment #1
matt2000 commentedThanks, fix committed.
Comment #2
Standart commentedI have the same problem but docs say to use a placeholder there: http://api.drupal.org/api/function/t/6 . I guess you're breaking translations. Must investigate more.
Comment #3
Standart commentedOk, we need to use the @ decorator always here so it was a mistake to replace it with !.
Attached is a patch - I didn't test it, yet.
P.S. Please do not commit unreviewed changes/patches.
Comment #4
mygumbo commentedHas anyone tested the patch against 5.x-2.2? I just upgraded and am getting the wrong count behavior too. Thanks.
Comment #5
desiree commentedI've just noticed that the new comment notification does not post counts correctly when emailing users:
------------------------------------------------------------------------------
Recent comments - !count new comments
------------------------------------------------------------------------------
!count new comments attached to Event posted by desiree: Baileys Cross Road Shelter Dinner 02.28.2009
etc....
[bold for emphasis]
Thanks in advance
Comment #6
bitsize commentedI'm having this issue: Recent comments - !count new comments and !count new comments attached ... are being sent to the email.
Any suggestions?
Comment #7
carpintero commentedsubscribing
Comment #8
jack.r.abbit commentedOn my D6 install, I manually applied the changes given in the above patch and they seem to be working just fine. We don't like to use patches if possible so it would be great if this patch made it into a future build
Comment #9
matt2000 commentedLooks good. Tested & Committed. Thanks jack.r.abbit for testing; Standart for the patch.
Comment #10
Standart commentedHow about also committing to DRUPAL-6--1 branch?
Comment #12
vako commentedAre we all talking about the Notify module? on June 23, 2009 the patch was committed, yet the version and date on the download indicates 6.x-1.0 2008-Dec-17
Also I am using the latest version and still see the !count text instead of a number. What am I doing wrong and how can we correct this issue?
in general, how can I apply the patch manually?
Comment #13
Standart commentedApplying patches: http://drupal.org/node/60108
As this patch is really small you could also just open it in a text editor and find the necessary changes (look for + and -).
The real solution is to poke the module maintainer to commit the patch to the 6.x-1.x branch and then make a new release (6.x-1.1).