Lets format the token string before finding it

This commit is contained in:
Daniel Billing 2020-07-23 12:22:16 +02:00
parent 3230c43a76
commit b71a4e81d2

View File

@ -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