This should aid translation.
status = cairo_surface_status (surface);
if (status != CAIRO_STATUS_SUCCESS)
{
- error (0, 0, _("opening output file \"%s\": %s"),
+ error (0, 0, _("error opening output file \"%s\": %s"),
file_name, cairo_status_to_string (status));
cairo_surface_destroy (surface);
goto error;
status = cairo_surface_write_to_png (surface, file_name);
if (status != CAIRO_STATUS_SUCCESS)
- error (0, 0, _("writing output file \"%s\": %s"),
+ error (0, 0, _("error writing output file \"%s\": %s"),
file_name, cairo_status_to_string (status));
cairo_destroy (cr);
if (csv->file == NULL)
{
- error (0, errno, _("csv: opening output file \"%s\""), csv->file_name);
+ error (0, errno, _("error opening output file \"%s\""), csv->file_name);
output_driver_destroy (d);
return NULL;
}
html->file = fn_open (html->file_name, "w");
if (html->file == NULL)
{
- error (0, errno, _("opening HTML output file: %s"), html->file_name);
+ error (0, errno, _("error opening output file \"%s\""), html->file_name);
goto error;
}
if (journal != NULL && journal->file != NULL)
{
if (fwriteerror (journal->file))
- error (0, errno, _("error writing \"%s\""), journal_file_name);
+ error (0, errno, _("error writing output file \"%s\""),
+ journal_file_name);
journal->file = NULL;
}
}
j->file = fopen (journal_file_name, "a");
if (j->file == NULL)
{
- error (0, errno, _("%s: open failed"), journal_file_name);
+ error (0, errno, _("error opening output file \"%s\""),
+ journal_file_name);
output_driver_destroy (&j->driver);
return;
}
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2007, 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
file = fopen (file_name, "r");
if (file == NULL)
{
- error (0, errno, _("error opening \"%s\""), file_name);
+ error (0, errno, _("error opening input file \"%s\""), file_name);
return false;
}
if (!ds_read_config_line (&line, &line_number, file))
{
if (ferror (file))
- error (0, errno, _("error reading \"%s\""), file_name);
+ error (0, errno, _("error reading file \"%s\""), file_name);
break;
}
file = fn_open (file_name, "w");
if (file == NULL)
{
- error (0, errno, _("%s: open failed"), file_name);
+ error (0, errno, _("error opening output file \"%s\""), file_name);
return NULL;
}
if (fp == NULL)
{
- error (0, errno, _("failed to create output file %s"),
+ error (0, errno, _("error opening output file \"%s\""),
ds_cstr (&filename));
ds_destroy (&filename);
return false;