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

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