Skip to content

Commit

Permalink
Localize location name on bulletin boards
Browse files Browse the repository at this point in the history
Also in NewLocationAlert (unused).
  • Loading branch information
Interkarma committed Nov 27, 2022
1 parent 7acafa2 commit 24d9e27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Scripts/Game/NewLocationAlert.cs
Expand Up @@ -76,7 +76,7 @@ void Update()
// Show text
if (LocationText)
{
string text = string.Format("{0}{1}({2})", playerGPS.CurrentLocation.Name, Environment.NewLine, TextManager.Instance.GetLocalizedRegionName(playerGPS.CurrentLocation.RegionIndex));
string text = string.Format("{0}{1}({2})", playerGPS.CurrentLocalizedLocationName, Environment.NewLine, TextManager.Instance.GetLocalizedRegionName(playerGPS.CurrentLocation.RegionIndex));
ShowText(text);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Game/PlayerActivate.cs
Expand Up @@ -683,7 +683,7 @@ void ActivateBulletinBoard(RaycastHit hit, DaggerfallBulletinBoard bulletinBoard
var tokens = new List<TextFile.Token>
{
new TextFile.Token(TextFile.Formatting.JustifyCenter, null),
new TextFile.Token(TextFile.Formatting.Text, GameManager.Instance.PlayerGPS.CurrentLocation.Name),
new TextFile.Token(TextFile.Formatting.Text, GameManager.Instance.PlayerGPS.CurrentLocalizedLocationName),
new TextFile.Token(TextFile.Formatting.JustifyCenter, null)
};

Expand Down

0 comments on commit 24d9e27

Please sign in to comment.