drupal_set_message() for admin only if items sent

douggreen - May 20, 2009 - 21:30
Project:Notify by Views
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This is a simple patch. Please only display the "user(s) immediately notified" if something was sent. Additionally, the $total should be part of t().

AttachmentSize
nodeapi-insert.patch523 bytes

#1

matt2000 - May 20, 2009 - 22:04
Status:needs review» needs work

What do you think of this instead? (This is against HEAD, so slightly different starting point.)

AttachmentSize
nodeapi-insert.1.patch 882 bytes

#2

douggreen - June 18, 2009 - 13:49
Status:needs work» needs review

No problem using format_plural, but I'd keep the strings as one. There's benefits to both implementations, with your, translators only need to translate "immediately notified by email" once, with mine, they see the context of the message and the word user/users gets translated in context. It's possible that this subtle difference will change the translation in some languages. format_plural sends it's string through t, so these strings do get translated.

AttachmentSize
468520-2.patch 857 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.