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"

CommentFileSizeAuthor
#3 notify-6--1-316234.patch2.13 KBStandart

Comments

matt2000’s picture

Assigned: Unassigned » matt2000
Status: Active » Fixed

Thanks, fix committed.

Standart’s picture

Status: Fixed » Active

I 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.

Standart’s picture

Status: Active » Needs review
StatusFileSize
new2.13 KB

Ok, 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.

mygumbo’s picture

Has anyone tested the patch against 5.x-2.2? I just upgraded and am getting the wrong count behavior too. Thanks.

desiree’s picture

Version: 6.x-1.x-dev » 6.x-1.0

I'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

bitsize’s picture

I'm having this issue: Recent comments - !count new comments and !count new comments attached ... are being sent to the email.
Any suggestions?

carpintero’s picture

subscribing

jack.r.abbit’s picture

On 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

matt2000’s picture

Status: Needs review » Fixed

Looks good. Tested & Committed. Thanks jack.r.abbit for testing; Standart for the patch.

Standart’s picture

How about also committing to DRUPAL-6--1 branch?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

vako’s picture

Are 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?

Standart’s picture

Applying 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).