diff --git a/osu.Game.Rulesets.Karaoke/Bindables/BindableCultureInfo.cs b/osu.Game.Rulesets.Karaoke/Bindables/BindableCultureInfo.cs index da9a1a5a5..4be103e91 100644 --- a/osu.Game.Rulesets.Karaoke/Bindables/BindableCultureInfo.cs +++ b/osu.Game.Rulesets.Karaoke/Bindables/BindableCultureInfo.cs @@ -26,11 +26,11 @@ public override void Parse(object? input) switch (input) { case string str: - Value = new CultureInfo(str); + Value = CultureInfoUtils.CreateLoadCultureInfoByCode(str); break; case int lcid: - Value = new CultureInfo(lcid); + Value = CultureInfoUtils.CreateLoadCultureInfoById(lcid); break; case CultureInfo cultureInfo: @@ -46,6 +46,6 @@ public override void Parse(object? input) protected override Bindable CreateInstance() => new BindableCultureInfo(); public override string ToString(string format, IFormatProvider formatProvider) - => CultureInfoUtils.GetLanguageDisplayText(Value); + => Value != null ? CultureInfoUtils.GetSaveCultureInfoCode(Value) : string.Empty; } }