(PR#11630) civmanual i18n

"Jason Short" <[email protected]> Tue, 28 Dec 2004 02:57:46 -0800
Newsgroups gmane.games.freeciv.devel,gmane.games.freeciv.data
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1104231466-13995-2
Content-Type: text/plain; charset="utf-8"


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

> [chrisk - Tue Dec 21 13:23:07 2004]:
> 
> 
> Hello,
> 
> civmanual outputs english text only here. It is not in POTFILES.in, but I
> think this is not the main reason. Can you please fix that? It would help
> documentation much.

This patch should fix the translation problem.

There may be a charset problem as well.  I'm not sure what charset the
output here should be in.  Since we're outputting HTML I think we should
stick to UTF-8 (and mark it as such in the header).  This patch uses
UTF-8 here (because fprintf is used there is no character conversion in
output so it stays in the internal encoding).

-jason


------------=_1104231466-13995-2
Content-Type: text/x-patch; charset="ascii"; name="manual.diff"
Content-Disposition: inline; filename="manual.diff"
Content-Transfer-Encoding: 7bit

? gmon.out
Index: manual/civmanual.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/manual/civmanual.c,v
retrieving revision 1.1
diff -u -r1.1 civmanual.c
--- manual/civmanual.c	6 Sep 2004 02:50:50 -0000	1.1
+++ manual/civmanual.c	28 Dec 2004 10:56:09 -0000
@@ -365,6 +365,9 @@
 
 int main(int argc, char **argv)
 {
+  init_nls();
+  init_character_encodings("UTF-8", FALSE);
+
   manual_command();
 
   return 0;

------------=_1104231466-13995-2--