29#include "fc_gitrev_gen.h"
37 static char msgbuf[256];
40#if defined(GITREV) && !defined(FC_GITREV_OFF)
41 fc_snprintf(msgbuf,
sizeof (msgbuf),
_(
"Freeciv version %s %s (%s)"),
42 VERSION_STRING,
_(
"(beta version)"),
45 fc_snprintf(msgbuf,
sizeof (msgbuf),
_(
"Freeciv version %s %s"),
46 VERSION_STRING,
_(
"(beta version)"));
48#elif defined(GITREV) && !defined(FC_GITREV_OFF)
49 fc_snprintf(msgbuf,
sizeof (msgbuf),
_(
"Freeciv version %s (%s)"),
52 fc_snprintf(msgbuf,
sizeof (msgbuf),
_(
"Freeciv version %s"),
65 return _(
"betatest version ");
77#if defined(GITREV) && !defined(FC_GITREV_OFF)
79 bool translate = FC_GITREV1[0] !=
'\0';
82 translate ?
_(FC_GITREV1) : FC_GITREV1, FC_GITREV2);
97 return VERSION_STRING;
107 static char msgbuf[500];
108 static const char *month[] =
125 if (FREECIV_RELEASE_MONTH > 0) {
128 _(
"THIS IS A BETA VERSION\n"
129 "Freeciv %s will be released in %s, at %s"),
133 _(
"THIS IS A BETA VERSION\n"
134 "Freeciv %s will be released at %s"),
135 NEXT_STABLE_VERSION, WIKI_URL);
150 return _(
"THIS IS A DEVELOPMENT VERSION");
179 return _(
"'Cause civilization should be free!");
188 static char buf[500] = {
'\0' };
190 if (buf[0] ==
'\0') {
194 if (ver_rev != NULL) {
195 fc_snprintf(buf,
sizeof(buf),
"%s (%s)", VERSION_STRING, ver_rev);
197 fc_snprintf(buf,
sizeof(buf),
"%s", VERSION_STRING);
int fc_snprintf(char *str, size_t n, const char *format,...)
const char * fc_comparable_version(void)
const char * fc_git_revision(void)
const char * unstable_message(void)
const char * freeciv_name_version(void)
const char * freeciv_datafile_version(void)
const char * beta_message(void)
const char * freeciv_motto(void)
const char * word_version(void)
const char * alpha_message(void)
#define NEXT_RELEASE_MONTH