fix: Localizable string issues
This commit is contained in:
parent
6a9b29e4a6
commit
0c571a2df6
|
@ -10,6 +10,7 @@ import CoreDataStack
|
||||||
import MastodonSDK
|
import MastodonSDK
|
||||||
import MastodonUI
|
import MastodonUI
|
||||||
import MastodonAsset
|
import MastodonAsset
|
||||||
|
import MastodonLocalization
|
||||||
|
|
||||||
fileprivate extension CGFloat {
|
fileprivate extension CGFloat {
|
||||||
static let padding: CGFloat = 16
|
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.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.backgroundColor = entity.following == true ? Asset.Colors.Button.tagUnfollow.color : Asset.Colors.Button.tagFollow.color
|
||||||
|
|
||||||
|
switch traitCollection.userInterfaceStyle {
|
||||||
|
case .dark:
|
||||||
|
followButton.setTitleColor(
|
||||||
|
.lightGray,
|
||||||
|
for: .normal
|
||||||
|
)
|
||||||
|
default:
|
||||||
followButton.setTitleColor(
|
followButton.setTitleColor(
|
||||||
entity.following == true ? Asset.Colors.Button.tagFollow.color : Asset.Colors.Button.tagUnfollow.color,
|
entity.following == true ? Asset.Colors.Button.tagFollow.color : Asset.Colors.Button.tagUnfollow.color,
|
||||||
for: .normal
|
for: .normal
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
postCountLabel.text = String(entity.postCount)
|
postCountLabel.text = String(entity.postCount)
|
||||||
participantsLabel.text = String(entity.participantsCount)
|
participantsLabel.text = String(entity.participantsCount)
|
||||||
|
|
|
@ -639,6 +639,8 @@ public enum L10n {
|
||||||
public enum Actions {
|
public enum Actions {
|
||||||
/// follow
|
/// follow
|
||||||
public static let follow = L10n.tr("Localizable", "Scene.FollowedTags.Actions.Follow", fallback: "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 {
|
public enum Header {
|
||||||
/// participants
|
/// participants
|
||||||
|
@ -647,8 +649,6 @@ public enum L10n {
|
||||||
public static let posts = L10n.tr("Localizable", "Scene.FollowedTags.Header.Posts", fallback: "posts")
|
public static let posts = L10n.tr("Localizable", "Scene.FollowedTags.Header.Posts", fallback: "posts")
|
||||||
/// posts today
|
/// posts today
|
||||||
public static let postsToday = L10n.tr("Localizable", "Scene.FollowedTags.Header.PostsToday", fallback: "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 {
|
public enum Follower {
|
||||||
|
|
|
@ -236,7 +236,7 @@ uploaded to Mastodon.";
|
||||||
"Scene.FollowedTags.Header.Participants" = "participants";
|
"Scene.FollowedTags.Header.Participants" = "participants";
|
||||||
"Scene.FollowedTags.Header.PostsToday" = "posts today";
|
"Scene.FollowedTags.Header.PostsToday" = "posts today";
|
||||||
"Scene.FollowedTags.Actions.Follow" = "follow";
|
"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.Footer" = "Follows from other servers are not displayed.";
|
||||||
"Scene.Following.Title" = "following";
|
"Scene.Following.Title" = "following";
|
||||||
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
|
"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.Participants" = "participants";
|
||||||
"Scene.FollowedTags.Header.PostsToday" = "posts today";
|
"Scene.FollowedTags.Header.PostsToday" = "posts today";
|
||||||
"Scene.FollowedTags.Actions.Follow" = "follow";
|
"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.Footer" = "Follows from other servers are not displayed.";
|
||||||
"Scene.Following.Title" = "following";
|
"Scene.Following.Title" = "following";
|
||||||
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
|
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
|
||||||
|
|
Loading…
Reference in New Issue