mc/src/textconf.c
Pavel Roskin 9c545b2e8f * textconf.c (features): Use longer strings to avoid enforcing
english word ordering on the translations. Capitalize sentences.
From Walery Studennikov: Indicate charset support.
(version): Use fputs, not fprintf.
2001-05-31 23:22:06 +00:00

112 lines
2.1 KiB
C

/* Print features specific for this build */
#include <config.h>
#include <sys/param.h>
#include <stdio.h>
#include <glib.h>
#include "i18n.h"
#include "cmd.h"
#include "textconf.h"
static const char * const features [] = {
N_("Edition: "),
N_("text mode"),
#ifdef HAVE_TEXTMODE_X11_SUPPORT
N_(" with X11 support to read modifiers"),
#endif
"\n",
#ifdef USE_VFS
N_("Virtual File System: tarfs, extfs"),
#ifdef USE_NETCODE
N_(", ftpfs"),
# ifdef HSC_PROXY
N_(" (proxies: hsc proxy)"),
# endif
N_(", mcfs"),
# ifdef USE_TERMNET
N_(" (with termnet support)"),
# endif
# ifdef WITH_SMBFS
N_(", smbfs"),
# endif
#endif
#ifdef USE_EXT2FSLIB
N_(", undelfs"),
#endif
"\n",
#endif
#ifdef USE_INTERNAL_EDIT
N_("With builtin Editor\n"),
#endif
#ifdef HAVE_SLANG
# ifdef HAVE_SYSTEM_SLANG
N_("Using S-Lang library"),
# else
N_("Using system-installed S-Lang library"),
# endif
" ",
#ifdef SLANG_TERMINFO
N_("with terminfo database"),
#elif defined(USE_TERMCAP)
N_("with termcap database"),
#else
N_("with an unknown terminal database"),
#endif
#elif defined(USE_NCURSES)
N_("Using the ncurses library"),
#else
N_("Using old curses library"),
#endif /* !HAVE_SLANG && !USE_NCURSES */
"\n",
#ifdef HAVE_SUBSHELL_SUPPORT
# ifdef SUBSHELL_OPTIONAL
N_("With optional subshell support"),
# else
N_("With subshell support as default"),
# endif
"\n",
#endif /* !HAVE_SUBSHELL_SUPPORT */
#ifdef WITH_BACKGROUND
N_("With support for background operations\n"),
#endif
#ifdef HAVE_LIBGPM
N_("With mouse support on xterm and Linux console\n"),
#else
N_("With mouse support on xterm\n"),
#endif
#ifdef HAVE_CHARSET
N_("With multiple codepages support\n"),
#endif
NULL }
;
void
version (int verbose)
{
char *str;
int i;
fprintf (stderr, _("GNU Midnight Commander %s\n"), VERSION);
if (!verbose)
return;
for (i = 0; features [i]; i++)
fputs (_(features [i]), stderr);
str = guess_message_value (1);
fprintf (stderr, "%s\n", str);
g_free (str);
}