Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetLocalizedMessage()

string System.Diagnostics.Tracing.ManifestBuilder.GetLocalizedMessage ( string key,
CultureInfo ci,
bool etwFormat )
inlinepackage

Definition at line 571 of file ManifestBuilder.cs.

572 {
573 string value = null;
574 if (resources != null)
575 {
576 string @string = resources.GetString(key, ci);
577 if (@string != null)
578 {
579 value = @string;
580 if (etwFormat && key.StartsWith("event_", StringComparison.Ordinal))
581 {
582 string evtName = key.Substring("event_".Length);
584 }
585 }
586 }
587 if (etwFormat && value == null)
588 {
590 }
591 return value;
592 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly Dictionary< string, string > stringTab
string TranslateToManifestConvention(string eventMessage, string evtName)
virtual ? string GetString(string name)

References System.Resources.ResourceManager.GetString(), System.key, System.Diagnostics.Tracing.ManifestBuilder.resources, System.Diagnostics.Tracing.ManifestBuilder.stringTab, System.Diagnostics.Tracing.ManifestBuilder.TranslateToManifestConvention(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Diagnostics.Tracing.ManifestBuilder.CreateManifestString().