From 36a0d1bf4665ff5af5e6e37a4d31a97281264849 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Thu, 25 Mar 2021 10:59:35 -0500 Subject: [PATCH] Sentence-case strings --- src/EntriesView.cpp | 4 ++-- src/FeedEditWindow.cpp | 6 +++--- src/MainWindow.cpp | 2 +- src/Notifier.cpp | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/EntriesView.cpp b/src/EntriesView.cpp index 625e41a..22f9261 100644 --- a/src/EntriesView.cpp +++ b/src/EntriesView.cpp @@ -256,7 +256,7 @@ EntriesView::_FileError(status_t result) find_directory(B_USER_SETTINGS_DIRECTORY, &cfgPath); if (result == B_NOT_A_DIRECTORY) { - BAlert* alert = new BAlert(B_TRANSLATE("Entries Directory"), + BAlert* alert = new BAlert(B_TRANSLATE("Entries directory"), B_TRANSLATE("The path you selected isn't a folder― please choose " "another path."), B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT); @@ -264,7 +264,7 @@ EntriesView::_FileError(status_t result) return; } - userFileError(result, B_TRANSLATE("Entries Directory"), + userFileError(result, B_TRANSLATE("Entries directory"), B_TRANSLATE("Couldn't open this folder because no path was specified.\n" "Please select a new folder."), B_TRANSLATE("Couldn't open this folder because permission was denied.\n" diff --git a/src/FeedEditWindow.cpp b/src/FeedEditWindow.cpp index d4c6421..63492b3 100644 --- a/src/FeedEditWindow.cpp +++ b/src/FeedEditWindow.cpp @@ -41,7 +41,7 @@ FeedEditWindow::FeedEditWindow(BEntry feedEntry) : FeedEditWindow() { - SetTitle(B_TRANSLATE("Edit Feed")); + SetTitle(B_TRANSLATE("Edit feed")); fFeed = Feed(feedEntry); fFeedNameText->SetText(fFeed.Title().String()); @@ -149,7 +149,7 @@ FeedEditWindow::_SaveFeed() BUrl url = BUrl(urlString); if (BString(urlString).IsEmpty() == true) { - BAlert* emptyAlert = new BAlert(B_TRANSLATE("Invalid Feed"), + BAlert* emptyAlert = new BAlert(B_TRANSLATE("Invalid feed"), B_TRANSLATE("Please enter a URL."), B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL, B_OFFSET_SPACING, B_WARNING_ALERT); emptyAlert->Go(); @@ -157,7 +157,7 @@ FeedEditWindow::_SaveFeed() } if (url.IsValid() == false) { - BAlert* invAlert = new BAlert(B_TRANSLATE("Invalid Feed"), + BAlert* invAlert = new BAlert(B_TRANSLATE("Invalid feed"), B_TRANSLATE("The given URL is invalid. Please make sure you typed " "it in correctly."), B_TRANSLATE("OK"), NULL, NULL, B_WIDTH_AS_USUAL, B_OFFSET_SPACING, B_WARNING_ALERT); diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 216b494..6bcf306 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -167,7 +167,7 @@ MainWindow::_SetUpdateButton(bool cancel) fUpdateButton->SetLabel(B_TRANSLATE("Cancel")); fUpdateButton->SetMessage(new BMessage(kClearQueue)); } else { - fUpdateButton->SetLabel(B_TRANSLATE("Update Now")); + fUpdateButton->SetLabel(B_TRANSLATE("Update now")); fUpdateButton->SetMessage(new BMessage(kUpdateSubscribed)); } } diff --git a/src/Notifier.cpp b/src/Notifier.cpp index f658ebc..9339136 100644 --- a/src/Notifier.cpp +++ b/src/Notifier.cpp @@ -98,7 +98,7 @@ Notifier::_SendUpdatedNotification() } BNotification notifyNew(B_INFORMATION_NOTIFICATION); - BString notifyLabel(B_TRANSLATE("Feed Updates")); + BString notifyLabel(B_TRANSLATE("Feed updates")); BString notifyText; static BStringFormat oneSourceFormat(B_TRANSLATE("{0, plural," @@ -119,7 +119,7 @@ Notifier::_SendUpdatedNotification() BString* feedTitle = (BString*)fUpdatedFeeds->ItemAt(0); if (feedTitle->IsEmpty()) - feedTitle->SetTo(B_TRANSLATE("Untitled Feed")); + feedTitle->SetTo(B_TRANSLATE("Untitled feed")); notifyText.ReplaceAll("%n%", entryNum); notifyText.ReplaceAll("%source%", feedTitle->String()); @@ -144,7 +144,7 @@ Notifier::_SendFailedNotification() } BNotification notifyError(B_ERROR_NOTIFICATION); - BString notifyLabel(B_TRANSLATE("Update Failure")); + BString notifyLabel(B_TRANSLATE("Update failure")); BString notifyText; static BStringFormat multiSourceFormat(B_TRANSLATE("{0, plural," @@ -158,7 +158,7 @@ Notifier::_SendFailedNotification() BString* feedTitle = (BString*)fFailedFeeds->ItemAt(0); if (feedTitle->IsEmpty()) - feedTitle->SetTo(B_TRANSLATE("Untitled Feed")); + feedTitle->SetTo(B_TRANSLATE("Untitled feed")); notifyText.ReplaceAll("%source%", feedTitle->String());