mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Set CultureInfo before loading locs
This commit is contained in:
parent
4078c96021
commit
e421c4ec67
1 changed files with 4 additions and 2 deletions
|
|
@ -116,9 +116,10 @@ public class Localization : IServiceType
|
|||
/// </summary>
|
||||
public void SetupWithFallbacks()
|
||||
{
|
||||
this.DalamudLanguageCultureInfo = CultureInfo.InvariantCulture;
|
||||
|
||||
Loc.SetupWithFallbacks(this.assembly);
|
||||
|
||||
this.DalamudLanguageCultureInfo = CultureInfo.InvariantCulture;
|
||||
foreach (var d in Delegate.EnumerateInvocationList(this.LocalizationChanged))
|
||||
{
|
||||
try
|
||||
|
|
@ -144,6 +145,8 @@ public class Localization : IServiceType
|
|||
return;
|
||||
}
|
||||
|
||||
this.DalamudLanguageCultureInfo = GetCultureInfoFromLangCode(langCode);
|
||||
|
||||
try
|
||||
{
|
||||
Loc.Setup(this.ReadLocData(langCode), this.assembly);
|
||||
|
|
@ -154,7 +157,6 @@ public class Localization : IServiceType
|
|||
this.SetupWithFallbacks();
|
||||
}
|
||||
|
||||
this.DalamudLanguageCultureInfo = GetCultureInfoFromLangCode(langCode);
|
||||
foreach (var d in Delegate.EnumerateInvocationList(this.LocalizationChanged))
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue