# HG changeset patch # User Bram Moolenaar # Date 1683493203 -7200 # Node ID b8e9ea3c1ed06048dce3e0775483c34fff0972a9 # Parent 39901eb11943874f31276ab76c72957b2fe38dc4 patch 9.0.1523: some error messages are not marked for translation Commit: https://github.com/vim/vim/commit/276410e78f0b82e3123059383994d2f4c578dfbd Author: zeertzjq Date: Sun May 7 21:59:33 2023 +0100 patch 9.0.1523: some error messages are not marked for translation Problem: Some error messages are not marked for translation. Solution: Surround the messages in _(). (closes https://github.com/vim/vim/issues/12356) diff --git a/src/popupmenu.c b/src/popupmenu.c --- a/src/popupmenu.c +++ b/src/popupmenu.c @@ -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; } diff --git a/src/scriptfile.c b/src/scriptfile.c --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -2126,7 +2126,7 @@ f_getscriptinfo(typval_T *argvars, typva 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; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1523, +/**/ 1522, /**/ 1521, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -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