mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
translate import deck confirm dialog
This commit is contained in:
@@ -13,6 +13,7 @@ import forge.interfaces.IComboBox;
|
|||||||
import forge.item.PaperCard;
|
import forge.item.PaperCard;
|
||||||
import forge.model.FModel;
|
import forge.model.FModel;
|
||||||
import forge.util.gui.SOptionPane;
|
import forge.util.gui.SOptionPane;
|
||||||
|
import forge.util.Localizer;
|
||||||
|
|
||||||
public class DeckImportController {
|
public class DeckImportController {
|
||||||
private final boolean replacingDeck;
|
private final boolean replacingDeck;
|
||||||
@@ -62,11 +63,12 @@ public class DeckImportController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Deck accept() {
|
public Deck accept() {
|
||||||
|
final Localizer localizer = Localizer.getInstance();
|
||||||
if (tokens.isEmpty()) { return null; }
|
if (tokens.isEmpty()) { return null; }
|
||||||
|
|
||||||
if (replacingDeck) {
|
if (replacingDeck) {
|
||||||
final String warning = "This will replace the contents of your current deck with these cards.\n\nProceed?";
|
final String warning = localizer.getMessage("lblReplaceCurrentDeckConfirm");
|
||||||
if (!SOptionPane.showConfirmDialog(warning, "Replace Current Deck", "Replace", "Cancel")) {
|
if (!SOptionPane.showConfirmDialog(warning, localizer.getMessage("lblReplaceCurrentDeck"), localizer.getMessage("lblReplace"), localizer.getMessage("lblCancel"))) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user