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 868dd9f985354c3b35d070ec31286db0f130bf27..c78aafecadb2b8005bf548c3537463efa55a7cbe 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 e940b4322531f9e1bd993fbba7549dd7faad1c7c..2a167e950c82af5af71ddd208d5e3aeeecfdac34 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 6ac0959a3cff3af92bb1250d956e23437c53893c..f24dbb04398cbea93686c03b848d0275ec36d7bc 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 22be043aaabf5c2fd572834a962048e72cc067d6..e5fb2af65b71bbd559f91be3aa3ee56bf35901b0 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 3605ad4114149aa39191db2463ae41e589ba0b66..5ae9c8c57506a72bbddc78de5f8cca60d6ad76e7 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 f40bd870fb9d54236ea00965fa8a2dc557460275..8a307c3872f1141943a989056ad94f1902989998 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 57de9222472126c305f89978ebc1c1f3a510402c..d5e374e5872ca110e7361930b0d5486e0421abc8 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 b3e6a39f0a219682a192c78f095e1a42bbdca856..f7f40d806fcfdfb4bcb91e3d0d37645fdad45e9c 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 ab08bafbc89a29242ba977710a7e9ef4aa7ae1ce..4ad8f39215a9185e0affad7031f735c05635513d 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 2cc5a2fda3486cbadd9eb33892c78090def8972c..7b081115a764f244d868846044d3342b02619c24 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 05cef5c6a7a1e599737207c8b4885fa944d04c36..a8f38eced950c5b9f2f83b23894569c347c16952 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 0a39b7a9db1245c67289c7ba5b5419df73a23dac..dc103be7dec9409fd7e700d18905bc4ca35c89f6 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);
                }