Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization not affecting tab nodes & Language Metadata #536

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed metadata not being applied the first time
  • Loading branch information
Metious committed Mar 5, 2024
commit b62e08113e9618acbadc6239d22e2db6da717ade
5 changes: 5 additions & 0 deletions Nautilus/Patchers/LanguagePatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ internal static void InsertCustomLines(ref Language __instance)
}

if (_currentLanguage == FallbackLanguage)
{
__instance.ParseMetaData();
return;
}

var diffStrings = currentStrings.Except(fallbackStrings);

Expand All @@ -72,6 +75,8 @@ internal static void InsertCustomLines(ref Language __instance)
{
__instance.strings[currentOnlyString.Key] = currentOnlyString.Value;
}

__instance.ParseMetaData();
}

private static void LoadLanguageFilePrefix(string language)
Expand Down
Loading