mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-09-26 03:18:58 +02:00
Fixed check for token in missing_tokens
This commit is contained in:
parent
c50e298b54
commit
df1ba4f7d7
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user