Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11630) civmanual i18n
Home

[Freeciv-Dev] (PR#11630) civmanual i18n

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Cc: freeciv-data@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11630) civmanual i18n
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Dec 2004 02:57:46 -0800
Reply-to: bugs@xxxxxxxxxxx

<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

? 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;

[Prev in Thread] Current Thread [Next in Thread]