2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Localized strings for age verification

Contributes to IOS-378
This commit is contained in:
shannon 2025-03-26 08:19:51 -04:00
parent f7b72faf56
commit 9f1291ca36
3 changed files with 15 additions and 1 deletions

View File

@ -387,6 +387,10 @@
"register": {
"title": "Create Account",
"input": {
"birth_date": {
"label": "Date of Birth",
"explanation_message": "We have to make sure you're at least %d to join %@. This won't get stored after signup."
},
"avatar": {
"delete": "Delete"
},

View File

@ -1356,6 +1356,14 @@ public enum L10n {
/// Delete
public static let delete = L10n.tr("Localizable", "Scene.Register.Input.Avatar.Delete", fallback: "Delete")
}
public enum BirthDate {
/// We have to make sure you're at least %d to join %@. This won't get stored after signup.
public static func explanationMessage(_ p1: Int, _ p2: Any) -> String {
return L10n.tr("Localizable", "Scene.Register.Input.BirthDate.ExplanationMessage", p1, String(describing: p2), fallback: "We have to make sure you're at least %d to join %@. This won't get stored after signup.")
}
/// Date of Birth
public static let label = L10n.tr("Localizable", "Scene.Register.Input.BirthDate.Label", fallback: "Date of Birth")
}
public enum DisplayName {
/// display name
public static let placeholder = L10n.tr("Localizable", "Scene.Register.Input.DisplayName.Placeholder", fallback: "display name")

View File

@ -466,6 +466,8 @@ If you disagree with the policy for **%@**, you can go back and pick a different
"Scene.Register.Error.Special.PasswordTooShort" = "Password is too short (must be at least 8 characters)";
"Scene.Register.Error.Special.UsernameInvalid" = "Username must only contain alphanumeric characters and underscores";
"Scene.Register.Error.Special.UsernameTooLong" = "Username is too long (cant be longer than 30 characters)";
"Scene.Register.Input.BirthDate.Label" = "Date of Birth";
"Scene.Register.Input.BirthDate.ExplanationMessage" = "We have to make sure you're at least %d to join %@. This won't get stored after signup.";
"Scene.Register.Input.Avatar.Delete" = "Delete";
"Scene.Register.Input.DisplayName.Placeholder" = "display name";
"Scene.Register.Input.Email.Placeholder" = "email";
@ -679,4 +681,4 @@ If you disagree with the policy for **%@**, you can go back and pick a different
"Widget.MultipleFollowers.ConfigurationDescription" = "Show number of followers for multiple accounts.";
"Widget.MultipleFollowers.ConfigurationDisplayName" = "Multiple followers";
"Widget.MultipleFollowers.MockUser.AccountName" = "another@follower.social";
"Widget.MultipleFollowers.MockUser.DisplayName" = "Another follower";
"Widget.MultipleFollowers.MockUser.DisplayName" = "Another follower";