mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
fix:non-english locale stack message format broken.
This commit is contained in:
@@ -39,6 +39,7 @@ import forge.toolbox.FDisplayObject;
|
|||||||
import forge.toolbox.FEvent;
|
import forge.toolbox.FEvent;
|
||||||
import forge.toolbox.FEvent.FEventHandler;
|
import forge.toolbox.FEvent.FEventHandler;
|
||||||
import forge.toolbox.FLabel;
|
import forge.toolbox.FLabel;
|
||||||
|
import forge.util.CardTranslation;
|
||||||
import forge.util.Localizer;
|
import forge.util.Localizer;
|
||||||
import forge.util.TextUtil;
|
import forge.util.TextUtil;
|
||||||
import forge.util.collect.FCollectionView;
|
import forge.util.collect.FCollectionView;
|
||||||
@@ -379,7 +380,7 @@ public class VStack extends FDropDown {
|
|||||||
w -= x + PADDING - BORDER_THICKNESS;
|
w -= x + PADDING - BORDER_THICKNESS;
|
||||||
h -= y + PADDING - BORDER_THICKNESS;
|
h -= y + PADDING - BORDER_THICKNESS;
|
||||||
|
|
||||||
String name = stackInstance.getSourceCard().getName();
|
String name = CardTranslation.getTranslatedName(stackInstance.getSourceCard().getName());
|
||||||
int index = text.indexOf(name);
|
int index = text.indexOf(name);
|
||||||
String newtext = "";
|
String newtext = "";
|
||||||
String cId = "(" + stackInstance.getSourceCard().getId() + ")";
|
String cId = "(" + stackInstance.getSourceCard().getId() + ")";
|
||||||
|
|||||||
Reference in New Issue
Block a user