From b71a4e81d21abd961d661b3b8f58450906d90c58 Mon Sep 17 00:00:00 2001 From: Daniel Billing Date: Thu, 23 Jul 2020 12:22:16 +0200 Subject: [PATCH] Lets format the token string before finding it --- P3D/HelperClasses/Localization.vb | 1 + 1 file changed, 1 insertion(+) diff --git a/P3D/HelperClasses/Localization.vb b/P3D/HelperClasses/Localization.vb index 098d0cf09..10c2c55ba 100644 --- a/P3D/HelperClasses/Localization.vb +++ b/P3D/HelperClasses/Localization.vb @@ -101,6 +101,7 @@ Public Shared Function GetString(ByVal s As String, Optional ByVal DefaultValue As String = "") As String Dim resultToken As Token = Nothing + s.Replace(" ", "_").Replace(".", "").Replace("'", "").ToLower() ' Lets format the string before finding it If LocalizationTokens.ContainsKey(s) = True Then If LocalizationTokens.TryGetValue(s, resultToken) = False Then Return s