bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Localization bugs in findutils


From: Jorma Karvonen
Subject: Localization bugs in findutils
Date: Fri, 23 Oct 2009 21:09:30 +0300

Hello,

here are some messages that probably need to be localized. I have
shown them in localized form:

find/fstype.c:203
error(1, 0, _("Cannot read mounted file system list"));

find/find.c:296
error(1, 0, _("Cannot read list of mounted devices."));

find/find.c:693
error(1, errno,
        _("failed to return to parent directory"));

find/ftsfind.c:344
fprintf(fp, _("Outstanding execdirs:"));

All text in while loop within lines 346 and 375 would need refactoring
to be localized, I think.

find/parser.c:1030
error(1, errno, _("Unexpected suffix %s on %s"),

find/parser.c:1036
error(1, errno, _("Expected an integer: %s"),

find/parser.c:3340
const char *errmsg = _("arithmetic overflow while converting %s "
    "days to a number of seconds");

find/parser.c: lines 3385-3399 need refactoring
find/parser.c: lines 3496-3502 need refactoring

The following should not be localized:
find/pred.c:1427
fprintf (stderr, _("< %s ... %s > ? "), program, arg);

find/pred.c:2302
error(0, 0,
      _("charsprinted=%ld but remaining=%lu: ns_buf=%s"),
      (long)charsprinted, (unsigned long)remaining, ns_buf);

What about localizing weekdays and months starting with line 2312 ?

find/pred.c:2440 p->need_stat ? "[call stat] " : "",
find/pred.c:2441 p->need_type ? "[need type] " : "");

find/pred.c:2465
fprintf(stderr, _("Predicate success rates after completion:\n"));

find/tree.c:347
fprintf(stderr, "%s:\n", _("predlist before merge sort"))

find/tree.c:394
fprintf(stderr, "%s:\n", _("predlist after merge sort"));

function consider_arm_swap() includes several strings without
localizing. The rest of file contains also many other strings without
localizing.

find/util.c:492
fprintf(stderr, _("fallback_stat(): stat(%s) failed; falling back on
lstat()\n"), name);

Best regards,

Jorma Karvonen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]