mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:7.4.2250
Problem: Some error message cannot be translated.
Solution: Enclose them in _() and N_(). (Dominique Pelle)
5b30291785
This commit is contained in:
@@ -5532,8 +5532,8 @@ int match_add(win_T *wp, const char *const grp, const char *const pat,
|
||||
return -1;
|
||||
}
|
||||
if (id < -1 || id == 0) {
|
||||
EMSGN("E799: Invalid ID: %" PRId64
|
||||
" (must be greater than or equal to 1)",
|
||||
EMSGN(_("E799: Invalid ID: %" PRId64
|
||||
" (must be greater than or equal to 1)"),
|
||||
id);
|
||||
return -1;
|
||||
}
|
||||
@@ -5541,7 +5541,7 @@ int match_add(win_T *wp, const char *const grp, const char *const pat,
|
||||
cur = wp->w_match_head;
|
||||
while (cur != NULL) {
|
||||
if (cur->id == id) {
|
||||
EMSGN("E801: ID already taken: %" PRId64, id);
|
||||
EMSGN(_("E801: ID already taken: %" PRId64), id);
|
||||
return -1;
|
||||
}
|
||||
cur = cur->next;
|
||||
@@ -5706,8 +5706,8 @@ int match_delete(win_T *wp, int id, int perr)
|
||||
|
||||
if (id < 1) {
|
||||
if (perr == TRUE)
|
||||
EMSGN("E802: Invalid ID: %" PRId64
|
||||
" (must be greater than or equal to 1)",
|
||||
EMSGN(_("E802: Invalid ID: %" PRId64
|
||||
" (must be greater than or equal to 1)"),
|
||||
id);
|
||||
return -1;
|
||||
}
|
||||
@@ -5717,7 +5717,7 @@ int match_delete(win_T *wp, int id, int perr)
|
||||
}
|
||||
if (cur == NULL) {
|
||||
if (perr == TRUE)
|
||||
EMSGN("E803: ID not found: %" PRId64, id);
|
||||
EMSGN(_("E803: ID not found: %" PRId64), id);
|
||||
return -1;
|
||||
}
|
||||
if (cur == prev)
|
||||
|
Reference in New Issue
Block a user