aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-01 16:29:55 +0800
committerGitHub <noreply@github.com>2023-10-01 16:29:55 +0800
commit2da66f1f710523548ca0746d5f7ef945de6d8f6a (patch)
treeb1c7a7ce0e044a058f2b236e77e7efa563655143
parent248305cf377de6710daa89a92eb8605fa5dcbb1f (diff)
downloadrneovim-2da66f1f710523548ca0746d5f7ef945de6d8f6a.tar.gz
rneovim-2da66f1f710523548ca0746d5f7ef945de6d8f6a.tar.bz2
rneovim-2da66f1f710523548ca0746d5f7ef945de6d8f6a.zip
vim-patch:9.0.1967: xattr errors not translated (#25454)
Problem: xattr errors not translated Solution: mark for translation, consistently capitalize first letter. closes: vim/vim#13236 https://github.com/vim/vim/commit/7ece036d72cf639b05d3936183220bec7179bf63
-rw-r--r--src/nvim/os/fs.c6
-rw-r--r--test/old/testdir/test_writefile.vim1
2 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index de7996e51b..476ede2046 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -66,9 +66,9 @@ static const char e_xattr_erange[]
static const char e_xattr_enotsup[]
= N_("E1507: Extended attributes are not supported by the filesystem");
static const char e_xattr_e2big[]
- = N_("E1508: size of the extended attribute value is larger than the maximum size allowed");
+ = N_("E1508: Size of the extended attribute value is larger than the maximum size allowed");
static const char e_xattr_other[]
- = N_("E1509: error occured when reading or writing extended attribute");
+ = N_("E1509: Error occured when reading or writing extended attribute");
#endif
struct iovec;
@@ -832,7 +832,7 @@ error_exit:
xfree(val);
if (errmsg != NULL) {
- emsg(errmsg);
+ emsg(_(errmsg));
}
}
#endif
diff --git a/test/old/testdir/test_writefile.vim b/test/old/testdir/test_writefile.vim
index df993feb62..1e0556c92d 100644
--- a/test/old/testdir/test_writefile.vim
+++ b/test/old/testdir/test_writefile.vim
@@ -1011,7 +1011,6 @@ func Test_write_with_xattr_support()
set backupcopy&
bw!
-
endfunc
" vim: shiftwidth=2 sts=2 expandtab