mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Translate InputPassPriority.java
This commit is contained in:
@@ -395,7 +395,7 @@ public class MatchScreen extends FScreen {
|
||||
return getActivePrompt().getBtnCancel().trigger(); //trigger Cancel if can't trigger OK
|
||||
case Keys.ESCAPE:
|
||||
if (!FModel.getPreferences().getPrefBoolean(FPref.UI_ALLOW_ESC_TO_END_TURN)) {
|
||||
if (getActivePrompt().getBtnCancel().getText().equals("End Turn")) {
|
||||
if (getActivePrompt().getBtnCancel().getText().equals(Localizer.getInstance().getMessage("lblEndTurn"))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1202,4 +1202,11 @@ lblPuzzleText1=Puzzle Mode loads in a puzzle that you have to win in a predeterm
|
||||
lblPuzzleText2=To begin, press the Start button below, then select a puzzle from a list.
|
||||
lblPuzzleText3=Your objective will be displayed in a pop-up window when the puzzle starts and also specified on a special effect card which will be placed in your command zone.
|
||||
lblChooseAPuzzle=Choose a puzzle
|
||||
lblLoadingThePuzzle=Loading the puzzle...
|
||||
lblLoadingThePuzzle=Loading the puzzle...
|
||||
#InputPassPriority.java
|
||||
lblCastSpell=cast spell
|
||||
lblPlayLand=play land
|
||||
lblActivateAbility=activate ability
|
||||
lblYouHaveManaFloatingInYourManaPoolCouldBeLostIfPassPriority=You have mana floating in your mana pool that could be lost if you pass priority now.
|
||||
lblYouWillTakeManaBurnDamageEqualAmountFloatingManaLostThisWay=You will take mana burn damage equal to the amount of floating mana lost this way.
|
||||
lblManaFloating=Mana Floating
|
||||
@@ -1202,4 +1202,11 @@ lblPuzzleText1=Puzzle Mode loads in a puzzle that you have to win in a predeterm
|
||||
lblPuzzleText2=To begin, press the Start button below, then select a puzzle from a list.
|
||||
lblPuzzleText3=Your objective will be displayed in a pop-up window when the puzzle starts and also specified on a special effect card which will be placed in your command zone.
|
||||
lblChooseAPuzzle=Choose a puzzle
|
||||
lblLoadingThePuzzle=Loading the puzzle...
|
||||
lblLoadingThePuzzle=Loading the puzzle...
|
||||
#InputPassPriority.java
|
||||
lblCastSpell=cast spell
|
||||
lblPlayLand=play land
|
||||
lblActivateAbility=activate ability
|
||||
lblYouHaveManaFloatingInYourManaPoolCouldBeLostIfPassPriority=You have mana floating in your mana pool that could be lost if you pass priority now.
|
||||
lblYouWillTakeManaBurnDamageEqualAmountFloatingManaLostThisWay=You will take mana burn damage equal to the amount of floating mana lost this way.
|
||||
lblManaFloating=Mana Floating
|
||||
@@ -1202,4 +1202,11 @@ lblPuzzleText1=En el Modo Puzzle se carga un rompecabezas que tienes que ganar e
|
||||
lblPuzzleText2=Para comenzar, pulsa el botón Inicio y selecciona un puzzle de una lista.
|
||||
lblPuzzleText3=Tu objetivo se mostrará en una ventana emergente cuando se inicie el puzzle y también se especificará en una carta de efectos especiales que se colocará en tu zona de comandos.
|
||||
lblChooseAPuzzle=Elige un puzzle
|
||||
lblLoadingThePuzzle=Cargando el puzzle...
|
||||
lblLoadingThePuzzle=Cargando el puzzle...
|
||||
#InputPassPriority.java
|
||||
lblCastSpell=lanzar hechizo
|
||||
lblPlayLand=jugar tierra
|
||||
lblActivateAbility=activar abilidad
|
||||
lblYouHaveManaFloatingInYourManaPoolCouldBeLostIfPassPriority=Tienes maná flotando en tu pool de maná que podría perderse si pasas la prioridad ahora.
|
||||
lblYouWillTakeManaBurnDamageEqualAmountFloatingManaLostThisWay=Recibirás un daño por quemadura de maná igual a la cantidad de maná flotante perdido de esta manera.
|
||||
lblManaFloating=Maná Flotante
|
||||
@@ -1202,4 +1202,11 @@ lblPuzzleText1=解谜模式会加载一个谜题,你必须在预定的时间/
|
||||
lblPuzzleText2=首先,按下面的开始按钮,然后从列表中选择一个谜题。
|
||||
lblPuzzleText3=当解谜开始的时候,该谜题的要求将会显示在弹窗中,并且还会在指挥官区域放置一张特殊效应卡指示这个谜题的要求。
|
||||
lblChooseAPuzzle=选择一个谜题
|
||||
lblLoadingThePuzzle=加载新的谜题中
|
||||
lblLoadingThePuzzle=加载新的谜题中
|
||||
#InputPassPriority.java
|
||||
lblCastSpell=cast spell
|
||||
lblPlayLand=play land
|
||||
lblActivateAbility=activate ability
|
||||
lblYouHaveManaFloatingInYourManaPoolCouldBeLostIfPassPriority=You have mana floating in your mana pool that could be lost if you pass priority now.
|
||||
lblYouWillTakeManaBurnDamageEqualAmountFloatingManaLostThisWay=You will take mana burn damage equal to the amount of floating mana lost this way.
|
||||
lblManaFloating=Mana Floating
|
||||
@@ -30,6 +30,7 @@ import forge.player.GamePlayerUtil;
|
||||
import forge.player.PlayerControllerHuman;
|
||||
import forge.properties.ForgePreferences.FPref;
|
||||
import forge.util.ITriggerEvent;
|
||||
import forge.util.Localizer;
|
||||
import forge.util.ThreadUtil;
|
||||
|
||||
/**
|
||||
@@ -55,11 +56,12 @@ public class InputPassPriority extends InputSyncronizedBase {
|
||||
public final void showMessage() {
|
||||
showMessage(getTurnPhasePriorityMessage(getController().getGame()));
|
||||
chosenSa = null;
|
||||
Localizer localizer = Localizer.getInstance();
|
||||
if (getController().canUndoLastAction()) { //allow undoing with cancel button if can undo last action
|
||||
getController().getGui().updateButtons(getOwner(), "OK", "Undo", true, true, true);
|
||||
getController().getGui().updateButtons(getOwner(), localizer.getMessage("lblOK"), localizer.getMessage("lblUndo"), true, true, true);
|
||||
}
|
||||
else { //otherwise allow ending turn with cancel button
|
||||
getController().getGui().updateButtons(getOwner(), "OK", "End Turn", true, true, true);
|
||||
getController().getGui().updateButtons(getOwner(), localizer.getMessage("lblOK"), localizer.getMessage("lblEndTurn"), true, true, true);
|
||||
}
|
||||
|
||||
getController().getGui().alertUser();
|
||||
@@ -106,11 +108,12 @@ public class InputPassPriority extends InputSyncronizedBase {
|
||||
ThreadUtil.invokeInGameThread(new Runnable() { //must invoke in game thread so dialog can be shown on mobile game
|
||||
@Override
|
||||
public void run() {
|
||||
String message = "You have mana floating in your mana pool that could be lost if you pass priority now.";
|
||||
Localizer localizer = Localizer.getInstance();
|
||||
String message = localizer.getMessage("lblYouHaveManaFloatingInYourManaPoolCouldBeLostIfPassPriority");
|
||||
if (FModel.getPreferences().getPrefBoolean(FPref.UI_MANABURN)) {
|
||||
message += " You will take mana burn damage equal to the amount of floating mana lost this way.";
|
||||
message += " " + localizer.getMessage("lblYouWillTakeManaBurnDamageEqualAmountFloatingManaLostThisWay");
|
||||
}
|
||||
if (getController().getGui().showConfirmDialog(message, "Mana Floating", "Ok", "Cancel")) {
|
||||
if (getController().getGui().showConfirmDialog(message, localizer.getMessage("lblManaFloating"), localizer.getMessage("lblOk"), localizer.getMessage("lblCancel"))) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -161,12 +164,12 @@ public class InputPassPriority extends InputSyncronizedBase {
|
||||
}
|
||||
final SpellAbility sa = abilities.get(0);
|
||||
if (sa.isSpell()) {
|
||||
return "cast spell";
|
||||
return Localizer.getInstance().getMessage("lblCastSpell");
|
||||
}
|
||||
if (sa instanceof LandAbility) {
|
||||
return "play land";
|
||||
return Localizer.getInstance().getMessage("lblPlayLand");
|
||||
}
|
||||
return "activate ability";
|
||||
return Localizer.getInstance().getMessage("lblActivateAbility");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user