(PR#11774) Remaining civmanual problems

"Christian Knoke" <[email protected]> Fri, 14 Jan 2005 11:28:17 -0800
Newsgroups gmane.games.freeciv.devel,gmane.games.freeciv.data
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1105730896-20399-0
Content-Type: text/plain; charset="utf-8"


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


This patch fixes no. 1 - 4. I don't think that I can fix the others, though.

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.


------------=_1105730896-20399-0
Content-Type: text/plain; charset="us-ascii"; name="11774fix.diff"
Content-Disposition: inline; filename="11774fix.diff"
Content-Transfer-Encoding: 7bit

--- manual/civmanual.c.orig	2005-01-14 11:37:16.000000000 +0100
+++ manual/civmanual.c	2005-01-14 20:15:38.000000000 +0100
@@ -193,7 +193,7 @@
 	const struct command *cmd = &commands[i];
 
 	fprintf(doc, SEPARATOR);
-	fprintf(doc, _("%s%s  -  %s%s\n\n"), SECTION_BEGIN, cmd->name,
+	fprintf(doc, "%s%s  -  %s%s\n\n", SECTION_BEGIN, cmd->name,
 		_(cmd->short_help), SECTION_END);
 	if (cmd->synopsis) {
 	  fprintf(doc, _("<table>\n<tr>\n<td valign=\"top\">"
@@ -262,7 +262,7 @@
 	fprintf(doc, "<td>%s</td></tr>\n\n",
 		get_terrain_name(ptype->transform_result));
       } terrain_type_iterate_end;
-      fprintf(doc, _("</table><br><br><br><table border=1>"));
+      fprintf(doc, "</table><br><br><br><table border=1>");
       fprintf(doc, _("<caption>Time to perform action</caption>"));
       fprintf(doc, _("<tr><th>Terrain</th>\n"));
       fprintf(doc, _("<th>Road</th><th>Irrigation</th>\n"));
@@ -369,6 +369,8 @@
   init_nls();
   init_character_encodings("UTF-8", FALSE);
 
+  game_init();
+  
   manual_command();
 
   return 0;

------------=_1105730896-20399-0--