Author: jtn
Date: Thu Jan 29 01:36:07 2015
New Revision: 27884

URL: http://svn.gna.org/viewcvs/freeciv?rev=27884&view=rev
Log:
Add TRANS comments for translateable ruleset flags.

See gna patch #5758.

Modified:
    branches/S2_5/client/helpdata.c
    branches/S2_5/common/tech.h
    branches/S2_5/common/terrain.h
    branches/S2_5/common/unittype.h

Modified: branches/S2_5/client/helpdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/helpdata.c?rev=27884&r1=27883&r2=27884&view=diff
==============================================================================
--- branches/S2_5/client/helpdata.c     (original)
+++ branches/S2_5/client/helpdata.c     Thu Jan 29 01:36:07 2015
@@ -403,11 +403,13 @@
     case REQ_RANGE_PLAYER:
       if (!preq->negated) {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) tech flag. */
                      _("Requires knowledge of a technology with the "
                        "\"%s\" flag.\n"),
                      
tech_flag_id_translated_name(preq->source.value.techflag));
       } else {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) tech flag. */
                      _("Prevented by knowledge of any technology with the "
                        "\"%s\" flag.\n"),
                      
tech_flag_id_translated_name(preq->source.value.techflag));
@@ -416,11 +418,13 @@
     case REQ_RANGE_WORLD:
       if (!preq->negated) {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) tech flag. */
                      _("Requires that some player knows a technology "
                        "with the \"%s\" flag.\n"),
                      
tech_flag_id_translated_name(preq->source.value.techflag));
       } else {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) tech flag. */
                      _("Requires that no player knows any technology with "
                        "the \"%s\" flag.\n"),
                      
tech_flag_id_translated_name(preq->source.value.techflag));
@@ -1235,10 +1239,12 @@
     case REQ_RANGE_LOCAL:
       if (!preq->negated) {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Requires terrain with the \"%s\" flag on the tile.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
       } else {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Prevented by terrain with the \"%s\" flag on the "
                        "tile.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
@@ -1247,11 +1253,13 @@
     case REQ_RANGE_CADJACENT:
       if (!preq->negated) {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Requires terrain with the \"%s\" flag on the "
                        "tile or a cardinally adjacent tile.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
       } else {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Prevented by terrain with the \"%s\" flag on "
                        "the tile or any cardinally adjacent tile.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
@@ -1260,11 +1268,13 @@
     case REQ_RANGE_ADJACENT:
       if (!preq->negated) {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Requires terrain with the \"%s\" flag on the "
                        "tile or an adjacent tile.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
       } else {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Prevented by terrain with the \"%s\" flag on "
                        "the tile or any adjacent tile.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
@@ -1273,11 +1283,13 @@
     case REQ_RANGE_CITY:
       if (!preq->negated) {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Requires terrain with the \"%s\" flag on a tile "
                        "within the city radius.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
       } else {
         cat_snprintf(buf, bufsz,
+                     /* TRANS: %s is a (translateable) terrain flag. */
                      _("Prevented by terrain with the \"%s\" flag on any tile "
                        "within the city radius.\n"),
                      
terrain_flag_id_translated_name(preq->source.value.terrainflag));
@@ -3937,7 +3949,7 @@
           } else if (unit_type_flag_id_is_valid(unitflag)) {
             /* FIXME: same problems as unitclass */
             cat_snprintf(buf, bufsz,
-                         /* TRANS: %s is a unit type flag */
+                         /* TRANS: %s is a (translateable) unit type flag */
                          Q_("?unitflag:* New %s units will be veteran.\n"),
                          unit_type_flag_id_translated_name(unitflag));
           } else if (unittype != NULL) {

Modified: branches/S2_5/common/tech.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/tech.h?rev=27884&r1=27883&r2=27884&view=diff
==============================================================================
--- branches/S2_5/common/tech.h (original)
+++ branches/S2_5/common/tech.h Thu Jan 29 01:36:07 2015
@@ -74,6 +74,8 @@
 #define SPECENUM_NAME tech_flag_id
 /* player gets extra tech if rearched first */
 #define SPECENUM_VALUE0 TF_BONUS_TECH
+/* TRANS: this and following strings are 'tech flags', which may rarely
+ * be presented to the player in ruleset help text */
 #define SPECENUM_VALUE0NAME N_("Bonus_Tech")
 /* "Settler" unit types can build bridges over rivers */
 #define SPECENUM_VALUE1 TF_BRIDGE

Modified: branches/S2_5/common/terrain.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/terrain.h?rev=27884&r1=27883&r2=27884&view=diff
==============================================================================
--- branches/S2_5/common/terrain.h      (original)
+++ branches/S2_5/common/terrain.h      Thu Jan 29 01:36:07 2015
@@ -112,6 +112,8 @@
 #define SPECENUM_NAME terrain_flag_id
 /* No barbarians summoned on this terrain. */
 #define SPECENUM_VALUE0 TER_NO_BARBS
+/* TRANS: this and following strings are 'terrain flags', which may rarely
+ * be presented to the player in ruleset help text */
 #define SPECENUM_VALUE0NAME N_("NoBarbs")
 /* This terrain cannot be polluted. */
 #define SPECENUM_VALUE1 TER_NO_POLLUTION

Modified: branches/S2_5/common/unittype.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/unittype.h?rev=27884&r1=27883&r2=27884&view=diff
==============================================================================
--- branches/S2_5/common/unittype.h     (original)
+++ branches/S2_5/common/unittype.h     Thu Jan 29 01:36:07 2015
@@ -123,6 +123,8 @@
  */
 #define SPECENUM_NAME unit_type_flag_id
 #define SPECENUM_VALUE0 UTYF_TRADE_ROUTE
+/* TRANS: this and following strings are 'unit type flags', which may rarely
+ * be presented to the player in ruleset help text */
 #define SPECENUM_VALUE0NAME N_("TradeRoute")
 #define SPECENUM_VALUE1 UTYF_HELP_WONDER
 #define SPECENUM_VALUE1NAME N_("HelpWonder")


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to