[updater] missing localization of buttons in abort confirmation dialog (IDEA-336163)

GitOrigin-RevId: 1a6f659881a09225b94927ab61db39530101e0e9
This commit is contained in:
Roman Shevchenko
2023-11-08 21:42:30 +01:00
committed by intellij-monorepo-bot
parent 4bedce77c9
commit 1fae7e967a
2 changed files with 7 additions and 3 deletions

View File

@@ -81,9 +81,11 @@ public class SwingUpdaterUI implements UpdaterUI {
private void doCancel() {
if (!myCancelled) {
myPaused = true;
String message = UpdaterUI.message("confirm.abort");
int result = JOptionPane.showConfirmDialog(myFrame, message, UpdaterUI.message("main.title"), JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTION) {
var message = UpdaterUI.message("confirm.abort");
var title = UpdaterUI.message("main.title");
var options = new String[]{UpdaterUI.message("button.abort"), UpdaterUI.message("button.continue")};
var result = JOptionPane.showOptionDialog(myFrame, message, title, JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);
if (result == 0) {
myCancelled = true;
myCancelButton.setEnabled(false);
}

View File

@@ -2,6 +2,8 @@ main.title=Update
error.title=Update Error
button.cancel=Cancel
confirm.abort=The patch has not been applied yet.\nAre you sure you want to abort the operation?
button.abort=Abort
button.continue=Continue
access.denied=Access denied
file.locked=Locked by: {0}