Sprinkle in some localization (IOS-157)
This commit is contained in:
parent
e06d852d78
commit
25e4b732ed
|
@ -464,7 +464,8 @@
|
|||
}
|
||||
},
|
||||
"suggestion_account": {
|
||||
"title": "Popular on Mastodon"
|
||||
"title": "Popular on Mastodon",
|
||||
"follow_all": "Follow all"
|
||||
},
|
||||
"compose": {
|
||||
"title": {
|
||||
|
|
|
@ -47,7 +47,7 @@ final class SuggestionAccountViewModel: NSObject {
|
|||
|
||||
userFetchedResultsController.domain = authContext.mastodonAuthenticationBox.domain
|
||||
|
||||
// fetch recomment users
|
||||
// fetch recommended users
|
||||
Task {
|
||||
var userIDs: [MastodonUser.ID] = []
|
||||
do {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import UIKit
|
||||
import MastodonUI
|
||||
import MastodonAsset
|
||||
import MastodonLocalization
|
||||
|
||||
protocol SuggestionAccountTableViewFooterDelegate: AnyObject {
|
||||
func followAll(_ footerView: SuggestionAccountTableViewFooter)
|
||||
|
@ -20,7 +21,7 @@ class SuggestionAccountTableViewFooter: UITableViewHeaderFooterView {
|
|||
//TODO: Check if we can use UIButton.configuration here instead?
|
||||
followAllButton = FollowButton()
|
||||
followAllButton.translatesAutoresizingMaskIntoConstraints = false
|
||||
followAllButton.setTitle("Follow All", for: .normal)
|
||||
followAllButton.setTitle(L10n.Scene.SuggestionAccount.followAll, for: .normal)
|
||||
followAllButton.setBackgroundColor(Asset.Colors.Button.userFollow.color, for: .normal)
|
||||
followAllButton.setTitleColor(.white, for: .normal)
|
||||
followAllButton.contentEdgeInsets = .init(horizontal: 20, vertical: 12)
|
||||
|
|
|
@ -1484,6 +1484,8 @@ public enum L10n {
|
|||
}
|
||||
}
|
||||
public enum SuggestionAccount {
|
||||
/// Follow All
|
||||
public static let followAll = L10n.tr("Localizable", "Scene.SuggestionAccount.FollowAll", fallback: "Follow All")
|
||||
/// Popular on Mastodon
|
||||
public static let title = L10n.tr("Localizable", "Scene.SuggestionAccount.Title", fallback: "Popular on Mastodon")
|
||||
}
|
||||
|
|
|
@ -518,6 +518,7 @@ uploaded to Mastodon.";
|
|||
"Scene.Settings.Section.SpicyZone.Title" = "The Spicy Zone";
|
||||
"Scene.Settings.Title" = "Settings";
|
||||
"Scene.SuggestionAccount.Title" = "Popular on Mastodon";
|
||||
"Scene.SuggestionAccount.FollowAll" = "Follow All";
|
||||
"Scene.Thread.BackTitle" = "Post";
|
||||
"Scene.Thread.Title" = "Post from %@";
|
||||
"Scene.Welcome.Education.A11Y.WhatIsMastodon.Title" = "What is Mastodon?";
|
||||
|
|
|
@ -518,6 +518,7 @@ uploaded to Mastodon.";
|
|||
"Scene.Settings.Section.SpicyZone.Title" = "The Spicy Zone";
|
||||
"Scene.Settings.Title" = "Settings";
|
||||
"Scene.SuggestionAccount.Title" = "Popular on Mastodon";
|
||||
"Scene.SuggestionAccount.FollowAll" = "Follow All";
|
||||
"Scene.Thread.BackTitle" = "Post";
|
||||
"Scene.Thread.Title" = "Post from %@";
|
||||
"Scene.Welcome.Education.A11Y.WhatIsMastodon.Title" = "What is Mastodon?";
|
||||
|
|
Loading…
Reference in New Issue