shorten system action text - simpler. also fix actiosn to be system.

SVN revision: 38698
This commit is contained in:
Carsten Haitzler 2009-01-22 20:54:26 +00:00
parent f4387bfc87
commit 145fc680ff
2 changed files with 24 additions and 24 deletions

View File

@ -2612,7 +2612,7 @@ e_actions_init(void)
/* exec */ /* exec */
ACT_GO(exec); ACT_GO(exec);
e_action_predef_name_set(_("Launch"), _("Defined Command"), "exec", NULL, e_action_predef_name_set(_("Launch"), _("Command"), "exec", NULL,
"syntax: CommandName, example: /usr/bin/xmms", 1); "syntax: CommandName, example: /usr/bin/xmms", 1);
/* app */ /* app */
@ -2628,20 +2628,20 @@ e_actions_init(void)
e_action_predef_name_set(_("Enlightenment"), _("Exit"), "exit", e_action_predef_name_set(_("Enlightenment"), _("Exit"), "exit",
NULL, NULL, 0); NULL, NULL, 0);
ACT_GO(logout);
e_action_predef_name_set(_("Enlightenment"), _("Log Out"), "logout",
NULL, NULL, 0);
ACT_GO(exit_now); ACT_GO(exit_now);
e_action_predef_name_set(_("Enlightenment"), _("Exit Immediately"), e_action_predef_name_set(_("Enlightenment"), _("Exit Now"),
"exit_now", NULL, NULL, 0); "exit_now", NULL, NULL, 0);
ACT_GO(logout);
e_action_predef_name_set(_("System"), _("Log Out"), "logout",
NULL, NULL, 0);
ACT_GO(halt_now); ACT_GO(halt_now);
e_action_predef_name_set(_("Enlightenment"), _("Off Now"), e_action_predef_name_set(_("System"), _("Power Off Now"),
"halt_now", NULL, NULL, 0); "halt_now", NULL, NULL, 0);
ACT_GO(halt); ACT_GO(halt);
e_action_predef_name_set(_("System"), _("Off"), "halt", e_action_predef_name_set(_("System"), _("Power Off"), "halt",
NULL, NULL, 0); NULL, NULL, 0);
ACT_GO(reboot); ACT_GO(reboot);

View File

