Add context to ambiguous strings in end session dialogs

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=658664
This commit is contained in:
Piotr Drąg 2011-10-21 22:29:13 +02:00
parent 01357aca35
commit e9ede362dc

View File

@ -57,8 +57,8 @@ const EndSessionDialogIface = {
}; };
const logoutDialogContent = { const logoutDialogContent = {
subjectWithUser: _("Log Out %s"), subjectWithUser: C_("title", "Log Out %s"),
subject: _("Log Out"), subject: C_("title", "Log Out"),
inhibitedDescription: _("Click Log Out to quit these applications and log out of the system."), inhibitedDescription: _("Click Log Out to quit these applications and log out of the system."),
uninhibitedDescriptionWithUser: function(user, seconds) { uninhibitedDescriptionWithUser: function(user, seconds) {
return ngettext("%s will be logged out automatically in %d second.", return ngettext("%s will be logged out automatically in %d second.",
@ -72,12 +72,12 @@ const logoutDialogContent = {
}, },
endDescription: _("Logging out of the system."), endDescription: _("Logging out of the system."),
confirmButtons: [{ signal: 'ConfirmedLogout', confirmButtons: [{ signal: 'ConfirmedLogout',
label: _("Log Out") }], label: C_("button", "Log Out") }],
iconStyleClass: 'end-session-dialog-logout-icon' iconStyleClass: 'end-session-dialog-logout-icon'
}; };
const shutdownDialogContent = { const shutdownDialogContent = {
subject: _("Power Off"), subject: C_("title", "Power Off"),
inhibitedDescription: _("Click Power Off to quit these applications and power off the system."), inhibitedDescription: _("Click Power Off to quit these applications and power off the system."),
uninhibitedDescription: function(seconds) { uninhibitedDescription: function(seconds) {
return ngettext("The system will power off automatically in %d second.", return ngettext("The system will power off automatically in %d second.",
@ -86,15 +86,15 @@ const shutdownDialogContent = {
}, },
endDescription: _("Powering off the system."), endDescription: _("Powering off the system."),
confirmButtons: [{ signal: 'ConfirmedReboot', confirmButtons: [{ signal: 'ConfirmedReboot',
label: _("Restart") }, label: C_("button", "Restart") },
{ signal: 'ConfirmedShutdown', { signal: 'ConfirmedShutdown',
label: _("Power Off") }], label: C_("button", "Power Off") }],
iconName: 'system-shutdown', iconName: 'system-shutdown',
iconStyleClass: 'end-session-dialog-shutdown-icon' iconStyleClass: 'end-session-dialog-shutdown-icon'
}; };
const restartDialogContent = { const restartDialogContent = {
subject: _("Restart"), subject: C_("title", "Restart"),
inhibitedDescription: _("Click Restart to quit these applications and restart the system."), inhibitedDescription: _("Click Restart to quit these applications and restart the system."),
uninhibitedDescription: function(seconds) { uninhibitedDescription: function(seconds) {
return ngettext("The system will restart automatically in %d second.", return ngettext("The system will restart automatically in %d second.",
@ -103,7 +103,7 @@ const restartDialogContent = {
}, },
endDescription: _("Restarting the system."), endDescription: _("Restarting the system."),
confirmButtons: [{ signal: 'ConfirmedReboot', confirmButtons: [{ signal: 'ConfirmedReboot',
label: _("Restart") }], label: C_("button", "Restart") }],
iconName: 'system-shutdown', iconName: 'system-shutdown',
iconStyleClass: 'end-session-dialog-shutdown-icon' iconStyleClass: 'end-session-dialog-shutdown-icon'
}; };