From c4058ca06303a050dccfe5da6108d9d1fdfc6697 Mon Sep 17 00:00:00 2001 From: Massimo Maiurana Date: Wed, 19 Dec 2012 17:45:04 +0000 Subject: [PATCH] Make some error dialogs translatable (patch from Igor Murzov) SVN revision: 81394 --- src/bin/e_gadcon.c | 6 +++--- src/bin/e_utils.c | 4 ++-- src/modules/quickaccess/e_mod_quickaccess.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/e_gadcon.c b/src/bin/e_gadcon.c index fc9ae24c2..1c867df4e 100644 --- a/src/bin/e_gadcon.c +++ b/src/bin/e_gadcon.c @@ -1397,7 +1397,7 @@ e_gadcon_client_autoscroll_set(E_Gadcon_Client *gcc, int autoscroll) if (gcc->autoscroll_disabled && (!autoscroll)) { - e_util_dialog_show("Gadget error", "%s does not support disabling autoscrolling", gcc->name); + e_util_dialog_show(_("Gadget error"), _("%s does not support disabling autoscrolling"), gcc->name); return; } gcc->autoscroll = autoscroll; @@ -3081,8 +3081,8 @@ _e_gadcon_client_class_feature_check(const E_Gadcon_Client_Class *cc, const char { if (!feature) { - e_util_dialog_show("Insufficent gadcon support", - "Module %s needs to support %s", + e_util_dialog_show(_("Insufficent gadcon support"), + _("Module %s needs to support %s"), cc->name, name); return 0; } diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c index a19b222c3..b7e59ae7e 100644 --- a/src/bin/e_utils.c +++ b/src/bin/e_utils.c @@ -1003,7 +1003,7 @@ e_util_dir_check(const char *dir) { if (!ecore_file_mkpath(dir)) { - e_util_dialog_show("Error creating directory", "Failed to create directory: %s .
Check that you have correct permissions set.", dir); + e_util_dialog_show(_("Error creating directory"), _("Failed to create directory: %s .
Check that you have correct permissions set."), dir); return 0; } } @@ -1011,7 +1011,7 @@ e_util_dir_check(const char *dir) { if (!ecore_file_is_dir(dir)) { - e_util_dialog_show("Error creating directory", "Failed to create directory: %s .
A file of that name already exists.", dir); + e_util_dialog_show(_("Error creating directory"), _("Failed to create directory: %s .
A file of that name already exists."), dir); return 0; } } diff --git a/src/modules/quickaccess/e_mod_quickaccess.c b/src/modules/quickaccess/e_mod_quickaccess.c index c0ecabc85..934935ab8 100644 --- a/src/modules/quickaccess/e_mod_quickaccess.c +++ b/src/modules/quickaccess/e_mod_quickaccess.c @@ -648,7 +648,7 @@ _grab_key_down_cb(void *data, int type __UNUSED__, void *event) if (e_util_binding_match(NULL, ev, NULL, NULL)) { - e_util_dialog_show("Keybind Error", "The keybinding you have entered is already in use!"); + e_util_dialog_show(_("Keybind Error"), _("The keybinding you have entered is already in use!")); e_object_del(E_OBJECT(eg)); return ECORE_CALLBACK_RENEW; }