They aren't for end user error reporting.
Also, remove needless line breaks inside.
ADDRITEM_ID(person), ".png", NULL );
gdk_pixbuf_save(picture, name, "png", &error, NULL);
if (error) {
- g_warning(_("Failed to save image: \n%s"),
+ g_warning("Failed to save image: %s",
error->message);
g_error_free(error);
}
}
avatar_render_hook_id = hooks_register_hook(AVATAR_IMAGE_RENDER_HOOKLIST, avatars_internal_rendering_hook, NULL);
if (avatar_render_hook_id == -1) {
- g_warning(_("Failed to register avatars internal rendering hook"));
+ g_warning("Failed to register avatars internal rendering hook");
}
}
if (!is_file_exist(filename)) {
gdk_pixbuf_save(picture, filename, "png", &error, NULL);
if (error) {
- g_warning(_("Failed to save image: \n%s"),
+ g_warning("Failed to save image: %s",
error->message);
g_error_free(error);
}
if (strchr(name, imap_get_path_separator(session, IMAP_FOLDER(folder), item->path, &ok)) != NULL ||
is_fatal(ok)) {
- g_warning(_("New folder name must not contain the namespace "
- "path separator"));
+ g_warning("New folder name must not contain the namespace "
+ "path separator");
return -1;
}
"com.google.code.Awn");
dbus_item_hook_id = hooks_register_hook (FOLDER_ITEM_UPDATE_HOOKLIST, dbus_status_update_item_hook, NULL);
if (dbus_item_hook_id == -1) {
- g_warning(_("Failed to register folder item update hook"));
+ g_warning("Failed to register folder item update hook");
uninstall_dbus_status_handler();
return;
}
dbus_folder_hook_id = hooks_register_hook (FOLDER_UPDATE_HOOKLIST, dbus_status_update_folder_hook, NULL);
if (dbus_folder_hook_id == -1) {
- g_warning(_("Failed to register folder update hook"));
+ g_warning("Failed to register folder update hook");
uninstall_dbus_status_handler();
return;
}
if (link(fileinfo->file, destfile) < 0) {
#endif
if (copy_file(fileinfo->file, destfile, TRUE) < 0) {
- g_warning(_("can't copy message %s to %s\n"),
+ g_warning("can't copy message %s to %s",
fileinfo->file, destfile);
g_free(destfile);
return -1;
if (prefs_write_param(param, pfile->fp) < 0) {
/* i18n: Possible error message during plugin load */
- g_warning(_("failed to write Fetchinfo configuration to file\n"));
+ g_warning("failed to write Fetchinfo configuration to file");
prefs_file_close_revert(pfile);
return;
}
if (prefs_write_param(cm_gdata_param, pfile->fp) < 0) {
debug_print("failed!\n");
- g_warning(_("\nGData Plugin: Failed to write plugin configuration to file\n"));
+ g_warning("GData Plugin: Failed to write plugin configuration to file");
prefs_file_close_revert(pfile);
return;
}
if (prefs_write_param(notify_param, pfile->fp) < 0) {
debug_print("failed!\n");
- g_warning(_("\nNotification Plugin: Failed to write plugin configuration "
- "to file\n"));
+ g_warning("Notification Plugin: Failed to write plugin configuration "
+ "to file");
prefs_file_close_revert(pfile);
return;
}
if (!warned)
alertpanel_error(_("PGP Core: Can't get key - no gpg-agent running."));
else
- g_warning(_("PGP Core: Can't get key - no gpg-agent running."));
+ g_warning("PGP Core: Can't get key - no gpg-agent running.");
warned = TRUE;
} else if (gpg_err_code(err) != GPG_ERR_NO_ERROR && gpg_err_code(err) != GPG_ERR_EOF) {
return g_strdup_printf(_("The signature can't be checked - %s"),
data->is_signed = FALSE;
data->sigstatus = NULL;
if ((err = gpgme_new(&data->ctx)) != GPG_ERR_NO_ERROR) {
- g_warning(_("Couldn't initialize GPG context, %s"), gpgme_strerror(err));
+ g_warning("Couldn't initialize GPG context: %s", gpgme_strerror(err));
return NULL;
}
if (!is_file_exist(filename)) {
gdk_pixbuf_save(picture, filename, "png", &error, NULL);
if (error) {
- g_warning(_("Failed to save image: \n%s"),
+ g_warning("Failed to save image: %s",
error->message);
g_error_free(error);
}