mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 03:03:21 +08:00
Use more proper method of formatting
This commit is contained in:
parent
2932184d24
commit
87381334ff
@ -72,7 +72,7 @@ namespace osu.Game.Localisation
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Based on the last {0} play(s), the suggested offset is {1} ms."
|
/// "Based on the last {0} play(s), the suggested offset is {1} ms."
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString SuggestedOffsetValueReceived(int plays, string value) => new TranslatableString(getKey(@"suggested_offset_value_received"), @"Based on the last {0} play(s), the suggested offset is {1} ms.", plays, value);
|
public static LocalisableString SuggestedOffsetValueReceived(int plays, LocalisableString value) => new TranslatableString(getKey(@"suggested_offset_value_received"), @"Based on the last {0} play(s), the suggested offset is {1} ms.", plays, value);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Apply suggested offset"
|
/// "Apply suggested offset"
|
||||||
|
@ -8,6 +8,7 @@ using System.Linq;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||||
|
using osu.Framework.Extensions.LocalisationExtensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
@ -156,7 +157,7 @@ namespace osu.Game.Overlays.Settings.Sections.Audio
|
|||||||
{
|
{
|
||||||
hintText.Text = SuggestedOffset.Value == null
|
hintText.Text = SuggestedOffset.Value == null
|
||||||
? AudioSettingsStrings.SuggestedOffsetNote
|
? AudioSettingsStrings.SuggestedOffsetNote
|
||||||
: AudioSettingsStrings.SuggestedOffsetValueReceived(averageHitErrorHistory.Count, $"{SuggestedOffset.Value:N0}");
|
: AudioSettingsStrings.SuggestedOffsetValueReceived(averageHitErrorHistory.Count, SuggestedOffset.Value.ToLocalisableString(@"N0"));
|
||||||
applySuggestion.Enabled.Value = SuggestedOffset.Value != null;
|
applySuggestion.Enabled.Value = SuggestedOffset.Value != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user