Mercurial > vim
comparison src/os_mswin.c @ 26893:79c76ca2c53c v8.2.3975
patch 8.2.3975: error messages are spread out
Commit: https://github.com/vim/vim/commit/cbadefe25a27ded93548eaa7a325d2a04bf55d7c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 19:33:50 2022 +0000
patch 8.2.3975: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 20:45:03 +0100 |
parents | 7f150a4936f2 |
children | 51ddf6740ac6 |
comparison
equal
deleted
inserted
replaced
26892:71e7c936307f | 26893:79c76ca2c53c |
---|---|
1397 stored_nCopies = prt_dlg.nCopies; | 1397 stored_nCopies = prt_dlg.nCopies; |
1398 } | 1398 } |
1399 | 1399 |
1400 if (prt_dlg.hDC == NULL) | 1400 if (prt_dlg.hDC == NULL) |
1401 { | 1401 { |
1402 emsg(_("E237: Printer selection failed")); | 1402 emsg(_(e_printer_selection_failed)); |
1403 mch_print_cleanup(); | 1403 mch_print_cleanup(); |
1404 return FALSE; | 1404 return FALSE; |
1405 } | 1405 } |
1406 | 1406 |
1407 // Not all printer drivers report the support of color (or grey) in the | 1407 // Not all printer drivers report the support of color (or grey) in the |
1517 // CommDlgExtendedError(). What does? | 1517 // CommDlgExtendedError(). What does? |
1518 FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | | 1518 FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | |
1519 FORMAT_MESSAGE_FROM_SYSTEM | | 1519 FORMAT_MESSAGE_FROM_SYSTEM | |
1520 FORMAT_MESSAGE_IGNORE_INSERTS, | 1520 FORMAT_MESSAGE_IGNORE_INSERTS, |
1521 NULL, err, 0, (LPTSTR)(&buf), 0, NULL); | 1521 NULL, err, 0, (LPTSTR)(&buf), 0, NULL); |
1522 semsg(_("E238: Print error: %s"), | 1522 semsg(_(e_print_error_str), |
1523 buf == NULL ? (char_u *)_("Unknown") : buf); | 1523 buf == NULL ? (char_u *)_("Unknown") : buf); |
1524 LocalFree((LPVOID)(buf)); | 1524 LocalFree((LPVOID)(buf)); |
1525 } | 1525 } |
1526 else | 1526 else |
1527 msg_clr_eos(); // Maybe canceled | 1527 msg_clr_eos(); // Maybe canceled |
2959 break; | 2959 break; |
2960 } | 2960 } |
2961 if (cp->name == NULL && verbose) | 2961 if (cp->name == NULL && verbose) |
2962 { | 2962 { |
2963 char_u *s = utf16_to_enc(p, NULL); | 2963 char_u *s = utf16_to_enc(p, NULL); |
2964 semsg(_("E244: Illegal charset name \"%s\" in font name \"%s\""), s, name); | 2964 |
2965 semsg(_(e_illegal_str_name_str_in_font_name_str), | |
2966 "charset", s, name); | |
2965 vim_free(s); | 2967 vim_free(s); |
2966 break; | 2968 break; |
2967 } | 2969 } |
2968 break; | 2970 break; |
2969 } | 2971 } |
2979 break; | 2981 break; |
2980 } | 2982 } |
2981 if (qp->name == NULL && verbose) | 2983 if (qp->name == NULL && verbose) |
2982 { | 2984 { |
2983 char_u *s = utf16_to_enc(p, NULL); | 2985 char_u *s = utf16_to_enc(p, NULL); |
2984 semsg(_("E244: Illegal quality name \"%s\" in font name \"%s\""), s, name); | 2986 semsg(_(e_illegal_str_name_str_in_font_name_str), |
2987 "quality", s, name); | |
2985 vim_free(s); | 2988 vim_free(s); |
2986 break; | 2989 break; |
2987 } | 2990 } |
2988 break; | 2991 break; |
2989 } | 2992 } |
2990 default: | 2993 default: |
2991 if (verbose) | 2994 if (verbose) |
2992 semsg(_("E245: Illegal char '%c' in font name \"%s\""), p[-1], name); | 2995 semsg(_(e_illegal_char_nr_in_font_name_str), p[-1], name); |
2993 goto theend; | 2996 goto theend; |
2994 } | 2997 } |
2995 while (*p == L':') | 2998 while (*p == L':') |
2996 p++; | 2999 p++; |
2997 } | 3000 } |