mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 792446 - Mixed languages in error dialog.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user