[gnome-shell] endSessionDialog: Reindent dialog configs
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] endSessionDialog: Reindent dialog configs
- Date: Mon, 10 Aug 2020 15:40:40 +0000 (UTC)
commit 72a8522a103f78243902cce6b8b2277d39a18e43
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 1 16:44:16 2020 +0200
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
js/ui/endSessionDialog.js | 70 +++++++++++++++++++++++++++++------------------
1 file changed, 43 insertions(+), 27 deletions(-)
---
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index b3c6344e83..b1a36d8cd1 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -37,18 +37,22 @@ const logoutDialogContent = {
subjectWithUser: C_("title", "Log Out %s"),
subject: C_("title", "Log Out"),
descriptionWithUser(user, seconds) {
- return ngettext("%s will be logged out automatically in %d second.",
- "%s will be logged out automatically in %d seconds.",
- seconds).format(user, seconds);
+ return ngettext(
+ '%s will be logged out automatically in %d second.',
+ '%s will be logged out automatically in %d seconds.',
+ seconds).format(user, seconds);
},
description(seconds) {
- return ngettext("You will be logged out automatically in %d second.",
- "You will be logged out automatically in %d seconds.",
- seconds).format(seconds);
+ return ngettext(
+ 'You will be logged out automatically in %d second.',
+ 'You will be logged out automatically in %d seconds.',
+ seconds).format(seconds);
},
showBatteryWarning: false,
- confirmButtons: [{ signal: 'ConfirmedLogout',
- label: C_("button", "Log Out") }],
+ confirmButtons: [{
+ signal: 'ConfirmedLogout',
+ label: C_('button', 'Log Out'),
+ }],
showOtherSessions: false,
};
@@ -56,16 +60,20 @@ const shutdownDialogContent = {
subject: C_("title", "Power Off"),
subjectWithUpdates: C_("title", "Install Updates & Power Off"),
description(seconds) {
- return ngettext("The system will power off automatically in %d second.",
- "The system will power off automatically in %d seconds.",
- seconds).format(seconds);
+ return ngettext(
+ 'The system will power off automatically in %d second.',
+ 'The system will power off automatically in %d seconds.',
+ seconds).format(seconds);
},
checkBoxText: C_("checkbox", "Install pending software updates"),
showBatteryWarning: true,
- confirmButtons: [{ signal: 'ConfirmedReboot',
- label: C_("button", "Restart") },
- { signal: 'ConfirmedShutdown',
- label: C_("button", "Power Off") }],
+ confirmButtons: [{
+ signal: 'ConfirmedReboot',
+ label: C_('button", "Restart'),
+ }, {
+ signal: 'ConfirmedShutdown',
+ label: C_('button', 'Power Off'),
+ }],
iconName: 'system-shutdown-symbolic',
showOtherSessions: true,
};
@@ -73,13 +81,16 @@ const shutdownDialogContent = {
const restartDialogContent = {
subject: C_("title", "Restart"),
description(seconds) {
- return ngettext("The system will restart automatically in %d second.",
- "The system will restart automatically in %d seconds.",
- seconds).format(seconds);
+ return ngettext(
+ 'The system will restart automatically in %d second.',
+ 'The system will restart automatically in %d seconds.',
+ seconds).format(seconds);
},
showBatteryWarning: false,
- confirmButtons: [{ signal: 'ConfirmedReboot',
- label: C_("button", "Restart") }],
+ confirmButtons: [{
+ signal: 'ConfirmedReboot',
+ label: C_('button', 'Restart'),
+ }],
iconName: 'view-refresh-symbolic',
showOtherSessions: true,
};
@@ -88,13 +99,16 @@ const restartUpdateDialogContent = {
subject: C_("title", "Restart & Install Updates"),
description(seconds) {
- return ngettext("The system will automatically restart and install updates in %d second.",
- "The system will automatically restart and install updates in %d seconds.",
- seconds).format(seconds);
+ return ngettext(
+ 'The system will automatically restart and install updates in %d second.',
+ 'The system will automatically restart and install updates in %d seconds.',
+ seconds).format(seconds);
},
showBatteryWarning: true,
- confirmButtons: [{ signal: 'ConfirmedReboot',
- label: C_("button", "Restart & Install") }],
+ confirmButtons: [{
+ signal: 'ConfirmedReboot',
+ label: C_('button', 'Restart & Install'),
+ }],
unusedFutureButtonForTranslation: C_("button", "Install & Power Off"),
unusedFutureCheckBoxForTranslation: C_("checkbox", "Power off after updates are installed"),
iconName: 'view-refresh-symbolic',
@@ -112,8 +126,10 @@ const restartUpgradeDialogContent = {
},
disableTimer: true,
showBatteryWarning: false,
- confirmButtons: [{ signal: 'ConfirmedReboot',
- label: C_("button", "Restart & Install") }],
+ confirmButtons: [{
+ signal: 'ConfirmedReboot',
+ label: C_('button', 'Restart & Install'),
+ }],
iconName: 'view-refresh-symbolic',
showOtherSessions: true,
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]