mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Add missing L10n (IOS-140)
This commit is contained in:
parent
313d5e2d8a
commit
40db0e36c0
@ -259,7 +259,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user_list": {
|
"user_list": {
|
||||||
"no_verified_link": "No verified link"
|
"no_verified_link": "No verified link",
|
||||||
|
"followers_count": "%@ followers"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scene": {
|
"scene": {
|
||||||
|
@ -509,6 +509,10 @@ public enum L10n {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public enum UserList {
|
public enum UserList {
|
||||||
|
/// %@ followers
|
||||||
|
public static func followersCount(_ p1: Any) -> String {
|
||||||
|
return L10n.tr("Localizable", "Common.UserList.FollowersCount", String(describing: p1), fallback: "%@ followers")
|
||||||
|
}
|
||||||
/// No verified link
|
/// No verified link
|
||||||
public static let noVerifiedLink = L10n.tr("Localizable", "Common.UserList.NoVerifiedLink", fallback: "No verified link")
|
public static let noVerifiedLink = L10n.tr("Localizable", "Common.UserList.NoVerifiedLink", fallback: "No verified link")
|
||||||
}
|
}
|
||||||
|
@ -182,6 +182,7 @@ Your profile looks like this to them.";
|
|||||||
"Common.Controls.Timeline.Loader.ShowMoreReplies" = "Show more replies";
|
"Common.Controls.Timeline.Loader.ShowMoreReplies" = "Show more replies";
|
||||||
"Common.Controls.Timeline.Timestamp.Now" = "Now";
|
"Common.Controls.Timeline.Timestamp.Now" = "Now";
|
||||||
"Common.UserList.NoVerifiedLink" = "No verified link";
|
"Common.UserList.NoVerifiedLink" = "No verified link";
|
||||||
|
"Common.UserList.FollowersCount" = "%@ followers";
|
||||||
"Extension.OpenIn.InvalidLinkError" = "This doesn't seem to be a valid Mastodon link.";
|
"Extension.OpenIn.InvalidLinkError" = "This doesn't seem to be a valid Mastodon link.";
|
||||||
"Scene.AccountList.AddAccount" = "Add Account";
|
"Scene.AccountList.AddAccount" = "Add Account";
|
||||||
"Scene.AccountList.DismissAccountSwitcher" = "Dismiss Account Switcher";
|
"Scene.AccountList.DismissAccountSwitcher" = "Dismiss Account Switcher";
|
||||||
|
@ -93,7 +93,7 @@ extension UserView.ViewModel {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
userView.authorFollowersLabel.attributedText = NSAttributedString(
|
userView.authorFollowersLabel.attributedText = NSAttributedString(
|
||||||
format: NSAttributedString(string: "%@ followers", attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .regular)]),
|
format: NSAttributedString(string: L10n.Common.UserList.followersCount("%@"), attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .regular)]),
|
||||||
args: NSAttributedString(string: Self.metricFormatter.string(from: count) ?? count.formatted(), attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .bold)])
|
args: NSAttributedString(string: Self.metricFormatter.string(from: count) ?? count.formatted(), attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .bold)])
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user