]> git.pld-linux.org Git - packages/elinks.git/blob - elinks-date-format.patch
- release ...4
[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/po/pl.po.orig 2007-04-15 22:51:02.000000000 +0200
24 +++ elinks-0.11.3/po/pl.po      2007-12-02 01:29:45.701341779 +0100
25 @@ -7428,6 +7428,18 @@
26  msgid "Use EPSV instead of EPRT (passive vs active mode, IPv6 only)."
27  msgstr "U¿ywaj EPSV zamiast EPRT (tryb pasywny kontra aktywny, tylko IPv6)."
28  
29 +#: src/protocol/ftp/ftp.c:1160 src/util/file.c:464
30 +msgid "%b %e  %Y"
31 +msgstr "%e.%m.%Y "
32 +
33 +#: src/protocol/ftp/ftp.c:1162 src/util/file.c:466
34 +msgid "%b %e %H:%M"
35 +msgstr "%e.%m %H:%M"
36 +
37 +#: src/protocol/ftp/ftp.c:1165 src/protocol/ftp/ftp.c:1172 src/util/file.c:473
38 +msgid "             "
39 +msgstr "             "
40 +
41  #. name:
42  #: src/protocol/gopher/gopher.c:46
43  msgid "Gopher"
44 --- elinks-0.12pre1/src/protocol/ftp/ftp.c.old  2008-07-01 18:51:59.000000000 +0200
45 +++ elinks-0.12pre1/src/protocol/ftp/ftp.c      2008-07-01 18:59:09.000000000 +0200
46 @@ -1185,7 +1185,7 @@ display_dir_entry(struct cache_entry *ca
47                 /* LC_TIME=fi_FI.UTF_8 can generate "elo___ 31 23:59"
48                  * where each _ denotes U+00A0 encoded as 0xC2 0xA0,
49                  * thus needing a 19-byte buffer.  */
50 -               unsigned char date[80];
51 +               unsigned char date[MAX_STR_LEN];
52                 int wr;
53  
54                 if (ftp_info->local_time_zone)
55 @@ -1195,16 +1195,16 @@ display_dir_entry(struct cache_entry *ca
56  
57                 if (current_time > when + 6L * 30L * 24L * 60L * 60L
58                     || current_time < when - 60L * 60L)
59 -                       fmt = "%b %e  %Y";
60 +                       fmt = gettext("%b %e  %Y");
61                 else
62 -                       fmt = "%b %e %H:%M";
63 +                       fmt = gettext("%b %e %H:%M");
64  
65                 wr = strftime(date, sizeof(date), fmt, when_tm);
66                 add_cp_html_to_string(&string, format->libc_codepage,
67                                       date, wr);
68         } else
69  #endif
70 -       add_to_string(&string, "            ");
71 +       add_to_string(&string, gettext("             "));
72         /* TODO: Above, the number of spaces might not match the width
73          * of the string generated by strftime.  It depends on the
74          * locale.  So if ELinks knows the timestamps of some FTP
75 @@ -1218,8 +1218,6 @@ display_dir_entry(struct cache_entry *ca
76          * Any solution chosen here should also be applied to the
77          * file: protocol handler.  */
78  
79 -       add_char_to_string(&string, ' ');
80 -
81         if (ftp_info->type == FTP_FILE_DIRECTORY && format->colorize_dir) {
82                 add_to_string(&string, "<font color=\"");
83                 add_to_string(&string, format->dircolor);
This page took 0.05907 seconds and 3 git commands to generate.