From c28157304455d94fd5584fa4dd735fe6f8e71905 Mon Sep 17 00:00:00 2001 From: relikd Date: Sun, 26 Oct 2025 23:44:07 +0100 Subject: [PATCH] fix: localize string --- baRSS.xcodeproj/project.pbxproj | 4 ++-- baRSS/Feed Import/UpdateScheduler.m | 2 +- baRSS/Notifications/NotifyEndpoint.m | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/baRSS.xcodeproj/project.pbxproj b/baRSS.xcodeproj/project.pbxproj index dd82211..9d7ca55 100644 --- a/baRSS.xcodeproj/project.pbxproj +++ b/baRSS.xcodeproj/project.pbxproj @@ -805,7 +805,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 16686; + CURRENT_PROJECT_VERSION = 16687; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = UY657LKNHJ; @@ -866,7 +866,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 16686; + CURRENT_PROJECT_VERSION = 16687; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = UY657LKNHJ; diff --git a/baRSS/Feed Import/UpdateScheduler.m b/baRSS/Feed Import/UpdateScheduler.m index 73b5522..02272e4 100644 --- a/baRSS/Feed Import/UpdateScheduler.m +++ b/baRSS/Feed Import/UpdateScheduler.m @@ -172,7 +172,7 @@ static _Atomic(NSUInteger) _queueSize = 0; /// Helper method to show modal error alert static inline void AlertDownloadError(NSError *err, NSString *url) { NSAlert *alertPopup = [NSAlert alertWithError:err]; - alertPopup.informativeText = [NSString stringWithFormat:@"Error loading source: %@", url]; + alertPopup.informativeText = [NSString stringWithFormat:NSLocalizedString(@"Error loading source: %@", nil), url]; [alertPopup runModal]; } diff --git a/baRSS/Notifications/NotifyEndpoint.m b/baRSS/Notifications/NotifyEndpoint.m index dd4a568..add79e3 100644 --- a/baRSS/Notifications/NotifyEndpoint.m +++ b/baRSS/Notifications/NotifyEndpoint.m @@ -56,7 +56,7 @@ static NotificationType notifyType; if (newCount > oldCount) { // only notify if new feeds (quirk: will also trigger for option-click menu to mark unread) [self send:kNotifyIdGlobal title:APP_NAME - body:[NSString stringWithFormat:@"%ld unread articles", newCount]]; + body:[NSString stringWithFormat:NSLocalizedString(@"%ld unread articles", nil), newCount]]; } } else { [self dismiss:@[kNotifyIdGlobal]]; @@ -73,7 +73,7 @@ static NotificationType notifyType; [feed.managedObjectContext obtainPermanentIDsForObjects:@[feed] error:nil]; [self send:feed.notificationID title:feed.title - body:[NSString stringWithFormat:@"%ld unread articles", count]]; + body:[NSString stringWithFormat:NSLocalizedString(@"%ld unread articles", nil), count]]; } }