Skip to content

Commit

Permalink
patch 9.0.1967: xattr errors not translated
Browse files Browse the repository at this point in the history
Problem:  xattr errors not translated
Solution: mark for translation, consistently capitalize
          first letter.

closes: #13236

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
  • Loading branch information
zeertzjq authored and chrisbra committed Oct 1, 2023
1 parent e379e21 commit 7ece036
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -3557,9 +3557,9 @@ EXTERN char e_xattr_erange[]
EXTERN char e_xattr_enotsup[]
INIT(= N_("E1507: Extended attributes are not supported by the filesystem"));
EXTERN char e_xattr_e2big[]
INIT(= N_("E1508: size of the extended attribute value is larger than the maximum size allowed"));
INIT(= N_("E1508: Size of the extended attribute value is larger than the maximum size allowed"));
EXTERN char e_xattr_other[]
INIT(= N_("E1509: error occured when reading or writing extended attribute"));
INIT(= N_("E1509: Error occured when reading or writing extended attribute"));
// E1509 - E1519 unused
EXTERN char e_aptypes_is_null_nr_str[]
INIT(= "E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");
2 changes: 1 addition & 1 deletion src/os_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -3186,7 +3186,7 @@ mch_copy_xattr(char_u *from_file, char_u *to_file)
vim_free(val);

if (errmsg != NULL)
emsg((char *)errmsg);
emsg(_(errmsg));
}
#endif

Expand Down
1 change: 0 additions & 1 deletion src/testdir/test_writefile.vim
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,6 @@ func Test_write_with_xattr_support()

set backupcopy&
bw!

endfunc

" vim: shiftwidth=2 sts=2 expandtab
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1967,
/**/
1966,
/**/
Expand Down

0 comments on commit 7ece036

Please sign in to comment.