// 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 { public static class EventsStrings { private const string prefix = @"osu.Game.Resources.Localisation.Web.Events"; /// <summary> /// "<strong><em>{0}</em></strong> unlocked the "<strong>{1}</strong>" medal!" /// </summary> public static LocalisableString Achievement(LocalisableString user, LocalisableString achievement) => new TranslatableString(getKey(@"achievement"), @"<strong><em>{0}</em></strong> unlocked the ""<strong>{1}</strong>"" medal!", user, achievement); /// <summary> /// "{0} has been played {1} times!" /// </summary> public static LocalisableString BeatmapPlaycount(LocalisableString beatmap, LocalisableString count) => new TranslatableString(getKey(@"beatmap_playcount"), @"{0} has been played {1} times!", beatmap, count); /// <summary> /// "{0} by <strong>{1}</strong> has been {2}!" /// </summary> public static LocalisableString BeatmapsetApprove(LocalisableString beatmapset, LocalisableString user, LocalisableString approval) => new TranslatableString(getKey(@"beatmapset_approve"), @"{0} by <strong>{1}</strong> has been {2}!", beatmapset, user, approval); /// <summary> /// "{0} has been deleted." /// </summary> public static LocalisableString BeatmapsetDelete(LocalisableString beatmapset) => new TranslatableString(getKey(@"beatmapset_delete"), @"{0} has been deleted.", beatmapset); /// <summary> /// "{0} has been revived from eternal slumber by <strong>{1}</strong>." /// </summary> public static LocalisableString BeatmapsetRevive(LocalisableString beatmapset, LocalisableString user) => new TranslatableString(getKey(@"beatmapset_revive"), @"{0} has been revived from eternal slumber by <strong>{1}</strong>.", beatmapset, user); /// <summary> /// "<strong><em>{0}</em></strong> has updated the beatmap "<em>{1}</em>"" /// </summary> public static LocalisableString BeatmapsetUpdate(LocalisableString user, LocalisableString beatmapset) => new TranslatableString(getKey(@"beatmapset_update"), @"<strong><em>{0}</em></strong> has updated the beatmap ""<em>{1}</em>""", user, beatmapset); /// <summary> /// "<strong><em>{0}</em></strong> has submitted a new beatmap "{1}"" /// </summary> public static LocalisableString BeatmapsetUpload(LocalisableString user, LocalisableString beatmapset) => new TranslatableString(getKey(@"beatmapset_upload"), @"<strong><em>{0}</em></strong> has submitted a new beatmap ""{1}""", user, beatmapset); /// <summary> /// "This user hasn't done anything notable recently!" /// </summary> public static LocalisableString Empty => new TranslatableString(getKey(@"empty"), @"This user hasn't done anything notable recently!"); /// <summary> /// "<strong><em>{0}</em></strong> achieved rank #{1} on <em>{2}</em> ({3})" /// </summary> public static LocalisableString Rank(LocalisableString user, LocalisableString rank, LocalisableString beatmap, LocalisableString mode) => new TranslatableString(getKey(@"rank"), @"<strong><em>{0}</em></strong> achieved rank #{1} on <em>{2}</em> ({3})", user, rank, beatmap, mode); /// <summary> /// "<strong><em>{0}</em></strong> has lost first place on <em>{1}</em> ({2})" /// </summary> public static LocalisableString RankLost(LocalisableString user, LocalisableString beatmap, LocalisableString mode) => new TranslatableString(getKey(@"rank_lost"), @"<strong><em>{0}</em></strong> has lost first place on <em>{1}</em> ({2})", user, beatmap, mode); /// <summary> /// "<strong>{0}</strong> has once again chosen to support osu! - thanks for your generosity!" /// </summary> public static LocalisableString UserSupportAgain(LocalisableString user) => new TranslatableString(getKey(@"user_support_again"), @"<strong>{0}</strong> has once again chosen to support osu! - thanks for your generosity!", user); /// <summary> /// "<strong>{0}</strong> has become an osu!supporter - thanks for your generosity!" /// </summary> public static LocalisableString UserSupportFirst(LocalisableString user) => new TranslatableString(getKey(@"user_support_first"), @"<strong>{0}</strong> has become an osu!supporter - thanks for your generosity!", user); /// <summary> /// "<strong>{0}</strong> has received the gift of osu!supporter!" /// </summary> public static LocalisableString UserSupportGift(LocalisableString user) => new TranslatableString(getKey(@"user_support_gift"), @"<strong>{0}</strong> has received the gift of osu!supporter!", user); /// <summary> /// "<strong>{0}</strong> has changed their username to <strong><em>{1}</em></strong>!" /// </summary> public static LocalisableString UsernameChange(LocalisableString previousUsername, LocalisableString user) => new TranslatableString(getKey(@"username_change"), @"<strong>{0}</strong> has changed their username to <strong><em>{1}</em></strong>!", previousUsername, user); /// <summary> /// "approved" /// </summary> public static LocalisableString BeatmapsetStatusApproved => new TranslatableString(getKey(@"beatmapset_status.approved"), @"approved"); /// <summary> /// "loved" /// </summary> public static LocalisableString BeatmapsetStatusLoved => new TranslatableString(getKey(@"beatmapset_status.loved"), @"loved"); /// <summary> /// "qualified" /// </summary> public static LocalisableString BeatmapsetStatusQualified => new TranslatableString(getKey(@"beatmapset_status.qualified"), @"qualified"); /// <summary> /// "ranked" /// </summary> public static LocalisableString BeatmapsetStatusRanked => new TranslatableString(getKey(@"beatmapset_status.ranked"), @"ranked"); private static string getKey(string key) => $@"{prefix}:{key}"; } }