]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1967: xattr errors not translated v9.0.1967
authorzeertzjq <zeertzjq@outlook.com>
Sun, 1 Oct 2023 07:07:14 +0000 (09:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 1 Oct 2023 07:07:14 +0000 (09:07 +0200)
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>
src/errors.h
src/os_unix.c
src/testdir/test_writefile.vim
src/version.c

index 16b38cf99aed3c13bdc80a9838fafd0bc287898d..bb807e7d56a9041ce19ff9c7e9e85f33869c8098 100644 (file)
@@ -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");
index 5ec45c8ff01febd1f5254e8b26fb6ab394456527..9356db0b75765dc1329d84ab98d6bd2ebca9f2e1 100644 (file)
@@ -3186,7 +3186,7 @@ error_exit:
     vim_free(val);
 
     if (errmsg != NULL)
-       emsg((char *)errmsg);
+       emsg(_(errmsg));
 }
 #endif
 
index 3b0164e8807a97d8aef7fb46341ff7b073e5b828..600c36d9b2b552fb3bb22950a64ecc45dad18d9e 100644 (file)
@@ -998,7 +998,6 @@ func Test_write_with_xattr_support()
 
   set backupcopy&
   bw!
-
 endfunc
 
 " vim: shiftwidth=2 sts=2 expandtab
index 2c3c9f1bf5fcc7fee0186edb02835c3c221311a2..a46db2a853879991f53b8c5e12e3966b01a59e59 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1967,
 /**/
     1966,
 /**/