summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-23 17:56:35 +0000
committerDana Jansens <danakj@orodu.net>2007-04-23 17:56:35 +0000
commit2442cdfd85e5229c7ee4ac49ca66a7d55ffcb919 (patch)
treef651e82bc6e640e21e12f7eb7a2f84870850382e /openbox/action.c
parentea088eb88d7c29558fa59563a934545bc122d5eb (diff)
1) translate all of openbox's output
2) update copyrights. 3) make release. ok that part not quite yet.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/openbox/action.c b/openbox/action.c
index db49f56c..1ba798fe 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -2,7 +2,7 @@
action.c for the Openbox window manager
Copyright (c) 2006 Mikael Magnusson
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,6 +34,7 @@
#include "config.h"
#include "mainloop.h"
#include "startupnotify.h"
+#include "gettext.h"
#include <glib.h>
@@ -912,10 +913,11 @@ ObAction *action_from_string(const gchar *name, ObUserAction uact)
break;
}
if (!exist)
- g_warning("Invalid action '%s' requested. No such action exists.",
+ g_message(_("Invalid action '%s' requested. No such action exists."),
name);
if (!a)
- g_warning("Invalid use of action '%s'. Action will be ignored.", name);
+ g_message(_("Invalid use of action '%s'. Action will be ignored."),
+ name);
return a;
}
@@ -1104,7 +1106,7 @@ void action_execute(union ActionData *data)
cmd = g_filename_from_utf8(data->execute.path, -1, NULL, NULL, NULL);
if (cmd) {
if (!g_shell_parse_argv (cmd, NULL, &argv, &e)) {
- g_warning("failed to execute '%s': %s",
+ g_message(_("Failed to execute '%s': %s"),
cmd, e->message);
g_error_free(e);
} else if (data->execute.startupnotify) {
@@ -1122,7 +1124,7 @@ void action_execute(union ActionData *data)
if (!g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH |
G_SPAWN_DO_NOT_REAP_CHILD,
NULL, NULL, NULL, &e)) {
- g_warning("failed to execute '%s': %s",
+ g_message(_("Failed to execute '%s': %s"),
cmd, e->message);
g_error_free(e);
sn_spawn_cancel();
@@ -1135,7 +1137,7 @@ void action_execute(union ActionData *data)
G_SPAWN_DO_NOT_REAP_CHILD,
NULL, NULL, NULL, &e))
{
- g_warning("failed to execute '%s': %s",
+ g_message(_("Failed to execute '%s': %s"),
cmd, e->message);
g_error_free(e);
}
@@ -1143,7 +1145,8 @@ void action_execute(union ActionData *data)
}
g_free(cmd);
} else {
- g_warning("failed to convert '%s' from utf8", data->execute.path);
+ g_message(_("Failed to convert the path '%s' from utf8"),
+ data->execute.path);
}
}
}