mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge branch 'donot_translation_token' into 'master'
do not translation non card clone token See merge request core-developers/forge!2478
This commit is contained in:
@@ -276,8 +276,14 @@ public class CardImageRenderer {
|
|||||||
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
final String text = !card.isSplitCard() ? card.getText(state, CardTranslation.getTranslationTexts(state.getName(), "")) :
|
boolean needTranslation = true;
|
||||||
card.getText(state, CardTranslation.getTranslationTexts(card.getLeftSplitState().getName(), card.getRightSplitState().getName()));
|
if (card.isToken()) {
|
||||||
|
if (card.getCloneOrigin() == null)
|
||||||
|
needTranslation = false;
|
||||||
|
}
|
||||||
|
final String text = !card.isSplitCard() ?
|
||||||
|
card.getText(state, needTranslation ? CardTranslation.getTranslationTexts(state.getName(), "") : null) :
|
||||||
|
card.getText(state, needTranslation ? CardTranslation.getTranslationTexts(card.getLeftSplitState().getName(), card.getRightSplitState().getName()) : null );
|
||||||
if (StringUtils.isEmpty(text)) { return; }
|
if (StringUtils.isEmpty(text)) { return; }
|
||||||
|
|
||||||
float padding = TEXT_FONT.getCapHeight() * 0.75f;
|
float padding = TEXT_FONT.getCapHeight() * 0.75f;
|
||||||
|
|||||||
@@ -280,8 +280,15 @@ public class CardDetailUtil {
|
|||||||
area.append("\n");
|
area.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
String text = !card.isSplitCard() ? card.getText(state, CardTranslation.getTranslationTexts(state.getName(), "")) :
|
boolean needTranslation = true;
|
||||||
card.getText(state, CardTranslation.getTranslationTexts(card.getLeftSplitState().getName(), card.getRightSplitState().getName()));
|
if (card.isToken()) {
|
||||||
|
if (card.getCloneOrigin() == null)
|
||||||
|
needTranslation = false;
|
||||||
|
}
|
||||||
|
final String text = !card.isSplitCard() ?
|
||||||
|
card.getText(state, needTranslation ? CardTranslation.getTranslationTexts(state.getName(), "") : null) :
|
||||||
|
card.getText(state, needTranslation ? CardTranslation.getTranslationTexts(card.getLeftSplitState().getName(), card.getRightSplitState().getName()) : null );
|
||||||
|
|
||||||
|
|
||||||
// LEVEL [0-9]+-[0-9]+
|
// LEVEL [0-9]+-[0-9]+
|
||||||
// LEVEL [0-9]+\+
|
// LEVEL [0-9]+\+
|
||||||
|
|||||||
Reference in New Issue
Block a user