symbol renaming

Co-authored-by: frenzibyte <frenzibyte@gmail.com>
This commit is contained in:
kj415j45 2021-07-18 10:12:24 +08:00
parent 5fc1397564
commit 57eed88601
6 changed files with 12 additions and 12 deletions

View File

@ -5,34 +5,34 @@ using osu.Framework.Localisation;
namespace osu.Game.Localisation
{
public static class HeaderDescriptionStrings
public static class NamedOverlayComponentStrings
{
private const string prefix = @"osu.Game.Resources.Localisation.HeaderDescription";
private const string prefix = @"osu.Game.Resources.Localisation.NamedOverlayComponent";
/// <summary>
/// "browse for new beatmaps"
/// </summary>
public static LocalisableString BeatmapListing => new TranslatableString(getKey(@"beatmap_listing"), @"browse for new beatmaps");
public static LocalisableString BeatmapListingDescription => new TranslatableString(getKey(@"beatmap_listing"), @"browse for new beatmaps");
/// <summary>
/// "track recent dev updates in the osu! ecosystem"
/// </summary>
public static LocalisableString Changelog => new TranslatableString(getKey(@"changelog"), @"track recent dev updates in the osu! ecosystem");
public static LocalisableString ChangelogDescription => new TranslatableString(getKey(@"changelog"), @"track recent dev updates in the osu! ecosystem");
/// <summary>
/// "view your friends and other information"
/// </summary>
public static LocalisableString Dashboard => new TranslatableString(getKey(@"dashboard"), @"view your friends and other information");
public static LocalisableString DashboardDescription => new TranslatableString(getKey(@"dashboard"), @"view your friends and other information");
/// <summary>
/// "find out who's the best right now"
/// </summary>
public static LocalisableString Rankings => new TranslatableString(getKey(@"rankings"), @"find out who's the best right now");
public static LocalisableString RankingsDescription => new TranslatableString(getKey(@"rankings"), @"find out who's the best right now");
/// <summary>
/// "get up-to-date on community happenings"
/// </summary>
public static LocalisableString News => new TranslatableString(getKey(@"news"), @"get up-to-date on community happenings");
public static LocalisableString NewsDescription => new TranslatableString(getKey(@"news"), @"get up-to-date on community happenings");
private static string getKey(string key) => $"{prefix}:{key}";
}

View File

@ -15,7 +15,7 @@ namespace osu.Game.Overlays.BeatmapListing
public BeatmapListingTitle()
{
Title = PageTitleStrings.MainBeatmapsetsControllerIndex;
Description = HeaderDescriptionStrings.BeatmapListing;
Description = NamedOverlayComponentStrings.BeatmapListingDescription;
IconTexture = "Icons/Hexacons/beatmap";
}
}

View File

@ -118,7 +118,7 @@ namespace osu.Game.Overlays.Changelog
public ChangelogHeaderTitle()
{
Title = LayoutStrings.MenuHomeChangelogIndex;
Description = HeaderDescriptionStrings.Changelog;
Description = NamedOverlayComponentStrings.ChangelogDescription;
IconTexture = "Icons/Hexacons/devtools";
}
}

View File

@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Dashboard
public DashboardTitle()
{
Title = HomeStrings.UserTitle;
Description = HeaderDescriptionStrings.Dashboard;
Description = NamedOverlayComponentStrings.DashboardDescription;
IconTexture = "Icons/Hexacons/social";
}
}

View File

@ -65,7 +65,7 @@ namespace osu.Game.Overlays.News
public NewsHeaderTitle()
{
Title = LayoutStrings.MenuHomeNewsIndex;
Description = HeaderDescriptionStrings.News;
Description = NamedOverlayComponentStrings.NewsDescription;
IconTexture = "Icons/Hexacons/news";
}
}

View File

@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Rankings
public RankingsTitle()
{
Title = LayoutStrings.MenuRankingsDefault;
Description = HeaderDescriptionStrings.Rankings;
Description = NamedOverlayComponentStrings.RankingsDescription;
IconTexture = "Icons/Hexacons/rankings";
}
}