@ -363,7 +363,7 @@ _e_sys_logout_begin(E_Sys_Action a_after)
_("Logout in progress"), "E", "_sys_logout"); _("Logout in progress"), "E", "_sys_logout");
e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/logout"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/logout");
e_obj_dialog_obj_part_text_set(od, "e.textblock.message", e_obj_dialog_obj_part_text_set(od, "e.textblock.message",
_("Logout is currently in progress.<br>" _("Logout in progress.<br>"
"<hilight>Please wait.</hilight>")); "<hilight>Please wait.</hilight>"));
e_obj_dialog_show(od); e_obj_dialog_show(od);
e_obj_dialog_icon_set(od, "enlightenment/logout"); e_obj_dialog_icon_set(od, "enlightenment/logout");
@ -398,7 +398,7 @@ _e_sys_current_action(void)
{ {
case E_SYS_LOGOUT: case E_SYS_LOGOUT:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Enlightenment is busy logging out.<br>" _("Logging out.<br>"
"You cannot perform other system actions<br>" "You cannot perform other system actions<br>"
"once a logout has begun.") "once a logout has begun.")
); );
@ -406,28 +406,28 @@ _e_sys_current_action(void)
case E_SYS_HALT: case E_SYS_HALT:
case E_SYS_HALT_NOW: case E_SYS_HALT_NOW:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Enlightenment is shutting the system down.<br>" _("Powering off.<br>"
"You cannot do any other system actions<br>" "You cannot do any other system actions<br>"
"once a shutdown has been started.") "once a shutdown has been started.")
); );
break; break;
case E_SYS_REBOOT: case E_SYS_REBOOT:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Enlightenment is rebooting the system.<br>" _("Resetting.<br>"
"You cannot do any other system actions<br>" "You cannot do any other system actions<br>"
"once a reboot has begun.") "once a reboot has begun.")
); );
break; break;
case E_SYS_SUSPEND: case E_SYS_SUSPEND:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Enlightenment is suspending the system.<br>" _("Suspending.<br>"
"Until suspend is complete you cannot perform<br>" "Until suspend is complete you cannot perform<br>"
"any other system actions.") "any other system actions.")
); );
break; break;
case E_SYS_HIBERNATE: case E_SYS_HIBERNATE:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Enlightenment is hibernating the system.<br>" _("Hibernating.<br>"
"You cannot perform an other system actions<br>" "You cannot perform an other system actions<br>"
"until this is complete.") "until this is complete.")
); );
@ -460,22 +460,22 @@ _e_sys_action_failed(void)
case E_SYS_HALT: case E_SYS_HALT:
case E_SYS_HALT_NOW: case E_SYS_HALT_NOW:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Shutting down of your system failed.") _("Power off failed.")
); );
break; break;
case E_SYS_REBOOT: case E_SYS_REBOOT:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Rebooting your system failed.") _("Reset failed.")
); );
break; break;
case E_SYS_SUSPEND: case E_SYS_SUSPEND:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Suspend of your system failed.") _("Suspend failed.")
); );
break; break;
case E_SYS_HIBERNATE: case E_SYS_HIBERNATE:
e_dialog_text_set(dia, e_dialog_text_set(dia,
_("Hibernating your system failed.") _("Hibernate failed.")
); );
break; break;
default: default:
@ -526,10 +526,10 @@ _e_sys_action_do(E_Sys_Action a, char *param)
{ {
_e_sys_exe = ecore_exe_run(buf, NULL); _e_sys_exe = ecore_exe_run(buf, NULL);
od = e_obj_dialog_new(e_container_current_get(e_manager_current_get()), od = e_obj_dialog_new(e_container_current_get(e_manager_current_get()),
_("Shutting down"), "E", "_sys_halt"); _("Power off"), "E", "_sys_halt");
e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/halt"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/halt");
e_obj_dialog_obj_part_text_set(od, "e.textblock.message", e_obj_dialog_obj_part_text_set(od, "e.textblock.message",
_("Shutting down your Computer.<br>" _("Power off.<br>"
"<hilight>Please wait.</hilight>")); "<hilight>Please wait.</hilight>"));
e_obj_dialog_show(od); e_obj_dialog_show(od);
e_obj_dialog_icon_set(od, "enlightenment/halt"); e_obj_dialog_icon_set(od, "enlightenment/halt");
@ -553,10 +553,10 @@ _e_sys_action_do(E_Sys_Action a, char *param)
{ {
_e_sys_exe = ecore_exe_run(buf, NULL); _e_sys_exe = ecore_exe_run(buf, NULL);
od = e_obj_dialog_new(e_container_current_get(e_manager_current_get()), od = e_obj_dialog_new(e_container_current_get(e_manager_current_get()),
_("Rebooting"), "E", "_sys_reboot"); _("Resetting"), "E", "_sys_reboot");
e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/reboot"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/reboot");
e_obj_dialog_obj_part_text_set(od, "e.textblock.message", e_obj_dialog_obj_part_text_set(od, "e.textblock.message",
_("Rebooting your Computer.<br>" _("Resetting.<br>"
"<hilight>Please wait.</hilight>")); "<hilight>Please wait.</hilight>"));
e_obj_dialog_show(od); e_obj_dialog_show(od);
e_obj_dialog_icon_set(od, "enlightenment/reboot"); e_obj_dialog_icon_set(od, "enlightenment/reboot");
@ -582,7 +582,7 @@ _e_sys_action_do(E_Sys_Action a, char *param)
_("Suspending"), "E", "_sys_suspend"); _("Suspending"), "E", "_sys_suspend");
e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/suspend"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/suspend");
e_obj_dialog_obj_part_text_set(od, "e.textblock.message", e_obj_dialog_obj_part_text_set(od, "e.textblock.message",
_("Suspending your Computer.<br>" _("Suspending.<br>"
"<hilight>Please wait.</hilight>")); "<hilight>Please wait.</hilight>"));
e_obj_dialog_show(od); e_obj_dialog_show(od);
e_obj_dialog_icon_set(od, "enlightenment/suspend"); e_obj_dialog_icon_set(od, "enlightenment/suspend");
@ -608,7 +608,7 @@ _e_sys_action_do(E_Sys_Action a, char *param)
_("Hibernating"), "E", "_sys_hibernate"); _("Hibernating"), "E", "_sys_hibernate");
e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/hibernate"); e_obj_dialog_obj_theme_set(od, "base/theme/sys", "e/sys/hibernate");
e_obj_dialog_obj_part_text_set(od, "e.textblock.message", e_obj_dialog_obj_part_text_set(od, "e.textblock.message",
_("Hibernating your Computer.<br>" _("Hibernating.<br>"
"<hilight>Please wait.</hilight>")); "<hilight>Please wait.</hilight>"));
e_obj_dialog_show(od); e_obj_dialog_show(od);
e_obj_dialog_icon_set(od, "enlightenment/hibernate"); e_obj_dialog_icon_set(od, "enlightenment/hibernate");