Don't localise beatmap count string for now

This commit is contained in:
Dean Herbert 2023-03-16 15:02:38 +09:00
parent dc669835e2
commit 89b42ddd98
2 changed files with 9 additions and 7 deletions

View File

@ -19,11 +19,6 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString LocallyModifiedTooltip => new TranslatableString(getKey(@"locally_modified_tooltip"), @"Has been locally modified");
/// <summary>
/// "{0} beatmaps displayed"
/// </summary>
public static LocalisableString BeatmapsDisplayed(int arg0) => new TranslatableString(getKey(@"beatmaps_displayed"), @"{0:#,0} beatmaps displayed", arg0);
private static string getKey(string key) => $@"{prefix}:{key}";
}
}

View File

@ -40,7 +40,6 @@ using osu.Game.Skinning;
using osuTK;
using osuTK.Graphics;
using osuTK.Input;
using osu.Game.Localisation;
namespace osu.Game.Screens.Select
{
@ -163,7 +162,15 @@ namespace osu.Game.Screens.Select
BleedBottom = Footer.HEIGHT,
SelectionChanged = updateSelectedBeatmap,
BeatmapSetsChanged = carouselBeatmapsLoaded,
FilterApplied = () => FilterControl.InformationalText = SongSelectStrings.BeatmapsDisplayed(Carousel.CountDisplayed),
FilterApplied = () =>
{
FilterControl.InformationalText =
Carousel.CountDisplayed == 1
// Intentionally not localised until we have proper support for this (see https://github.com/ppy/osu-framework/pull/4918
// but also in this case we want support for formatting a number within a string).
? $"{Carousel.CountDisplayed:#,0} beatmap displayed"
: $"{Carousel.CountDisplayed:#,0} beatmaps displayed";
},
GetRecommendedBeatmap = s => recommender?.GetRecommendedBeatmap(s),
}, c => carouselContainer.Child = c);