You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
2.0 KiB
C#
44 lines
2.0 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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";
|
|
|
|
/// <summary>
|
|
/// "The selected payment method was rejected by Paypal."
|
|
/// </summary>
|
|
public static LocalisableString InstrumentDeclined => new TranslatableString(getKey(@"instrument_declined"), @"The selected payment method was rejected by Paypal.");
|
|
|
|
/// <summary>
|
|
/// "No payment information was found."
|
|
/// </summary>
|
|
public static LocalisableString InvalidResourceId => new TranslatableString(getKey(@"invalid_resource_id"), @"No payment information was found.");
|
|
|
|
/// <summary>
|
|
/// "There was an error in completing your payment."
|
|
/// </summary>
|
|
public static LocalisableString InvalidToken => new TranslatableString(getKey(@"invalid_token"), @"There was an error in completing your payment.");
|
|
|
|
/// <summary>
|
|
/// "The payment link has expired, please try again."
|
|
/// </summary>
|
|
public static LocalisableString OldFormat => new TranslatableString(getKey(@"old_format"), @"The payment link has expired, please try again.");
|
|
|
|
/// <summary>
|
|
/// "No payment information was found."
|
|
/// </summary>
|
|
public static LocalisableString ResourceNotFound => new TranslatableString(getKey(@"resource_not_found"), @"No payment information was found.");
|
|
|
|
/// <summary>
|
|
/// "The payment was rejected, but we're not sure why."
|
|
/// </summary>
|
|
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}";
|
|
}
|
|
} |