IMAP: Correct typos and translate more strings.

This commit is contained in:
Augustin Cavalier 2019-07-27 12:57:13 -04:00
parent d8d7f0ae9d
commit 46511867cc

View File

@ -310,7 +310,7 @@ void
FolderConfigWindow::_LoadFolders() FolderConfigWindow::_LoadFolders()
{ {
StatusWindow* statusWindow = new StatusWindow(this, StatusWindow* statusWindow = new StatusWindow(this,
B_TRANSLATE("Fetching IMAP folders, have patience" B_UTF8_ELLIPSIS)); B_TRANSLATE("Fetching IMAP folders, please be patient" B_UTF8_ELLIPSIS));
statusWindow->Show(); statusWindow->Show();
status_t status = fProtocol.Connect(fSettings.ServerAddress(), status_t status = fProtocol.Connect(fSettings.ServerAddress(),
@ -345,12 +345,11 @@ FolderConfigWindow::_LoadFolders()
uint64 used, total; uint64 used, total;
if (fProtocol.GetQuota(used, total) == B_OK) { if (fProtocol.GetQuota(used, total) == B_OK) {
char buffer[256]; BString quotaString;
BString quotaString = "Server storage: "; char usedBuffer[128], totalBuffer[128];
quotaString += string_for_size(used, buffer, 256); quotaString.SetToFormat(B_TRANSLATE("Server storage: %s / %s used."),
quotaString += " / "; string_for_size(used, usedBuffer, 128),
quotaString += string_for_size(total, buffer, 256); string_for_size(total, totalBuffer, 128));
quotaString += " used.";
fQuotaView->SetText(quotaString); fQuotaView->SetText(quotaString);
} }
@ -374,7 +373,7 @@ FolderConfigWindow::_ApplyChanges()
return; return;
StatusWindow* status = new StatusWindow(this, StatusWindow* status = new StatusWindow(this,
B_TRANSLATE("Update subcription of IMAP folders, have patience" B_TRANSLATE("Updating subscriptions to IMAP folders, please be patient"
B_UTF8_ELLIPSIS)); B_UTF8_ELLIPSIS));
status->Show(); status->Show();