]> git.pld-linux.org Git - packages/elinks.git/blob - elinks-date-format.patch
- added the chunked.patch
[packages/elinks.git] / elinks-date-format.patch
1 --- elinks-0.11.3/src/util/file.c.orig  2007-12-02 01:03:26.631355000 +0100
2 +++ elinks-0.11.3/src/util/file.c       2007-12-02 01:19:06.416911036 +0100
3 @@ -461,16 +461,16 @@ stat_date(struct string *string, struct 
4  
5                 if (current_time > when + 6L * 30L * 24L * 60L * 60L
6                     || current_time < when - 60L * 60L)
7 -                       fmt = "%b %e  %Y";
8 +                       fmt = gettext("%b %e  %Y");
9                 else
10 -                       fmt = "%b %e %H:%M";
11 +                       fmt = gettext("%b %e %H:%M");
12  
13                 add_date_to_string(string, fmt, &when);
14                 add_char_to_string(string, ' ');
15                 return;
16         }
17  #endif
18 -       add_to_string(string, "             ");
19 +       add_to_string(string, gettext("             "));
20  }
21  
22  
23 --- elinks-0.11.3/src/protocol/ftp/ftp.c.orig   2007-12-02 01:03:26.739361000 +0100
24 +++ elinks-0.11.3/src/protocol/ftp/ftp.c        2007-12-02 01:23:34.644196437 +0100
25 @@ -1147,7 +1147,7 @@ display_dir_entry(struct cache_entry *ca
26                 time_t when = ftp_info->mtime;
27                 struct tm *when_tm;
28                 unsigned char *fmt;
29 -               unsigned char date[13];
30 +               unsigned char date[MAX_STR_LEN];
31                 int wr;
32  
33                 if (ftp_info->local_time_zone)
34 @@ -1157,20 +1157,19 @@ display_dir_entry(struct cache_entry *ca
35  
36                 if (current_time > when + 6L * 30L * 24L * 60L * 60L
37                     || current_time < when - 60L * 60L)
38 -                       fmt = "%b %e  %Y";
39 +                       fmt = gettext("%b %e  %Y");
40                 else
41 -                       fmt = "%b %e %H:%M";
42 +                       fmt = gettext("%b %e %H:%M");
43  
44 -               wr = strftime(date, sizeof(date), fmt, when_tm);
45 -
46 -               while (wr < sizeof(date) - 1) date[wr++] = ' ';
47 -               date[sizeof(date) - 1] = '\0';
48 -               add_to_string(&string, date);
49 +               if (strftime(date, sizeof(date), fmt, when_tm) <= 0)
50 +                       add_to_string(&string, gettext("             "));
51 +               else {
52 +                       add_to_string(&string, date);
53 +                       add_char_to_string(&string, ' ');
54 +               }
55         } else
56  #endif
57 -       add_to_string(&string, "            ");
58 -
59 -       add_char_to_string(&string, ' ');
60 +       add_to_string(&string, gettext("             "));
61  
62         if (ftp_info->type == FTP_FILE_DIRECTORY && colorize_dir) {
63                 add_to_string(&string, "<font color=\"");
64 --- elinks-0.11.3/po/pl.po.orig 2007-04-15 22:51:02.000000000 +0200
65 +++ elinks-0.11.3/po/pl.po      2007-12-02 01:29:45.701341779 +0100
66 @@ -7428,6 +7428,18 @@
67  msgid "Use EPSV instead of EPRT (passive vs active mode, IPv6 only)."
68  msgstr "U¿ywaj EPSV zamiast EPRT (tryb pasywny kontra aktywny, tylko IPv6)."
69  
70 +#: src/protocol/ftp/ftp.c:1160 src/util/file.c:464
71 +msgid "%b %e  %Y"
72 +msgstr "%e.%m.%Y "
73 +
74 +#: src/protocol/ftp/ftp.c:1162 src/util/file.c:466
75 +msgid "%b %e %H:%M"
76 +msgstr "%e.%m %H:%M"
77 +
78 +#: src/protocol/ftp/ftp.c:1165 src/protocol/ftp/ftp.c:1172 src/util/file.c:473
79 +msgid "             "
80 +msgstr "             "
81 +
82  #. name:
83  #: src/protocol/gopher/gopher.c:46
84  msgid "Gopher"
This page took 0.037732 seconds and 3 git commands to generate.