2 using System.Collections.Immutable;
9 private readonly ImmutableArray<LocalizedString> nestedStrs;
10 private readonly
char punctuationSymbol;
14 public override bool Loaded => nestedStrs.All(s => s.Loaded);
17 string separator =
"";
18 if (GameSettings.CurrentConfig.Language ==
"French".ToLanguageIdentifier())
20 bool addNonBreakingSpace =
21 punctuationSymbol ==
':' || punctuationSymbol ==
';' ||
22 punctuationSymbol ==
'!' || punctuationSymbol ==
'?';
23 separator = addNonBreakingSpace ?
24 new string(
new char[] { (char)(0xA0), punctuationSymbol,
' ' }) :
25 new string(
new char[] { punctuationSymbol,
' ' });
29 separator =
new string(
new char[] { punctuationSymbol,
' ' });
31 cachedValue =
string.Join(separator, nestedStrs.Select(str => str.Value));
override void RetrieveValue()
AddedPunctuationLString(char symbol, params LocalizedString[] nStrs)