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__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;

View File

@@ -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];
}

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)
[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]];
}
}