Localization for Banner (IOS-241)
This commit is contained in:
parent
9e8de739ec
commit
ffc80268c5
@ -753,6 +753,9 @@
|
|||||||
"suspend": "Your account has been suspended.",
|
"suspend": "Your account has been suspended.",
|
||||||
"learn_more": "Learn More"
|
"learn_more": "Learn More"
|
||||||
},
|
},
|
||||||
|
"filtered_notification_banner": {
|
||||||
|
"title": "Filtered Notifications"
|
||||||
|
},
|
||||||
"policy": {
|
"policy": {
|
||||||
"title": "Filter Notifications from…",
|
"title": "Filter Notifications from…",
|
||||||
"not_following": {
|
"not_following": {
|
||||||
|
@ -753,6 +753,9 @@
|
|||||||
"suspend": "Your account has been suspended.",
|
"suspend": "Your account has been suspended.",
|
||||||
"learn_more": "Learn More"
|
"learn_more": "Learn More"
|
||||||
},
|
},
|
||||||
|
"filtered_notification_banner": {
|
||||||
|
"title": "Filtered Notifications"
|
||||||
|
},
|
||||||
"policy": {
|
"policy": {
|
||||||
"title": "Filter Notifications from…",
|
"title": "Filter Notifications from…",
|
||||||
"not_following": {
|
"not_following": {
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
import MastodonSDK
|
import MastodonSDK
|
||||||
import MastodonUI
|
import MastodonUI
|
||||||
|
import MastodonLocalization
|
||||||
|
|
||||||
class NotificationFilteringBannerTableViewCell: UITableViewCell {
|
class NotificationFilteringBannerTableViewCell: UITableViewCell {
|
||||||
|
|
||||||
@ -29,8 +30,7 @@ class NotificationFilteringBannerTableViewCell: UITableViewCell {
|
|||||||
iconImageWrapperView.addSubview(iconImageView)
|
iconImageWrapperView.addSubview(iconImageView)
|
||||||
|
|
||||||
titleLabel = UILabel()
|
titleLabel = UILabel()
|
||||||
//TODO: Add localization
|
titleLabel.text = L10n.Scene.Notification.FilteredNotificationBanner.title
|
||||||
titleLabel.text = "Filtered Notifications"
|
|
||||||
titleLabel.font = UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 17, weight: .regular))
|
titleLabel.font = UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 17, weight: .regular))
|
||||||
|
|
||||||
subtitleLabel = UILabel()
|
subtitleLabel = UILabel()
|
||||||
@ -85,7 +85,6 @@ class NotificationFilteringBannerTableViewCell: UITableViewCell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func configure(with policy: Mastodon.Entity.NotificationPolicy) {
|
func configure(with policy: Mastodon.Entity.NotificationPolicy) {
|
||||||
//TODO: Add localization
|
|
||||||
subtitleLabel.text = "\(policy.summary.pendingRequestsCount) people you may know"
|
subtitleLabel.text = "\(policy.summary.pendingRequestsCount) people you may know"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -895,6 +895,10 @@ public enum L10n {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public enum Notification {
|
public enum Notification {
|
||||||
|
public enum FilteredNotificationBanner {
|
||||||
|
/// Filtered Notifications
|
||||||
|
public static let title = L10n.tr("Localizable", "Scene.Notification.FilteredNotificationBanner.Title", fallback: "Filtered Notifications")
|
||||||
|
}
|
||||||
public enum FollowRequest {
|
public enum FollowRequest {
|
||||||
/// Accept
|
/// Accept
|
||||||
public static let accept = L10n.tr("Localizable", "Scene.Notification.FollowRequest.Accept", fallback: "Accept")
|
public static let accept = L10n.tr("Localizable", "Scene.Notification.FollowRequest.Accept", fallback: "Accept")
|
||||||
|
@ -316,6 +316,7 @@ uploaded to Mastodon.";
|
|||||||
"Scene.Login.ServerSearchField.Placeholder" = "Enter URL or search for your server";
|
"Scene.Login.ServerSearchField.Placeholder" = "Enter URL or search for your server";
|
||||||
"Scene.Login.Subtitle" = "Log in with the server where you created your account.";
|
"Scene.Login.Subtitle" = "Log in with the server where you created your account.";
|
||||||
"Scene.Login.Title" = "Welcome Back";
|
"Scene.Login.Title" = "Welcome Back";
|
||||||
|
"Scene.Notification.FilteredNotificationBanner.Title" = "Filtered Notifications";
|
||||||
"Scene.Notification.FollowRequest.Accept" = "Accept";
|
"Scene.Notification.FollowRequest.Accept" = "Accept";
|
||||||
"Scene.Notification.FollowRequest.Accepted" = "Accepted";
|
"Scene.Notification.FollowRequest.Accepted" = "Accepted";
|
||||||
"Scene.Notification.FollowRequest.Reject" = "reject";
|
"Scene.Notification.FollowRequest.Reject" = "reject";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user