* screen.c (string_file_size): Translate "UP--DIR".

(string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
This commit is contained in:
Pavel Roskin 2002-01-20 20:14:15 +00:00
parent 8b7992c81b
commit 3e8ada15be
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2002-01-20 Pavel Roskin <proski@gnu.org>
* screen.c (string_file_size): Translate "UP--DIR".
(string_file_size_brief): Translate "SUB-DIR" and "SYMLINK".
* dir.c (add_dotdot_to_list): Don't use costly stat() - just put
realistic (i.e. bogus) data to the list.

View File

@ -174,7 +174,7 @@ string_file_size (file_entry *fe, int len)
/* Don't ever show size of ".." since we don't calculate it */
if (!strcmp (fe->fname, "..")) {
strcpy (buffer, N_("UP--DIR"));
strcpy (buffer, _("UP--DIR"));
return buffer;
}
@ -198,12 +198,12 @@ string_file_size_brief (file_entry *fe, int len)
static char buffer [BUF_TINY];
if (S_ISLNK (fe->buf.st_mode) && !fe->f.link_to_dir) {
strcpy (buffer, N_("SYMLINK"));
strcpy (buffer, _("SYMLINK"));
return buffer;
}
if ((S_ISDIR (fe->buf.st_mode) || fe->f.link_to_dir) && strcmp (fe->fname, "..")) {
strcpy (buffer, N_("SUB-DIR"));
strcpy (buffer, _("SUB-DIR"));
return buffer;
}