Merge pull request #3964 from myk002/myk_readable

return untranslated name as the readable name
develop
Myk 2023-11-05 01:38:57 -07:00 committed by GitHub
commit c0380a64ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

@ -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

@ -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 {