From e9ede362dcda6be9c74d99b1a9ad3b6e4b5c5a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Dr=C4=85g?= Date: Fri, 21 Oct 2011 22:29:13 +0200 Subject: [PATCH] Add context to ambiguous strings in end session dialogs Fixes https://bugzilla.gnome.org/show_bug.cgi?id=658664 --- js/ui/endSessionDialog.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 8ebe91355..4dcd87f62 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -57,8 +57,8 @@ const EndSessionDialogIface = { }; const logoutDialogContent = { - subjectWithUser: _("Log Out %s"), - subject: _("Log Out"), + subjectWithUser: C_("title", "Log Out %s"), + subject: C_("title", "Log Out"), inhibitedDescription: _("Click Log Out to quit these applications and log out of the system."), uninhibitedDescriptionWithUser: function(user, seconds) { return ngettext("%s will be logged out automatically in %d second.", @@ -72,12 +72,12 @@ const logoutDialogContent = { }, endDescription: _("Logging out of the system."), confirmButtons: [{ signal: 'ConfirmedLogout', - label: _("Log Out") }], + label: C_("button", "Log Out") }], iconStyleClass: 'end-session-dialog-logout-icon' }; const shutdownDialogContent = { - subject: _("Power Off"), + subject: C_("title", "Power Off"), inhibitedDescription: _("Click Power Off to quit these applications and power off the system."), uninhibitedDescription: function(seconds) { return ngettext("The system will power off automatically in %d second.", @@ -86,15 +86,15 @@ const shutdownDialogContent = { }, endDescription: _("Powering off the system."), confirmButtons: [{ signal: 'ConfirmedReboot', - label: _("Restart") }, + label: C_("button", "Restart") }, { signal: 'ConfirmedShutdown', - label: _("Power Off") }], + label: C_("button", "Power Off") }], iconName: 'system-shutdown', iconStyleClass: 'end-session-dialog-shutdown-icon' }; const restartDialogContent = { - subject: _("Restart"), + subject: C_("title", "Restart"), inhibitedDescription: _("Click Restart to quit these applications and restart the system."), uninhibitedDescription: function(seconds) { return ngettext("The system will restart automatically in %d second.", @@ -103,7 +103,7 @@ const restartDialogContent = { }, endDescription: _("Restarting the system."), confirmButtons: [{ signal: 'ConfirmedReboot', - label: _("Restart") }], + label: C_("button", "Restart") }], iconName: 'system-shutdown', iconStyleClass: 'end-session-dialog-shutdown-icon' };