Unifies account error localizations

This commit is contained in:
Stuart Breckenridge
2023-03-11 17:14:05 +08:00
parent 37cfba50a2
commit ceb925d0f9
8 changed files with 65 additions and 32 deletions

View File

@@ -136,8 +136,8 @@ private extension AddFeedController {
func showAlreadySubscribedError(_ urlString: String) {
let alert = NSAlert()
alert.alertStyle = .informational
alert.messageText = NSLocalizedString("alert.title.already-subscribed", comment: "Already subscribed")
alert.informativeText = NSLocalizedString("alert.message.already-subscribed", comment: "Cant add this feed because youve already subscribed to it.")
alert.messageText = AccountError.createErrorAlreadySubscribed.errorTitle
alert.informativeText = AccountError.createErrorAlreadySubscribed.localizedDescription
alert.beginSheetModal(for: hostWindow)
}
@@ -155,8 +155,8 @@ private extension AddFeedController {
func showNoFeedsErrorMessage() {
let alert = NSAlert()
alert.alertStyle = .informational
alert.messageText = NSLocalizedString("alert.title.feed-not-found", comment: "Feed not found")
alert.informativeText = NSLocalizedString("alert.message.feed-not-found", comment: "Cant add a feed because no feed was found.")
alert.messageText = AccountError.createErrorNotFound.errorTitle
alert.informativeText = AccountError.createErrorNotFound.localizedDescription
alert.beginSheetModal(for: hostWindow)
}

View File

@@ -64,9 +64,6 @@
/* You won't see this message again */
"alert.informative.will-not-see-again" = "You won't see this message again";
/* Cant add this feed because youve already subscribed to it. */
"alert.message.already-subscribed" = "Cant add this feed because youve already subscribed to it.";
/* Some articles dont have links, so they weren't copied. */
"alert.message.articles-without-links" = "Some articles dont have links, so they weren't copied.";
@@ -101,8 +98,6 @@
/* To enable notifications, open Notifications in System Settings, then find NetNewsWire in the list. */
"alert.message.enable-notifications-in-system-settings" = "To enable notifications, open Notifications in System Settings, then find NetNewsWire in the list.";
/* Cant add a feed because no feed was found. */
"alert.message.feed-not-found" = "Cant add a feed because no feed was found.";
/* A web browser will open the Feedly login for you to authorize access. */
"alert.message.feedly-web-browser-information" = "A web browser will open the Feedly login for you to authorise access.";
@@ -113,9 +108,6 @@
/* Twitter Deprecation Message */
"alert.message.twitter-deprecation-message" = "On February 1, 2023, Twitter announced the end of free access to the Twitter API, effective February 9.\n\nSince Twitter does not provide RSS feeds, weve had to use the Twitter API. Without free access to that API, we cant read feeds from Twitter.\n\nWeve left your Twitter feeds intact. If you have any starred items from those feeds, they will remain as long as you dont delete those feeds.\n\nYou can still read whatever you have already downloaded. However, those feeds will no longer update.";
/* Already subscribed */
"alert.title.already-subscribed" = "Already subscribed";
/* Author's website: */
"alert.title.authors-website" = "Author's website:";
@@ -143,9 +135,6 @@
/* Error */
"alert.title.error" = "Error";
/* Feed not found */
"alert.title.feed-not-found" = "Feed not found";
/* Install theme “%@” by %@? — the order of the variables is theme name, author name */
"alert.title.install-theme.%@.%@" = "Install theme “%@” by %@?";

View File

@@ -61,9 +61,6 @@
/* You won't see this message again */
"alert.informative.will-not-see-again" = "You won't see this message again";
/* Cant add this feed because youve already subscribed to it. */
"alert.message.already-subscribed" = "Cant add this feed because youve already subscribed to it.";
/* Some articles dont have links, so they weren't copied. */
"alert.message.articles-without-links" = "Some articles dont have links, so they weren't copied.";
@@ -98,9 +95,6 @@
/* To enable notifications, open Notifications in System Settings, then find NetNewsWire in the list. */
"alert.message.enable-notifications-in-system-settings" = "To enable notifications, open Notifications in System Settings, then find NetNewsWire in the list.";
/* Cant add a feed because no feed was found. */
"alert.message.feed-not-found" = "Cant add a feed because no feed was found.";
/* A web browser will open the Feedly login for you to authorize access. */
"alert.message.feedly-web-browser-information" = "A web browser will open the Feedly login for you to authorize access.";
@@ -110,9 +104,6 @@
/* Twitter Deprecation Message */
"alert.message.twitter-deprecation-message" = "On February 1, 2023, Twitter announced the end of free access to the Twitter API, effective February 9.\n\nSince Twitter does not provide RSS feeds, weve had to use the Twitter API. Without free access to that API, we cant read feeds from Twitter.\n\nWeve left your Twitter feeds intact. If you have any starred items from those feeds, they will remain as long as you dont delete those feeds.\n\nYou can still read whatever you have already downloaded. However, those feeds will no longer update.";
/* Already subscribed */
"alert.title.already-subscribed" = "Already subscribed";
/* Author's website: */
"alert.title.authors-website" = "Author's website:";
@@ -140,9 +131,6 @@
/* Error */
"alert.title.error" = "Error";
/* Feed not found */
"alert.title.feed-not-found" = "Feed not found";
/* Install theme “%@” by %@? — the order of the variables is theme name, author name */
"alert.title.install-theme.%@.%@" = "Install theme “%@” by %@?";