[anjuta] jhbuild: Translate error messages.



commit b0bd33e5afdcdd2bbc6b21a435b58dd87d471418
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Sun Nov 11 17:50:37 2012 +0100

    jhbuild: Translate error messages.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688102

 plugins/jhbuild/plugin.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/plugins/jhbuild/plugin.c b/plugins/jhbuild/plugin.c
index acd3a4e..73bb907 100644
--- a/plugins/jhbuild/plugin.c
+++ b/plugins/jhbuild/plugin.c
@@ -118,13 +118,13 @@ run_jhbuild_env (GError** error)
     if (!g_spawn_sync(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL,
                       &standard_output, &standard_error, &exit_status, &err))
     {
-        g_propagate_prefixed_error (error, err, "Failed to run \"jhbuild run");
+        g_propagate_prefixed_error (error, err, _("Failed to run \"jhbuild run\""));
         return NULL;
     }
 
     if (WIFEXITED(exit_status) && WEXITSTATUS(exit_status) != 0)
     {
-        g_set_error(error, JHBUILD_PLUGIN_ERROR, 0, "Failed to run \"jhbuild run\" (%s)", standard_error);
+        g_set_error(error, JHBUILD_PLUGIN_ERROR, 0, _("Failed to run \"jhbuild run\" (%s)"), standard_error);
         g_free(standard_error);
         g_free(standard_output);
         return NULL;
@@ -169,7 +169,7 @@ jhbuild_plugin_get_jhbuild_info(JHBuildPlugin* self, GError** error)
 
     if (!self->prefix)
     {
-        g_set_error_literal (error, ANJUTA_SHELL_ERROR, 0, "Could not find the JHBuild install prefix.");
+        g_set_error_literal (error, ANJUTA_SHELL_ERROR, 0,_( "Could not find the JHBuild install prefix."));
         g_strfreev(env_variables);
         return FALSE;
     }
@@ -177,8 +177,8 @@ jhbuild_plugin_get_jhbuild_info(JHBuildPlugin* self, GError** error)
     if (!self->libdir)
     {
         g_set_error_literal (error, JHBUILD_PLUGIN_ERROR, 0,
-                             "Could not find the JHBuild library directory. "
-                             "You need JHBuild from 2012-11-06 or later.");
+                             _("Could not find the JHBuild library directory. "
+                               "You need JHBuild from 2012-11-06 or later."));
         return FALSE;
     }
 
@@ -195,7 +195,7 @@ jhbuild_plugin_activate(AnjutaPlugin* plugin)
     if (!jhbuild_plugin_get_jhbuild_info(self, &err))
     {
         anjuta_util_dialog_error(GTK_WINDOW(self->shell),
-            "Failed to activate the JHBuild Plugin: %s", err->message);
+            _("Failed to activate the JHBuild Plugin: %s"), err->message);
         g_error_free (err);
         return FALSE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]