1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

Add localisation for BeatmapListingHeader

This commit is contained in:
kj415j45 2021-07-18 02:38:15 +08:00
parent 3b48975f1e
commit f588607ed9
2 changed files with 10 additions and 2 deletions

View File

@ -9,6 +9,11 @@ namespace osu.Game.Localisation
{ {
private const string prefix = @"osu.Game.Resources.Localisation.HeaderDescription"; private const string prefix = @"osu.Game.Resources.Localisation.HeaderDescription";
/// <summary>
/// "browse for new beatmaps"
/// </summary>
public static LocalisableString BeatmapListing => 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>

View File

@ -1,6 +1,9 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // 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. // 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 namespace osu.Game.Overlays.BeatmapListing
{ {
public class BeatmapListingHeader : OverlayHeader public class BeatmapListingHeader : OverlayHeader
@ -11,8 +14,8 @@ namespace osu.Game.Overlays.BeatmapListing
{ {
public BeatmapListingTitle() public BeatmapListingTitle()
{ {
Title = "beatmap listing"; Title = PageTitleStrings.MainBeatmapsetsControllerIndex;
Description = "browse for new beatmaps"; Description = HeaderDescriptionStrings.BeatmapListing;
IconTexture = "Icons/Hexacons/beatmap"; IconTexture = "Icons/Hexacons/beatmap";
} }
} }