Sprinkle in some localization (#540)
This commit is contained in:
parent
378e04c9cb
commit
cf2f7850b7
|
@ -218,6 +218,13 @@
|
|||
"get_started": "Get Started",
|
||||
"log_in": "Log In"
|
||||
},
|
||||
"login": {
|
||||
"title": "",
|
||||
"subtitle": "",
|
||||
"server_search_field": {
|
||||
"placeholder": "Search for your server"
|
||||
}
|
||||
}
|
||||
"server_picker": {
|
||||
"title": "Mastodon is made of users in different servers.",
|
||||
"subtitle": "Pick a server based on your region, interests, or a general purpose one. You can still chat with anyone on Mastodon, regardless of your servers.",
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
import UIKit
|
||||
import MastodonAsset
|
||||
import MastodonLocalization
|
||||
|
||||
class MastodonLoginView: UIView {
|
||||
|
||||
|
@ -26,13 +27,13 @@ class MastodonLoginView: UIView {
|
|||
titleLabel = UILabel()
|
||||
titleLabel.font = MastodonLoginViewController.largeTitleFont
|
||||
titleLabel.textColor = MastodonLoginViewController.largeTitleTextColor
|
||||
titleLabel.text = "Welcome Back" //TODO: @zeitschlag localization
|
||||
titleLabel.text = L10n.Scene.Login.title
|
||||
titleLabel.numberOfLines = 0
|
||||
|
||||
subtitleLabel = UILabel()
|
||||
subtitleLabel.font = MastodonLoginViewController.subTitleFont
|
||||
subtitleLabel.textColor = MastodonLoginViewController.subTitleTextColor
|
||||
subtitleLabel.text = "Log you in with the server where you created your account" //TODO: @zeitschlag localization
|
||||
subtitleLabel.text = L10n.Scene.Login.subtitle
|
||||
subtitleLabel.numberOfLines = 0
|
||||
|
||||
headerStackView = UIStackView(arrangedSubviews: [titleLabel, subtitleLabel])
|
||||
|
@ -43,7 +44,7 @@ class MastodonLoginView: UIView {
|
|||
searchTextField = UITextField()
|
||||
searchTextField.translatesAutoresizingMaskIntoConstraints = false
|
||||
searchTextField.backgroundColor = Asset.Scene.Onboarding.textFieldBackground.color
|
||||
searchTextField.placeholder = "Search for your server" //TODO: @zeitschlag Localization
|
||||
searchTextField.placeholder = L10n.Scene.Login.ServerSearchField.placeholder
|
||||
searchTextField.leftView = UIImageView(image: UIImage(systemName: "magnifyingglass"))
|
||||
searchTextField.leftViewMode = .always
|
||||
searchTextField.layer.cornerRadius = 10
|
||||
|
|
|
@ -665,6 +665,16 @@ public enum L10n {
|
|||
}
|
||||
}
|
||||
}
|
||||
public enum Login {
|
||||
/// Log you in with the server where you created your account
|
||||
public static let subtitle = L10n.tr("Localizable", "Scene.Login.Subtitle")
|
||||
/// Welcome Back!
|
||||
public static let title = L10n.tr("Localizable", "Scene.Login.Title")
|
||||
public enum ServerSearchField {
|
||||
/// Search for your server
|
||||
public static let placeholder = L10n.tr("Localizable", "Scene.Login.ServerSearchField.Placeholder")
|
||||
}
|
||||
}
|
||||
public enum Notification {
|
||||
public enum FollowRequest {
|
||||
/// Accept
|
||||
|
|
|
@ -315,6 +315,9 @@ uploaded to Mastodon.";
|
|||
"Scene.Register.Input.Username.DuplicatePrompt" = "This username is taken.";
|
||||
"Scene.Register.Input.Username.Placeholder" = "username";
|
||||
"Scene.Register.LetsGetYouSetUpOnDomain" = "Let’s get you set up on %@";
|
||||
"Scene.Login.Title" = "Welcome Back!";
|
||||
"Scene.Login.Subtitle" = "Log you in with the server where you created your account";
|
||||
"Scene.Login.ServerSearchField.Placeholder" = "Search for your server";
|
||||
"Scene.Register.Title" = "Let’s get you set up on %@";
|
||||
"Scene.Report.Content1" = "Are there any other posts you’d like to add to the report?";
|
||||
"Scene.Report.Content2" = "Is there anything the moderators should know about this report?";
|
||||
|
@ -454,4 +457,4 @@ uploaded to Mastodon.";
|
|||
back in your hands.";
|
||||
"Scene.Wizard.AccessibilityHint" = "Double tap to dismiss this wizard";
|
||||
"Scene.Wizard.MultipleAccountSwitchIntroDescription" = "Switch between multiple accounts by holding the profile button.";
|
||||
"Scene.Wizard.NewInMastodon" = "New in Mastodon";
|
||||
"Scene.Wizard.NewInMastodon" = "New in Mastodon";
|
||||
|
|
Loading…
Reference in New Issue