Author: cazfi
Date: Sun Dec 20 12:20:04 2015
New Revision: 31107

URL: http://svn.gna.org/viewcvs/freeciv?rev=31107&view=rev
Log:
Use translated unit name in notification about bought unit.

Initial patch by Markus Linnakangas <mlinnaka>

See bug #24196

Modified:
    trunk/server/cityhand.c

Modified: trunk/server/cityhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityhand.c?rev=31107&r1=31106&r2=31107&view=diff
==============================================================================
--- trunk/server/cityhand.c     (original)
+++ trunk/server/cityhand.c     Sun Dec 20 12:20:04 2015
@@ -375,14 +375,14 @@
     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,
                   /* TRANS: bought an improvement .*/
                   _("You bought %s in %s."),
-                  improvement_name_translation(
-                    pcity->production.value.building), city_name(pcity));
+                  
improvement_name_translation(pcity->production.value.building),
+                  city_name(pcity));
   }
 
   conn_list_do_buffer(pplayer->connections);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to