if (handle != NULL)
{
msg (SE, _("File handle %s is already defined. "
- "Use CLOSE FILE HANDLE before redefining a file handle."),
- handle_name);
+ "Use %s before redefining a file handle."),
+ handle_name, "CLOSE FILE HANDLE");
goto exit_free_handle_name;
}
}
else
{
- msg (SE, _("RECFORM must be specified with MODE=360."));
+ msg (SE, _("%s must be specified with %s."), "RECFORM", "MODE=360");
goto exit_free_cmd;
}
break;
bool ok;
if (proc_make_temporary_transformations_permanent (ds))
- msg (SE, _("DELETE VARIABLES may not be used after TEMPORARY. "
- "Temporary transformations will be made permanent."));
+ msg (SE, _("%s may not be used after %s. "
+ "Temporary transformations will be made permanent."),
+ "DELETE VARIABLES", "TEMPORARY");
if (!parse_variables (lexer, dataset_dict (ds), &vars, &var_cnt, PV_NONE))
goto error;
if (var_cnt == dict_get_var_cnt (dataset_dict (ds)))
{
- msg (SE, _("DELETE VARIABLES may not be used to delete all variables "
+ msg (SE, _("%s may not be used to delete all variables "
"from the active dataset dictionary. "
- "Use NEW FILE instead."));
+ "Use %s instead."), "DELETE VARIABLES", "NEW FILE");
goto error;
}
size_t i;
if (proc_make_temporary_transformations_permanent (ds))
- msg (SE, _("MODIFY VARS may not be used after TEMPORARY. "
- "Temporary transformations will be made permanent."));
+ msg (SE, _("%s may not be used after %s. "
+ "Temporary transformations will be made permanent."), "MODIFY VARS", "TEMPORARY");
vm.reorder_vars = NULL;
vm.reorder_cnt = 0;
if (already_encountered & 4)
{
- msg (SE, _("KEEP subcommand may be given at most once. It may "
- "not be given in conjunction with the DROP subcommand."));
+ msg (SE, _("%s subcommand may be given at most once. It may "
+ "not be given in conjunction with the %s subcommand."),
+ "KEEP", "DROP");
goto done;
}
already_encountered |= 4;
if (already_encountered & 4)
{
- msg (SE, _("DROP subcommand may be given at most once. It may "
- "not be given in conjunction with the KEEP "
- "subcommand."));
+ msg (SE, _("%s subcommand may be given at most once. It may "
+ "not be given in conjunction with the %s "
+ "subcommand."),
+ "DROP", "KEEP"
+ );
goto done;
}
already_encountered |= 4;
int status = CMD_CASCADING_FAILURE;
if (proc_make_temporary_transformations_permanent (ds))
- msg (SE, _("RENAME VARS may not be used after TEMPORARY. "
- "Temporary transformations will be made permanent."));
+ msg (SE, _("%s may not be used after %s. "
+ "Temporary transformations will be made permanent."), "RENAME VARS", "TEMPORARY");
do
{
{
if (*x == LOWEST)
{
- msg (SE, _("%s or %s must be part of a range."), "LO", "LOWEEST");
+ msg (SE, _("%s or %s must be part of a range."), "LO", "LOWEST");
return false;
}
*y = *x;
: MV_NEVER);
if (proc.mode == GENERAL && proc.exclude == MV_NEVER)
{
- msg (SE, _("Missing mode REPORT not allowed in general mode. "
- "Assuming MISSING=TABLE."));
+ msg (SE, _("Missing mode %s not allowed in general mode. "
+ "Assuming %s."), "REPORT", "MISSING=TABLE");
proc.exclude = MV_ANY;
}
struct crosstabs_proc *proc = proc_;
if (proc->n_pivots)
{
- msg (SE, _("VARIABLES must be specified before TABLES."));
+ msg (SE, _("%s must be specified before %s."), "VARIABLES", "TABLES");
return 0;
}
if (hist->x_min != SYSMIS && hist->x_max != SYSMIS
&& hist->x_min >= hist->x_max)
{
- msg (SE, _("MAX for histogram must be greater than or equal to MIN, "
- "but MIN was specified as %.15g and MAX as %.15g. "
- "MIN and MAX will be ignored."),
- hist->x_min, hist->x_max);
+ msg (SE, _("%s for histogram must be greater than or equal to %s, "
+ "but %s was specified as %.15g and %s as %.15g. "
+ "%s and %s will be ignored."),
+ "MAX", "MIN",
+ "MIN", hist->x_min,
+ "MAX", hist->x_max,
+ "MIN", "MAX");
hist->x_min = hist->x_max = SYSMIS;
}
}
if (pie->x_min != SYSMIS && pie->x_max != SYSMIS
&& pie->x_min >= pie->x_max)
{
- msg (SE, _("MAX for pie chart must be greater than or equal to MIN, "
- "but MIN was specified as %.15g and MAX as %.15g. "
- "MIN and MAX will be ignored."), pie->x_min, pie->x_max);
+ msg (SE, _("%s for pie chart must be greater than or equal to %s, "
+ "but %s was specified as %.15g and %s as %.15g. "
+ "%s and %s will be ignored."),
+ "MAX", "MIN",
+ "MIN", pie->x_min,
+ "MAX", pie->x_max,
+ "MIN", "MAX");
pie->x_min = pie->x_max = SYSMIS;
}
}
{
if (vf->groups != NULL)
msg (SE, _("Variables %s specified multiple times on "
- "GROUPED subcommand."), var_get_name (v[i]));
+ "%s subcommand."), var_get_name (v[i]), "GROUPED");
else
{
vf->n_groups = nl;
goto found;
}
}
- msg (SE, _("Variables %s specified on GROUPED but not on "
- "VARIABLES."), var_get_name (v[i]));
+ msg (SE, _("Variables %s specified on %s but not on "
+ "%s."), var_get_name (v[i]), "GROUPED", "VARIABLES");
found:;
}
if (cmd.sbc_workspace)
{
if ( cmd.n_workspace[0] < 1024 && ! settings_get_testing_mode ())
- msg (SE, _("WORKSPACE must be at least 1MB"));
+ msg (SE, _("%s must be at least 1MB"), "WORKSPACE");
else if (cmd.n_workspace[0] <= 0)
- msg (SE, _("WORKSPACE must be positive"));
+ msg (SE, _("%s must be positive"), "WORKSPACE");
else
settings_set_workspace (cmd.n_workspace[0] * 1024L);
}
lex_get (lexer);
if (new_epoch < 1500)
{
- msg (SE, _("EPOCH must be 1500 or later."));
+ msg (SE, _("%s must be 1500 or later."), "EPOCH");
return 0;
}
settings_set_epoch (new_epoch);
}
else
{
- lex_error (lexer, _("expecting AUTOMATIC or year"));
+ lex_error (lexer, _("expecting %s or year"), "AUTOMATIC");
return 0;
}
return 0;
if (lex_integer (lexer) < 1)
{
- msg (SE, _("LENGTH must be at least 1."));
+ msg (SE, _("%s must be at least %d."), "LENGTH", 1);
return 0;
}
page_length = lex_integer (lexer);
return 0;
if (lex_integer (lexer) < 40)
{
- msg (SE, _("WIDTH must be at least 40."));
+ msg (SE, _("%s must be at least %d."), "WIDTH", 40);
return 0;
}
settings_set_viewwidth (lex_integer (lexer));
if (fmt_is_string (fmt.type))
{
char str[FMT_STRING_LEN_MAX + 1];
- msg (SE, _("FORMAT requires numeric output format as an argument. "
+ msg (SE, _("%s requires numeric output format as an argument. "
"Specified format %s is of type string."),
+ "FORMAT",
fmt_to_string (&fmt, str));
return 0;
}
}
else
{
- msg (SE, _("Too many PRESERVE commands without a RESTORE: at most "
+ msg (SE, _("Too many %s commands without a %s: at most "
"%d levels of saved settings are allowed."),
+ "PRESERVE", "RESTORE",
MAX_SAVED_SETTINGS);
return CMD_CASCADING_FAILURE;
}
}
else
{
- msg (SE, _("RESTORE without matching PRESERVE."));
+ msg (SE, _("%s without matching %s."), "RESTORE", "PRESERVE");
return CMD_FAILURE;
}
}