0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-06-21 20:38:28 +02:00
parent f5433fbfe4
commit 7fe875583b
3 changed files with 11 additions and 7 deletions

View File

@@ -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);
}