Skip to content

Commit 3bcb5f0

Browse files
committed
Fix bug where TileInfoDisplay did not use translated names for base node building types
1 parent f836375 commit 3bcb5f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TSMapEditor/UI/TileInfoDisplay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ private void AddBaseNodeInformation(List<BaseNode> baseNodes)
317317

318318
textRenderer.AddTextLine(new XNATextPart(Translate(this, "HouseBaseNodesHeader", "Base Node: "), Constants.UIDefaultFont, Color.Gray));
319319
textRenderer.AddTextPart(new XNATextPart(string.Format(Translate(this, "HouseBaseNodesInfo",
320-
"{0} ({1}), Owner:"), nodeBuildingType.Name, nodeBuildingType.ININame),
320+
"{0} ({1}), Owner:"), TranslateObject(nodeBuildingType.ININame, nodeBuildingType.Name), nodeBuildingType.ININame),
321321
Constants.UIDefaultFont, Color.White));
322322
textRenderer.AddTextPart(new XNATextPart(house.ININame, Constants.UIBoldFont, house.XNAColor));
323323
}

0 commit comments

Comments
 (0)