Skip to content

Commit

Permalink
Merge branch 'PlayerInfos'
Browse files Browse the repository at this point in the history
  • Loading branch information
Triky313 committed Nov 23, 2020
2 parents 90cb185 + 01025c8 commit e053c95
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions StatisticsAnalysisTool/StatisticsAnalysisTool/Models/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ public class Item
public int Index { get; set; }
public string UniqueName { get; set; }

public string LocalizedNameAndEnglish =>
LanguageController.CurrentCultureInfo.TextInfo.CultureName.ToUpper() == "EN-US"
? ItemController.LocalizedName(LocalizedNames, null, UniqueName)
: $"{ItemController.LocalizedName(LocalizedNames, null, UniqueName)}\n{ItemController.LocalizedName(LocalizedNames, "EN-US", string.Empty)}";
public string LocalizedNameAndEnglish => LanguageController.CurrentCultureInfo.TextInfo.CultureName.ToUpper() == "EN-US"
? ItemController.LocalizedName(LocalizedNames, null, UniqueName)
: $"{ItemController.LocalizedName(LocalizedNames, null, UniqueName)}\n{ItemController.LocalizedName(LocalizedNames, "EN-US", string.Empty)}{GetUniqueNameIfDebug()}";

private string GetUniqueNameIfDebug()
{
#if DEBUG
return $"\n{UniqueName}";
#else
return string.Empty;
#endif
}

public string LocalizedName => ItemController.LocalizedName(LocalizedNames, null, UniqueName);

Expand Down

0 comments on commit e053c95

Please sign in to comment.