diff --git a/Localization/StringsConvertor/input/Base.lproj/app.json b/Localization/StringsConvertor/input/Base.lproj/app.json index 6787318b3..4be5fb01b 100644 --- a/Localization/StringsConvertor/input/Base.lproj/app.json +++ b/Localization/StringsConvertor/input/Base.lproj/app.json @@ -737,7 +737,8 @@ "delete_statuses": "Some of your posts have been removed.", "sensitive": "Your posts will be marked as sensitive from now on.", "silence": "Your account has been limited.", - "suspend": "Your account has been suspended." + "suspend": "Your account has been suspended.", + "learn_more": "Learn More" } }, "thread": { diff --git a/Localization/app.json b/Localization/app.json index 6787318b3..4be5fb01b 100644 --- a/Localization/app.json +++ b/Localization/app.json @@ -737,7 +737,8 @@ "delete_statuses": "Some of your posts have been removed.", "sensitive": "Your posts will be marked as sensitive from now on.", "silence": "Your account has been limited.", - "suspend": "Your account has been suspended." + "suspend": "Your account has been suspended.", + "learn_more": "Learn More" } }, "thread": { diff --git a/Mastodon/Scene/Notification/Cell/AccountWarningNotificationCell.swift b/Mastodon/Scene/Notification/Cell/AccountWarningNotificationCell.swift index 1d7ab0b60..f6096e2d9 100644 --- a/Mastodon/Scene/Notification/Cell/AccountWarningNotificationCell.swift +++ b/Mastodon/Scene/Notification/Cell/AccountWarningNotificationCell.swift @@ -26,7 +26,7 @@ class AccountWarningNotificationCell: UITableViewCell { warningLabel.numberOfLines = 0 learnMoreLabel = UILabel() - learnMoreLabel.text = "Learn more" + learnMoreLabel.text = L10n.Scene.Notification.Warning.learnMore learnMoreLabel.textColor = Asset.Colors.Brand.blurple.color learnMoreLabel.font = UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 17)) learnMoreLabel.numberOfLines = 0 diff --git a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift index 8ba512478..ccf92024e 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift +++ b/MastodonSDK/Sources/MastodonLocalization/Generated/Strings.swift @@ -914,6 +914,8 @@ public enum L10n { public static let deleteStatuses = L10n.tr("Localizable", "Scene.Notification.Warning.DeleteStatuses", fallback: "Some of your posts have been removed.") /// Your account has been disabled. public static let disable = L10n.tr("Localizable", "Scene.Notification.Warning.Disable", fallback: "Your account has been disabled.") + /// Learn More + public static let learnMore = L10n.tr("Localizable", "Scene.Notification.Warning.LearnMore", fallback: "Learn More") /// Some of your posts have been marked as sensitive. public static let markStatusesAsSensitive = L10n.tr("Localizable", "Scene.Notification.Warning.MarkStatusesAsSensitive", fallback: "Some of your posts have been marked as sensitive.") /// Your account has received a moderation warning. diff --git a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings index 6939c31c9..7ed8427ee 100644 --- a/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings +++ b/MastodonSDK/Sources/MastodonLocalization/Resources/Base.lproj/Localizable.strings @@ -325,6 +325,7 @@ uploaded to Mastodon."; "Scene.Notification.Title.Mentions" = "Mentions"; "Scene.Notification.Warning.DeleteStatuses" = "Some of your posts have been removed."; "Scene.Notification.Warning.Disable" = "Your account has been disabled."; +"Scene.Notification.Warning.LearnMore" = "Learn More"; "Scene.Notification.Warning.MarkStatusesAsSensitive" = "Some of your posts have been marked as sensitive."; "Scene.Notification.Warning.None" = "Your account has received a moderation warning."; "Scene.Notification.Warning.Sensitive" = "Your posts will be marked as sensitive from now on.";