1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:52:55 +08:00

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 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> /// <summary>
/// "browse for new beatmaps" /// "browse for new beatmaps"
/// </summary> /// </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> /// <summary>
/// "track recent dev updates in the osu! ecosystem" /// "track recent dev updates in the osu! ecosystem"
/// </summary> /// </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> /// <summary>
/// "view your friends and other information" /// "view your friends and other information"
/// </summary> /// </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> /// <summary>
/// "find out who's the best right now" /// "find out who's the best right now"
/// </summary> /// </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> /// <summary>
/// "get up-to-date on community happenings" /// "get up-to-date on community happenings"
/// </summary> /// </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}"; private static string getKey(string key) => $"{prefix}:{key}";
} }

View File

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

View File

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

View File

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

View File

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

View File

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