Mercurial > vim
diff src/vim9compile.c @ 19411:bc880a130120 v8.2.0263
patch 8.2.0263: a few new Vim9 messages are not localized
Commit: https://github.com/vim/vim/commit/df2ecddf9d0acc325c8290fbcff44de25b0c1e75
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 16 15:03:48 2020 +0100
patch 8.2.0263: a few new Vim9 messages are not localized
Problem: A few new Vim9 messages are not localized.
Solution: Add the gettext wrapper. (Dominique Pelle, closes https://github.com/vim/vim/issues/5647)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Feb 2020 15:15:04 +0100 |
parents | 5b6f420e7352 |
children | f3e8e74cb747 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3312,7 +3312,7 @@ compile_assignment(char_u *arg, exarg_T if (oplen == 3 && !heredoc && dest != dest_global && type->tt_type != VAR_STRING && type->tt_type != VAR_UNKNOWN) { - emsg("E1019: Can only concatenate to string"); + emsg(_("E1019: Can only concatenate to string")); goto theend; } @@ -4735,7 +4735,7 @@ compile_def_function(ufunc_T *ufunc, int } else { - emsg("E1025: using } outside of a block scope"); + emsg(_("E1025: using } outside of a block scope")); goto erret; } if (line != NULL) @@ -4995,7 +4995,7 @@ erret: if (errormsg != NULL) emsg(errormsg); else if (called_emsg == called_emsg_before) - emsg("E1028: compile_def_function failed"); + emsg(_("E1028: compile_def_function failed")); // don't execute this function body ufunc->uf_lines.ga_len = 0;