URL: <http://gna.org/bugs/?24196>
Summary: When buying a unit, its name does not get translated in messages Project: Freeciv Submitted by: mlinnaka Submitted on: Thu 17 Dec 2015 12:58:44 PM EET Category: general Severity: 2 - Minor Priority: 3 - Low Status: None Assigned to: cazfi Originator Email: Open/Closed: Open Release: 2.5 Discussion Lock: Any Operating System: Any Planned Release: _______________________________________________________ Details: When buying a unit, the unit's name does not get translated in messages-window. For example when playing with Finnish locale, the English expression "You bought Warriors in Sigtuna" incorrectly translates to "Ostit hankkeen Warriors kaupungissa Sigtuna" instead of "Ostit hankkeen Soturijoukko kaupungissa Sigtuna". When buying a building, its name is translated fine. I propose a fix in file server/cityhand.c, line 378 as follows: --- server/cityhand.c (revision 31042) +++ server/cityhand.c (working copy) @@ -375,7 +375,7 @@ notify_player(pplayer, pcity->tile, E_UNIT_BUY, ftc_server, /* TRANS: bought an unit. */ _("You bought %s in %s."), - utype_rule_name(pcity->production.value.utype), + utype_name_translation(pcity->production.value.utype), city_name(pcity)); } else if (VUT_IMPROVEMENT == pcity->production.kind) { notify_player(pplayer, pcity->tile, E_IMP_BUY, ftc_server, _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?24196> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev