Skip to content

Commit

Permalink
Localize location name in "Where am I?" and tdbg strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Interkarma committed Nov 26, 2022
1 parent 804c0d4 commit 7acafa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/Game/TalkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1506,12 +1506,12 @@ public string GetAnswerWhereAmI()
PlayerGPS.DiscoveredBuilding discoveredBuilding;
if (GameManager.Instance.PlayerGPS.GetAnyBuilding(GameManager.Instance.PlayerEnterExit.ExteriorDoors[0].buildingKey, out discoveredBuilding))
{
return String.Format(TextManager.Instance.GetLocalizedText("AnswerTextWhereAmI"), discoveredBuilding.displayName, GameManager.Instance.PlayerGPS.CurrentLocation.Name);
return String.Format(TextManager.Instance.GetLocalizedText("AnswerTextWhereAmI"), discoveredBuilding.displayName, GameManager.Instance.PlayerGPS.CurrentLocalizedLocationName);
}
// Fallback if no discovery info was found
BuildingInfo currentBuilding = listBuildings.Find(x => x.buildingKey == GameManager.Instance.PlayerEnterExit.ExteriorDoors[0].buildingKey);

return string.Format(TextManager.Instance.GetLocalizedText("AnswerTextWhereAmI"), currentBuilding.name, GameManager.Instance.PlayerGPS.CurrentLocation.Name);
return string.Format(TextManager.Instance.GetLocalizedText("AnswerTextWhereAmI"), currentBuilding.name, GameManager.Instance.PlayerGPS.CurrentLocalizedLocationName);
}

if (GameManager.Instance.IsPlayerInsideCastle || GameManager.Instance.IsPlayerInsideDungeon) // In dungeon
Expand All @@ -1522,7 +1522,7 @@ public string GetAnswerWhereAmI()
}
else
{
return string.Format(TextManager.Instance.GetLocalizedText("AnswerTextWhereAmI"), GameManager.Instance.PlayerGPS.CurrentLocation.Name, GameManager.Instance.PlayerGPS.CurrentLocalizedRegionName);
return string.Format(TextManager.Instance.GetLocalizedText("AnswerTextWhereAmI"), GameManager.Instance.PlayerGPS.CurrentLocalizedLocationName, GameManager.Instance.PlayerGPS.CurrentLocalizedRegionName);
}
return TextManager.Instance.GetLocalizedText("resolvingError");
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Terrain/StreamingWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ private string GetDebugString()
LocalPlayerGPS.ClimateSettings.ClimateType.ToString());
if (LocalPlayerGPS.CurrentLocation.Loaded)
{
final += string.Format(" {0} is nearby.", LocalPlayerGPS.CurrentLocation.Name);
final += string.Format(" {0} is nearby.", LocalPlayerGPS.CurrentLocalizedLocationName);
}

return final;
Expand Down

0 comments on commit 7acafa2

Please sign in to comment.