Ticket #7689: notifier.diff
File notifier.diff, 1.2 KB (added by , 13 years ago) |
---|
-
src/add-ons/mail_daemon/inbound_filters/notifier/filter.cpp
67 67 system_beep("New E-mail"); 68 68 69 69 if (fStrategy & alert) { 70 BString text ;70 BString text, numString; 71 71 if (fNNewMessages != 1) 72 text << B_TRANSLATE("You have ") << fNNewMessages << B_TRANSLATE( 73 " new messages") << B_TRANSLATE(" for ") 74 << fMailProtocol.AccountSettings().Name() << "."; 72 text << B_TRANSLATE("You have %num new messages for %name."); 75 73 else 76 text << B_TRANSLATE("You have ") << fNNewMessages << B_TRANSLATE( 77 " new message") << B_TRANSLATE(" for ") 78 << fMailProtocol.AccountSettings().Name() << "."; 74 text << B_TRANSLATE("You have %num new message for %name."); 79 75 76 numString << fNNewMessages; 77 text.ReplaceFirst("%num", numString); 78 text.ReplaceFirst("%name", fMailProtocol.AccountSettings().Name()); 79 80 80 BAlert *alert = new BAlert(B_TRANSLATE("New messages"), text.String(), 81 81 "OK", NULL, NULL, B_WIDTH_AS_USUAL); 82 82 alert->SetFeel(B_NORMAL_WINDOW_FEEL);