diff options
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/actions.c | 2 | ||||
| -rw-r--r-- | openbox/actions/execute.c | 6 | ||||
| -rw-r--r-- | openbox/config.c | 2 | ||||
| -rw-r--r-- | openbox/menu.c | 10 | ||||
| -rw-r--r-- | openbox/mouse.c | 4 | ||||
| -rw-r--r-- | openbox/openbox.c | 6 | ||||
| -rw-r--r-- | openbox/session.c | 6 | ||||
| -rw-r--r-- | openbox/translate.c | 8 |
8 files changed, 22 insertions, 22 deletions
diff --git a/openbox/actions.c b/openbox/actions.c index 32b3d274..d43896d7 100644 --- a/openbox/actions.c +++ b/openbox/actions.c @@ -147,7 +147,7 @@ static ObActionsAct* actions_build_act_from_string(const gchar *name) actions_definition_ref(act->def); act->options = NULL; } else - g_message(_("Invalid action '%s' requested. No such action exists."), + g_message(_("Invalid action \"%s\" requested. No such action exists."), name); return act; diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index a857b1b8..24717b56 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -89,7 +89,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) if (!o->cmd) return FALSE; cmd = g_filename_from_utf8(o->cmd, -1, NULL, NULL, NULL); if (!cmd) { - g_message(_("Failed to convert the path '%s' from utf8"), o->cmd); + g_message(_("Failed to convert the path \"%s\" from utf8"), o->cmd); return FALSE; } @@ -98,7 +98,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) event_cancel_all_key_grabs(); if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) { - g_message(_("Failed to execute '%s': %s"), o->cmd, e->message); + g_message(_("Failed to execute \"%s\": %s"), o->cmd, e->message); g_error_free(e); } else { @@ -117,7 +117,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &e)) { - g_message(_("Failed to execute '%s': %s"), o->cmd, e->message); + g_message(_("Failed to execute \"%s\": %s"), o->cmd, e->message); g_error_free(e); if (o->sn) diff --git a/openbox/config.c b/openbox/config.c index 83d326b5..00efd5ec 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -778,7 +778,7 @@ static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, config_dock_app_move_button = b; config_dock_app_move_modifiers = s; } else { - g_message(_("Invalid button '%s' specified in config file"), str); + g_message(_("Invalid button \"%s\" specified in config file"), str); } g_free(str); } diff --git a/openbox/menu.c b/openbox/menu.c index f2458fa8..0c10b757 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -100,7 +100,7 @@ void menu_startup(gboolean reconfig) parse_tree(menu_parse_inst, doc, node->children); xmlFreeDoc(doc); } else - g_message(_("Unable to find a valid menu file '%s'"), + g_message(_("Unable to find a valid menu file \"%s\""), (const gchar*)it->data); } if (!loaded) { @@ -108,7 +108,7 @@ void menu_startup(gboolean reconfig) parse_tree(menu_parse_inst, doc, node->children); xmlFreeDoc(doc); } else - g_message(_("Unable to find a valid menu file '%s'"), + g_message(_("Unable to find a valid menu file \"%s\""), "menu.xml"); } @@ -168,7 +168,7 @@ void menu_pipe_execute(ObMenu *self) return; if (!g_spawn_command_line_sync(self->execute, &output, NULL, NULL, &err)) { - g_message(_("Failed to execute command for pipe-menu '%s': %s"), + g_message(_("Failed to execute command for pipe-menu \"%s\": %s"), self->execute, err->message); g_error_free(err); return; @@ -182,7 +182,7 @@ void menu_pipe_execute(ObMenu *self) parse_tree(menu_parse_inst, doc, node->children); xmlFreeDoc(doc); } else { - g_message(_("Invalid output from pipe-menu '%s'"), self->execute); + g_message(_("Invalid output from pipe-menu \"%s\""), self->execute); } g_free(output); @@ -195,7 +195,7 @@ static ObMenu* menu_from_name(gchar *name) g_assert(name != NULL); if (!(self = g_hash_table_lookup(menu_hash, name))) - g_message(_("Attempted to access menu '%s' but it does not exist"), + g_message(_("Attempted to access menu \"%s\" but it does not exist"), name); return self; } diff --git a/openbox/mouse.c b/openbox/mouse.c index f2e13cdf..857f6d09 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -376,13 +376,13 @@ gboolean mouse_bind(const gchar *buttonstr, const gchar *contextstr, GSList *it; if (!translate_button(buttonstr, &state, &button)) { - g_message(_("Invalid button '%s' in mouse binding"), buttonstr); + g_message(_("Invalid button \"%s\" in mouse binding"), buttonstr); return FALSE; } context = frame_context_from_string(contextstr); if (!context) { - g_message(_("Invalid context '%s' in mouse binding"), contextstr); + g_message(_("Invalid context \"%s\" in mouse binding"), contextstr); return FALSE; } diff --git a/openbox/openbox.c b/openbox/openbox.c index 46da8fee..6233ec98 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -131,7 +131,7 @@ gint main(gint argc, gchar **argv) textdomain(PACKAGE_NAME); if (chdir(g_get_home_dir()) == -1) - g_message(_("Unable to change to home directory '%s': %s"), + g_message(_("Unable to change to home directory \"%s\": %s"), g_get_home_dir(), g_strerror(errno)); /* parse the command line args, which can change the argv[0] */ @@ -425,7 +425,7 @@ gint main(gint argc, gchar **argv) g_strfreev(argvp); } else { g_message( - _("Restart failed to execute new executable '%s': %s"), + _("Restart failed to execute new executable \"%s\": %s"), restart_path, err->message); g_error_free(err); } @@ -634,7 +634,7 @@ static void parse_args(gint *argc, gchar **argv) else { /* this is a memleak.. oh well.. heh */ gchar *err = g_strdup_printf - (_("Invalid command line argument '%s'\n"), argv[i]); + (_("Invalid command line argument \"%s\"\n"), argv[i]); ob_exit_with_error(err); } } diff --git a/openbox/session.c b/openbox/session.c index 96d7563f..0f74ec28 100644 --- a/openbox/session.c +++ b/openbox/session.c @@ -100,7 +100,7 @@ void session_startup(gint argc, gchar **argv) dir = g_build_filename(parse_xdg_data_home_path(), "openbox", "sessions", NULL); if (!parse_mkdir_path(dir, 0700)) { - g_message(_("Unable to make directory '%s': %s"), + g_message(_("Unable to make directory \"%s\": %s"), dir, g_strerror(errno)); } @@ -448,7 +448,7 @@ static gboolean session_save_to_file(const ObSMSaveData *savedata) f = fopen(ob_sm_save_file, "w"); if (!f) { success = FALSE; - g_message(_("Unable to save the session to '%s': %s"), + g_message(_("Unable to save the session to \"%s\": %s"), ob_sm_save_file, g_strerror(errno)); } else { fprintf(f, "<?xml version=\"1.0\"?>\n\n"); @@ -580,7 +580,7 @@ static gboolean session_save_to_file(const ObSMSaveData *savedata) if (fflush(f)) { success = FALSE; - g_message(_("Error while saving the session to '%s': %s"), + g_message(_("Error while saving the session to \"%s\": %s"), ob_sm_save_file, g_strerror(errno)); } fclose(f); diff --git a/openbox/translate.c b/openbox/translate.c index c697679d..bd8b88f6 100644 --- a/openbox/translate.c +++ b/openbox/translate.c @@ -56,7 +56,7 @@ static guint translate_modifier(gchar *str) !g_ascii_strcasecmp("H", str)) mask = modkeys_key_to_mask(OB_MODKEY_KEY_HYPER); else - g_message(_("Invalid modifier key '%s' in key/mouse binding"), str); + g_message(_("Invalid modifier key \"%s\" in key/mouse binding"), str); return mask; } @@ -135,20 +135,20 @@ gboolean translate_key(const gchar *str, guint *state, guint *keycode) /* take it directly */ *keycode = strtol(l, &end, 16); if (*l == '\0' || *end != '\0') { - g_message(_("Invalid key code '%s' in key binding"), l); + g_message(_("Invalid key code \"%s\" in key binding"), l); goto translation_fail; } } else { /* figure out the keycode */ sym = XStringToKeysym(l); if (sym == NoSymbol) { - g_message(_("Invalid key name '%s' in key binding"), l); + g_message(_("Invalid key name \"%s\" in key binding"), l); goto translation_fail; } *keycode = XKeysymToKeycode(ob_display, sym); } if (!*keycode) { - g_message(_("Requested key '%s' does not exist on the display"), l); + g_message(_("Requested key \"%s\" does not exist on the display"), l); goto translation_fail; } |
