From 2071121346acc55d1455612d8dd7c7372174d331 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 1 Dec 2018 12:27:11 +0100 Subject: [PATCH] =?UTF-8?q?Bug=202521:=20=C3=9Cbersetzung=20von=20at=5Frac?= =?UTF-8?q?ename=20f=C3=BCr=20Geister?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/creport.c | 8 +++++--- src/reports.c | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/creport.c b/src/creport.c index 71c283e89..9ec5530db 100644 --- a/src/creport.c +++ b/src/creport.c @@ -848,11 +848,13 @@ void cr_output_unit(stream *out, const faction * f, pzTmp = get_racename(u->attribs); if (pzTmp) { - stream_printf(out, "\"%s\";Typ\n", pzTmp); + const char *pzRace = LOC(lang, mkname("race", pzTmp)); + pzTmp = pzRace ? pzRace : pzTmp; + stream_printf(out, "\"%s\";Typ\n", translate(pzTmp, LOC(lang, pzTmp))); if (u->faction == f && fval(u_race(u), RCF_SHAPESHIFTANY)) { - const char *zRace = rc_name_s(u_race(u), NAME_PLURAL); + pzRace = rc_name_s(u_race(u), NAME_PLURAL); stream_printf(out, "\"%s\";wahrerTyp\n", - translate(zRace, LOC(lang, zRace))); + translate(pzRace, LOC(lang, pzRace))); } } else { diff --git a/src/reports.c b/src/reports.c index 561bcecf2..4787ed986 100644 --- a/src/reports.c +++ b/src/reports.c @@ -714,7 +714,8 @@ void bufunit(const faction * f, const unit * u, const faction *fv, pzTmp = get_racename(u->attribs); if (pzTmp) { - sbs_strcat(sbp, pzTmp); + const char *name = LOC(lang, mkname("race", pzTmp)); + sbs_strcat(sbp, name ? name : pzTmp); if (u->faction == f && fval(u_race(u), RCF_SHAPESHIFTANY)) { sbs_strcat(sbp, " ("); sbs_strcat(sbp, racename(lang, u, u_race(u)));