fix: localize string

This commit is contained in:
relikd
2025-10-26 23:44:07 +01:00
parent d164c6bcb0
commit c281573044
3 changed files with 5 additions and 5 deletions

View File

@@ -805,7 +805,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 16686; CURRENT_PROJECT_VERSION = 16687;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf; DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = UY657LKNHJ; DEVELOPMENT_TEAM = UY657LKNHJ;
@@ -866,7 +866,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 16686; CURRENT_PROJECT_VERSION = 16687;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = UY657LKNHJ; DEVELOPMENT_TEAM = UY657LKNHJ;

View File

@@ -172,7 +172,7 @@ static _Atomic(NSUInteger) _queueSize = 0;
/// Helper method to show modal error alert /// Helper method to show modal error alert
static inline void AlertDownloadError(NSError *err, NSString *url) { static inline void AlertDownloadError(NSError *err, NSString *url) {
NSAlert *alertPopup = [NSAlert alertWithError:err]; 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]; [alertPopup runModal];
} }

View File

@@ -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) if (newCount > oldCount) { // only notify if new feeds (quirk: will also trigger for option-click menu to mark unread)
[self send:kNotifyIdGlobal [self send:kNotifyIdGlobal
title:APP_NAME title:APP_NAME
body:[NSString stringWithFormat:@"%ld unread articles", newCount]]; body:[NSString stringWithFormat:NSLocalizedString(@"%ld unread articles", nil), newCount]];
} }
} else { } else {
[self dismiss:@[kNotifyIdGlobal]]; [self dismiss:@[kNotifyIdGlobal]];
@@ -73,7 +73,7 @@ static NotificationType notifyType;
[feed.managedObjectContext obtainPermanentIDsForObjects:@[feed] error:nil]; [feed.managedObjectContext obtainPermanentIDsForObjects:@[feed] error:nil];
[self send:feed.notificationID [self send:feed.notificationID
title:feed.title title:feed.title
body:[NSString stringWithFormat:@"%ld unread articles", count]]; body:[NSString stringWithFormat:NSLocalizedString(@"%ld unread articles", nil), count]];
} }
} }