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:
parent
6a9b29e4a6
commit
0c571a2df6
@ -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)
|
||||
|
@ -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 {
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user