Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] (PR#2565) Plural form needed for unit types
Home

[Freeciv-Dev] (PR#2565) Plural form needed for unit types

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv@xxxxxxx
Cc: freeciv@xxxxxxx, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#2565) Plural form needed for unit types
From: "Guest via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 17 Dec 2002 07:00:58 -0800
Reply-to: rt@xxxxxxxxxxxxxx

This is a very small and very useful patch that fixes the simplest and 
most visible problem whith this message. It improves what can be 
improved without adding plural forms of unittype names. It is intended 
for the S1_14 branch. Of course it can also be used for HEAD, but that 
can be done later, for example together with #2566. 
 
--- unithand.c.orig     2002-12-17 15:53:08.000000000 +0100 
+++ unithand.c  2002-12-17 15:55:13.000000000 +0100 
@@ -178,5 +178,10 @@ 
   conn_list_do_unbuffer(&pplayer->connections); 
   if (upgraded > 0) { 
-    notify_player(pplayer, _("Game: %d %s upgraded to %s for %d 
gold."),  
+    notify_player 
+      (pplayer, 
+       PL_ 
+       ("Game: %d %s upgraded to %s for %d gold.", 
+        "Game: %d %s upgraded to %s for %d gold.", 
+        upgraded),  
                  upgraded, unit_types[packet->type].name,  
                  unit_types[to_unit].name, cost * upgraded); 
 
--- unithand.c.orig     2002-12-17 15:53:08.000000000 +0100
+++ unithand.c  2002-12-17 15:55:13.000000000 +0100
@@ -178,5 +178,10 @@
   conn_list_do_unbuffer(&pplayer->connections);
   if (upgraded > 0) {
-    notify_player(pplayer, _("Game: %d %s upgraded to %s for %d gold."), 
+    notify_player
+      (pplayer,
+       PL_
+       ("Game: %d %s upgraded to %s for %d gold.",
+        "Game: %d %s upgraded to %s for %d gold.",
+        upgraded), 
                  upgraded, unit_types[packet->type].name, 
                  unit_types[to_unit].name, cost * upgraded);

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