Skip to content

Commit

Permalink
Localize game history timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Oct 10, 2024
1 parent 71d41b4 commit 890e4ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Bloxstrap/Models/Entities/ActivityData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ public string GameHistoryDescription
{
get
{
string desc = string.Format("{0} • {1} - {2}", UniverseDetails?.Data.Creator.Name, TimeJoined.ToString("h:mm tt"), TimeLeft?.ToString("h:mm tt"));
string desc = string.Format(
"{0} • {1} {2} {3}",
UniverseDetails?.Data.Creator.Name,
TimeJoined.ToString("t"),
Locale.CurrentCulture.Name.StartsWith("ja") ? '~' : '-',
TimeLeft?.ToString("t")
);

if (ServerType != ServerType.Public)
desc += " • " + ServerType.ToTranslatedString();
Expand Down

0 comments on commit 890e4ea

Please sign in to comment.