Author: jtn
Date: Mon Dec 21 10:11:21 2015
New Revision: 31129

URL: http://svn.gna.org/viewcvs/freeciv?rev=31129&view=rev
Log:
Don't hardcode default metaserver URL in online help.

Requested by Marko Lindqvist (cazfi@gna).

See gna bug #23949.

Modified:
    trunk/client/helpdata.c
    trunk/data/helpdata.txt

Modified: trunk/client/helpdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/helpdata.c?rev=31129&r1=31128&r2=31129&view=diff
==============================================================================
--- trunk/client/helpdata.c     (original)
+++ trunk/client/helpdata.c     Mon Dec 21 10:11:21 2015
@@ -348,11 +348,11 @@
       } base_type_iterate_end;
     }
     return TRUE;
-  } else if (0 == strcmp (name, "VeteranLevels")) {
+  } else if (0 == strcmp(name, "VeteranLevels")) {
     return insert_veteran_help(outbuf, outlen, game.veteran,
         _("In this ruleset, the following veteran levels are defined:"),
         _("This ruleset has no default veteran levels defined."));
-  } else if (0 == strcmp (name, "FreecivVersion")) {
+  } else if (0 == strcmp(name, "FreecivVersion")) {
     const char *ver = freeciv_name_version();
 
     cat_snprintf(outbuf, outlen,
@@ -361,6 +361,10 @@
                   * Second %s is client_string, e.g., "gui-gtk-2.0". */
                  _("This is %s, %s client."), ver, client_string);
     insert_client_build_info(outbuf, outlen);
+
+    return TRUE;
+  } else if (0 == strcmp(name, "DefaultMetaserver")) {
+    cat_snprintf(outbuf, outlen, "  %s", FREECIV_META_URL);
 
     return TRUE;
   }

Modified: trunk/data/helpdata.txt
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/helpdata.txt?rev=31129&r1=31128&r2=31129&view=diff
==============================================================================
--- trunk/data/helpdata.txt     (original)
+++ trunk/data/helpdata.txt     Mon Dec 21 10:11:21 2015
@@ -1551,7 +1551,7 @@
 If the server is started with the -m flag, it will report to \
 the metaserver,\
 "), "\
-  http://meta.freeciv.org/metaserver.php\
+$DefaultMetaserver\
 ", _("\
 The client can fetch this page, too: use the Metaserver button \
 in the connection dialog.  If it never shows any results, check \


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

Reply via email to