Dominique Pelle wrote:
> I noticed a few error messages which are not translated with gettext > in eval.c. > > For example, I do: > > :lang fr_FR.UTF-8 > :call filter(list) > > I get an error message in English... > > E116: Invalid arguments for function filter > > ... which I'd expect to be translated with gettext in French. > > Attached patch fixes a couple of such error messages > which are not translated. Thanks, I'll include it. > Notice also the FIXME comment in the attached patch: shouldn't > E118 and E740 error message be the same error message? > See how similar they are: > > "E740: Too many arguments for function %s" > "E118: Too many arguments for function: %s" > > I then entered the following command to see whether they > are other dupes in the translated messages and found > the following: > > $ cd vim7/src/po > $ grep msgid fr.po | egrep '"E[0-9]+' | > sed s'/msgid "E[0-9]*://' | > sort | uniq -c | > perl -ane 'print if ($F[0] > 1)' > > 2 Cannot read from \"%s\"" > 2 Can't find file \"%s\" in path" > 2 Can't open file \"%s\"" > 2 digit expected" > 2 Missing quote: %s" > 2 No such syntax cluster: %s" > 2 Unknown option: %s" > 3 Illegal argument: %s" > 3 Missing colon" > 3 Unknown function: %s" > > msgid "E230: Cannot read from \"%s\"" > msgid "E282: Cannot read from \"%s\"" > > msgid "E345: Can't find file \"%s\" in path" > msgid "E447: Can't find file \"%s\" in path" > > msgid "E624: Can't open file \"%s\" > msgid "E456: Can't open file \"%s\"" > > msgid "E552: digit expected" > msgid "E548: digit expected" > > msgid "E114: Missing quote: %s" > msgid "E115: Missing quote: %s" > > msgid "E391: No such syntax cluster: %s" > msgid "E392: No such syntax cluster: %s" > > msgid "E113: Unknown option: %s" > msgid "E355: Unknown option: %s" > > msgid "E390: Illegal argument: %s" > msgid "E423: Illegal argument: %s" > msgid "E125: Illegal argument: %s" > > msgid "E550: Missing colon" > msgid "E545: Missing colon" > msgid "E524: Missing colon" > > msgid "E130: Unknown function: %s" > msgid "E117: Unknown function: %s" > msgid "E700: Unknown function: %s" > > There are some other messages that are almost identical: > > msgid "E152: Cannot open %s for writing" > msgid "E190: Cannot open \"%s\" for writing" > > msgid "E484: Can't open file %s > msgid "E624: Can't open file \"%s\"" > msgid "E456: Can't open file \"%s\"" Even though these messages have the same text, they are still different errors. In a try/catch you can use the error number to distinguish them. -- Computers are useless. They can only give you answers. -- Pablo Picasso /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---