use ngettext
Showing
1 changed file
with
8 additions
and
2 deletions
... | @@ -286,7 +286,10 @@ comsat_daemon (int port) | ... | @@ -286,7 +286,10 @@ comsat_daemon (int port) |
286 | unsigned delay; | 286 | unsigned delay; |
287 | 287 | ||
288 | delay = overflow_delay_time << (overflow_count + 1); | 288 | delay = overflow_delay_time << (overflow_count + 1); |
289 | syslog (LOG_NOTICE, _("too many requests: pausing for %u seconds"), | 289 | syslog (LOG_NOTICE, |
290 | ngettext ("too many requests: pausing for %u second", | ||
291 | "too many requests: pausing for %u seconds", | ||
292 | delay), | ||
290 | delay); | 293 | delay); |
291 | sleep (delay); | 294 | sleep (delay); |
292 | reqcount = 0; | 295 | reqcount = 0; |
... | @@ -344,7 +347,10 @@ comsat_main (int fd) | ... | @@ -344,7 +347,10 @@ comsat_main (int fd) |
344 | return 1; | 347 | return 1; |
345 | } | 348 | } |
346 | 349 | ||
347 | syslog (LOG_INFO, _("%d bytes from %s"), rdlen, inet_ntoa (sin_from.sin_addr)); | 350 | syslog (LOG_INFO, |
351 | ngettext ("%d byte from %s", | ||
352 | "%d bytes from %s", rdlen), | ||
353 | rdlen, inet_ntoa (sin_from.sin_addr)); | ||
348 | 354 | ||
349 | buffer[rdlen] = 0; | 355 | buffer[rdlen] = 0; |
350 | 356 | ... | ... |
-
Please register or sign in to post a comment