forked from aniani/vim
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
3c240f608c
commit
68ebcee023
@@ -1376,7 +1376,7 @@ regatom(int *flagp)
|
||||
if (one_exactly)
|
||||
EMSG_ONE_RET_NULL;
|
||||
// Supposed to be caught earlier.
|
||||
IEMSG_RET_NULL(_(e_internal_error_in_regexp));
|
||||
IEMSG_RET_NULL(e_internal_error_in_regexp);
|
||||
// NOTREACHED
|
||||
|
||||
case Magic('='):
|
||||
@@ -2477,7 +2477,7 @@ bt_regcomp(char_u *expr, int re_flags)
|
||||
int flags;
|
||||
|
||||
if (expr == NULL)
|
||||
IEMSG_RET_NULL(_(e_null_argument));
|
||||
IEMSG_RET_NULL(e_null_argument);
|
||||
|
||||
init_class_tab();
|
||||
|
||||
@@ -3103,7 +3103,7 @@ do_class:
|
||||
break;
|
||||
|
||||
default: // Oh dear. Called inappropriately.
|
||||
iemsg(_(e_corrupted_regexp_program));
|
||||
iemsg(e_corrupted_regexp_program);
|
||||
#ifdef DEBUG
|
||||
printf("Called regrepeat with op code %d\n", OP(p));
|
||||
#endif
|
||||
@@ -4327,7 +4327,7 @@ regmatch(
|
||||
break;
|
||||
|
||||
default:
|
||||
iemsg(_(e_corrupted_regexp_program));
|
||||
iemsg(e_corrupted_regexp_program);
|
||||
#ifdef DEBUG
|
||||
printf("Illegal op code %d\n", op);
|
||||
#endif
|
||||
@@ -4740,7 +4740,7 @@ regmatch(
|
||||
{
|
||||
// We get here only if there's trouble -- normally "case END" is
|
||||
// the terminating point.
|
||||
iemsg(_(e_corrupted_regexp_program));
|
||||
iemsg(e_corrupted_regexp_program);
|
||||
#ifdef DEBUG
|
||||
printf("Premature EOL\n");
|
||||
#endif
|
||||
@@ -4889,7 +4889,7 @@ bt_regexec_both(
|
||||
// Be paranoid...
|
||||
if (prog == NULL || line == NULL)
|
||||
{
|
||||
iemsg(_(e_null_argument));
|
||||
iemsg(e_null_argument);
|
||||
goto theend;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user