mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
[updater] missing localization of buttons in abort confirmation dialog (IDEA-336163)
GitOrigin-RevId: 1a6f659881a09225b94927ab61db39530101e0e9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4bedce77c9
commit
1fae7e967a
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user