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

◆ EnglishName

string System.Globalization.CultureData.EnglishName
getpackage

Definition at line 550 of file CultureData.cs.

551 {
552 get
553 {
554 string text = _sEnglishDisplayName;
555 if (text == null && !GlobalizationMode.Invariant)
556 {
558 {
559 text = GetLocaleInfoCore(LocaleStringData.EnglishDisplayName);
560 if (string.IsNullOrEmpty(text))
561 {
563 }
564 string sName = _sName;
565 if (sName == "zh-CHS" || sName == "zh-CHT")
566 {
567 text += " Legacy";
568 }
569 }
570 else
571 {
572 text = GetLocaleInfoCore(LocaleStringData.EnglishDisplayName);
573 if (string.IsNullOrEmpty(text))
574 {
575 text = ((EnglishLanguageName[^1] != ')') ? (EnglishLanguageName + " (" + EnglishCountryName + ")") : string.Concat(EnglishLanguageName.AsSpan(0, _sEnglishLanguage.Length - 1), ", ", EnglishCountryName, ")"));
576 }
577 }
579 }
580 return text;
581 }
582 }
int GetLocaleInfoCore(LocaleNumberData type)