Mercurial > vim
changeset 32383:b8e9ea3c1ed0 v9.0.1523
patch 9.0.1523: some error messages are not marked for translation
Commit: https://github.com/vim/vim/commit/276410e78f0b82e3123059383994d2f4c578dfbd
Author: zeertzjq <zeertzjq@outlook.com>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 May 2023 23:00:03 +0200 |
parents | 39901eb11943 |
children | 0843fba7af86 |
files | src/popupmenu.c src/scriptfile.c src/version.c src/vim9compile.c |
diffstat | 4 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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; }