endSessionDialog: Reindent dialog configs
We are about to make some changes, so make them conform to the new indentation style first. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202
This commit is contained in:
parent
b91903555a
commit
72a8522a10
@ -37,18 +37,22 @@ const logoutDialogContent = {
|
|||||||
subjectWithUser: C_("title", "Log Out %s"),
|
subjectWithUser: C_("title", "Log Out %s"),
|
||||||
subject: C_("title", "Log Out"),
|
subject: C_("title", "Log Out"),
|
||||||
descriptionWithUser(user, seconds) {
|
descriptionWithUser(user, seconds) {
|
||||||
return ngettext("%s will be logged out automatically in %d second.",
|
return ngettext(
|
||||||
"%s will be logged out automatically in %d seconds.",
|
'%s will be logged out automatically in %d second.',
|
||||||
seconds).format(user, seconds);
|
'%s will be logged out automatically in %d seconds.',
|
||||||
|
seconds).format(user, seconds);
|
||||||
},
|
},
|
||||||
description(seconds) {
|
description(seconds) {
|
||||||
return ngettext("You will be logged out automatically in %d second.",
|
return ngettext(
|
||||||
"You will be logged out automatically in %d seconds.",
|
'You will be logged out automatically in %d second.',
|
||||||
seconds).format(seconds);
|
'You will be logged out automatically in %d seconds.',
|
||||||
|
seconds).format(seconds);
|
||||||
},
|
},
|
||||||
showBatteryWarning: false,
|
showBatteryWarning: false,
|
||||||
confirmButtons: [{ signal: 'ConfirmedLogout',
|
confirmButtons: [{
|
||||||
label: C_("button", "Log Out") }],
|
signal: 'ConfirmedLogout',
|
||||||
|
label: C_('button', 'Log Out'),
|
||||||
|
}],
|
||||||
showOtherSessions: false,
|
showOtherSessions: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -56,16 +60,20 @@ const shutdownDialogContent = {
|
|||||||
subject: C_("title", "Power Off"),
|
subject: C_("title", "Power Off"),
|
||||||
subjectWithUpdates: C_("title", "Install Updates & Power Off"),
|
subjectWithUpdates: C_("title", "Install Updates & Power Off"),
|
||||||
description(seconds) {
|
description(seconds) {
|
||||||
return ngettext("The system will power off automatically in %d second.",
|
return ngettext(
|
||||||
"The system will power off automatically in %d seconds.",
|
'The system will power off automatically in %d second.',
|
||||||
seconds).format(seconds);
|
'The system will power off automatically in %d seconds.',
|
||||||
|
seconds).format(seconds);
|
||||||
},
|
},
|
||||||
checkBoxText: C_("checkbox", "Install pending software updates"),
|
checkBoxText: C_("checkbox", "Install pending software updates"),
|
||||||
showBatteryWarning: true,
|
showBatteryWarning: true,
|
||||||
confirmButtons: [{ signal: 'ConfirmedReboot',
|
confirmButtons: [{
|
||||||
label: C_("button", "Restart") },
|
signal: 'ConfirmedReboot',
|
||||||
{ signal: 'ConfirmedShutdown',
|
label: C_('button", "Restart'),
|
||||||
label: C_("button", "Power Off") }],
|
}, {
|
||||||
|
signal: 'ConfirmedShutdown',
|
||||||
|
label: C_('button', 'Power Off'),
|
||||||
|
}],
|
||||||
iconName: 'system-shutdown-symbolic',
|
iconName: 'system-shutdown-symbolic',
|
||||||
showOtherSessions: true,
|
showOtherSessions: true,
|
||||||
};
|
};
|
||||||
@ -73,13 +81,16 @@ const shutdownDialogContent = {
|
|||||||
const restartDialogContent = {
|
const restartDialogContent = {
|
||||||
subject: C_("title", "Restart"),
|
subject: C_("title", "Restart"),
|
||||||
description(seconds) {
|
description(seconds) {
|
||||||
return ngettext("The system will restart automatically in %d second.",
|
return ngettext(
|
||||||
"The system will restart automatically in %d seconds.",
|
'The system will restart automatically in %d second.',
|
||||||
seconds).format(seconds);
|
'The system will restart automatically in %d seconds.',
|
||||||
|
seconds).format(seconds);
|
||||||
},
|
},
|
||||||
showBatteryWarning: false,
|
showBatteryWarning: false,
|
||||||
confirmButtons: [{ signal: 'ConfirmedReboot',
|
confirmButtons: [{
|
||||||
label: C_("button", "Restart") }],
|
signal: 'ConfirmedReboot',
|
||||||
|
label: C_('button', 'Restart'),
|
||||||
|
}],
|
||||||
iconName: 'view-refresh-symbolic',
|
iconName: 'view-refresh-symbolic',
|
||||||
showOtherSessions: true,
|
showOtherSessions: true,
|
||||||
};
|
};
|
||||||
@ -88,13 +99,16 @@ const restartUpdateDialogContent = {
|
|||||||
|
|
||||||
subject: C_("title", "Restart & Install Updates"),
|
subject: C_("title", "Restart & Install Updates"),
|
||||||
description(seconds) {
|
description(seconds) {
|
||||||
return ngettext("The system will automatically restart and install updates in %d second.",
|
return ngettext(
|
||||||
"The system will automatically restart and install updates in %d seconds.",
|
'The system will automatically restart and install updates in %d second.',
|
||||||
seconds).format(seconds);
|
'The system will automatically restart and install updates in %d seconds.',
|
||||||
|
seconds).format(seconds);
|
||||||
},
|
},
|
||||||
showBatteryWarning: true,
|
showBatteryWarning: true,
|
||||||
confirmButtons: [{ signal: 'ConfirmedReboot',
|
confirmButtons: [{
|
||||||
label: C_("button", "Restart & Install") }],
|
signal: 'ConfirmedReboot',
|
||||||
|
label: C_('button', 'Restart & Install'),
|
||||||
|
}],
|
||||||
unusedFutureButtonForTranslation: C_("button", "Install & Power Off"),
|
unusedFutureButtonForTranslation: C_("button", "Install & Power Off"),
|
||||||
unusedFutureCheckBoxForTranslation: C_("checkbox", "Power off after updates are installed"),
|
unusedFutureCheckBoxForTranslation: C_("checkbox", "Power off after updates are installed"),
|
||||||
iconName: 'view-refresh-symbolic',
|
iconName: 'view-refresh-symbolic',
|
||||||
@ -112,8 +126,10 @@ const restartUpgradeDialogContent = {
|
|||||||
},
|
},
|
||||||
disableTimer: true,
|
disableTimer: true,
|
||||||
showBatteryWarning: false,
|
showBatteryWarning: false,
|
||||||
confirmButtons: [{ signal: 'ConfirmedReboot',
|
confirmButtons: [{
|
||||||
label: C_("button", "Restart & Install") }],
|
signal: 'ConfirmedReboot',
|
||||||
|
label: C_('button', 'Restart & Install'),
|
||||||
|
}],
|
||||||
iconName: 'view-refresh-symbolic',
|
iconName: 'view-refresh-symbolic',
|
||||||
showOtherSessions: true,
|
showOtherSessions: true,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user