]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0229: Error E877 is not translated v9.1.0229
authorChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 15:52:56 +0000 (17:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 Mar 2024 15:56:17 +0000 (17:56 +0200)
Problem:  Error E877 is not translated (RestorerZ)
Solution: Declare the error with N_ to mark it as translatable, add _()
          around the error message in regexp_nfa.c

fixes: #14333

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/errors.h
src/regexp_nfa.c
src/version.c

index 18d3f0cb6135a213ccc0f8412d19ec9e8089673f..00f7df07c3ccb5338c87551259b6f7215c1b36e0 100644 (file)
@@ -2268,7 +2268,7 @@ EXTERN char e_nfa_regexp_while_converting_from_postfix_to_nfa_too_many_stats_lef
 EXTERN char e_nfa_regexp_not_enough_space_to_store_whole_nfa[]
        INIT(= N_("E876: (NFA regexp) Not enough space to store the whole NFA"));
 EXTERN char e_nfa_regexp_invalid_character_class_nr[]
-       INIT(= "E877: (NFA regexp) Invalid character class: %d");
+       INIT(= N_("E877: (NFA regexp) Invalid character class: %d"));
 EXTERN char e_nfa_regexp_could_not_allocate_memory_for_branch_traversal[]
        INIT(= N_("E878: (NFA regexp) Could not allocate memory for branch traversal!"));
 #ifdef FEAT_SYN_HL
index 359ce5b517c1b0f68d5e3e83067791b23d58e789..5e4fadd028bdcae30bc109a5c6d9f0315e291183 100644 (file)
@@ -5150,7 +5150,7 @@ check_char_class(int class, int c)
 
        default:
            // should not be here :P
-           siemsg(e_nfa_regexp_invalid_character_class_nr, class);
+           siemsg(_(e_nfa_regexp_invalid_character_class_nr), class);
            return FAIL;
     }
     return FAIL;
index 2a996a142550bfe5911d9995abfc96a84a655cc9..017ccdbbeb40246ed6c41fe30be302699e069d32 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    229,
 /**/
     228,
 /**/