// 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 ErrorsStrings { private const string prefix = @"osu.Game.Resources.Localisation.Web.Errors"; /// /// "Invalid url or incorrect request method." /// public static LocalisableString MissingRoute => new TranslatableString(getKey(@"missing_route"), @"Invalid url or incorrect request method."); /// /// "You are not able to perform this action while your account is in a restricted state." /// public static LocalisableString NoRestrictedAccess => new TranslatableString(getKey(@"no_restricted_access"), @"You are not able to perform this action while your account is in a restricted state."); /// /// "You must be an osu!supporter to use this feature." /// public static LocalisableString SupporterOnly => new TranslatableString(getKey(@"supporter_only"), @"You must be an osu!supporter to use this feature."); /// /// "Unknown error occurred." /// public static LocalisableString Unknown => new TranslatableString(getKey(@"unknown"), @"Unknown error occurred."); /// /// "Please sign in to proceed." /// public static LocalisableString CodesHttp401 => new TranslatableString(getKey(@"codes.http-401"), @"Please sign in to proceed."); /// /// "Access denied." /// public static LocalisableString CodesHttp403 => new TranslatableString(getKey(@"codes.http-403"), @"Access denied."); /// /// "Not found." /// public static LocalisableString CodesHttp404 => new TranslatableString(getKey(@"codes.http-404"), @"Not found."); /// /// "Too many attempts. Try again later." /// public static LocalisableString CodesHttp429 => new TranslatableString(getKey(@"codes.http-429"), @"Too many attempts. Try again later."); /// /// "An error occured. Try refreshing the page." /// public static LocalisableString AccountProfileOrderGeneric => new TranslatableString(getKey(@"account.profile-order.generic"), @"An error occured. Try refreshing the page."); /// /// "Invalid mode specified." /// public static LocalisableString BeatmapsInvalidMode => new TranslatableString(getKey(@"beatmaps.invalid_mode"), @"Invalid mode specified."); /// /// "No scores are available for the requested mode on this beatmap difficulty." /// public static LocalisableString BeatmapsStandardConvertsOnly => new TranslatableString(getKey(@"beatmaps.standard_converts_only"), @"No scores are available for the requested mode on this beatmap difficulty."); /// /// "An error occurred while preparing your checkout." /// public static LocalisableString CheckoutGeneric => new TranslatableString(getKey(@"checkout.generic"), @"An error occurred while preparing your checkout."); /// /// "Could not get any results, try again later." /// public static LocalisableString SearchDefault => new TranslatableString(getKey(@"search.default"), @"Could not get any results, try again later."); /// /// "Search is currently busier than usual, try again later." /// public static LocalisableString SearchOperationTimeoutException => new TranslatableString(getKey(@"search.operation_timeout_exception"), @"Search is currently busier than usual, try again later."); private static string getKey(string key) => $@"{prefix}:{key}"; } }