1
1

* textconf.c: Don't translate filesystem names.

Этот коммит содержится в:
Pavel Roskin 2002-09-27 01:18:54 +00:00
родитель b181f4519f
Коммит d51fc07a99
2 изменённых файлов: 40 добавлений и 21 удалений

Просмотреть файл

@ -1,5 +1,7 @@
2002-09-26 Pavel Roskin <proski@gnu.org> 2002-09-26 Pavel Roskin <proski@gnu.org>
* textconf.c: Don't translate filesystem names.
* main.h: Remove all references to icons. * main.h: Remove all references to icons.
* panel.h: Likewise. Adjust all dependencies. * panel.h: Likewise. Adjust all dependencies.

Просмотреть файл

@ -22,26 +22,30 @@
#include "global.h" #include "global.h"
static const char * const features [] = {
#ifdef USE_VFS #ifdef USE_VFS
N_("Virtual File System: tarfs, extfs"), static const char *const vfs_supported[] = {
N_(", cpiofs"), "tarfs",
"extfs",
"cpiofs",
#ifdef USE_NETCODE #ifdef USE_NETCODE
N_(", ftpfs"), "ftpfs",
N_(", fish"), "fish",
# ifdef WITH_MCFS # ifdef WITH_MCFS
N_(", mcfs"), "mcfs",
# endif # endif
# ifdef WITH_SMBFS # ifdef WITH_SMBFS
N_(", smbfs"), "smbfs",
# endif # endif
#endif /* USE_NETCODE */ #endif /* USE_NETCODE */
#ifdef USE_EXT2FSLIB #ifdef USE_EXT2FSLIB
N_(", undelfs"), "undelfs",
#endif #endif
"\n", NULL
#endif /* USE_VFS */ };
#endif /* USE_VFS */
static const char *const features[] = {
#ifdef USE_INTERNAL_EDIT #ifdef USE_INTERNAL_EDIT
N_("With builtin Editor\n"), N_("With builtin Editor\n"),
#endif #endif
@ -65,8 +69,8 @@ static const char * const features [] = {
#elif defined(USE_NCURSES) #elif defined(USE_NCURSES)
N_("Using the ncurses library"), N_("Using the ncurses library"),
#else #else
#error "Cannot compile mc without S-Lang or ncurses" #error "Cannot compile mc without S-Lang or ncurses"
#endif /* !HAVE_SLANG && !USE_NCURSES */ #endif /* !HAVE_SLANG && !USE_NCURSES */
"\n", "\n",
@ -77,7 +81,7 @@ static const char * const features [] = {
N_("With subshell support as default"), N_("With subshell support as default"),
# endif # endif
"\n", "\n",
#endif /* !HAVE_SUBSHELL_SUPPORT */ #endif /* !HAVE_SUBSHELL_SUPPORT */
#ifdef WITH_BACKGROUND #ifdef WITH_BACKGROUND
N_("With support for background operations\n"), N_("With support for background operations\n"),
@ -101,18 +105,31 @@ static const char * const features [] = {
N_("With multiple codepages support\n"), N_("With multiple codepages support\n"),
#endif #endif
NULL } NULL
; };
void void
version (int verbose) version (int verbose)
{ {
int i; int i;
fprintf (stdout, _("GNU Midnight Commander %s\n"), VERSION); printf (_("GNU Midnight Commander %s\n"), VERSION);
if (!verbose) if (!verbose)
return; return;
for (i = 0; features [i]; i++) #ifdef USE_VFS
fputs (_(features [i]), stdout); printf (_("Virtual File System:"));
for (i = 0; vfs_supported[i]; i++) {
if (i == 0)
printf (" ");
else
printf (", ");
printf ("%s", _(vfs_supported[i]));
}
printf ("\n");
#endif /* USE_VFS */
for (i = 0; features[i]; i++)
printf ("%s", _(features[i]));
} }