From b2353442682efab39c7e381d115e031dbeee3b55 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 1 Mar 2021 14:55:03 -0800 Subject: [PATCH] Change "Unfollow" to "Following" --- Localizations/Localizable.strings | 1 - Views/UIKit/AccountHeaderView.swift | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Localizations/Localizable.strings b/Localizations/Localizable.strings index 8d8827e..2b89104 100644 --- a/Localizations/Localizable.strings +++ b/Localizations/Localizable.strings @@ -48,7 +48,6 @@ "account.unavailable" = "Profile unavailable"; "account.unblock" = "Unblock"; "account.unblock.confirm-%@" = "Unblock %@?"; -"account.unfollow" = "Unfollow"; "account.unfollow.confirm-%@" = "Unfollow %@?"; "account.unmute" = "Unmute"; "account.unmute.confirm-%@" = "Unmute %@?"; diff --git a/Views/UIKit/AccountHeaderView.swift b/Views/UIKit/AccountHeaderView.swift index 8c13ff4..ee47437 100644 --- a/Views/UIKit/AccountHeaderView.swift +++ b/Views/UIKit/AccountHeaderView.swift @@ -67,7 +67,7 @@ final class AccountHeaderView: UIView { unfollowButton.isHidden = !(relationship.following || relationship.requested) unfollowButton.setTitle( NSLocalizedString( - relationship.requested ? "account.request.cancel" : "account.unfollow", + relationship.requested ? "account.request.cancel" : "account.following", comment: ""), for: .normal) @@ -321,7 +321,7 @@ private extension AccountHeaderView { systemName: "checkmark", withConfiguration: UIImage.SymbolConfiguration(scale: .small)), for: .normal) - unfollowButton.setTitle(NSLocalizedString("account.unfollow", comment: ""), for: .normal) + unfollowButton.setTitle(NSLocalizedString("account.following", comment: ""), for: .normal) unfollowButton.isHidden = true unfollowButton.addAction( UIAction { [weak self] _ in self?.viewModel.accountViewModel?.confirmUnfollow() },