Mercurial > vim
diff src/vim9compile.c @ 20961:0e01976dfd3b v8.2.1032
patch 8.2.1032: error message for declaring a variable cannot be translated
Commit: https://github.com/vim/vim/commit/7fe875583bb474d03d281ca59af3320e7e176953
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 21 20:38:28 2020 +0200
patch 8.2.1032: error message for declaring a variable cannot be translated
Problem: Error message for declaring a variable cannot be translated.
Solution: Enclose in _(). Make environment variable a separate message.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Jun 2020 20:45:03 +0200 |
parents | 396fe712eb0f |
children | 0ee7de260208 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4679,12 +4679,13 @@ vim9_declare_error(char_u *name) switch (*name) { - case 'g': scope = " global"; break; - case 'b': scope = " buffer"; break; - case 'w': scope = " window"; break; - case 't': scope = " tab"; break; - case 'v': scope = " v:"; break; - case '$': scope = "n environment"; break; + case 'g': scope = _("global"); break; + case 'b': scope = _("buffer"); break; + case 'w': scope = _("window"); break; + case 't': scope = _("tab"); break; + case 'v': scope = "v:"; break; + case '$': semsg(_(e_declare_env_var), name); return; + default: return; } semsg(_(e_declare_var), scope, name); }