aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-07-10 08:55:54 +0800
committerJames McCoy <jamessan@jamessan.com>2017-07-13 23:15:29 -0400
commitc805f2cf54aa4ab066bb9e7f3d5b7cc40d04004e (patch)
tree32c2e66384e88f9fd0b7f523adce88039caa702d /src/nvim/window.c
parentf746e38955f33dfdcc0dbdb40efaae82fb4b4c12 (diff)
downloadrneovim-c805f2cf54aa4ab066bb9e7f3d5b7cc40d04004e.tar.gz
rneovim-c805f2cf54aa4ab066bb9e7f3d5b7cc40d04004e.tar.bz2
rneovim-c805f2cf54aa4ab066bb9e7f3d5b7cc40d04004e.zip
vim-patch:7.4.2250
Problem: Some error message cannot be translated. Solution: Enclose them in _() and N_(). (Dominique Pelle) https://github.com/vim/vim/commit/5b30291785e6b9be1a607504c14bd03c601b59a6
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 43af2e5e4f..079e0647e1 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -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)