1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:28:00 +08:00

Use direct reference instead

This commit is contained in:
kj415j45 2021-08-03 15:34:21 +08:00
parent 8d1586261d
commit 404faabbbc
No known key found for this signature in database
GPG Key ID: 54226D868052F383
8 changed files with 10 additions and 30 deletions

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Localisation;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Localisation
{
@ -10,52 +9,31 @@ namespace osu.Game.Localisation
{
private const string prefix = @"osu.Game.Resources.Localisation.NamedOverlayComponent";
/// <inheritdoc cref="PageTitleStrings.MainBeatmapsetsControllerIndex"/>
public static LocalisableString BeatmapListingTitle => PageTitleStrings.MainBeatmapsetsControllerIndex;
/// <summary>
/// "browse for new beatmaps"
/// </summary>
public static LocalisableString BeatmapListingDescription => new TranslatableString(getKey(@"beatmap_listing_description"), @"browse for new beatmaps");
/// <inheritdoc cref="PageTitleStrings.MainBeatmapsetsControllerShow"/>
public static LocalisableString BeatmapSetTitle => PageTitleStrings.MainBeatmapsetsControllerShow;
/// <inheritdoc cref="PageTitleStrings.MainChangelogControllerDefault"/>
public static LocalisableString ChangelogTitle => PageTitleStrings.MainChangelogControllerDefault;
/// <summary>
/// "track recent dev updates in the osu! ecosystem"
/// </summary>
public static LocalisableString ChangelogDescription => new TranslatableString(getKey(@"changelog_description"), @"track recent dev updates in the osu! ecosystem");
/// <inheritdoc cref="PageTitleStrings.MainHomeControllerIndex"/>
public static LocalisableString DashboardTitle => PageTitleStrings.MainHomeControllerIndex;
/// <summary>
/// "view your friends and other information"
/// </summary>
public static LocalisableString DashboardDescription => new TranslatableString(getKey(@"dashboard_description"), @"view your friends and other information");
/// <inheritdoc cref="PageTitleStrings.MainRankingControllerDefault"/>
public static LocalisableString RankingsTitle => PageTitleStrings.MainRankingControllerDefault;
/// <summary>
/// "find out who's the best right now"
/// </summary>
public static LocalisableString RankingsDescription => new TranslatableString(getKey(@"rankings_description"), @"find out who's the best right now");
/// <inheritdoc cref="PageTitleStrings.MainNewsControllerDefault"/>
public static LocalisableString NewsTitle => PageTitleStrings.MainNewsControllerDefault;
/// <summary>
/// "get up-to-date on community happenings"
/// </summary>
public static LocalisableString NewsDescription => new TranslatableString(getKey(@"news_description"), @"get up-to-date on community happenings");
/// <inheritdoc cref="PageTitleStrings.MainWikiControllerDefault"/>
public static LocalisableString WikiTitle => PageTitleStrings.MainWikiControllerDefault;
/// <summary>
/// "knowledge base"
/// </summary>

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Localisation;
using osu.Game.Resources.Localisation.Web;
namespace osu.Game.Overlays.BeatmapListing
{
@ -13,7 +14,7 @@ namespace osu.Game.Overlays.BeatmapListing
{
public BeatmapListingTitle()
{
Title = NamedOverlayComponentStrings.BeatmapListingTitle;
Title = PageTitleStrings.MainBeatmapsetsControllerIndex;
Description = NamedOverlayComponentStrings.BeatmapListingDescription;
IconTexture = "Icons/Hexacons/beatmap";
}

View File

@ -7,7 +7,7 @@ using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Effects;
using osu.Game.Beatmaps;
using osu.Game.Localisation;
using osu.Game.Resources.Localisation.Web;
using osu.Game.Rulesets;
using osuTK;
using osuTK.Graphics;
@ -55,7 +55,7 @@ namespace osu.Game.Overlays.BeatmapSet
{
public BeatmapHeaderTitle()
{
Title = NamedOverlayComponentStrings.BeatmapSetTitle;
Title = PageTitleStrings.MainBeatmapsetsControllerShow;
IconTexture = "Icons/Hexacons/beatmap";
}
}

View File

@ -117,7 +117,7 @@ namespace osu.Game.Overlays.Changelog
{
public ChangelogHeaderTitle()
{
Title = NamedOverlayComponentStrings.ChangelogTitle;
Title = PageTitleStrings.MainChangelogControllerDefault;
Description = NamedOverlayComponentStrings.ChangelogDescription;
IconTexture = "Icons/Hexacons/devtools";
}

View File

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

View File

@ -64,7 +64,7 @@ namespace osu.Game.Overlays.News
{
public NewsHeaderTitle()
{
Title = NamedOverlayComponentStrings.NewsTitle;
Title = PageTitleStrings.MainNewsControllerDefault;
Description = NamedOverlayComponentStrings.NewsDescription;
IconTexture = "Icons/Hexacons/news";
}

View File

@ -4,6 +4,7 @@
using osu.Framework.Graphics;
using osu.Framework.Bindables;
using osu.Game.Localisation;
using osu.Game.Resources.Localisation.Web;
using osu.Game.Rulesets;
using osu.Game.Users;
@ -30,7 +31,7 @@ namespace osu.Game.Overlays.Rankings
{
public RankingsTitle()
{
Title = NamedOverlayComponentStrings.RankingsTitle;
Title = PageTitleStrings.MainRankingControllerDefault;
Description = NamedOverlayComponentStrings.RankingsDescription;
IconTexture = "Icons/Hexacons/rankings";
}

View File

@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Wiki
{
public WikiHeaderTitle()
{
Title = NamedOverlayComponentStrings.WikiTitle;
Title = PageTitleStrings.MainWikiControllerDefault;
Description = NamedOverlayComponentStrings.WikiDescription;
IconTexture = "Icons/Hexacons/wiki";
}