From df1ba4f7d7cbe6319af189072c986911024f3052 Mon Sep 17 00:00:00 2001 From: "Daniel S. Billing" Date: Mon, 19 Apr 2021 21:36:01 +0200 Subject: [PATCH] Fixed check for token in missing_tokens --- P3D/HelperClasses/Localization.vb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/P3D/HelperClasses/Localization.vb b/P3D/HelperClasses/Localization.vb index 8749597d3..8e3bf5922 100644 --- a/P3D/HelperClasses/Localization.vb +++ b/P3D/HelperClasses/Localization.vb @@ -116,9 +116,7 @@ Public Class Localization Dim FullPath As String = GameController.GamePath & GameMode.DefaultLocalizationsPath Dim LocaleFilePath As String = FullPath & "missing_tokens.json" Dim TokensFile As JObject = JObject.Parse(System.IO.File.ReadAllText(LocaleFilePath)) - If TokensFile.ContainsKey(NewTokenName) = False Then - Logger.Debug("Localization.vb: Did not find token for: " & NewTokenName) - 'Dim nexttolastpart As String = NewTokenName.Substring(NewTokenName.LastIndexOf(".") + 1) + If TokensFile.ContainsKey(s) = False Then TokensFile.Add(NewTokenName, s) End If File.WriteAllText(LocaleFilePath, JsonConvert.SerializeObject(TokensFile, Newtonsoft.Json.Formatting.Indented))