Ticket #7804: E-mail.patch
File E-mail.patch, 3.3 KB (added by , 13 years ago) |
---|
-
src/preferences/mail/ConfigWindow.cpp
898 898 item = new AccountItem(label, account, ACCOUNT_ITEM); 899 899 fAccountsListView->AddItem(item); 900 900 901 item = new AccountItem(B_TRANSLATE(" · Incoming"), account, INBOUND_ITEM);901 item = new AccountItem(B_TRANSLATE("\t\t· Incoming"), account, INBOUND_ITEM); 902 902 fAccountsListView->AddItem(item); 903 903 if (!account->IsInboundEnabled()) 904 904 item->SetEnabled(false); 905 905 906 item = new AccountItem(B_TRANSLATE(" · Outgoing"), account,906 item = new AccountItem(B_TRANSLATE("\t\t· Outgoing"), account, 907 907 OUTBOUND_ITEM); 908 908 fAccountsListView->AddItem(item); 909 909 if (!account->IsOutboundEnabled()) 910 910 item->SetEnabled(false); 911 911 912 item = new AccountItem(B_TRANSLATE(" · E-mail filters"), account,912 item = new AccountItem(B_TRANSLATE("\t\t· E-mail filters"), account, 913 913 FILTER_ITEM); 914 914 fAccountsListView->AddItem(item); 915 915 } -
src/servers/mail/StatusWindow.cpp
481 481 strcpy(pre_text,status->TrailingText()); 482 482 char final[80]; 483 483 if (by_bytes) { 484 sprintf(final,"%.1f / %.1f kb (%d / %d messages)",float(float(status->CurrentValue() + how_much) / 1024),float(float(status->MaxValue()) / 1024),(int)items_now+1,(int)total_items); 484 sprintf(final, B_TRANSLATE("%.1f / %.1f kb (%d / %d messages)"), 485 float(float(status->CurrentValue() + how_much) / 1024), 486 float(float(status->MaxValue()) / 1024),(int)items_now+1, 487 (int)total_items); 485 488 status->Update(how_much,NULL,final); 486 489 } else { 487 sprintf(final,"%d / %d messages",(int)items_now,(int)total_items); 490 sprintf(final, B_TRANSLATE("%d / %d messages"),(int)items_now, 491 (int)total_items); 488 492 status->Update(how_much,NULL,final); 489 493 } 490 494 UnlockLooper(); -
src/servers/mail/Notifier.cpp
4 4 * Distributed under the terms of the MIT License. 5 5 */ 6 6 7 #include <Catalog.h> 7 8 8 9 #include "Notifier.h" 9 10 10 11 12 #undef B_TRANSLATE_CONTEXT 13 #define B_TRANSLATE_CONTEXT "Notifier" 14 15 11 16 DefaultNotifier::DefaultNotifier(const char* accountName, bool inbound, 12 17 ErrorLogWindow* errorWindow, MailStatusWindow* statusWindow) 13 18 : … … 17 22 fStatusWindow(statusWindow) 18 23 { 19 24 BString desc; 20 desc += (fIsInbound == true) ? "Fetching" : "Sending"; 21 desc += " mail for "; 22 desc += fAccountName; 25 if (fIsInbound == true) 26 desc << B_TRANSLATE("Fetching mail for %name"); 27 else 28 desc << B_TRANSLATE("Sending mail for %name"); 29 desc.ReplaceFirst("%name", fAccountName); 23 30 24 31 fStatusWindow->Lock(); 25 32 fStatusView = fStatusWindow->NewStatusView(desc, fIsInbound != false); -
src/servers/mail/Jamfile
38 38 : 39 39 DeskbarView.cpp 40 40 MailDaemon.cpp 41 Notifier.cpp 41 42 StatusWindow.cpp 42 43 ;