Bug 792446 - Mixed languages in error dialog.

This commit is contained in:
John Ralls
2018-09-27 18:05:01 -07:00
parent 2094282790
commit 26714d2e17
3 changed files with 4 additions and 4 deletions

View File

@@ -818,7 +818,8 @@ pcd_save_custom_data(PrintCheckDialog *pcd, const gchar *title)
GTK_BUTTONS_CLOSE, "%s",
_("Cannot save check format file."));
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
"%s", error->message);
_("Cannot open file %s"),
_(error->message));
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
g_error_free(error);

View File

@@ -240,8 +240,7 @@ void gnc_state_save (const QofSession *session)
if (error)
{
PERR ("Error: Failure saving state file.\n %s",
error->message);
PERR ("Error: Cannot open state file %s", error->message);
g_error_free (error);
}
}

View File

@@ -122,7 +122,7 @@ gnc_key_file_save_to_file (const gchar *filename,
if (error)
{
*error = g_error_new(G_FILE_ERROR, g_file_error_from_errno(errno),
"Cannot open file %s: %s", filename,
"%s: %s", filename,
strerror(errno));
}
else