1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
/**********************************************************************
Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
***********************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "fcintl.h"
#include "fc_types.h"
#include "shared.h"
#include "support.h"
#include "version.h"
/**********************************************************************
...
***********************************************************************/
const char *freeciv_name_version(void)
{
static char msgbuf[128];
#if IS_BETA_VERSION
my_snprintf(msgbuf, sizeof (msgbuf), _("Freeciv version %s %s"),
VERSION_STRING, _("(beta version)"));
#else
my_snprintf(msgbuf, sizeof (msgbuf), _("Freeciv version %s"),
VERSION_STRING);
#endif
return msgbuf;
}
/**********************************************************************
...
***********************************************************************/
const char *word_version(void)
{
#if IS_BETA_VERSION
return _("betatest version ");
#else
return _("version ");
#endif
}
/**********************************************************************
Return the BETA message.
If returns NULL, not a beta version.
***********************************************************************/
const char *beta_message(void)
{
#if IS_BETA_VERSION
static char msgbuf[128];
static const char *month[] =
{
NULL,
N_("January"),
N_("February"),
N_("March"),
N_("April"),
N_("May"),
N_("June"),
N_("July"),
N_("August"),
N_("September"),
N_("October"),
N_("November"),
N_("December")
};
my_snprintf (msgbuf, sizeof (msgbuf),
_("THIS IS A BETA VERSION\n"
"Freeciv %s will be released in\n"
"%s, at %s"), /* No full stop here since it would be
immediately following a URL, which
would only cause confusion. */
NEXT_STABLE_VERSION,
_(NEXT_RELEASE_MONTH),
WEBSITE_URL);
return msgbuf;
#else
return NULL;
#endif
}
/***************************************************************************
Return the Freeciv motto.
(The motto is common code:
only one instance of the string in the source;
only one time gettext needs to translate it. --jjm)
***************************************************************************/
const char *freeciv_motto(void)
{
return _("'Cause civilization should be free!");
}
|