Skip to content

Commit

Permalink
Bug 792446 - Mixed languages in error dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Sep 28, 2018
1 parent 2094282 commit 26714d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion gnucash/gnome/dialog-print-check.c
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions libgnucash/app-utils/gnc-state.c
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/core-utils/gnc-gkeyfile-utils.c
Expand Up @@ -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
Expand Down

0 comments on commit 26714d2

Please sign in to comment.