Make one error translatable

This is now the same as in `read`
This commit is contained in:
Fabian Boehm 2023-01-13 17:57:04 +01:00
parent dad8c527e0
commit 9ef7fe1a15

View File

@ -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); 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) { 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, 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(); auto &vars = parser->vars();