1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 06:32:55 +08:00

Use a culture name that doesn't cause everything to fall over

This commit is contained in:
Dean Herbert 2022-04-19 16:49:41 +09:00
parent feeff16476
commit a195d4f5aa
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ namespace osu.Game.Localisation
public IEnumerable<string> GetAvailableResources() => throw new NotImplementedException();
public CultureInfo EffectiveCulture { get; } = new CultureInfo(@"debug");
public CultureInfo EffectiveCulture { get; } = CultureInfo.CurrentCulture;
public void Dispose()
{

View File

@ -114,7 +114,7 @@ namespace osu.Game.Localisation
#if DEBUG
[Description(@"Debug (show raw keys)")]
DebugLocalisation
debug
#endif
}
}

View File

@ -629,9 +629,9 @@ namespace osu.Game
foreach (var language in Enum.GetValues(typeof(Language)).OfType<Language>())
{
#if DEBUG
if (language == Language.DebugLocalisation)
if (language == Language.debug)
{
Localisation.AddLanguage(Language.DebugLocalisation.ToString(), new DebugLocalisationStore());
Localisation.AddLanguage(Language.debug.ToString(), new DebugLocalisationStore());
continue;
}
#endif