Do not translate g_warning() strings
authorRicardo Mones <ricardo@mones.org>
Tue, 22 Sep 2015 17:55:14 +0000 (19:55 +0200)
committerRicardo Mones <ricardo@mones.org>
Tue, 22 Sep 2015 17:55:14 +0000 (19:55 +0200)
They aren't for end user error reporting.
Also, remove needless line breaks inside.

12 files changed:
src/addressadd.c
src/avatars.c
src/headerview.c
src/imap.c
src/main.c
src/mh.c
src/plugins/fetchinfo/fetchinfo_plugin.c
src/plugins/gdata/gdata_plugin.c
src/plugins/notification/notification_prefs.c
src/plugins/pgpcore/sgpgme.c
src/plugins/pgpmime/pgpmime.c
src/textview.c

index 868dd9f..c78aafe 100644 (file)
@@ -482,7 +482,7 @@ gboolean addressadd_selection(const gchar *name, const gchar *address,
                                                                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);
                                        }
index e940b43..2a167e9 100644 (file)
@@ -99,7 +99,7 @@ void avatars_init(void)
        }
        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");
        }
 }
 
index 6ac0959..f24dbb0 100644 (file)
@@ -277,7 +277,7 @@ static void headerview_save_contact_pic (HeaderView *headerview, MsgInfo *msginf
        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);
                }
index 22be043..e5fb2af 100644 (file)
@@ -3286,8 +3286,8 @@ static gint imap_rename_folder(Folder *folder, FolderItem *item,
 
        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;
        }
 
index 3605ad4..5ae9c8c 100644 (file)
@@ -934,14 +934,14 @@ static void install_dbus_status_handler(void)
                        "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;
        }
index f40bd87..8a307c3 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -441,7 +441,7 @@ static gint mh_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
                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;
index 57de922..d5e374e 100644 (file)
@@ -148,7 +148,7 @@ void fetchinfo_save_config(void)
 
        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;
        }
index b3e6a39..f7f40d8 100644 (file)
@@ -72,7 +72,7 @@ static void cm_gdata_save_config(void)
 
   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;
   }
index ab08baf..4ad8f39 100644 (file)
@@ -578,8 +578,8 @@ void notify_save_config(void)
 
        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;
        }
index 2cc5a2f..7b08111 100644 (file)
@@ -213,7 +213,7 @@ gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status)
                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"), 
index 05cef5c..a8f38ec 100644 (file)
@@ -71,7 +71,7 @@ static PrivacyDataPGP *pgpmime_new_privacydata()
        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;
        }
        
index 0a39b7a..dc103be 100644 (file)
@@ -2054,7 +2054,7 @@ static void textview_save_contact_pic(TextView *textview)
        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);
                }