comparison src/regexp.c @ 32525:bb5458706799 v9.0.1594

patch 9.0.1594: some internal error messages are translated Commit: https://github.com/vim/vim/commit/68ebcee0237d927dd5386073499162389d4d708a Author: RestorerZ <restorer@mail2k.ru> Date: Wed May 31 17:12:14 2023 +0100 patch 9.0.1594: some internal error messages are translated Problem: Some internal error messages are translated. Solution: Consistently do not translate internal error messages. (closes #12459)
author Bram Moolenaar <Bram@vim.org>
date Wed, 31 May 2023 18:15:04 +0200
parents 3bf4736649b7
children 448aef880252
comparison
equal deleted inserted replaced
32524:f32e24ce6970 32525:bb5458706799
1368 // For NFA matcher we don't check the magic 1368 // For NFA matcher we don't check the magic
1369 return FALSE; 1369 return FALSE;
1370 1370
1371 if (UCHARAT(((bt_regprog_T *)prog)->program) != REGMAGIC) 1371 if (UCHARAT(((bt_regprog_T *)prog)->program) != REGMAGIC)
1372 { 1372 {
1373 emsg(_(e_corrupted_regexp_program)); 1373 iemsg(e_corrupted_regexp_program);
1374 return TRUE; 1374 return TRUE;
1375 } 1375 }
1376 return FALSE; 1376 return FALSE;
1377 } 1377 }
1378 1378
2020 int copy = flags & REGSUB_COPY; 2020 int copy = flags & REGSUB_COPY;
2021 2021
2022 // Be paranoid... 2022 // Be paranoid...
2023 if ((source == NULL && expr == NULL) || dest == NULL) 2023 if ((source == NULL && expr == NULL) || dest == NULL)
2024 { 2024 {
2025 emsg(_(e_null_argument)); 2025 iemsg(e_null_argument);
2026 return 0; 2026 return 0;
2027 } 2027 }
2028 if (prog_magic_wrong()) 2028 if (prog_magic_wrong())
2029 return 0; 2029 return 0;
2030 #ifdef FEAT_EVAL 2030 #ifdef FEAT_EVAL
2387 break; 2387 break;
2388 } 2388 }
2389 else if (*s == NUL) // we hit NUL. 2389 else if (*s == NUL) // we hit NUL.
2390 { 2390 {
2391 if (copy) 2391 if (copy)
2392 iemsg(_(e_damaged_match_string)); 2392 iemsg(e_damaged_match_string);
2393 goto exit; 2393 goto exit;
2394 } 2394 }
2395 else 2395 else
2396 { 2396 {
2397 if ((flags & REGSUB_BACKSLASH) 2397 if ((flags & REGSUB_BACKSLASH)