From 9ef7fe1a1573b43f0e71c0bd7177fa8590ffd81a Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 13 Jan 2023 17:57:04 +0100 Subject: [PATCH] Make one error translatable This is now the same as in `read` --- src/parse_execution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse_execution.cpp b/src/parse_execution.cpp index 0baed0a25..105009511 100644 --- a/src/parse_execution.cpp +++ b/src/parse_execution.cpp @@ -450,7 +450,7 @@ end_execution_reason_t parse_execution_context_t::run_for_statement( auto var = parser->vars().get(for_var_name, ENV_DEFAULT); if (env_var_t::flags_for(for_var_name.c_str()) & env_var_t::flag_read_only) { return report_error(STATUS_INVALID_ARGS, header.var_name, - L"for: %ls: cannot overwrite read-only variable", for_var_name.c_str()); + _(L"%ls: %ls: cannot overwrite read-only variable"), L"for", for_var_name.c_str()); } auto &vars = parser->vars();