To: vim_dev@googlegroups.com Subject: Patch 9.0.1523 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1523 Problem: Some error messages are not marked for translation. Solution: Surround the messages in _(). (closes #12356) Files: src/popupmenu.c, src/scriptfile.c, src/vim9compile.c *** ../vim-9.0.1522/src/popupmenu.c 2023-04-27 19:36:36.561904172 +0100 --- src/popupmenu.c 2023-05-07 21:54:23.488822945 +0100 *************** *** 1526,1532 **** // pum_size being zero. if (pum_size <= 0) { ! emsg(e_menu_only_exists_in_another_mode); return; } --- 1526,1532 ---- // pum_size being zero. if (pum_size <= 0) { ! emsg(_(e_menu_only_exists_in_another_mode)); return; } *** ../vim-9.0.1522/src/scriptfile.c 2023-04-15 13:17:22.879094522 +0100 --- src/scriptfile.c 2023-05-07 21:54:39.504782576 +0100 *************** *** 2126,2132 **** return; if (sid <= 0) { ! semsg(e_invalid_value_for_argument_str_str, "sid", tv_get_string(&sid_di->di_tv)); return; } --- 2126,2132 ---- return; if (sid <= 0) { ! semsg(_(e_invalid_value_for_argument_str_str), "sid", tv_get_string(&sid_di->di_tv)); return; } *** ../vim-9.0.1522/src/vim9compile.c 2023-04-24 17:15:20.371257120 +0100 --- src/vim9compile.c 2023-05-07 21:55:16.044691538 +0100 *************** *** 2156,2162 **** dest_type = lhs->lhs_type->tt_type; if (dest_type == VAR_DICT && range) { ! emsg(e_cannot_use_range_with_dictionary); return FAIL; } if (dest_type == VAR_DICT --- 2156,2162 ---- dest_type = lhs->lhs_type->tt_type; if (dest_type == VAR_DICT && range) { ! emsg(_(e_cannot_use_range_with_dictionary)); return FAIL; } if (dest_type == VAR_DICT *** ../vim-9.0.1522/src/version.c 2023-05-07 18:53:45.780170928 +0100 --- src/version.c 2023-05-07 21:54:57.756736906 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1523, /**/ -- Me? A skeptic? I trust you have proof. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///