1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-17 03:09:19 +01:00

fix: Localizable string issues

This commit is contained in:
Marcus Kida 2022-11-25 18:47:49 +01:00
parent 6a9b29e4a6
commit 0c571a2df6
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
4 changed files with 18 additions and 8 deletions

View File

@ -10,6 +10,7 @@ import CoreDataStack
import MastodonSDK
import MastodonUI
import MastodonAsset
import MastodonLocalization
fileprivate extension CGFloat {
static let padding: CGFloat = 16
@ -155,10 +156,19 @@ extension HashtagTimelineHeaderView {
followButton.setTitle(entity.following == true ? L10n.Scene.FollowedTags.Actions.unfollow : L10n.Scene.FollowedTags.Actions.follow, for: .normal)
followButton.backgroundColor = entity.following == true ? Asset.Colors.Button.tagUnfollow.color : Asset.Colors.Button.tagFollow.color
followButton.setTitleColor(
entity.following == true ? Asset.Colors.Button.tagFollow.color : Asset.Colors.Button.tagUnfollow.color,
for: .normal
)
switch traitCollection.userInterfaceStyle {
case .dark:
followButton.setTitleColor(
.lightGray,
for: .normal
)
default:
followButton.setTitleColor(
entity.following == true ? Asset.Colors.Button.tagFollow.color : Asset.Colors.Button.tagUnfollow.color,
for: .normal
)
}
postCountLabel.text = String(entity.postCount)
participantsLabel.text = String(entity.participantsCount)

View File

@ -639,6 +639,8 @@ public enum L10n {
public enum Actions {
/// follow
public static let follow = L10n.tr("Localizable", "Scene.FollowedTags.Actions.Follow", fallback: "follow")
/// unfollow
public static let unfollow = L10n.tr("Localizable", "Scene.FollowedTags.Actions.Unfollow", fallback: "unfollow")
}
public enum Header {
/// participants
@ -647,8 +649,6 @@ public enum L10n {
public static let posts = L10n.tr("Localizable", "Scene.FollowedTags.Header.Posts", fallback: "posts")
/// posts today
public static let postsToday = L10n.tr("Localizable", "Scene.FollowedTags.Header.PostsToday", fallback: "posts today")
/// unfollow
public static let unfollow = L10n.tr("Localizable", "Scene.FollowedTags.Header.Unfollow", fallback: "unfollow")
}
}
public enum Follower {

View File

@ -236,7 +236,7 @@ uploaded to Mastodon.";
"Scene.FollowedTags.Header.Participants" = "participants";
"Scene.FollowedTags.Header.PostsToday" = "posts today";
"Scene.FollowedTags.Actions.Follow" = "follow";
"Scene.FollowedTags.Header.Unfollow" = "unfollow";
"Scene.FollowedTags.Actions.Unfollow" = "unfollow";
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
"Scene.Following.Title" = "following";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";

View File

@ -236,7 +236,7 @@ uploaded to Mastodon.";
"Scene.FollowedTags.Header.Participants" = "participants";
"Scene.FollowedTags.Header.PostsToday" = "posts today";
"Scene.FollowedTags.Actions.Follow" = "follow";
"Scene.FollowedTags.Header.Unfollow" = "unfollow";
"Scene.FollowedTags.Actions.Unfollow" = "unfollow";
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
"Scene.Following.Title" = "following";
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";