// 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.Paypal { public static class ErrorsStrings { private const string prefix = @"osu.Game.Resources.Localisation.Web.Paypal.Errors"; /// /// "The selected payment method was rejected by Paypal." /// public static LocalisableString InstrumentDeclined => new TranslatableString(getKey(@"instrument_declined"), @"The selected payment method was rejected by Paypal."); /// /// "No payment information was found." /// public static LocalisableString InvalidResourceId => new TranslatableString(getKey(@"invalid_resource_id"), @"No payment information was found."); /// /// "There was an error in completing your payment." /// public static LocalisableString InvalidToken => new TranslatableString(getKey(@"invalid_token"), @"There was an error in completing your payment."); /// /// "The payment link has expired, please try again." /// public static LocalisableString OldFormat => new TranslatableString(getKey(@"old_format"), @"The payment link has expired, please try again."); /// /// "No payment information was found." /// public static LocalisableString ResourceNotFound => new TranslatableString(getKey(@"resource_not_found"), @"No payment information was found."); /// /// "The payment was rejected, but we're not sure why." /// public static LocalisableString Unknown => new TranslatableString(getKey(@"unknown"), @"The payment was rejected, but we're not sure why."); private static string getKey(string key) => $@"{prefix}:{key}"; } }