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:
parent
feeff16476
commit
a195d4f5aa
@ -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()
|
||||
{
|
||||
|
@ -114,7 +114,7 @@ namespace osu.Game.Localisation
|
||||
|
||||
#if DEBUG
|
||||
[Description(@"Debug (show raw keys)")]
|
||||
DebugLocalisation
|
||||
debug
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user