1 From: Julien Viard de Galbert <julien@vdg.blogsite.org>
2 Subject: run script to complete gettext patch
4 This patch is generated by saving the files modified by running
5 the script 'lang_po.sh'.
7 Index: webalizer/dns_resolv.c
8 ===================================================================
9 --- webalizer.orig/dns_resolv.c 2011-01-08 20:59:53.000000000 +0100
10 +++ webalizer/dns_resolv.c 2011-01-08 20:59:58.000000000 +0100
12 DB_CREATE, 0644) != 0) )
14 /* Error: Unable to open DNS cache file <filename> */
15 - if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache);
16 + if (verbose) fprintf(stderr,"%s %s\n",_("Error: Unable to open DNS cache file"),dns_cache);
19 return 0; /* disable cache */
21 if (fcntl(dns_fd,F_SETLK,&tmp_flock) < 0) /* and barf if we cant lock */
23 /* Error: Unable to lock DNS cache file <filename> */
24 - if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache);
25 + if (verbose) fprintf(stderr,"%s %s\n",_("Error: Unable to lock DNS cache file"),dns_cache);
26 dns_db->close(dns_db, 0);
32 /* No valid addresses found... */
33 - if (verbose>1) printf("%s\n",msg_dns_none);
34 + if (verbose>1) printf("%s\n",_("None to process"));
35 tmp_flock.l_type=F_UNLCK;
36 fcntl(dns_fd, F_SETLK, &tmp_flock);
37 dns_db->close(dns_db, 0);
39 if (time_me || (verbose>1))
41 if (verbose<2 && time_me) printf("DNS: ");
42 - printf("%llu %s ",listEntries, msg_addresses);
43 + printf("%llu %s ",listEntries, _("addresses"));
45 /* total processing time in seconds */
46 temp_time = difftime(end_time,start_time);
47 if (temp_time==0) temp_time=1;
48 - printf("%s %.0f %s", msg_in, temp_time, msg_seconds);
49 + printf("%s %.0f %s", _("in"), temp_time, _("seconds"));
51 /* calculate records per second */
54 DB_RDONLY, 0644) != 0) )
56 /* Error: Unable to open DNS cache file <filename> */
57 - if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nodb,dns_cache);
58 + if (verbose) fprintf(stderr,"%s %s\n",_("Error: Unable to open DNS cache file"),dns_cache);
59 return 0; /* disable cache */
63 /* Get shared lock on cache file */
64 if (fcntl(dns_fd, F_SETLK, &tmp_flock) < 0)
66 - if (verbose) fprintf(stderr,"%s %s\n",msg_dns_nolk,dns_cache);
67 + if (verbose) fprintf(stderr,"%s %s\n",_("Error: Unable to lock DNS cache file"),dns_cache);
68 dns_db->close(dns_db, 0);
71 Index: webalizer/graphs.c
72 ===================================================================
73 --- webalizer.orig/graphs.c 2011-01-08 20:59:53.000000000 +0100
74 +++ webalizer/graphs.c 2011-01-08 20:59:58.000000000 +0100
79 - i = (strlen(msg_h_xfer)*6);
80 + i = (strlen(_("kB F"))*6);
83 gdImageString(im,gdFontSmall,491-i,237,
84 - (unsigned char *)msg_h_xfer,dkgrey);
85 + (unsigned char *)_("kB F"),dkgrey);
86 gdImageString(im,gdFontSmall,490-i,236,
87 - (unsigned char *)msg_h_xfer,KBYTECOLOR);
88 + (unsigned char *)_("kB F"),KBYTECOLOR);
92 - j = (strlen(msg_h_ixfer)*6);
93 - k = (strlen(msg_h_oxfer)*6);
94 + j = (strlen(_("kB In"))*6);
95 + k = (strlen(_("kB Out"))*6);
96 gdImageString(im,gdFontSmall,491-i-j-k-24,237,
97 - (unsigned char *)msg_h_xfer,dkgrey);
98 + (unsigned char *)_("kB F"),dkgrey);
99 gdImageString(im,gdFontSmall,490-i-j-k-24,236,
100 - (unsigned char *)msg_h_xfer,KBYTECOLOR);
101 + (unsigned char *)_("kB F"),KBYTECOLOR);
102 gdImageString(im,gdFontSmall,491-k-j-21,237,"/",dkgrey);
103 gdImageString(im,gdFontSmall,490-k-j-21,236,"/",black);
104 gdImageString(im,gdFontSmall,491-k-j-12,237,
105 - (unsigned char *)msg_h_ixfer,dkgrey);
106 + (unsigned char *)_("kB In"),dkgrey);
107 gdImageString(im,gdFontSmall,490-k-j-12,236,
108 - (unsigned char *)msg_h_ixfer,IKBYTECOLOR);
109 + (unsigned char *)_("kB In"),IKBYTECOLOR);
110 gdImageString(im,gdFontSmall,491-k-9,237,"/",dkgrey);
111 gdImageString(im,gdFontSmall,490-k-9,236,"/",black);
112 gdImageString(im,gdFontSmall,491-k,237,
113 - (unsigned char *)msg_h_oxfer,dkgrey);
114 + (unsigned char *)_("kB Out"),dkgrey);
115 gdImageString(im,gdFontSmall,490-k,236,
116 - (unsigned char *)msg_h_oxfer,OKBYTECOLOR);
117 + (unsigned char *)_("kB Out"),OKBYTECOLOR);
119 /* Sites/Visits Legend */
120 - i = (strlen(msg_h_visits)*6);
121 - j = (strlen(msg_h_sites)*6);
122 + i = (strlen(_("Visits"))*6);
123 + j = (strlen(_("Sites"))*6);
124 gdImageString(im,gdFontSmall,491-i-j-12,11,
125 - (unsigned char *)msg_h_visits,dkgrey);
126 + (unsigned char *)_("Visits"),dkgrey);
127 gdImageString(im,gdFontSmall,490-i-j-12,10,
128 - (unsigned char *)msg_h_visits,VISITCOLOR);
129 + (unsigned char *)_("Visits"),VISITCOLOR);
130 gdImageString(im,gdFontSmall,491-j-9,11,(unsigned char *)"/",dkgrey);
131 gdImageString(im,gdFontSmall,490-j-9,10,(unsigned char *)"/",black);
132 gdImageString(im,gdFontSmall,491-j,11,
133 - (unsigned char *)msg_h_sites,dkgrey);
134 + (unsigned char *)_("Sites"),dkgrey);
135 gdImageString(im,gdFontSmall,490-j,10,
136 - (unsigned char *)msg_h_sites,SITECOLOR);
137 + (unsigned char *)_("Sites"),SITECOLOR);
139 /* Hits/Files/Pages Legend */
140 - i = (strlen(msg_h_pages)*6);
141 - j = (strlen(msg_h_files)*6);
142 + i = (strlen(_("Pages"))*6);
143 + j = (strlen(_("Files"))*6);
144 gdImageStringUp(im,gdFontSmall,6,231,
145 - (unsigned char *)msg_h_pages,dkgrey);
146 + (unsigned char *)_("Pages"),dkgrey);
147 gdImageStringUp(im,gdFontSmall,5,230,
148 - (unsigned char *)msg_h_pages,PAGECOLOR);
149 + (unsigned char *)_("Pages"),PAGECOLOR);
150 gdImageStringUp(im,gdFontSmall,6,231-i-3,(unsigned char *)"/",dkgrey);
151 gdImageStringUp(im,gdFontSmall,5,230-i-3,(unsigned char *)"/",black);
152 gdImageStringUp(im,gdFontSmall,6,231-i-12,
153 - (unsigned char *)msg_h_files,dkgrey);
154 + (unsigned char *)_("Files"),dkgrey);
155 gdImageStringUp(im,gdFontSmall,5,230-i-12,
156 - (unsigned char *)msg_h_files,FILECOLOR);
157 + (unsigned char *)_("Files"),FILECOLOR);
158 gdImageStringUp(im,gdFontSmall,6,231-i-j-15,(unsigned char *)"/",dkgrey);
159 gdImageStringUp(im,gdFontSmall,5,230-i-j-15,(unsigned char *)"/",black);
160 gdImageStringUp(im,gdFontSmall,6,231-i-j-24,
161 - (unsigned char *)msg_h_hits,dkgrey);
162 + (unsigned char *)_("Hits"),dkgrey);
163 gdImageStringUp(im,gdFontSmall,5,230-i-j-24,
164 - (unsigned char *)msg_h_hits,HITCOLOR);
165 + (unsigned char *)_("Hits"),HITCOLOR);
168 /* Now draw data areas */
170 if ( S_ISLNK(out_stat.st_mode) )
173 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,fname);
174 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),fname);
178 @@ -498,60 +498,60 @@
181 gdImageStringUp(im,gdFontSmall,494,376,
182 - (unsigned char *)msg_h_xfer,dkgrey);
183 + (unsigned char *)_("kB F"),dkgrey);
184 gdImageStringUp(im,gdFontSmall,493,375,
185 - (unsigned char *)msg_h_xfer,KBYTECOLOR);
186 + (unsigned char *)_("kB F"),KBYTECOLOR);
189 - i=(strlen(msg_h_xfer)*6);
190 - j=(strlen(msg_h_ixfer)*6);
191 + i=(strlen(_("kB F"))*6);
192 + j=(strlen(_("kB In"))*6);
193 gdImageStringUp(im,gdFontSmall,494,376-i-3,"/",dkgrey);
194 gdImageStringUp(im,gdFontSmall,493,375-i-3,"/",black);
195 gdImageStringUp(im,gdFontSmall,494,376-i-12,
196 - (unsigned char *)msg_h_ixfer,dkgrey);
197 + (unsigned char *)_("kB In"),dkgrey);
198 gdImageStringUp(im,gdFontSmall,493,375-i-12,
199 - (unsigned char *)msg_h_ixfer,IKBYTECOLOR);
200 + (unsigned char *)_("kB In"),IKBYTECOLOR);
201 gdImageStringUp(im,gdFontSmall,494,376-i-j-15,"/",dkgrey);
202 gdImageStringUp(im,gdFontSmall,493,375-i-j-15,"/",black);
203 gdImageStringUp(im,gdFontSmall,494,376-i-j-24,
204 - (unsigned char *)msg_h_oxfer,dkgrey);
205 + (unsigned char *)_("kB Out"),dkgrey);
206 gdImageStringUp(im,gdFontSmall,493,375-i-j-24,
207 - (unsigned char *)msg_h_oxfer,OKBYTECOLOR);
208 + (unsigned char *)_("kB Out"),OKBYTECOLOR);
211 /* Sites/Visits Legend */
212 - i = (strlen(msg_h_sites)*6);
213 + i = (strlen(_("Sites"))*6);
214 gdImageStringUp(im,gdFontSmall,494,256,
215 - (unsigned char *)msg_h_sites,dkgrey);
216 + (unsigned char *)_("Sites"),dkgrey);
217 gdImageStringUp(im,gdFontSmall,493,255,
218 - (unsigned char *)msg_h_sites,SITECOLOR);
219 + (unsigned char *)_("Sites"),SITECOLOR);
220 gdImageStringUp(im,gdFontSmall,494,256-i-3,(unsigned char *)"/",dkgrey);
221 gdImageStringUp(im,gdFontSmall,493,255-i-3,(unsigned char *)"/",black);
222 gdImageStringUp(im,gdFontSmall,494,256-i-12,
223 - (unsigned char *)msg_h_visits,dkgrey);
224 + (unsigned char *)_("Visits"),dkgrey);
225 gdImageStringUp(im,gdFontSmall,493,255-i-12,
226 - (unsigned char *)msg_h_visits,VISITCOLOR);
227 + (unsigned char *)_("Visits"),VISITCOLOR);
229 /* Pages/Files/Hits Legend */
230 - s = ( i=(strlen(msg_h_pages)*6) )+
231 - ( j=(strlen(msg_h_files)*6) )+
232 - ( strlen(msg_h_hits)*6 )+ 52;
233 + s = ( i=(strlen(_("Pages"))*6) )+
234 + ( j=(strlen(_("Files"))*6) )+
235 + ( strlen(_("Hits"))*6 )+ 52;
236 gdImageStringUp(im,gdFontSmall,494,s,
237 - (unsigned char *)msg_h_pages,dkgrey);
238 + (unsigned char *)_("Pages"),dkgrey);
239 gdImageStringUp(im,gdFontSmall,493,s-1,
240 - (unsigned char *)msg_h_pages,PAGECOLOR);
241 + (unsigned char *)_("Pages"),PAGECOLOR);
242 gdImageStringUp(im,gdFontSmall,494,s-i-3,(unsigned char *)"/",dkgrey);
243 gdImageStringUp(im,gdFontSmall,493,s-i-4,(unsigned char *)"/",black);
244 gdImageStringUp(im,gdFontSmall,494,s-i-12,
245 - (unsigned char *)msg_h_files,dkgrey);
246 + (unsigned char *)_("Files"),dkgrey);
247 gdImageStringUp(im,gdFontSmall,493,s-i-13,
248 - (unsigned char *)msg_h_files,FILECOLOR);
249 + (unsigned char *)_("Files"),FILECOLOR);
250 gdImageStringUp(im,gdFontSmall,494,s-i-j-15,(unsigned char *)"/",dkgrey);
251 gdImageStringUp(im,gdFontSmall,493,s-i-j-16,(unsigned char *)"/",black);
252 gdImageStringUp(im,gdFontSmall,494,s-i-j-24,
253 - (unsigned char *)msg_h_hits,dkgrey);
254 + (unsigned char *)_("Hits"),dkgrey);
255 gdImageStringUp(im,gdFontSmall,493,s-i-j-25,
256 - (unsigned char *)msg_h_hits,HITCOLOR);
257 + (unsigned char *)_("Hits"),HITCOLOR);
262 if ( S_ISLNK(out_stat.st_mode) )
265 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,fname);
266 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),fname);
270 @@ -758,25 +758,25 @@
271 if (graph_legend) /* print color coded legends? */
273 /* Pages/Files/Hits Legend */
274 - s = ( i=(strlen(msg_h_pages)*6) )+
275 - ( j=(strlen(msg_h_files)*6) )+
276 - ( strlen(msg_h_hits)*6 )+ 52;
277 + s = ( i=(strlen(_("Pages"))*6) )+
278 + ( j=(strlen(_("Files"))*6) )+
279 + ( strlen(_("Hits"))*6 )+ 52;
280 gdImageStringUp(im,gdFontSmall,494,s,
281 - (unsigned char *)msg_h_pages,dkgrey);
282 + (unsigned char *)_("Pages"),dkgrey);
283 gdImageStringUp(im,gdFontSmall,493,s-1,
284 - (unsigned char *)msg_h_pages,PAGECOLOR);
285 + (unsigned char *)_("Pages"),PAGECOLOR);
286 gdImageStringUp(im,gdFontSmall,494,s-i-3,(unsigned char *)"/",dkgrey);
287 gdImageStringUp(im,gdFontSmall,493,s-i-4,(unsigned char *)"/",black);
288 gdImageStringUp(im,gdFontSmall,494,s-i-12,
289 - (unsigned char *)msg_h_files,dkgrey);
290 + (unsigned char *)_("Files"),dkgrey);
291 gdImageStringUp(im,gdFontSmall,493,s-i-13,
292 - (unsigned char *)msg_h_files,FILECOLOR);
293 + (unsigned char *)_("Files"),FILECOLOR);
294 gdImageStringUp(im,gdFontSmall,494,s-i-j-15,(unsigned char *)"/",dkgrey);
295 gdImageStringUp(im,gdFontSmall,493,s-i-j-16,(unsigned char *)"/",black);
296 gdImageStringUp(im,gdFontSmall,494,s-i-j-24,
297 - (unsigned char *)msg_h_hits,dkgrey);
298 + (unsigned char *)_("Hits"),dkgrey);
299 gdImageStringUp(im,gdFontSmall,493,s-i-j-25,
300 - (unsigned char *)msg_h_hits,HITCOLOR);
301 + (unsigned char *)_("Hits"),HITCOLOR);
306 if ( S_ISLNK(out_stat.st_mode) )
309 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,fname);
310 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),fname);
316 gdImageFill(im, gdata.mx, gdata.my, white);
317 snprintf(buffer,sizeof(buffer),"%s (%d%%)",
318 - msg_h_other,100-(int)(s_arc*100));
319 + _("Other"),100-(int)(s_arc*100));
320 x=480-(strlen(buffer)*7);
321 gdImageString(im,gdFontMediumBold, x+1, y+1,
322 (unsigned char *)buffer, black);
324 if ( S_ISLNK(out_stat.st_mode) )
327 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,fname);
328 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),fname);
332 Index: webalizer/hashtab.c
333 ===================================================================
334 --- webalizer.orig/hashtab.c 2011-01-08 20:59:30.000000000 +0100
335 +++ webalizer/hashtab.c 2011-01-08 20:59:58.000000000 +0100
340 - fprintf(stderr,"[new_hnode] %s (%d)",msg_big_one,strlen(str));
341 + fprintf(stderr,"[new_hnode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
343 fprintf(stderr,":\n--> %s",str);
344 fprintf(stderr,"\n");
349 - fprintf(stderr,"[new_unode] %s (%d)",msg_big_one,strlen(str));
350 + fprintf(stderr,"[new_unode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
352 fprintf(stderr,":\n--> %s",str);
353 fprintf(stderr,"\n");
358 - fprintf(stderr,"[new_rnode] %s (%d)",msg_big_one,strlen(str));
359 + fprintf(stderr,"[new_rnode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
361 fprintf(stderr,":\n--> %s",str);
362 fprintf(stderr,"\n");
367 - fprintf(stderr,"[new_anode] %s (%d)",msg_big_one,strlen(str));
368 + fprintf(stderr,"[new_anode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
370 fprintf(stderr,":\n--> %s",str);
371 fprintf(stderr,"\n");
376 - fprintf(stderr,"[new_snode] %s (%d)",msg_big_one,strlen(str));
377 + fprintf(stderr,"[new_snode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
379 fprintf(stderr,":\n--> %s",str);
380 fprintf(stderr,"\n");
385 - fprintf(stderr,"[new_inode] %s (%d)",msg_big_one,strlen(str));
386 + fprintf(stderr,"[new_inode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
388 fprintf(stderr,":\n--> %s",str);
389 fprintf(stderr,"\n");
390 @@ -1006,7 +1006,7 @@
394 - fprintf(stderr,"[new_dnode] %s (%d)",msg_big_one,strlen(str));
395 + fprintf(stderr,"[new_dnode] %s (%d)",_("Warning: String exceeds storage size"),strlen(str));
397 fprintf(stderr,":\n--> %s",str);
398 fprintf(stderr,"\n");
399 Index: webalizer/linklist.c
400 ===================================================================
401 --- webalizer.orig/linklist.c 2011-01-08 20:36:44.000000000 +0100
402 +++ webalizer/linklist.c 2011-01-08 20:59:58.000000000 +0100
404 if (sizeof(newptr->string) < strlen(str))
407 - fprintf(stderr,"[new_nlist] %s\n",msg_big_one);
408 + fprintf(stderr,"[new_nlist] %s\n",_("Warning: String exceeds storage size"));
410 if (( newptr = malloc(sizeof(struct nlist))) != NULL)
411 {strncpy(newptr->string, str, sizeof(newptr->string));newptr->next=NULL;}
413 sizeof(newptr->name) < strlen(name))
416 - fprintf(stderr,"[new_glist] %s\n",msg_big_one);
417 + fprintf(stderr,"[new_glist] %s\n",_("Warning: String exceeds storage size"));
419 if (( newptr = malloc(sizeof(struct glist))) != NULL)
421 Index: webalizer/output.c
422 ===================================================================
423 --- webalizer.orig/output.c 2011-01-08 20:59:53.000000000 +0100
424 +++ webalizer/output.c 2011-01-08 20:59:58.000000000 +0100
426 fprintf(out_fp,"<!-- -->\n");
427 fprintf(out_fp,"<!-- *** Generated: %s *** -->\n\n",cur_time());
429 - fprintf(out_fp,"<HTML lang=\"%s\">\n<HEAD>\n",langcode);
430 + fprintf(out_fp,"<HTML lang=\"%s\">\n<HEAD>\n",_("en"));
431 fprintf(out_fp," <TITLE>%s %s - %s</TITLE>\n",
432 - report_title, hname, (period)?period:msg_main_per);
433 + report_title, hname, (period)?period:_("Summary by Month"));
437 @@ -215,10 +215,10 @@
439 fprintf(out_fp,"<H2>%s %s</H2>\n",report_title, hname);
441 - fprintf(out_fp,"<SMALL><STRONG>\n%s: %s<BR>\n",msg_hhdr_sp,period);
442 + fprintf(out_fp,"<SMALL><STRONG>\n%s: %s<BR>\n",_("Summary Period"),period);
444 - fprintf(out_fp,"<SMALL><STRONG>\n%s<BR>\n",msg_main_per);
445 - fprintf(out_fp,"%s %s<BR>\n</STRONG></SMALL>\n",msg_hhdr_gt,cur_time());
446 + fprintf(out_fp,"<SMALL><STRONG>\n%s<BR>\n",_("Summary by Month"));
447 + fprintf(out_fp,"%s %s<BR>\n</STRONG></SMALL>\n",_("Generated"),cur_time());
455 - printf("%s %s %d\n",msg_gen_rpt, Q_(l_month[cur_month-1]), cur_year);
456 + printf("%s %s %d\n",_("Generating report for"), Q_(l_month[cur_month-1]), cur_year);
458 /* fill in filenames */
459 snprintf(html_fname,sizeof(html_fname),"usage_%04d%02d.%s",
463 snprintf(dtitle,sizeof(dtitle),"%s %s %d",
464 - msg_hmth_du,Q_(l_month[cur_month-1]),cur_year);
465 + _("Daily usage for"),Q_(l_month[cur_month-1]),cur_year);
466 month_graph6 ( png1_fname, /* filename */
467 dtitle, /* graph title */
468 cur_month, /* graph month */
472 snprintf(htitle,sizeof(htitle),"%s %s %d",
473 - msg_hmth_hu,Q_(l_month[cur_month-1]),cur_year);
474 + _("Hourly usage for"),Q_(l_month[cur_month-1]),cur_year);
475 day_graph3( png2_fname,
479 {qsort(u_array,a_ctr,sizeof(UNODEPTR),qs_url_cmpx); top_entry_table(1);}
482 - else if (verbose) fprintf(stderr,"%s [u_array]\n",msg_nomem_tu); /* err */
483 + else if (verbose) fprintf(stderr,"%s [u_array]\n",_("Can't allocate enough memory, Top URLs disabled!")); /* err */
486 /* do hostname (sites) related stuff here, sorting appropriately... */
491 - else if (verbose) fprintf(stderr,"%s [h_array]\n",msg_nomem_ts); /* err */
492 + else if (verbose) fprintf(stderr,"%s [h_array]\n",_("Can't allocate enough memory, Top Sites disabled!")); /* err */
495 /* do referrer related stuff here, sorting appropriately... */
500 - else if (verbose) fprintf(stderr,"%s [r_array]\n",msg_nomem_tr); /* err */
501 + else if (verbose) fprintf(stderr,"%s [r_array]\n",_("Can't allocate enough memory, Top Referrers disabled!")); /* err */
504 /* do search string related stuff, sorting appropriately... */
509 - else if (verbose) fprintf(stderr,"%s [s_array]\n",msg_nomem_tsr);/* err */
510 + else if (verbose) fprintf(stderr,"%s [s_array]\n",_("Can't allocate enough memory, Top Search Strings disabled!"));/* err */
513 /* do ident (username) related stuff here, sorting appropriately... */
518 - else if (verbose) fprintf(stderr,"%s [i_array]\n",msg_nomem_ti); /* err */
519 + else if (verbose) fprintf(stderr,"%s [i_array]\n",_("Can't allocate enough memory, Top Usernames disabled!")); /* err */
522 /* do user agent related stuff here, sorting appropriately... */
527 - else if (verbose) fprintf(stderr,"%s [a_array]\n",msg_nomem_ta); /* err */
528 + else if (verbose) fprintf(stderr,"%s [a_array]\n",_("Can't allocate enough memory, Top User Agents disabled!")); /* err */
531 if (ntop_ctrys ) top_ctry_table(); /* top countries table */
532 @@ -479,27 +479,27 @@
534 fprintf(out_fp,"<SMALL>\n");
535 if (daily_stats || daily_graph)
536 - fprintf(out_fp,"<A HREF=\"#DAYSTATS\">[%s]</A>\n",msg_hlnk_ds);
537 + fprintf(out_fp,"<A HREF=\"#DAYSTATS\">[%s]</A>\n",_("Daily Statistics"));
538 if (hourly_stats || hourly_graph)
539 - fprintf(out_fp,"<A HREF=\"#HOURSTATS\">[%s]</A>\n",msg_hlnk_hs);
540 + fprintf(out_fp,"<A HREF=\"#HOURSTATS\">[%s]</A>\n",_("Hourly Statistics"));
541 if (ntop_urls || ntop_urlsK)
542 - fprintf(out_fp,"<A HREF=\"#TOPURLS\">[%s]</A>\n",msg_hlnk_u);
543 + fprintf(out_fp,"<A HREF=\"#TOPURLS\">[%s]</A>\n",_("URLs"));
545 - fprintf(out_fp,"<A HREF=\"#TOPENTRY\">[%s]</A>\n",msg_hlnk_en);
546 + fprintf(out_fp,"<A HREF=\"#TOPENTRY\">[%s]</A>\n",_("Entry"));
548 - fprintf(out_fp,"<A HREF=\"#TOPEXIT\">[%s]</A>\n",msg_hlnk_ex);
549 + fprintf(out_fp,"<A HREF=\"#TOPEXIT\">[%s]</A>\n",_("Exit"));
550 if (ntop_sites || ntop_sitesK)
551 - fprintf(out_fp,"<A HREF=\"#TOPSITES\">[%s]</A>\n",msg_hlnk_s);
552 + fprintf(out_fp,"<A HREF=\"#TOPSITES\">[%s]</A>\n",_("Sites"));
553 if (ntop_refs && t_ref)
554 - fprintf(out_fp,"<A HREF=\"#TOPREFS\">[%s]</A>\n",msg_hlnk_r);
555 + fprintf(out_fp,"<A HREF=\"#TOPREFS\">[%s]</A>\n",_("Referrers"));
557 - fprintf(out_fp,"<A HREF=\"#TOPSEARCH\">[%s]</A>\n",msg_hlnk_sr);
558 + fprintf(out_fp,"<A HREF=\"#TOPSEARCH\">[%s]</A>\n",_("Search"));
559 if (ntop_users && t_user)
560 - fprintf(out_fp,"<A HREF=\"#TOPUSERS\">[%s]</A>\n",msg_hlnk_i);
561 + fprintf(out_fp,"<A HREF=\"#TOPUSERS\">[%s]</A>\n",_("Users"));
562 if (ntop_agents && t_agent)
563 - fprintf(out_fp,"<A HREF=\"#TOPAGENTS\">[%s]</A>\n",msg_hlnk_a);
564 + fprintf(out_fp,"<A HREF=\"#TOPAGENTS\">[%s]</A>\n",_("Agents"));
566 - fprintf(out_fp,"<A HREF=\"#TOPCTRYS\">[%s]</A>\n",msg_hlnk_c);
567 + fprintf(out_fp,"<A HREF=\"#TOPCTRYS\">[%s]</A>\n",_("Countries"));
568 fprintf(out_fp,"</SMALL>\n<P>\n");
571 @@ -529,36 +529,36 @@
572 fprintf(out_fp,"<TABLE WIDTH=510 BORDER=2 CELLSPACING=1 CELLPADDING=1>\n");
573 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
574 fprintf(out_fp,"<TR><TH COLSPAN=3 ALIGN=center BGCOLOR=\"%s\">" \
575 - "%s %s %d</TH></TR>\n",GREY,msg_mtot_ms,Q_(l_month[cur_month-1]),cur_year);
576 + "%s %s %d</TH></TR>\n",GREY,_("Monthly Statistics for"),Q_(l_month[cur_month-1]),cur_year);
577 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
579 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
580 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
581 - "</FONT></TD></TR>\n",msg_mtot_th,t_hit);
582 + "</FONT></TD></TR>\n",_("Total Hits"),t_hit);
584 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
585 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
586 - "</FONT></TD></TR>\n",msg_mtot_tf,t_file);
587 + "</FONT></TD></TR>\n",_("Total Files"),t_file);
589 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s %s</FONT></TD>\n" \
590 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
591 - "</FONT></TD></TR>\n",msg_h_total, msg_h_pages, t_page);
592 + "</FONT></TD></TR>\n",_("Total"), _("Pages"), t_page);
594 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s %s</FONT></TD>\n" \
595 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
596 - "</FONT></TD></TR>\n",msg_h_total, msg_h_visits, t_visit);
597 + "</FONT></TD></TR>\n",_("Total"), _("Visits"), t_visit);
599 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
600 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%.0f</B>" \
601 - "</FONT></TD></TR>\n",msg_mtot_tx,t_xfer/1024);
602 + "</FONT></TD></TR>\n",_("Total kB Files"),t_xfer/1024);
605 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
606 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%.0f</B>" \
607 - "</FONT></TD></TR>\n",msg_mtot_ix,t_ixfer/1024);
608 + "</FONT></TD></TR>\n",_("Total kB In"),t_ixfer/1024);
609 fprintf(out_fp,"<TR><TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
610 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%.0f</B>" \
611 - "</FONT></TD></TR>\n",msg_mtot_ox,t_oxfer/1024);
612 + "</FONT></TD></TR>\n",_("Total kB Out"),t_oxfer/1024);
614 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
615 /**********************************************/
616 @@ -566,30 +566,30 @@
617 fprintf(out_fp,"<TR>" \
618 "<TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
619 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
620 - "</FONT></TD></TR>\n",msg_mtot_us,t_site);
621 + "</FONT></TD></TR>\n",_("Total Unique Sites"),t_site);
623 fprintf(out_fp,"<TR>" \
624 "<TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
625 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
626 - "</FONT></TD></TR>\n",msg_mtot_uu,t_url);
627 + "</FONT></TD></TR>\n",_("Total Unique URLs"),t_url);
628 /* Unique Referrers */
630 fprintf(out_fp,"<TR>" \
631 "<TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
632 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
633 - "</FONT></TD></TR>\n",msg_mtot_ur,t_ref);
634 + "</FONT></TD></TR>\n",_("Total Unique Referrers"),t_ref);
635 /* Unique Usernames */
637 fprintf(out_fp,"<TR>" \
638 "<TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
639 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
640 - "</FONT></TD></TR>\n",msg_mtot_ui,t_user);
641 + "</FONT></TD></TR>\n",_("Total Unique Usernames"),t_user);
644 fprintf(out_fp,"<TR>" \
645 "<TD WIDTH=380><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
646 "<TD ALIGN=right COLSPAN=2><FONT SIZE=\"-1\"><B>%llu</B>" \
647 - "</FONT></TD></TR>\n",msg_mtot_ua,t_agent);
648 + "</FONT></TD></TR>\n",_("Total Unique User Agents"),t_agent);
649 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
650 /**********************************************/
651 /* Hourly/Daily avg/max totals */
652 @@ -599,50 +599,50 @@
653 "<FONT SIZE=-1>%s </FONT></TH>\n" \
654 "<TH WIDTH=65 BGCOLOR=\"%s\" ALIGN=right>" \
655 "<FONT SIZE=-1>%s </FONT></TH></TR>\n",
656 - GREY,GREY,GREY,msg_h_avg,GREY,msg_h_max);
657 + GREY,GREY,GREY,_("Avg"),GREY,_("Max"));
658 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
659 /* Max/Avg Hits per Hour */
660 fprintf(out_fp,"<TR>" \
661 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
662 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%llu</B></FONT></TD>\n" \
663 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%llu</B>" \
664 - "</FONT></TD></TR>\n",msg_mtot_mhh, t_hit/(24*days_in_month),mh_hit);
665 + "</FONT></TD></TR>\n",_("Hits per Hour"), t_hit/(24*days_in_month),mh_hit);
666 /* Max/Avg Hits per Day */
667 fprintf(out_fp,"<TR>" \
668 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
669 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%llu</B></FONT></TD>\n" \
670 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%llu</B>" \
671 - "</FONT></TD></TR>\n",msg_mtot_mhd, t_hit/days_in_month, max_hits);
672 + "</FONT></TD></TR>\n",_("Hits per Day"), t_hit/days_in_month, max_hits);
673 /* Max/Avg Files per Day */
674 fprintf(out_fp,"<TR>" \
675 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
676 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%llu</B></FONT></TD>\n" \
677 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%llu</B>" \
678 - "</FONT></TD></TR>\n",msg_mtot_mfd, t_file/days_in_month,max_files);
679 + "</FONT></TD></TR>\n",_("Files per Day"), t_file/days_in_month,max_files);
680 /* Max/Avg Pages per Day */
681 fprintf(out_fp,"<TR>" \
682 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
683 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%llu</B></FONT></TD>\n" \
684 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%llu</B>" \
685 - "</FONT></TD></TR>\n",msg_mtot_mpd, t_page/days_in_month,max_pages);
686 + "</FONT></TD></TR>\n",_("Pages per Day"), t_page/days_in_month,max_pages);
687 /* Max/Avg Sites per Day */
688 fprintf(out_fp,"<TR>" \
689 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
690 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%llu</B></FONT></TD>\n" \
691 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%llu</B>" \
692 - "</FONT></TD></TR>\n",msg_mtot_msd, t_site/days_in_month,max_sites);
693 + "</FONT></TD></TR>\n",_("Sites per Day"), t_site/days_in_month,max_sites);
694 /* Max/Avg Visits per Day */
695 fprintf(out_fp,"<TR>" \
696 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
697 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%llu</B></FONT></TD>\n" \
698 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%llu</B>" \
699 - "</FONT></TD></TR>\n",msg_mtot_mvd, t_visit/days_in_month,max_visits);
700 + "</FONT></TD></TR>\n",_("Visits per Day"), t_visit/days_in_month,max_visits);
701 /* Max/Avg KBytes per Day */
702 fprintf(out_fp,"<TR>" \
703 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
704 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%.0f</B></FONT></TD>\n" \
705 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%.0f</B>" \
706 - "</FONT></TD></TR>\n",msg_mtot_mkd,
707 + "</FONT></TD></TR>\n",_("kB Files per Day"),
708 (t_xfer/1024)/days_in_month,max_xfer/1024);
711 @@ -650,20 +650,20 @@
712 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
713 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%.0f</B></FONT></TD>\n" \
714 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%.0f</B>" \
715 - "</FONT></TD></TR>\n",msg_mtot_ikd,
716 + "</FONT></TD></TR>\n",_("kB In per Day"),
717 (t_ixfer/1024)/days_in_month,max_ixfer/1024);
718 fprintf(out_fp,"<TR>" \
719 "<TD><FONT SIZE=\"-1\">%s</FONT></TD>\n" \
720 "<TD ALIGN=right WIDTH=65><FONT SIZE=\"-1\"><B>%.0f</B></FONT></TD>\n" \
721 "<TD WIDTH=65 ALIGN=right><FONT SIZE=-1><B>%.0f</B>" \
722 - "</FONT></TD></TR>\n",msg_mtot_okd,
723 + "</FONT></TD></TR>\n",_("kB Out per Day"),
724 (t_oxfer/1024)/days_in_month,max_oxfer/1024);
726 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
727 /**********************************************/
728 /* response code totals */
729 fprintf(out_fp,"<TR><TH COLSPAN=3 ALIGN=center BGCOLOR=\"%s\">\n" \
730 - "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",GREY,msg_mtot_rc);
731 + "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",GREY,_("Hits by Response Code"));
732 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
733 for (i=0;i<TOTAL_RC;i++)
736 /* Daily statistics for ... */
737 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" COLSPAN=%d ALIGN=center>" \
738 "%s %s %d</TH></TR>\n",
739 - GREY,(dump_inout==0)?13:17,msg_dtot_ds,Q_(l_month[cur_month-1]), cur_year);
740 + GREY,(dump_inout==0)?13:17,_("Daily Statistics for"),Q_(l_month[cur_month-1]), cur_year);
741 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
742 fprintf(out_fp,"<TR><TH ALIGN=center BGCOLOR=\"%s\">" \
743 "<FONT SIZE=\"-1\">%s</FONT></TH>\n" \
744 @@ -710,13 +710,13 @@
745 "<FONT SIZE=\"-1\">%s</FONT></TH>\n" \
746 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
747 "<FONT SIZE=\"-1\">%s</FONT></TH>",
749 - HITCOLOR, msg_h_hits,
750 - FILECOLOR, msg_h_files,
751 - PAGECOLOR, msg_h_pages,
752 - VISITCOLOR, msg_h_visits,
753 - SITECOLOR, msg_h_sites,
754 - KBYTECOLOR, msg_h_xfer);
756 + HITCOLOR, _("Hits"),
757 + FILECOLOR, _("Files"),
758 + PAGECOLOR, _("Pages"),
759 + VISITCOLOR, _("Visits"),
760 + SITECOLOR, _("Sites"),
761 + KBYTECOLOR, _("kB F"));
764 fprintf(out_fp,"</TR>\n");
766 "<FONT SIZE=\"-1\">%s</FONT></TH>\n" \
767 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
768 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
769 - IKBYTECOLOR, msg_h_ixfer,
770 - OKBYTECOLOR, msg_h_oxfer);
771 + IKBYTECOLOR, _("kB In"),
772 + OKBYTECOLOR, _("kB Out"));
774 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
777 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
778 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" COLSPAN=%d ALIGN=center>"\
779 "%s %s %d</TH></TR>\n",
780 - GREY,(dump_inout==0)?13:19,msg_htot_hs,Q_(l_month[cur_month-1]), cur_year);
781 + GREY,(dump_inout==0)?13:19,_("Hourly Statistics for"),Q_(l_month[cur_month-1]), cur_year);
782 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
783 fprintf(out_fp,"<TR><TH ALIGN=center ROWSPAN=2 BGCOLOR=\"%s\">" \
784 "<FONT SIZE=\"-1\">%s</FONT></TH>\n" \
785 @@ -819,11 +819,11 @@
786 "<FONT SIZE=\"-1\">%s</FONT></TH>\n" \
787 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=3>" \
788 "<FONT SIZE=\"-1\">%s</FONT></TH>",
790 - HITCOLOR, msg_h_hits,
791 - FILECOLOR, msg_h_files,
792 - PAGECOLOR, msg_h_pages,
793 - KBYTECOLOR, msg_h_xfer);
795 + HITCOLOR, _("Hits"),
796 + FILECOLOR, _("Files"),
797 + PAGECOLOR, _("Pages"),
798 + KBYTECOLOR, _("kB F"));
801 fprintf(out_fp,"</TR>\n");
802 @@ -835,29 +835,29 @@
803 "<FONT SIZE=\"-1\">%s</FONT></TH>\n" \
804 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=3>" \
805 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
806 - IKBYTECOLOR, msg_h_ixfer,
807 - OKBYTECOLOR, msg_h_oxfer);
808 + IKBYTECOLOR, _("kB In"),
809 + OKBYTECOLOR, _("kB Out"));
811 fprintf(out_fp,"<TR><TH ALIGN=center BGCOLOR=\"%s\">" \
812 "<FONT SIZE=\"-2\">%s</FONT></TH>\n" \
813 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
814 "<FONT SIZE=\"-2\">%s</FONT></TH>\n",
815 - HITCOLOR, msg_h_avg, HITCOLOR, msg_h_total);
816 + HITCOLOR, _("Avg"), HITCOLOR, _("Total"));
817 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
818 "<FONT SIZE=\"-2\">%s</FONT></TH>\n" \
819 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
820 "<FONT SIZE=\"-2\">%s</FONT></TH>\n",
821 - FILECOLOR, msg_h_avg, FILECOLOR, msg_h_total);
822 + FILECOLOR, _("Avg"), FILECOLOR, _("Total"));
823 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
824 "<FONT SIZE=\"-2\">%s</FONT></TH>\n" \
825 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
826 "<FONT SIZE=\"-2\">%s</FONT></TH>\n",
827 - PAGECOLOR, msg_h_avg, PAGECOLOR, msg_h_total);
828 + PAGECOLOR, _("Avg"), PAGECOLOR, _("Total"));
829 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
830 "<FONT SIZE=\"-2\">%s</FONT></TH>\n" \
831 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
832 "<FONT SIZE=\"-2\">%s</FONT>",
833 - KBYTECOLOR, msg_h_avg, KBYTECOLOR, msg_h_total);
834 + KBYTECOLOR, _("Avg"), KBYTECOLOR, _("Total"));
837 fprintf(out_fp,"</TR>\n");
838 @@ -869,12 +869,12 @@
839 "<FONT SIZE=\"-2\">%s</FONT></TH>\n" \
840 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
841 "<FONT SIZE=\"-2\">%s</FONT></TH>\n",
842 - IKBYTECOLOR, msg_h_avg, IKBYTECOLOR, msg_h_total);
843 + IKBYTECOLOR, _("Avg"), IKBYTECOLOR, _("Total"));
844 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
845 "<FONT SIZE=\"-2\">%s</FONT></TH>\n" \
846 "<TH ALIGN=center BGCOLOR=\"%s\" COLSPAN=2>" \
847 "<FONT SIZE=\"-2\">%s</FONT></TH></TR>\n",
848 - OKBYTECOLOR, msg_h_avg, OKBYTECOLOR, msg_h_total);
849 + OKBYTECOLOR, _("Avg"), OKBYTECOLOR, _("Total"));
852 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
853 @@ -969,31 +969,31 @@
854 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
855 if (flag) fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=%d>" \
856 "%s %llu %s %llu %s %s %s</TH></TR>\n",
857 - GREY,(dump_inout==0)?10:14, msg_top_top,tot_num,msg_top_of,
858 - t_site,msg_top_s,msg_h_by,msg_h_xfer);
859 + GREY,(dump_inout==0)?10:14, _("Top"),tot_num,_("of"),
860 + t_site,_("Total Sites"),_("By"),_("kB F"));
861 else fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=%d>" \
862 "%s %llu %s %llu %s</TH></TR>\n",
863 - GREY,(dump_inout==0)?10:14,msg_top_top, tot_num, msg_top_of, t_site, msg_top_s);
864 + GREY,(dump_inout==0)?10:14,_("Top"), tot_num, _("of"), t_site, _("Total Sites"));
865 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
866 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
867 "<FONT SIZE=\"-1\">#</FONT></TH>\n",GREY);
868 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
869 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,msg_h_hits);
870 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,_("Hits"));
871 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
872 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,msg_h_files);
873 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,_("Files"));
874 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
875 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,msg_h_xfer);
876 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,_("kB F"));
879 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
880 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,msg_h_ixfer);
881 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,_("kB In"));
882 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
883 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,msg_h_oxfer);
884 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,_("kB Out"));
886 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
887 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,msg_h_visits);
888 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,_("Visits"));
889 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
890 - "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",MISCCOLOR,msg_h_hname);
891 + "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",MISCCOLOR,_("Hostname"));
892 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
894 pointer=h_array; i=0;
895 @@ -1057,7 +1057,7 @@
896 fprintf(out_fp,"<FONT SIZE=\"-1\">");
897 fprintf(out_fp,"<A HREF=\"./site_%04d%02d.%s\">",
898 cur_year,cur_month,html_ext);
899 - fprintf(out_fp,"%s</A></TD></TR>\n",msg_v_sites);
900 + fprintf(out_fp,"%s</A></TD></TR>\n",_("View All Sites"));
901 if (flag) /* do we need to sort? */
902 qsort(h_array,a_ctr,sizeof(HNODEPTR),qs_site_cmph);
904 @@ -1085,18 +1085,18 @@
905 if ( (out_fp=open_out_file(site_fname))==NULL ) return 0;
907 snprintf(buffer,sizeof(buffer),"%s %d - %s",
908 - Q_(l_month[cur_month-1]),cur_year,msg_h_sites);
909 + Q_(l_month[cur_month-1]),cur_year,_("Sites"));
910 write_html_head(buffer, out_fp);
912 fprintf(out_fp,"<FONT SIZE=\"-1\"></CENTER><PRE>\n");
914 fprintf(out_fp," %12s %12s %12s",
915 - msg_h_hits, msg_h_files, msg_h_xfer);
916 + _("Hits"), _("Files"), _("kB F"));
919 - fprintf(out_fp," %12s %12s", msg_h_ixfer, msg_h_oxfer);
920 + fprintf(out_fp," %12s %12s", _("kB In"), _("kB Out"));
922 - fprintf(out_fp," %12s %s\n", msg_h_visits, msg_h_hname);
923 + fprintf(out_fp," %12s %s\n", _("Visits"), _("Hostname"));
924 fprintf(out_fp,"---------------- ---------------- ---------------- ");
927 @@ -1201,32 +1201,32 @@
928 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
929 if (flag) fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=%d>" \
930 "%s %llu %s %llu %s %s %s</TH></TR>\n",
931 - GREY,(dump_inout==0)?6:10,msg_top_top,tot_num,msg_top_of,
932 - t_url,msg_top_u,msg_h_by,msg_h_xfer);
933 + GREY,(dump_inout==0)?6:10,_("Top"),tot_num,_("of"),
934 + t_url,_("Total URLs"),_("By"),_("kB F"));
935 else fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=%d>" \
936 "%s %llu %s %llu %s</TH></TR>\n",
937 - GREY,(dump_inout==0)?6:10,msg_top_top,tot_num,msg_top_of,t_url,msg_top_u);
938 + GREY,(dump_inout==0)?6:10,_("Top"),tot_num,_("of"),t_url,_("Total URLs"));
939 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
940 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
941 "<FONT SIZE=\"-1\">#</FONT></TH>\n",GREY);
942 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
943 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
944 - HITCOLOR,msg_h_hits);
945 + HITCOLOR,_("Hits"));
946 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
947 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
948 - KBYTECOLOR,msg_h_xfer);
949 + KBYTECOLOR,_("kB F"));
952 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
953 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
954 - IKBYTECOLOR,msg_h_ixfer);
955 + IKBYTECOLOR,_("kB In"));
956 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
957 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
958 - OKBYTECOLOR,msg_h_oxfer);
959 + OKBYTECOLOR,_("kB Out"));
961 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
962 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
963 - MISCCOLOR,msg_h_url);
964 + MISCCOLOR,_("URL"));
965 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
967 pointer=u_array; i=0;
968 @@ -1316,7 +1316,7 @@
969 fprintf(out_fp,"<FONT SIZE=\"-1\">");
970 fprintf(out_fp,"<A HREF=\"./url_%04d%02d.%s\">",
971 cur_year,cur_month,html_ext);
972 - fprintf(out_fp,"%s</A></TD></TR>\n",msg_v_urls);
973 + fprintf(out_fp,"%s</A></TD></TR>\n",_("View All URLs"));
974 if (flag) /* do we need to sort first? */
975 qsort(u_array,a_ctr,sizeof(UNODEPTR),qs_url_cmph);
977 @@ -1344,17 +1344,17 @@
978 if ( (out_fp=open_out_file(url_fname))==NULL ) return 0;
980 snprintf(buffer,sizeof(buffer),"%s %d - %s",
981 - Q_(l_month[cur_month-1]),cur_year,msg_h_url);
982 + Q_(l_month[cur_month-1]),cur_year,_("URL"));
983 write_html_head(buffer, out_fp);
985 fprintf(out_fp,"<FONT SIZE=\"-1\"></CENTER><PRE>\n");
987 - fprintf(out_fp," %12s %12s", msg_h_hits,msg_h_xfer);
988 + fprintf(out_fp," %12s %12s", _("Hits"),_("kB F"));
991 - fprintf(out_fp," %12s %12s", msg_h_ixfer, msg_h_oxfer);
992 + fprintf(out_fp," %12s %12s", _("kB In"), _("kB Out"));
994 - fprintf(out_fp," %s\n", msg_h_url);
995 + fprintf(out_fp," %s\n", _("URL"));
996 fprintf(out_fp,"---------------- ---------------- ");
999 @@ -1461,21 +1461,21 @@
1000 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1001 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=6>" \
1002 "%s %llu %s %llu %s</TH></TR>\n",
1003 - GREY,msg_top_top,tot_num,msg_top_of,
1004 - (flag)?u_exit:u_entry,(flag)?msg_top_ex:msg_top_en);
1005 + GREY,_("Top"),tot_num,_("of"),
1006 + (flag)?u_exit:u_entry,(flag)?_("Total Exit Pages"):_("Total Entry Pages"));
1007 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1008 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
1009 "<FONT SIZE=\"-1\">#</FONT></TH>\n",
1011 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1012 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
1013 - HITCOLOR,msg_h_hits);
1014 + HITCOLOR,_("Hits"));
1015 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1016 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
1017 - VISITCOLOR,msg_h_visits);
1018 + VISITCOLOR,_("Visits"));
1019 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
1020 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
1021 - MISCCOLOR,msg_h_url);
1022 + MISCCOLOR,_("URL"));
1023 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1025 pointer=u_array; i=0;
1026 @@ -1557,17 +1557,17 @@
1027 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1028 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=4>" \
1029 "%s %llu %s %llu %s</TH></TR>\n",
1030 - GREY, msg_top_top, tot_num, msg_top_of, t_ref, msg_top_r);
1031 + GREY, _("Top"), tot_num, _("of"), t_ref, _("Total Referrers"));
1032 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1033 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
1034 "<FONT SIZE=\"-1\">#</FONT></TH>\n",
1036 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1037 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
1038 - HITCOLOR,msg_h_hits);
1039 + HITCOLOR,_("Hits"));
1040 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
1041 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
1042 - MISCCOLOR,msg_h_ref);
1043 + MISCCOLOR,_("Referrer"));
1044 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1046 pointer=r_array; i=0;
1047 @@ -1619,7 +1619,7 @@
1048 fprintf(out_fp,"<FONT SIZE=\"-1\">");
1049 fprintf(out_fp,"<A HREF=\"./ref_%04d%02d.%s\">",
1050 cur_year,cur_month,html_ext);
1051 - fprintf(out_fp,"%s</A></TD></TR>\n",msg_v_refs);
1052 + fprintf(out_fp,"%s</A></TD></TR>\n",_("View All Referrers"));
1055 fprintf(out_fp,"</TABLE>\n<P>\n");
1056 @@ -1644,12 +1644,12 @@
1057 if ( (out_fp=open_out_file(ref_fname))==NULL ) return 0;
1059 snprintf(buffer,sizeof(buffer),"%s %d - %s",
1060 - Q_(l_month[cur_month-1]),cur_year,msg_h_ref);
1061 + Q_(l_month[cur_month-1]),cur_year,_("Referrer"));
1062 write_html_head(buffer, out_fp);
1064 fprintf(out_fp,"<FONT SIZE=\"-1\"></CENTER><PRE>\n");
1066 - fprintf(out_fp," %12s %s\n",msg_h_hits,msg_h_ref);
1067 + fprintf(out_fp," %12s %s\n",_("Hits"),_("Referrer"));
1068 fprintf(out_fp,"---------------- --------------------\n\n");
1070 /* do groups first (if any) */
1071 @@ -1722,17 +1722,17 @@
1072 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1073 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=4>" \
1074 "%s %llu %s %llu %s</TH></TR>\n",
1075 - GREY, msg_top_top, tot_num, msg_top_of, t_agent, msg_top_a);
1076 + GREY, _("Top"), tot_num, _("of"), t_agent, _("Total User Agents"));
1077 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1078 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
1079 "<FONT SIZE=\"-1\">#</FONT></TH>\n",
1081 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1082 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
1083 - HITCOLOR,msg_h_hits);
1084 + HITCOLOR,_("Hits"));
1085 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
1086 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
1087 - MISCCOLOR,msg_h_agent);
1088 + MISCCOLOR,_("User Agent"));
1089 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1091 pointer=a_array; i=0;
1092 @@ -1773,7 +1773,7 @@
1093 fprintf(out_fp,"<FONT SIZE=\"-1\">");
1094 fprintf(out_fp,"<A HREF=\"./agent_%04d%02d.%s\">",
1095 cur_year,cur_month,html_ext);
1096 - fprintf(out_fp,"%s</A></TD></TR>\n",msg_v_agents);
1097 + fprintf(out_fp,"%s</A></TD></TR>\n",_("View All User Agents"));
1100 fprintf(out_fp,"</TABLE>\n<P>\n");
1101 @@ -1798,12 +1798,12 @@
1102 if ( (out_fp=open_out_file(agent_fname))==NULL ) return 0;
1104 snprintf(buffer,sizeof(buffer),"%s %d - %s",
1105 - Q_(l_month[cur_month-1]),cur_year,msg_h_agent);
1106 + Q_(l_month[cur_month-1]),cur_year,_("User Agent"));
1107 write_html_head(buffer, out_fp);
1109 fprintf(out_fp,"<FONT SIZE=\"-1\"></CENTER><PRE>\n");
1111 - fprintf(out_fp," %12s %s\n",msg_h_hits,msg_h_agent);
1112 + fprintf(out_fp," %12s %s\n",_("Hits"),_("User Agent"));
1113 fprintf(out_fp,"---------------- ----------------------\n\n");
1115 /* do groups first (if any) */
1116 @@ -1869,17 +1869,17 @@
1117 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1118 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=4>" \
1119 "%s %llu %s %llu %s</TH></TR>\n",
1120 - GREY, msg_top_top, tot_num, msg_top_of, a_ctr, msg_top_sr);
1121 + GREY, _("Top"), tot_num, _("of"), a_ctr, _("Total Search Strings"));
1122 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1123 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
1124 "<FONT SIZE=\"-1\">#</FONT></TH>\n",
1126 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1127 "<FONT SIZE=\"-1\">%s</FONT></TH>\n",
1128 - HITCOLOR,msg_h_hits);
1129 + HITCOLOR,_("Hits"));
1130 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
1131 "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",
1132 - MISCCOLOR,msg_h_search);
1133 + MISCCOLOR,_("Search String"));
1134 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1136 pointer=s_array; i=0;
1137 @@ -1908,7 +1908,7 @@
1138 fprintf(out_fp,"<FONT SIZE=\"-1\">");
1139 fprintf(out_fp,"<A HREF=\"./search_%04d%02d.%s\">",
1140 cur_year,cur_month,html_ext);
1141 - fprintf(out_fp,"%s</A></TD></TR>\n",msg_v_search);
1142 + fprintf(out_fp,"%s</A></TD></TR>\n",_("View All Search Strings"));
1145 fprintf(out_fp,"</TABLE>\n<P>\n");
1146 @@ -1934,12 +1934,12 @@
1147 if ( (out_fp=open_out_file(search_fname))==NULL ) return 0;
1149 snprintf(buffer,sizeof(buffer),"%s %d - %s",
1150 - Q_(l_month[cur_month-1]),cur_year,msg_h_search);
1151 + Q_(l_month[cur_month-1]),cur_year,_("Search String"));
1152 write_html_head(buffer, out_fp);
1154 fprintf(out_fp,"<FONT SIZE=\"-1\"></CENTER><PRE>\n");
1156 - fprintf(out_fp," %12s %s\n",msg_h_hits,msg_h_search);
1157 + fprintf(out_fp," %12s %s\n",_("Hits"),_("Search String"));
1158 fprintf(out_fp,"---------------- ----------------------\n\n");
1161 @@ -1990,27 +1990,27 @@
1162 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1163 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=%d>" \
1164 "%s %llu %s %llu %s</TH></TR>\n",
1165 - GREY,(dump_inout==0)?10:14,msg_top_top, tot_num, msg_top_of, t_user, msg_top_i);
1166 + GREY,(dump_inout==0)?10:14,_("Top"), tot_num, _("of"), t_user, _("Total Usernames"));
1167 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1168 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
1169 "<FONT SIZE=\"-1\">#</FONT></TH>\n",GREY);
1170 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1171 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,msg_h_hits);
1172 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,_("Hits"));
1173 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1174 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,msg_h_files);
1175 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,_("Files"));
1176 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1177 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,msg_h_xfer);
1178 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,_("kB F"));
1179 if (dump_inout != 0)
1181 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1182 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,msg_h_ixfer);
1183 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,_("kB In"));
1184 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1185 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,msg_h_oxfer);
1186 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,_("kB Out"));
1188 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1189 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,msg_h_visits);
1190 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,_("Visits"));
1191 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
1192 - "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",MISCCOLOR,msg_h_uname);
1193 + "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",MISCCOLOR,_("Username"));
1194 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1196 pointer=i_array; i=0;
1197 @@ -2073,7 +2073,7 @@
1198 fprintf(out_fp,"<FONT SIZE=\"-1\">");
1199 fprintf(out_fp,"<A HREF=\"./user_%04d%02d.%s\">",
1200 cur_year,cur_month,html_ext);
1201 - fprintf(out_fp,"%s</A></TD></TR>\n",msg_v_users);
1202 + fprintf(out_fp,"%s</A></TD></TR>\n",_("View All Usernames"));
1205 fprintf(out_fp,"</TABLE>\n<P>\n");
1206 @@ -2098,18 +2098,18 @@
1207 if ( (out_fp=open_out_file(user_fname))==NULL ) return 0;
1209 snprintf(buffer,sizeof(buffer),"%s %d - %s",
1210 - Q_(l_month[cur_month-1]),cur_year,msg_h_uname);
1211 + Q_(l_month[cur_month-1]),cur_year,_("Username"));
1212 write_html_head(buffer, out_fp);
1214 fprintf(out_fp,"<FONT SIZE=\"-1\"></CENTER><PRE>\n");
1216 fprintf(out_fp," %12s %12s %12s",
1217 - msg_h_hits, msg_h_files, msg_h_xfer);
1218 + _("Hits"), _("Files"), _("kB F"));
1219 if (dump_inout != 0)
1221 - fprintf(out_fp," %12s %12s", msg_h_ixfer, msg_h_oxfer);
1222 + fprintf(out_fp," %12s %12s", _("kB In"), _("kB Out"));
1224 - fprintf(out_fp," %12s %s\n", msg_h_visits, msg_h_uname);
1225 + fprintf(out_fp," %12s %s\n", _("Visits"), _("Username"));
1226 fprintf(out_fp,"---------------- ---------------- ---------------- ");
1227 if (dump_inout != 0)
1229 @@ -2324,7 +2324,7 @@
1230 pie_legend[i]=_(top_ctrys[i]->desc);
1232 snprintf(pie_title,sizeof(pie_title),"%s %s %d",
1233 - msg_ctry_use,Q_(l_month[cur_month-1]),cur_year);
1234 + _("Usage by Country for"),Q_(l_month[cur_month-1]),cur_year);
1235 sprintf(pie_fname,"ctry_usage_%04d%02d.png",cur_year,cur_month);
1237 pie_chart(pie_fname,pie_title,t_hit,pie_data,pie_legend); /* do it */
1238 @@ -2341,25 +2341,25 @@
1239 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1240 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=CENTER COLSPAN=%d>" \
1241 "%s %d %s %d %s</TH></TR>\n",
1242 - GREY,(dump_inout==0)?8:12,msg_top_top,tot_num,msg_top_of,tot_ctry,msg_top_c);
1243 + GREY,(dump_inout==0)?8:12,_("Top"),tot_num,_("of"),tot_ctry,_("Total Countries"));
1244 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1245 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" ALIGN=center>" \
1246 "<FONT SIZE=\"-1\">#</FONT></TH>\n",GREY);
1247 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1248 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,msg_h_hits);
1249 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,_("Hits"));
1250 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1251 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,msg_h_files);
1252 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,_("Files"));
1253 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1254 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,msg_h_xfer);
1255 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,_("kB F"));
1256 if (dump_inout != 0)
1258 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1259 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,msg_h_ixfer);
1260 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,_("kB In"));
1261 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center COLSPAN=2>" \
1262 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,msg_h_oxfer);
1263 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,_("kB Out"));
1265 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=center>" \
1266 - "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",MISCCOLOR,msg_h_ctry);
1267 + "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",MISCCOLOR,_("Country"));
1268 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1269 for (i=0;i<ntop_ctrys;i++)
1271 @@ -2436,12 +2436,12 @@
1272 /* need a header? */
1275 - fprintf(out_fp,"%s\t%s\t%s", msg_h_hits,msg_h_files,msg_h_xfer);
1276 + fprintf(out_fp,"%s\t%s\t%s", _("Hits"),_("Files"),_("kB F"));
1277 if (dump_inout != 0)
1279 - fprintf(out_fp,"\t%s\t%s", msg_h_ixfer,msg_h_oxfer);
1280 + fprintf(out_fp,"\t%s\t%s", _("kB In"),_("kB Out"));
1282 - fprintf(out_fp,"\t%s\t%s\n", msg_h_visits,msg_h_hname);
1283 + fprintf(out_fp,"\t%s\t%s\n", _("Visits"),_("Hostname"));
1287 @@ -2488,12 +2488,12 @@
1288 /* need a header? */
1291 - fprintf(out_fp,"%s\t%s",msg_h_hits,msg_h_xfer);
1292 + fprintf(out_fp,"%s\t%s",_("Hits"),_("kB F"));
1293 if (dump_inout != 0)
1295 - fprintf(out_fp,"\t%s\t%s",msg_h_ixfer,msg_h_oxfer);
1296 + fprintf(out_fp,"\t%s\t%s",_("kB In"),_("kB Out"));
1298 - fprintf(out_fp,"\t%s\n",msg_h_url);
1299 + fprintf(out_fp,"\t%s\n",_("URL"));
1303 @@ -2537,7 +2537,7 @@
1304 /* need a header? */
1307 - fprintf(out_fp,"%s\t%s\n",msg_h_hits,msg_h_ref);
1308 + fprintf(out_fp,"%s\t%s\n",_("Hits"),_("Referrer"));
1312 @@ -2576,7 +2576,7 @@
1313 /* need a header? */
1316 - fprintf(out_fp,"%s\t%s\n",msg_h_hits,msg_h_agent);
1317 + fprintf(out_fp,"%s\t%s\n",_("Hits"),_("User Agent"));
1321 @@ -2615,12 +2615,12 @@
1322 /* need a header? */
1325 - fprintf(out_fp,"%s\t%s\t%s",msg_h_hits,msg_h_files,msg_h_xfer);
1326 + fprintf(out_fp,"%s\t%s\t%s",_("Hits"),_("Files"),_("kB F"));
1327 if (dump_inout != 0)
1329 - fprintf(out_fp,"\t%s\t%s",msg_h_ixfer,msg_h_oxfer);
1330 + fprintf(out_fp,"\t%s\t%s",_("kB In"),_("kB Out"));
1332 - fprintf(out_fp,"\t%s\t%s\n",msg_h_visits,msg_h_uname);
1333 + fprintf(out_fp,"\t%s\t%s\n",_("Visits"),_("Username"));
1337 @@ -2665,7 +2665,7 @@
1338 /* need a header? */
1341 - fprintf(out_fp,"%s\t%s\n",msg_h_hits,msg_h_search);
1342 + fprintf(out_fp,"%s\t%s\n",_("Hits"),_("Search String"));
1346 @@ -2707,9 +2707,9 @@
1347 double gt_oxfer=0.0;
1348 double gt_visits=0.0;
1350 - if (verbose>1) printf("%s\n",msg_gen_sum);
1351 + if (verbose>1) printf("%s\n",_("Generating summary report"));
1353 - snprintf(buffer,sizeof(buffer),"%s %s",msg_main_us,hname);
1354 + snprintf(buffer,sizeof(buffer),"%s %s",_("Usage summary for"),hname);
1355 year_graph6x("usage.png", buffer, hist);
1357 /* now do html stuff... */
1358 @@ -2727,7 +2727,7 @@
1359 if ( S_ISLNK(out_stat.st_mode) )
1362 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,".htaccess");
1363 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),".htaccess");
1367 @@ -2749,7 +2749,7 @@
1368 if ( (out_fp=open_out_file(index_fname)) == NULL)
1371 - fprintf(stderr,"%s %s!\n",msg_no_open,index_fname);
1372 + fprintf(stderr,"%s %s!\n",_("Error: Unable to open file"),index_fname);
1375 write_html_head(NULL, out_fp);
1376 @@ -2761,41 +2761,41 @@
1377 fprintf(out_fp,"<TABLE WIDTH=600 BORDER=2 CELLSPACING=1 CELLPADDING=1>\n");
1378 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1379 fprintf(out_fp,"<TR><TH COLSPAN=%d BGCOLOR=\"%s\" ALIGN=center>",(dump_inout==0)?11:13,GREY);
1380 - fprintf(out_fp,"%s</TH></TR>\n",msg_main_sum);
1381 + fprintf(out_fp,"%s</TH></TR>\n",_("Summary by Month"));
1382 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1383 fprintf(out_fp,"<TR><TH ALIGN=left ROWSPAN=2 BGCOLOR=\"%s\">" \
1384 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",GREY,msg_h_mth);
1385 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",GREY,_("Month"));
1386 fprintf(out_fp,"<TH ALIGN=center COLSPAN=4 BGCOLOR=\"%s\">" \
1387 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",GREY,msg_main_da);
1388 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",GREY,_("Daily Avg"));
1389 fprintf(out_fp,"<TH ALIGN=center COLSPAN=%d BGCOLOR=\"%s\">" \
1390 - "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",(dump_inout==0)?6:8,GREY,msg_main_mt);
1391 + "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",(dump_inout==0)?6:8,GREY,_("Monthly Totals"));
1392 fprintf(out_fp,"<TR><TH ALIGN=center BGCOLOR=\"%s\">" \
1393 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,msg_h_hits);
1394 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",HITCOLOR,_("Hits"));
1395 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1396 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,msg_h_files);
1397 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,_("Files"));
1398 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1399 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",PAGECOLOR,msg_h_pages);
1400 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",PAGECOLOR,_("Pages"));
1401 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1402 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,msg_h_visits);
1403 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,_("Visits"));
1404 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1405 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",SITECOLOR,msg_h_sites);
1406 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",SITECOLOR,_("Sites"));
1407 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1408 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,msg_h_xfer);
1409 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",KBYTECOLOR,_("kB F"));
1410 if (dump_inout != 0)
1412 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1413 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,msg_h_ixfer);
1414 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",IKBYTECOLOR,_("kB In"));
1415 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1416 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,msg_h_oxfer);
1417 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",OKBYTECOLOR,_("kB Out"));
1419 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1420 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,msg_h_visits);
1421 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",VISITCOLOR,_("Visits"));
1422 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1423 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",PAGECOLOR,msg_h_pages);
1424 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",PAGECOLOR,_("Pages"));
1425 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1426 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,msg_h_files);
1427 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",FILECOLOR,_("Files"));
1428 fprintf(out_fp,"<TH ALIGN=center BGCOLOR=\"%s\">" \
1429 - "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",HITCOLOR,msg_h_hits);
1430 + "<FONT SIZE=\"-1\">%s</FONT></TH></TR>\n",HITCOLOR,_("Hits"));
1431 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1432 for (i=HISTSIZE-1;i>=HISTSIZE-index_mths;i--)
1434 @@ -2923,7 +2923,7 @@
1436 fprintf(out_fp,"<TR><TH HEIGHT=4></TH></TR>\n");
1437 fprintf(out_fp,"<TR><TH BGCOLOR=\"%s\" COLSPAN=6 ALIGN=left>" \
1438 - "<FONT SIZE=\"-1\">%s</FONT></TH>\n",GREY,msg_h_totals);
1439 + "<FONT SIZE=\"-1\">%s</FONT></TH>\n",GREY,_("Totals"));
1440 fprintf(out_fp,"<TH BGCOLOR=\"%s\" ALIGN=right>" \
1441 "<FONT SIZE=\"-1\">%.0f</FONT></TH>\n",GREY,gt_xfer);
1442 if (dump_inout != 0)
1443 @@ -3258,7 +3258,7 @@
1444 if ( S_ISLNK(out_stat.st_mode) )
1447 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,filename);
1448 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),filename);
1452 @@ -3267,7 +3267,7 @@
1453 if ( (out_fp=fopen(filename,"w")) == NULL)
1456 - fprintf(stderr,"%s %s!\n",msg_no_open,filename);
1457 + fprintf(stderr,"%s %s!\n",_("Error: Unable to open file"),filename);
1461 Index: webalizer/parser.c
1462 ===================================================================
1463 --- webalizer.orig/parser.c 2011-01-08 20:59:30.000000000 +0100
1464 +++ webalizer/parser.c 2011-01-08 20:59:58.000000000 +0100
1469 - fprintf(stderr,"%s",msg_big_host);
1470 + fprintf(stderr,"%s",_("Warning: Truncating oversized hostname"));
1471 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1472 else fprintf(stderr,"\n");
1478 - fprintf(stderr,"%s",msg_big_user);
1479 + fprintf(stderr,"%s",_("Warning: Truncating oversized username"));
1480 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1481 else fprintf(stderr,"\n");
1487 - fprintf(stderr,"%s",msg_big_date);
1488 + fprintf(stderr,"%s",_("Warning: Truncating oversized date field"));
1489 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1490 else fprintf(stderr,"\n");
1496 - fprintf(stderr,"%s",msg_big_req);
1497 + fprintf(stderr,"%s",_("Warning: Truncating oversized request field"));
1498 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1499 else fprintf(stderr,"\n");
1505 - fprintf(stderr,"%s",msg_big_ref);
1506 + fprintf(stderr,"%s",_("Warning: Truncating oversized referrer field"));
1507 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1508 else fprintf(stderr,"\n");
1514 - fprintf(stderr,"%s",msg_big_host);
1515 + fprintf(stderr,"%s",_("Warning: Truncating oversized hostname"));
1516 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1517 else fprintf(stderr,"\n");
1523 - fprintf(stderr,"%s",msg_big_req);
1524 + fprintf(stderr,"%s",_("Warning: Truncating oversized request field"));
1525 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1526 else fprintf(stderr,"\n");
1532 - fprintf(stderr,"%s",msg_big_req);
1533 + fprintf(stderr,"%s",_("Warning: Truncating oversized request field"));
1534 if (debug_mode) fprintf(stderr,": %s\n",cpx);
1535 else fprintf(stderr,"\n");
1537 Index: webalizer/preserve.c
1538 ===================================================================
1539 --- webalizer.orig/preserve.c 2011-01-08 20:59:30.000000000 +0100
1540 +++ webalizer/preserve.c 2011-01-08 20:59:58.000000000 +0100
1545 - if (verbose>1) printf("%s %s\n",msg_get_hist,hist_fname);
1546 + if (verbose>1) printf("%s %s\n",_("Reading history file..."),hist_fname);
1547 while ( fgets(buffer,BUFSIZE,hist_fp) != NULL )
1549 if (buffer[0]=='#') { continue; } /* skip comments */
1551 /* check if valid numbers */
1552 if ( (in_m<1 || in_m>12 || in_y<1970) )
1554 - if (verbose) fprintf(stderr,"%s (mth=%d)\n",msg_bad_hist,in_m);
1555 + if (verbose) fprintf(stderr,"%s (mth=%d)\n",_("Error: Ignoring invalid history record"),in_m);
1563 - else if (verbose>1) printf("%s\n",msg_no_hist);
1564 + else if (verbose>1) printf("%s\n",_("History file not found..."));
1567 /*********************************************/
1569 if ( S_ISLNK(hist_stat.st_mode) )
1572 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,new_fname);
1573 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),new_fname);
1578 hist_fp = fopen(new_fname,"w");
1581 - if (verbose>1) printf("%s\n",msg_put_hist);
1582 + if (verbose>1) printf("%s\n",_("Saving history information..."));
1585 fprintf(hist_fp,"# Webalizer V%s-%s History Data - %s (%d month)\n",
1590 - fprintf(stderr,"%s %s\n",msg_hist_err,new_fname);
1591 + fprintf(stderr,"%s %s\n",_("Error: Unable to write history file"),new_fname);
1594 /*********************************************/
1596 if ( S_ISLNK(state_stat.st_mode) )
1599 - fprintf(stderr,"%s %s (symlink)\n",msg_no_open,new_fname);
1600 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Unable to open file"),new_fname);
1606 sprintf(buffer,"%02d/%02d/%04d %02d:%02d:%02d",
1607 cur_month,cur_day,cur_year,cur_hour,cur_min,cur_sec);
1608 - printf("%s [%s]\n",msg_put_data,buffer);
1609 + printf("%s [%s]\n",_("Saving current run data..."),buffer);
1612 /* first, save the easy stuff */
1613 @@ -566,12 +566,12 @@
1616 /* Previous run data not found... */
1617 - if (verbose>1) printf("%s\n",msg_no_data);
1618 + if (verbose>1) printf("%s\n",_("Previous run data not found..."));
1619 return 0; /* return with ok code */
1622 /* Reading previous run data... */
1623 - if (verbose>1) printf("%s %s\n",msg_get_data,state_fname);
1624 + if (verbose>1) printf("%s %s\n",_("Reading previous run data.."),state_fname);
1626 /* get easy stuff */
1627 sprintf(tmp_buf,"# Webalizer V%s ",version);
1631 /* Error adding URL node, skipping ... */
1632 - fprintf(stderr,"%s %s\n", msg_nomem_u, t_unode.string);
1633 + fprintf(stderr,"%s %s\n", _("Error adding URL node, skipping"), t_unode.string);
1638 t_hnode.visit+1,t_hnode.tstamp,t_hnode.lasturl,sm_htab))
1640 /* Error adding host node (monthly), skipping .... */
1641 - if (verbose) fprintf(stderr,"%s %s\n",msg_nomem_mh, t_hnode.string);
1642 + if (verbose) fprintf(stderr,"%s %s\n",_("Error adding host node (monthly), skipping"), t_hnode.string);
1647 t_hnode.visit+1,t_hnode.tstamp,t_hnode.lasturl,sd_htab))
1649 /* Error adding host node (daily), skipping .... */
1650 - if (verbose) fprintf(stderr,"%s %s\n",msg_nomem_dh, t_hnode.string);
1651 + if (verbose) fprintf(stderr,"%s %s\n",_("Error adding host node (daily), skipping"), t_hnode.string);
1656 if (put_rnode(tmp_buf,t_rnode.flag,
1657 t_rnode.count, &ul_bogus, rm_htab))
1659 - if (verbose) fprintf(stderr,"%s %s\n", msg_nomem_r, log_rec.refer);
1660 + if (verbose) fprintf(stderr,"%s %s\n", _("Error adding Referrer node, skipping"), log_rec.refer);
1665 if (put_anode(tmp_buf,t_anode.flag,t_anode.count,
1668 - if (verbose) fprintf(stderr,"%s %s\n", msg_nomem_a, log_rec.agent);
1669 + if (verbose) fprintf(stderr,"%s %s\n", _("Error adding User Agent node, skipping"), log_rec.agent);
1675 if (put_snode(tmp_buf,t_snode.count,sr_htab))
1677 - if (verbose) fprintf(stderr,"%s %s\n", msg_nomem_sc, t_snode.string);
1678 + if (verbose) fprintf(stderr,"%s %s\n", _("Error adding Search String Node, skipping"), t_snode.string);
1685 /* Error adding username node, skipping .... */
1686 - fprintf(stderr,"%s %s\n",msg_nomem_i, t_inode.string);
1687 + fprintf(stderr,"%s %s\n",_("Error adding Username node, skipping"), t_inode.string);
1691 Index: webalizer/webalizer.c
1692 ===================================================================
1693 --- webalizer.orig/webalizer.c 2011-01-08 20:59:53.000000000 +0100
1694 +++ webalizer/webalizer.c 2011-01-08 20:59:58.000000000 +0100
1696 setlocale(LC_CTYPE,"");
1698 /* Initialise report_title with the default localized value */
1699 - report_title = msg_title;
1700 + report_title = _("Usage Statistics for");
1702 /* initalize epoch */
1703 epoch=jdate(1,1,1970); /* used for timestamp adj. */
1706 if (strstr(argv[0],"webazolver")!=0)
1707 /* DNS support not present, aborting... */
1708 - { printf("%s\n",msg_dns_abrt); exit(1); }
1709 + { printf("%s\n",_("DNS support not present, aborting...")); exit(1); }
1711 /* Force sane values for cache TTL */
1712 if (cache_ttl<1) cache_ttl=1;
1714 if ( S_ISLNK(log_stat.st_mode) )
1717 - fprintf(stderr,"%s %s (symlink)\n",msg_log_err,log_fname);
1718 + fprintf(stderr,"%s %s (symlink)\n",_("Error: Can't open log file"),log_fname);
1723 if (zlog_fp==Z_NULL)
1725 /* Error: Can't open log file ... */
1726 - fprintf(stderr, "%s %s (%d)\n",msg_log_err,log_fname,ENOENT);
1727 + fprintf(stderr, "%s %s (%d)\n",_("Error: Can't open log file"),log_fname,ENOENT);
1734 /* Error: Can't open log file ... */
1735 - fprintf(stderr, "%s %s\n",msg_log_err,log_fname);
1736 + fprintf(stderr, "%s %s\n",_("Error: Can't open log file"),log_fname);
1741 /* Using logfile ... */
1744 - printf("%s %s (",msg_log_use,log_fname?log_fname:"STDIN");
1745 + printf("%s %s (",_("Using logfile"),log_fname?log_fname:"STDIN");
1746 if (gz_log==COMP_GZIP) printf("gzip-");
1748 if (gz_log==COMP_BZIP) printf("bzip-");
1750 if (chdir(out_dir) != 0)
1752 /* Error: Can't change directory to ... */
1753 - fprintf(stderr, "%s %s\n",msg_dir_err,out_dir);
1754 + fprintf(stderr, "%s %s\n",_("Error: Can't change directory to"),out_dir);
1761 /* No cache file specified, aborting... */
1762 - fprintf(stderr,"%s\n",msg_dns_nocf); /* Must have a cache file */
1763 + fprintf(stderr,"%s\n",_("No cache file specified, aborting...")); /* Must have a cache file */
1769 if (dns_children > MAXCHILD) dns_children=MAXCHILD;
1770 /* DNS Lookup (#children): */
1771 - if (verbose>1) printf("%s (%d): ",msg_dns_rslv,dns_children);
1772 + if (verbose>1) printf("%s (%d): ",_("DNS Lookup"),dns_children);
1774 (gz_log)?dns_resolver(zlog_fp):dns_resolver(log_fp);
1779 /* Using DNS cache file <filaneme> */
1780 - if (verbose>1) printf("%s %s\n",msg_dns_usec,dns_cache);
1781 + if (verbose>1) printf("%s %s\n",_("Using DNS cache file"),dns_cache);
1785 @@ -621,13 +621,13 @@
1786 geo_db=geodb_open(geodb_fname);
1789 - if (verbose) printf("%s: %s\n",msg_geo_open,
1790 - (geodb_fname)?geodb_fname:msg_geo_dflt);
1791 - if (verbose) printf("GeoDB %s\n",msg_geo_nolu);
1792 + if (verbose) printf("%s: %s\n",_("Error opening file"),
1793 + (geodb_fname)?geodb_fname:_("default"));
1794 + if (verbose) printf("GeoDB %s\n",_("lookups disabled"));
1797 else if (verbose>1) printf("%s %s\n",
1798 - msg_geo_use,geodb_ver(geo_db,buffer));
1799 + _("Using"),geodb_ver(geo_db,buffer));
1801 if (geoip) geoip=0; /* Disable GeoIP if using GeoDB */
1803 @@ -647,18 +647,18 @@
1806 /* couldn't open.. warn user */
1807 - if (verbose) printf("GeoIP %s\n",msg_geo_nolu);
1808 + if (verbose) printf("GeoIP %s\n",_("lookups disabled"));
1811 - else if (verbose>1) printf("%s %s (%s)\n",msg_geo_use,
1812 + else if (verbose>1) printf("%s %s (%s)\n",_("Using"),
1813 GeoIPDBDescription[(int)geo_fp->databaseType],
1814 - (geoip_db==NULL)?msg_geo_dflt:geo_fp->file_path);
1815 + (geoip_db==NULL)?_("default"):geo_fp->file_path);
1817 #endif /* USE_GEOIP */
1819 /* Creating output in ... */
1821 - printf("%s %s\n",msg_dir_use,out_dir?out_dir:msg_cur_dir);
1822 + printf("%s %s\n",_("Creating output in"),out_dir?out_dir:_("current directory"));
1826 @@ -668,10 +668,10 @@
1829 /* Hostname for reports is ... */
1830 - if (strlen(hname)) if (verbose>1) printf("%s '%s'\n",msg_hostname,hname);
1831 + if (strlen(hname)) if (verbose>1) printf("%s '%s'\n",_("Hostname for reports is"),hname);
1833 /* get past history */
1834 - if (ignore_hist) { if (verbose>1) printf("%s\n",msg_ign_hist); }
1835 + if (ignore_hist) { if (verbose>1) printf("%s\n",_("Ignoring previous history...")); }
1838 if (incremental) /* incremental processing? */
1840 if ((i=restore_state())) /* restore internal data structs */
1842 /* Error: Unable to restore run data (error num) */
1843 - /* if (verbose) fprintf(stderr,"%s (%d)\n",msg_bad_data,i); */
1844 - fprintf(stderr,"%s (%d)\n",msg_bad_data,i);
1845 + /* if (verbose) fprintf(stderr,"%s (%d)\n",_("Error: Unable to restore run data"),i); */
1846 + fprintf(stderr,"%s (%d)\n",_("Error: Unable to restore run data"),i);
1851 if (ntop_ctrys != 0)
1852 { if ( (top_ctrys=calloc(ntop_ctrys,sizeof(CLISTPTR))) == NULL)
1853 /* Can't get memory, Top Countries disabled! */
1854 - {if (verbose) fprintf(stderr,"%s\n",msg_nomem_tc); ntop_ctrys=0;}}
1855 + {if (verbose) fprintf(stderr,"%s\n",_("Can't allocate enough memory, Top Countries disabled!")); ntop_ctrys=0;}}
1857 /* get processing start time */
1858 start_time = time(NULL);
1863 - fprintf(stderr,"%s",msg_big_rec);
1864 + fprintf(stderr,"%s",_("Error: Skipping oversized log record"));
1865 if (debug_mode) fprintf(stderr,":\n%s",buffer);
1866 else fprintf(stderr,"\n");
1871 fprintf(stderr,"%s: %s [%llu]",
1872 - msg_bad_date,log_rec.datetime,total_rec);
1873 + _("Error: Skipping record (bad date)"),log_rec.datetime,total_rec);
1874 if (debug_mode) fprintf(stderr,":\n%s\n",tmp_buf);
1875 else fprintf(stderr,"\n");
1878 if (strlen(log_rec.refer)>=MAXREFH)
1880 if (verbose) fprintf(stderr,"%s [%llu]\n",
1881 - msg_big_ref,total_rec);
1882 + _("Warning: Truncating oversized referrer field"),total_rec);
1883 log_rec.refer[MAXREFH-1]='\0';
1886 @@ -1005,7 +1005,7 @@
1887 if (strlen(log_rec.url)>=MAXURLH)
1889 if (verbose) fprintf(stderr,"%s [%llu]\n",
1890 - msg_big_req,total_rec);
1891 + _("Warning: Truncating oversized request field"),total_rec);
1892 log_rec.url[MAXURLH-1]='\0';
1895 @@ -1227,7 +1227,7 @@
1898 /* Error adding URL node, skipping ... */
1899 - fprintf(stderr,"%s %s\n", msg_nomem_u, log_rec.url);
1900 + fprintf(stderr,"%s %s\n", _("Error adding URL node, skipping"), log_rec.url);
1903 /* ident (username) hash table */
1904 @@ -1238,7 +1238,7 @@
1907 /* Error adding ident node, skipping .... */
1908 - fprintf(stderr,"%s %s\n", msg_nomem_i, log_rec.ident);
1909 + fprintf(stderr,"%s %s\n", _("Error adding Username node, skipping"), log_rec.ident);
1913 @@ -1249,7 +1249,7 @@
1914 if (put_rnode(log_rec.refer,OBJ_REG,(u_int64_t)1,&t_ref,rm_htab))
1917 - fprintf(stderr,"%s %s\n", msg_nomem_r, log_rec.refer);
1918 + fprintf(stderr,"%s %s\n", _("Error adding Referrer node, skipping"), log_rec.refer);
1922 @@ -1261,7 +1261,7 @@
1925 /* Error adding host node (daily), skipping .... */
1926 - fprintf(stderr,"%s %s\n",msg_nomem_dh, log_rec.hostname);
1927 + fprintf(stderr,"%s %s\n",_("Error adding host node (daily), skipping"), log_rec.hostname);
1930 /* hostname (site) hash table - monthly */
1931 @@ -1272,7 +1272,7 @@
1934 /* Error adding host node (monthly), skipping .... */
1935 - fprintf(stderr,"%s %s\n", msg_nomem_mh, log_rec.hostname);
1936 + fprintf(stderr,"%s %s\n", _("Error adding host node (monthly), skipping"), log_rec.hostname);
1939 /* user agent hash table */
1940 @@ -1282,7 +1282,7 @@
1941 if (put_anode(log_rec.agent,OBJ_REG,(u_int64_t)1,&t_agent,am_htab))
1944 - fprintf(stderr,"%s %s\n", msg_nomem_a, log_rec.agent);
1945 + fprintf(stderr,"%s %s\n", _("Error adding User Agent node, skipping"), log_rec.agent);
1949 @@ -1332,7 +1332,7 @@
1952 /* Error adding URL node, skipping ... */
1953 - fprintf(stderr,"%s %s\n", msg_nomem_u, cp1);
1954 + fprintf(stderr,"%s %s\n", _("Error adding URL node, skipping"), cp1);
1958 @@ -1347,7 +1347,7 @@
1961 /* Error adding Site node, skipping ... */
1962 - fprintf(stderr,"%s %s\n", msg_nomem_mh, cp1);
1963 + fprintf(stderr,"%s %s\n", _("Error adding host node (monthly), skipping"), cp1);
1967 @@ -1365,7 +1365,7 @@
1970 /* Error adding Site node, skipping ... */
1971 - fprintf(stderr,"%s %s\n", msg_nomem_mh, cp1);
1972 + fprintf(stderr,"%s %s\n", _("Error adding host node (monthly), skipping"), cp1);
1976 @@ -1378,7 +1378,7 @@
1979 /* Error adding Referrer node, skipping ... */
1980 - fprintf(stderr,"%s %s\n", msg_nomem_r, cp1);
1981 + fprintf(stderr,"%s %s\n", _("Error adding Referrer node, skipping"), cp1);
1985 @@ -1389,7 +1389,7 @@
1988 /* Error adding User Agent node, skipping ... */
1989 - fprintf(stderr,"%s %s\n", msg_nomem_a, cp1);
1990 + fprintf(stderr,"%s %s\n", _("Error adding User Agent node, skipping"), cp1);
1994 @@ -1404,7 +1404,7 @@
1997 /* Error adding Username node, skipping ... */
1998 - fprintf(stderr,"%s %s\n", msg_nomem_i, cp1);
1999 + fprintf(stderr,"%s %s\n", _("Error adding Username node, skipping"), cp1);
2003 @@ -1419,7 +1419,7 @@
2004 if ( (total_rec==1) && (strncmp(buffer,"format=",7)==0) )
2006 /* Skipping Netscape header record */
2007 - if (verbose>1) printf("%s\n",msg_ign_nscp);
2008 + if (verbose>1) printf("%s\n",_("Skipping Netscape header record"));
2009 /* count it as ignored... */
2012 @@ -1436,7 +1436,7 @@
2016 - fprintf(stderr,"%s (%llu)",msg_bad_rec,total_rec);
2017 + fprintf(stderr,"%s (%llu)",_("Skipping bad record"),total_rec);
2018 if (debug_mode) fprintf(stderr,":\n%s\n",tmp_buf);
2019 else fprintf(stderr,"\n");
2021 @@ -1486,7 +1486,7 @@
2022 if (save_state()) /* incremental stuff */
2024 /* Error: Unable to save current run data */
2025 - if (verbose) fprintf(stderr,"%s\n",msg_data_err);
2026 + if (verbose) fprintf(stderr,"%s\n",_("Error: Unable to save current run data"));
2027 unlink(state_fname);
2030 @@ -1503,19 +1503,19 @@
2031 /* display end of processing statistics */
2032 if (time_me || (verbose>1))
2034 - printf("%llu %s ",total_rec, msg_records);
2035 + printf("%llu %s ",total_rec, _("records"));
2038 - printf("(%llu %s",total_ignore,msg_ignored);
2039 - if (total_bad) printf(", %llu %s) ",total_bad,msg_bad);
2040 + printf("(%llu %s",total_ignore,_("ignored"));
2041 + if (total_bad) printf(", %llu %s) ",total_bad,_("bad"));
2044 - else if (total_bad) printf("(%llu %s) ",total_bad,msg_bad);
2045 + else if (total_bad) printf("(%llu %s) ",total_bad,_("bad"));
2047 /* totoal processing time in seconds */
2048 temp_time = difftime(end_time, start_time);
2049 if (temp_time==0) temp_time=1;
2050 - printf("%s %.0f %s", msg_in, temp_time, msg_seconds);
2051 + printf("%s %.0f %s", _("in"), temp_time, _("seconds"));
2053 /* calculate records per second */
2055 @@ -1544,7 +1544,7 @@
2058 /* No valid records found... exit with error (1) */
2059 - if (verbose) printf("%s\n",msg_no_vrec);
2060 + if (verbose) printf("%s\n",_("No valid records found!"));
2061 if (hist[0].month!=0) write_main_index(); /* write main HTML file */
2064 @@ -1697,7 +1697,7 @@
2065 if ( (fp=fopen(fname,"r")) == NULL)
2068 - fprintf(stderr,"%s %s\n",msg_bad_conf,fname);
2069 + fprintf(stderr,"%s %s\n",_("Error: Unable to open configuration file"),fname);
2073 @@ -1727,7 +1727,7 @@
2074 if (!ouricmp(keyword,kwords[i])) { key=i; break; }
2076 if (key==0) { printf("%s '%s' (%s)\n", /* Invalid keyword */
2077 - msg_bad_key,keyword,fname);
2078 + _("Warning: Invalid keyword"),keyword,fname);
2082 @@ -1853,7 +1853,7 @@
2083 case 85: dns_children=atoi(value); break; /* DNSChildren */
2085 case 84: /* Disable DNSCache and DNSChildren if DNS is not enabled */
2086 - case 85: printf("%s '%s' (%s)\n",msg_bad_key,keyword,fname); break;
2087 + case 85: printf("%s '%s' (%s)\n",_("Warning: Invalid keyword"),keyword,fname); break;
2088 #endif /* USE_DNS */
2089 case 86: daily_graph=
2090 (tolower(value[0])=='n')?0:1; break; /* HourlyGraph */
2091 @@ -1884,7 +1884,7 @@
2092 case 101: /* Disable CacheIPs/CacheTTL/GeoDB/GeoDBDatabase if none */
2095 - case 104: printf("%s '%s' (%s)\n",msg_bad_key,keyword,fname); break;
2096 + case 104: printf("%s '%s' (%s)\n",_("Warning: Invalid keyword"),keyword,fname); break;
2097 #endif /* USE_DNS */
2099 (tolower(value[0])=='n')?0:1; break; /* StripCGI */
2100 @@ -1902,7 +1902,7 @@
2101 case 112: geoip_db=save_opt(value); break; /* GeoIPDatabase */
2103 case 111: /* Disable GeoIP and GeoIPDatabase if not enabled */
2104 - case 112: printf("%s '%s' (%s)\n",msg_bad_key,keyword,fname); break;
2105 + case 112: printf("%s '%s' (%s)\n",_("Warning: Invalid keyword"),keyword,fname); break;
2107 case 113: normalize=
2108 (tolower(value[0])=='n')?0:1; break; /* NormalizeURL */
2109 @@ -1995,7 +1995,7 @@
2113 - printf("%s: %s %s\n",h_usage1,pname,h_usage2);
2114 + printf("%s: %s %s\n",_("Usage"),pname,_("[options] [log file]"));
2115 for (i=0;h_msg[i];i++) printf("%s\n",_(h_msg[i]));
2118 @@ -2246,7 +2246,7 @@
2121 /* Error adding search string node, skipping .... */
2122 - fprintf(stderr,"%s %s\n", msg_nomem_sc, tmpbuf);
2123 + fprintf(stderr,"%s %s\n", _("Error adding Search String Node, skipping"), tmpbuf);