// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Localisation; namespace osu.Game.Resources.Localisation.Web { public static class ModelValidationStrings { private const string prefix = @"osu.Game.Resources.Localisation.Web.ModelValidation"; /// /// "Invalid {0} specified." /// public static LocalisableString Invalid(LocalisableString attribute) => new TranslatableString(getKey(@"invalid"), @"Invalid {0} specified.", attribute); /// /// "{0} cannot be negative." /// public static LocalisableString NotNegative(LocalisableString attribute) => new TranslatableString(getKey(@"not_negative"), @"{0} cannot be negative.", attribute); /// /// "{0} is required." /// public static LocalisableString Required(LocalisableString attribute) => new TranslatableString(getKey(@"required"), @"{0} is required.", attribute); /// /// "{0} exceeded maximum length - can only be up to {1} characters." /// public static LocalisableString TooLong(LocalisableString attribute, LocalisableString limit) => new TranslatableString(getKey(@"too_long"), @"{0} exceeded maximum length - can only be up to {1} characters.", attribute, limit); /// /// "Confirmation does not match." /// public static LocalisableString WrongConfirmation => new TranslatableString(getKey(@"wrong_confirmation"), @"Confirmation does not match."); /// /// "Timestamp is specified but beatmap difficulty is missing." /// public static LocalisableString BeatmapsetDiscussionBeatmapMissing => new TranslatableString(getKey(@"beatmapset_discussion.beatmap_missing"), @"Timestamp is specified but beatmap difficulty is missing."); /// /// "Beatmap can't be hyped." /// public static LocalisableString BeatmapsetDiscussionBeatmapsetNoHype => new TranslatableString(getKey(@"beatmapset_discussion.beatmapset_no_hype"), @"Beatmap can't be hyped."); /// /// "Hype must be done in the General (all difficulties) section." /// public static LocalisableString BeatmapsetDiscussionHypeRequiresNullBeatmap => new TranslatableString(getKey(@"beatmapset_discussion.hype_requires_null_beatmap"), @"Hype must be done in the General (all difficulties) section."); /// /// "Invalid difficulty specified." /// public static LocalisableString BeatmapsetDiscussionInvalidBeatmapId => new TranslatableString(getKey(@"beatmapset_discussion.invalid_beatmap_id"), @"Invalid difficulty specified."); /// /// "Invalid beatmap specified." /// public static LocalisableString BeatmapsetDiscussionInvalidBeatmapsetId => new TranslatableString(getKey(@"beatmapset_discussion.invalid_beatmapset_id"), @"Invalid beatmap specified."); /// /// "Discussion is locked." /// public static LocalisableString BeatmapsetDiscussionLocked => new TranslatableString(getKey(@"beatmapset_discussion.locked"), @"Discussion is locked."); /// /// "Message type" /// public static LocalisableString BeatmapsetDiscussionAttributesMessageType => new TranslatableString(getKey(@"beatmapset_discussion.attributes.message_type"), @"Message type"); /// /// "Timestamp" /// public static LocalisableString BeatmapsetDiscussionAttributesTimestamp => new TranslatableString(getKey(@"beatmapset_discussion.attributes.timestamp"), @"Timestamp"); /// /// "This beatmap is currently locked for discussion and can't be hyped" /// public static LocalisableString BeatmapsetDiscussionHypeDiscussionLocked => new TranslatableString(getKey(@"beatmapset_discussion.hype.discussion_locked"), @"This beatmap is currently locked for discussion and can't be hyped"); /// /// "Must be signed in to hype." /// public static LocalisableString BeatmapsetDiscussionHypeGuest => new TranslatableString(getKey(@"beatmapset_discussion.hype.guest"), @"Must be signed in to hype."); /// /// "You have already hyped this beatmap." /// public static LocalisableString BeatmapsetDiscussionHypeHyped => new TranslatableString(getKey(@"beatmapset_discussion.hype.hyped"), @"You have already hyped this beatmap."); /// /// "You have used all your hype." /// public static LocalisableString BeatmapsetDiscussionHypeLimitExceeded => new TranslatableString(getKey(@"beatmapset_discussion.hype.limit_exceeded"), @"You have used all your hype."); /// /// "This beatmap can not be hyped" /// public static LocalisableString BeatmapsetDiscussionHypeNotHypeable => new TranslatableString(getKey(@"beatmapset_discussion.hype.not_hypeable"), @"This beatmap can not be hyped"); /// /// "No hyping your own beatmap." /// public static LocalisableString BeatmapsetDiscussionHypeOwner => new TranslatableString(getKey(@"beatmapset_discussion.hype.owner"), @"No hyping your own beatmap."); /// /// "Specified timestamp is beyond the length of the beatmap." /// public static LocalisableString BeatmapsetDiscussionTimestampExceedsBeatmapsetLength => new TranslatableString(getKey(@"beatmapset_discussion.timestamp.exceeds_beatmapset_length"), @"Specified timestamp is beyond the length of the beatmap."); /// /// "Timestamp can't be negative." /// public static LocalisableString BeatmapsetDiscussionTimestampNegative => new TranslatableString(getKey(@"beatmapset_discussion.timestamp.negative"), @"Timestamp can't be negative."); /// /// "Discussion is locked." /// public static LocalisableString BeatmapsetDiscussionPostDiscussionLocked => new TranslatableString(getKey(@"beatmapset_discussion_post.discussion_locked"), @"Discussion is locked."); /// /// "Can not delete starting post." /// public static LocalisableString BeatmapsetDiscussionPostFirstPost => new TranslatableString(getKey(@"beatmapset_discussion_post.first_post"), @"Can not delete starting post."); /// /// "The message" /// public static LocalisableString BeatmapsetDiscussionPostAttributesMessage => new TranslatableString(getKey(@"beatmapset_discussion_post.attributes.message"), @"The message"); /// /// "Replying to deleted comment is not allowed." /// public static LocalisableString CommentDeletedParent => new TranslatableString(getKey(@"comment.deleted_parent"), @"Replying to deleted comment is not allowed."); /// /// "Pinning comment reply is not allowed." /// public static LocalisableString CommentTopOnly => new TranslatableString(getKey(@"comment.top_only"), @"Pinning comment reply is not allowed."); /// /// "The message" /// public static LocalisableString CommentAttributesMessage => new TranslatableString(getKey(@"comment.attributes.message"), @"The message"); /// /// "Invalid {0} specified." /// public static LocalisableString FollowInvalid(LocalisableString attribute) => new TranslatableString(getKey(@"follow.invalid"), @"Invalid {0} specified.", attribute); /// /// "Can only vote a feature request." /// public static LocalisableString ForumFeatureVoteNotFeatureTopic => new TranslatableString(getKey(@"forum.feature_vote.not_feature_topic"), @"Can only vote a feature request."); /// /// "Not enough votes." /// public static LocalisableString ForumFeatureVoteNotEnoughFeatureVotes => new TranslatableString(getKey(@"forum.feature_vote.not_enough_feature_votes"), @"Not enough votes."); /// /// "Invalid option specified." /// public static LocalisableString ForumPollVoteInvalid => new TranslatableString(getKey(@"forum.poll_vote.invalid"), @"Invalid option specified."); /// /// "Deleting beatmap metadata post is not allowed." /// public static LocalisableString ForumPostBeatmapsetPostNoDelete => new TranslatableString(getKey(@"forum.post.beatmapset_post_no_delete"), @"Deleting beatmap metadata post is not allowed."); /// /// "Editing beatmap metadata post is not allowed." /// public static LocalisableString ForumPostBeatmapsetPostNoEdit => new TranslatableString(getKey(@"forum.post.beatmapset_post_no_edit"), @"Editing beatmap metadata post is not allowed."); /// /// "Can't delete starting post" /// public static LocalisableString ForumPostFirstPostNoDelete => new TranslatableString(getKey(@"forum.post.first_post_no_delete"), @"Can't delete starting post"); /// /// "Post is missing topic" /// public static LocalisableString ForumPostMissingTopic => new TranslatableString(getKey(@"forum.post.missing_topic"), @"Post is missing topic"); /// /// "Your reply contains only a quote." /// public static LocalisableString ForumPostOnlyQuote => new TranslatableString(getKey(@"forum.post.only_quote"), @"Your reply contains only a quote."); /// /// "Post body" /// public static LocalisableString ForumPostAttributesPostText => new TranslatableString(getKey(@"forum.post.attributes.post_text"), @"Post body"); /// /// "Topic title" /// public static LocalisableString ForumTopicAttributesTopicTitle => new TranslatableString(getKey(@"forum.topic.attributes.topic_title"), @"Topic title"); /// /// "Duplicated option is not allowed." /// public static LocalisableString ForumTopicPollDuplicateOptions => new TranslatableString(getKey(@"forum.topic_poll.duplicate_options"), @"Duplicated option is not allowed."); /// /// "Can't edit a poll after more than {0} hours." /// public static LocalisableString ForumTopicPollGracePeriodExpired(LocalisableString limit) => new TranslatableString(getKey(@"forum.topic_poll.grace_period_expired"), @"Can't edit a poll after more than {0} hours.", limit); /// /// "Can't hide results of a poll that never ends." /// public static LocalisableString ForumTopicPollHidingResultsForever => new TranslatableString(getKey(@"forum.topic_poll.hiding_results_forever"), @"Can't hide results of a poll that never ends."); /// /// "Option per user may not exceed the number of available options." /// public static LocalisableString ForumTopicPollInvalidMaxOptions => new TranslatableString(getKey(@"forum.topic_poll.invalid_max_options"), @"Option per user may not exceed the number of available options."); /// /// "A minimum of one option per user is required." /// public static LocalisableString ForumTopicPollMinimumOneSelection => new TranslatableString(getKey(@"forum.topic_poll.minimum_one_selection"), @"A minimum of one option per user is required."); /// /// "Need at least two options." /// public static LocalisableString ForumTopicPollMinimumTwoOptions => new TranslatableString(getKey(@"forum.topic_poll.minimum_two_options"), @"Need at least two options."); /// /// "Exceeded maximum number of allowed options." /// public static LocalisableString ForumTopicPollTooManyOptions => new TranslatableString(getKey(@"forum.topic_poll.too_many_options"), @"Exceeded maximum number of allowed options."); /// /// "Poll title" /// public static LocalisableString ForumTopicPollAttributesTitle => new TranslatableString(getKey(@"forum.topic_poll.attributes.title"), @"Poll title"); /// /// "Select an option when voting." /// public static LocalisableString ForumTopicVoteRequired => new TranslatableString(getKey(@"forum.topic_vote.required"), @"Select an option when voting."); /// /// "Selected more options than allowed." /// public static LocalisableString ForumTopicVoteTooMany => new TranslatableString(getKey(@"forum.topic_vote.too_many"), @"Selected more options than allowed."); /// /// "Exceeded maximum number of allowed OAuth applications." /// public static LocalisableString OauthClientTooMany => new TranslatableString(getKey(@"oauth.client.too_many"), @"Exceeded maximum number of allowed OAuth applications."); /// /// "Please enter a valid URL." /// public static LocalisableString OauthClientUrl => new TranslatableString(getKey(@"oauth.client.url"), @"Please enter a valid URL."); /// /// "Application Name" /// public static LocalisableString OauthClientAttributesName => new TranslatableString(getKey(@"oauth.client.attributes.name"), @"Application Name"); /// /// "Application Callback URL" /// public static LocalisableString OauthClientAttributesRedirect => new TranslatableString(getKey(@"oauth.client.attributes.redirect"), @"Application Callback URL"); /// /// "Password may not contain username." /// public static LocalisableString UserContainsUsername => new TranslatableString(getKey(@"user.contains_username"), @"Password may not contain username."); /// /// "Email address already used." /// public static LocalisableString UserEmailAlreadyUsed => new TranslatableString(getKey(@"user.email_already_used"), @"Email address already used."); /// /// "Email address not allowed." /// public static LocalisableString UserEmailNotAllowed => new TranslatableString(getKey(@"user.email_not_allowed"), @"Email address not allowed."); /// /// "Country not in database." /// public static LocalisableString UserInvalidCountry => new TranslatableString(getKey(@"user.invalid_country"), @"Country not in database."); /// /// "Discord username invalid." /// public static LocalisableString UserInvalidDiscord => new TranslatableString(getKey(@"user.invalid_discord"), @"Discord username invalid."); /// /// "Doesn't seem to be a valid email address." /// public static LocalisableString UserInvalidEmail => new TranslatableString(getKey(@"user.invalid_email"), @"Doesn't seem to be a valid email address."); /// /// "Twitter username invalid." /// public static LocalisableString UserInvalidTwitter => new TranslatableString(getKey(@"user.invalid_twitter"), @"Twitter username invalid."); /// /// "New password is too short." /// public static LocalisableString UserTooShort => new TranslatableString(getKey(@"user.too_short"), @"New password is too short."); /// /// "Username or email address already used." /// public static LocalisableString UserUnknownDuplicate => new TranslatableString(getKey(@"user.unknown_duplicate"), @"Username or email address already used."); /// /// "This username will be available for use in {0}." /// public static LocalisableString UserUsernameAvailableIn(LocalisableString duration) => new TranslatableString(getKey(@"user.username_available_in"), @"This username will be available for use in {0}.", duration); /// /// "This username will be available for use any minute now!" /// public static LocalisableString UserUsernameAvailableSoon => new TranslatableString(getKey(@"user.username_available_soon"), @"This username will be available for use any minute now!"); /// /// "The requested username contains invalid characters." /// public static LocalisableString UserUsernameInvalidCharacters => new TranslatableString(getKey(@"user.username_invalid_characters"), @"The requested username contains invalid characters."); /// /// "Username is already in use!" /// public static LocalisableString UserUsernameInUse => new TranslatableString(getKey(@"user.username_in_use"), @"Username is already in use!"); /// /// "Username is already in use!" /// public static LocalisableString UserUsernameLocked => new TranslatableString(getKey(@"user.username_locked"), @"Username is already in use!"); /// /// "Please use either underscores or spaces, not both!" /// public static LocalisableString UserUsernameNoSpaceUserscoreMix => new TranslatableString(getKey(@"user.username_no_space_userscore_mix"), @"Please use either underscores or spaces, not both!"); /// /// "Username can't start or end with spaces!" /// public static LocalisableString UserUsernameNoSpaces => new TranslatableString(getKey(@"user.username_no_spaces"), @"Username can't start or end with spaces!"); /// /// "This username choice is not allowed." /// public static LocalisableString UserUsernameNotAllowed => new TranslatableString(getKey(@"user.username_not_allowed"), @"This username choice is not allowed."); /// /// "The requested username is too short." /// public static LocalisableString UserUsernameTooShort => new TranslatableString(getKey(@"user.username_too_short"), @"The requested username is too short."); /// /// "The requested username is too long." /// public static LocalisableString UserUsernameTooLong => new TranslatableString(getKey(@"user.username_too_long"), @"The requested username is too long."); /// /// "Blacklisted password." /// public static LocalisableString UserWeak => new TranslatableString(getKey(@"user.weak"), @"Blacklisted password."); /// /// "Current password is incorrect." /// public static LocalisableString UserWrongCurrentPassword => new TranslatableString(getKey(@"user.wrong_current_password"), @"Current password is incorrect."); /// /// "Email confirmation does not match." /// public static LocalisableString UserWrongEmailConfirmation => new TranslatableString(getKey(@"user.wrong_email_confirmation"), @"Email confirmation does not match."); /// /// "Password confirmation does not match." /// public static LocalisableString UserWrongPasswordConfirmation => new TranslatableString(getKey(@"user.wrong_password_confirmation"), @"Password confirmation does not match."); /// /// "Exceeded maximum length - can only be up to {0} characters." /// public static LocalisableString UserTooLong(LocalisableString limit) => new TranslatableString(getKey(@"user.too_long"), @"Exceeded maximum length - can only be up to {0} characters.", limit); /// /// "Username" /// public static LocalisableString UserAttributesUsername => new TranslatableString(getKey(@"user.attributes.username"), @"Username"); /// /// "Email address" /// public static LocalisableString UserAttributesUserEmail => new TranslatableString(getKey(@"user.attributes.user_email"), @"Email address"); /// /// "Password" /// public static LocalisableString UserAttributesPassword => new TranslatableString(getKey(@"user.attributes.password"), @"Password"); /// /// "You cannot change your username while restricted." /// public static LocalisableString UserChangeUsernameRestricted => new TranslatableString(getKey(@"user.change_username.restricted"), @"You cannot change your username while restricted."); /// /// "You must have {0} to change your name!" /// public static LocalisableString UserChangeUsernameSupporterRequiredDefault(LocalisableString link) => new TranslatableString(getKey(@"user.change_username.supporter_required._"), @"You must have {0} to change your name!", link); /// /// "supported osu!" /// public static LocalisableString UserChangeUsernameSupporterRequiredLinkText => new TranslatableString(getKey(@"user.change_username.supporter_required.link_text"), @"supported osu!"); /// /// "This is already your username, silly!" /// public static LocalisableString UserChangeUsernameUsernameIsSame => new TranslatableString(getKey(@"user.change_username.username_is_same"), @"This is already your username, silly!"); /// /// "Ranked beatmaps cannot be reported" /// public static LocalisableString UserReportNoRankedBeatmapset => new TranslatableString(getKey(@"user_report.no_ranked_beatmapset"), @"Ranked beatmaps cannot be reported"); /// /// "{0} is not valid for this report type." /// public static LocalisableString UserReportReasonNotValid(LocalisableString reason) => new TranslatableString(getKey(@"user_report.reason_not_valid"), @"{0} is not valid for this report type.", reason); /// /// "You can't report yourself!" /// public static LocalisableString UserReportSelf => new TranslatableString(getKey(@"user_report.self"), @"You can't report yourself!"); /// /// "Quantity" /// public static LocalisableString StoreOrderItemAttributesQuantity => new TranslatableString(getKey(@"store.order_item.attributes.quantity"), @"Quantity"); /// /// "Cost" /// public static LocalisableString StoreOrderItemAttributesCost => new TranslatableString(getKey(@"store.order_item.attributes.cost"), @"Cost"); private static string getKey(string key) => $@"{prefix}:{key}"; } }