]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1523: some error messages are not marked for translation v9.0.1523
authorzeertzjq <zeertzjq@outlook.com>
Sun, 7 May 2023 20:59:33 +0000 (21:59 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 7 May 2023 20:59:33 +0000 (21:59 +0100)
Problem:    Some error messages are not marked for translation.
Solution:   Surround the messages in _(). (closes #12356)

src/popupmenu.c
src/scriptfile.c
src/version.c
src/vim9compile.c

index 9cba669e344c09a035b7091570463507fe367685..7210420e1a0b61a740f7aef66d0385d7d566c953 100644 (file)
@@ -1526,7 +1526,7 @@ pum_show_popupmenu(vimmenu_T *menu)
     // pum_size being zero.
     if (pum_size <= 0)
     {
-       emsg(e_menu_only_exists_in_another_mode);
+       emsg(_(e_menu_only_exists_in_another_mode));
        return;
     }
 
index b2e25092fc91ae02f3e00590634f9e4f6f792fe4..8a42db92024d42aa6a5c8dbb6bf0e4526c66fb1b 100644 (file)
@@ -2126,7 +2126,7 @@ f_getscriptinfo(typval_T *argvars, typval_T *rettv)
                return;
            if (sid <= 0)
            {
-               semsg(e_invalid_value_for_argument_str_str, "sid",
+               semsg(_(e_invalid_value_for_argument_str_str), "sid",
                                                tv_get_string(&sid_di->di_tv));
                return;
            }
index b24277d9f78bdaa56e2caef011ea543eec6e6855..1197ada9118b39e13215a7a02c27732fa441bd9d 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1523,
 /**/
     1522,
 /**/
index f045c74af0055cff4da036afaa5c7fd9e90364a1..477f5eed7e71977011013658a9f2bcb1d80467f5 100644 (file)
@@ -2156,7 +2156,7 @@ compile_assign_unlet(
        dest_type = lhs->lhs_type->tt_type;
        if (dest_type == VAR_DICT && range)
        {
-           emsg(e_cannot_use_range_with_dictionary);
+           emsg(_(e_cannot_use_range_with_dictionary));
            return FAIL;
        }
        if (dest_type == VAR_DICT