From 49d4a40761e01670e3633a84ec91f8e3dc4ce969 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 5 Nov 2023 01:27:40 -0700 Subject: [PATCH] return untranslated name as the readable name --- docs/changelog.txt | 1 + library/modules/Units.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 57e1ed9e1..6dee690ca 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -76,6 +76,7 @@ Template for new versions: ## API - ``Gui::revealInDwarfmodeMap``: gained ``highlight`` parameter to control setting the tile highlight on the zoom target - ``Maps::getWalkableGroup``: get the walkability group of a tile +- ``Units::getReadableName``: now returns the *untranslated* name ## Lua - ``dfhack.gui.revealInDwarfmodeMap``: gained ``highlight`` parameter to control setting the tile highlight on the zoom target diff --git a/library/modules/Units.cpp b/library/modules/Units.cpp index a9d361706..ff36481b7 100644 --- a/library/modules/Units.cpp +++ b/library/modules/Units.cpp @@ -1282,7 +1282,7 @@ string Units::getReadableName(df::unit* unit) { race_name = "hunter " + race_name; if (isWar(unit)) race_name = "war " + race_name; - string name = Translation::TranslateName(getVisibleName(unit)); + string name = Translation::TranslateName(getVisibleName(unit), false); if (name.empty()) { name = race_name; } else {