<URL: http://bugs.freeciv.org/Ticket/Display.html?id=34192 >

 I often have old historian report tabs open and then I wonder how old
information they do contain.
 This patch adds publishing year to reports.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/report.c freeciv/server/report.c
--- freeciv/server/report.c	2006-07-17 23:56:22.000000000 +0300
+++ freeciv/server/report.c	2007-01-20 21:53:01.000000000 +0200
@@ -52,11 +52,11 @@
 #define HISTORIAN_LAST 		HISTORIAN_LARGEST
 
 static const char *historian_message[]={
-    N_("%s report on the RICHEST Civilizations in the World."),
-    N_("%s report on the most ADVANCED Civilizations in the World."),
-    N_("%s report on the most MILITARIZED Civilizations in the World."),
-    N_("%s report on the HAPPIEST Civilizations in the World."),
-    N_("%s report on the LARGEST Civilizations in the World.")
+    N_("%s report on the RICHEST Civilizations in the World %s."),
+    N_("%s report on the most ADVANCED Civilizations in the World %s."),
+    N_("%s report on the most MILITARIZED Civilizations in the World %s."),
+    N_("%s report on the HAPPIEST Civilizations in the World %s."),
+    N_("%s report on the LARGEST Civilizations in the World %s.")
 };
 
 static const char *historian_name[]={
@@ -201,7 +201,8 @@
 		 get_nation_name_plural(size[i].player->nation));
   }
   my_snprintf(title, sizeof(title), _(historian_message[which_news]),
-    _(historian_name[myrand(ARRAY_SIZE(historian_name))]));
+              _(historian_name[myrand(ARRAY_SIZE(historian_name))]),
+              textyear(game.info.year));
   page_conn_etype(game.est_connections, _("Historian Publishes!"),
 		  title, buffer, E_BROADCAST_REPORT);
 }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to