Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11334) "Other" must be translated
Home

[Freeciv-Dev] (PR#11334) "Other" must be translated

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11334) "Other" must be translated
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Dec 2004 02:44:54 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11334 >

This is used for nations that have no listed category, however it's not 
translated.  Nobody noticed because currently there are no such nations. 
  However this would be a problem for modpacks and such.  The attached 
patch is for the dev branch but can easily be adapted to 2.0.

Note the string is translated when it's used so N_() is all that's 
needed.  I believe it's translated with Q_() so we could use a prefix if 
needed.

-jason

Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.433
diff -u -r1.433 packhand.c
--- client/packhand.c   4 Dec 2004 10:42:12 -0000       1.433
+++ client/packhand.c   4 Dec 2004 10:42:57 -0000
@@ -2596,7 +2596,7 @@
   if (p->category[0] != '\0') {
     pl->category = mystrdup(p->category);
   } else {
-    pl->category = mystrdup("Other");
+    pl->category = mystrdup(N_("Other"));
   }
 
   if (p->legend[0] != '\0') {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11334) "Other" must be translated, Jason Short <=