Skip to content

Commit 7ece036

Browse files
zeertzjqchrisbra
authored andcommitted
patch 9.0.1967: xattr errors not translated
Problem: xattr errors not translated Solution: mark for translation, consistently capitalize first letter. closes: #13236 Signed-off-by: Christian Brabandt <[email protected]> Co-authored-by: zeertzjq <[email protected]>
1 parent e379e21 commit 7ece036

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/errors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,9 +3557,9 @@ EXTERN char e_xattr_erange[]
35573557
EXTERN char e_xattr_enotsup[]
35583558
INIT(= N_("E1507: Extended attributes are not supported by the filesystem"));
35593559
EXTERN char e_xattr_e2big[]
3560-
INIT(= N_("E1508: size of the extended attribute value is larger than the maximum size allowed"));
3560+
INIT(= N_("E1508: Size of the extended attribute value is larger than the maximum size allowed"));
35613561
EXTERN char e_xattr_other[]
3562-
INIT(= N_("E1509: error occured when reading or writing extended attribute"));
3562+
INIT(= N_("E1509: Error occured when reading or writing extended attribute"));
35633563
// E1509 - E1519 unused
35643564
EXTERN char e_aptypes_is_null_nr_str[]
35653565
INIT(= "E1520: Internal error: ap_types or ap_types[idx] is NULL: %d: %s");

src/os_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3186,7 +3186,7 @@ mch_copy_xattr(char_u *from_file, char_u *to_file)
31863186
vim_free(val);
31873187

31883188
if (errmsg != NULL)
3189-
emsg((char *)errmsg);
3189+
emsg(_(errmsg));
31903190
}
31913191
#endif
31923192

src/testdir/test_writefile.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,6 @@ func Test_write_with_xattr_support()
998998

999999
set backupcopy&
10001000
bw!
1001-
10021001
endfunc
10031002

10041003
" vim: shiftwidth=2 sts=2 expandtab

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1967,
707709
/**/
708710
1966,
709711
/**/

0 commit comments

Comments
 (0)