--- elinks-0.11.3/src/util/file.c.orig 2007-12-02 01:03:26.631355000 +0100 +++ elinks-0.11.3/src/util/file.c 2007-12-02 01:19:06.416911036 +0100 @@ -461,16 +461,16 @@ stat_date(struct string *string, struct if (current_time > when + 6L * 30L * 24L * 60L * 60L || current_time < when - 60L * 60L) - fmt = "%b %e %Y"; + fmt = gettext("%b %e %Y"); else - fmt = "%b %e %H:%M"; + fmt = gettext("%b %e %H:%M"); add_date_to_string(string, fmt, &when); add_char_to_string(string, ' '); return; } #endif - add_to_string(string, " "); + add_to_string(string, gettext(" ")); } --- elinks-0.11.3/po/pl.po.orig 2007-04-15 22:51:02.000000000 +0200 +++ elinks-0.11.3/po/pl.po 2007-12-02 01:29:45.701341779 +0100 @@ -7428,6 +7428,18 @@ msgid "Use EPSV instead of EPRT (passive vs active mode, IPv6 only)." msgstr "Używaj EPSV zamiast EPRT (tryb pasywny kontra aktywny, tylko IPv6)." +#: src/protocol/ftp/ftp.c:1160 src/util/file.c:464 +msgid "%b %e %Y" +msgstr "%e.%m.%Y " + +#: src/protocol/ftp/ftp.c:1162 src/util/file.c:466 +msgid "%b %e %H:%M" +msgstr "%e.%m %H:%M" + +#: src/protocol/ftp/ftp.c:1165 src/protocol/ftp/ftp.c:1172 src/util/file.c:473 +msgid " " +msgstr " " + #. name: #: src/protocol/gopher/gopher.c:46 msgid "Gopher" --- elinks-0.12pre1/src/protocol/ftp/ftp.c.old 2008-07-01 18:51:59.000000000 +0200 +++ elinks-0.12pre1/src/protocol/ftp/ftp.c 2008-07-01 18:59:09.000000000 +0200 @@ -1185,7 +1185,7 @@ display_dir_entry(struct cache_entry *ca /* LC_TIME=fi_FI.UTF_8 can generate "elo___ 31 23:59" * where each _ denotes U+00A0 encoded as 0xC2 0xA0, * thus needing a 19-byte buffer. */ - unsigned char date[80]; + unsigned char date[MAX_STR_LEN]; int wr; if (ftp_info->local_time_zone) @@ -1195,16 +1195,16 @@ display_dir_entry(struct cache_entry *ca if (current_time > when + 6L * 30L * 24L * 60L * 60L || current_time < when - 60L * 60L) - fmt = "%b %e %Y"; + fmt = gettext("%b %e %Y"); else - fmt = "%b %e %H:%M"; + fmt = gettext("%b %e %H:%M"); wr = strftime(date, sizeof(date), fmt, when_tm); add_cp_html_to_string(&string, format->libc_codepage, date, wr); } else #endif - add_to_string(&string, " "); + add_to_string(&string, gettext(" ")); /* TODO: Above, the number of spaces might not match the width * of the string generated by strftime. It depends on the * locale. So if ELinks knows the timestamps of some FTP @@ -1218,8 +1218,6 @@ display_dir_entry(struct cache_entry *ca * Any solution chosen here should also be applied to the * file: protocol handler. */ - add_char_to_string(&string, ' '); - if (ftp_info->type == FTP_FILE_DIRECTORY && format->colorize_dir) { add_to_string(&string, "dircolor);