Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/shutdown.cpp
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Line(s) | 220 | [this, resultPipe, sdmode, sdtype] { | |||
---|---|---|---|---|---|
221 | close(resultPipe); | 221 | close(resultPipe); | ||
222 | dialogActive = false; | 222 | dialogActive = false; | ||
223 | auto fallbackPrompt = new QMessageBox; | 223 | auto fallbackPrompt = new QMessageBox; | ||
224 | fallbackPrompt->setAttribute(Qt::WA_DeleteOnClose, true); | 224 | fallbackPrompt->setAttribute(Qt::WA_DeleteOnClose, true); | ||
225 | fallbackPrompt->setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); | 225 | fallbackPrompt->setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); | ||
226 | switch (sdtype) { | 226 | switch (sdtype) { | ||
227 | case KWorkSpace::ShutdownTypeHalt: | 227 | case KWorkSpace::ShutdownTypeHalt: | ||
228 | //i18nd is used as this patch was backported to an LTS with stable translations | 228 | //i18nd is used as this patch was backported to an LTS with stable translations | ||
229 | fallbackPrompt->setText(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shutdown")); | 229 | fallbackPrompt->setText(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Shut Down")); | ||
230 | break; | 230 | break; | ||
231 | case KWorkSpace::ShutdownTypeReboot: | 231 | case KWorkSpace::ShutdownTypeReboot: | ||
232 | fallbackPrompt->setText(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Reboot")); | 232 | fallbackPrompt->setText(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Reboot")); | ||
233 | break; | 233 | break; | ||
234 | case KWorkSpace::ShutdownTypeNone: | 234 | case KWorkSpace::ShutdownTypeNone: | ||
235 | Q_FALLTHROUGH(); | 235 | Q_FALLTHROUGH(); | ||
236 | default: | 236 | default: | ||
237 | fallbackPrompt->setText(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Logout")); | 237 | fallbackPrompt->setText(i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Logout")); | ||
▲ Show 20 Lines • Show All 580 Lines • Show Last 20 Lines |