Skip to content

Commit

Permalink
refactor: Add TranslationFacility for decoupling from HOVerwaltung (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
sgcr authored Sep 23, 2024
1 parent d71fc9c commit 950b01b
Show file tree
Hide file tree
Showing 250 changed files with 3,280 additions and 3,588 deletions.
10 changes: 6 additions & 4 deletions src/main/java/core/HO.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@
import core.gui.theme.ThemeManager;
import core.jmx.StatementCacheMonitor;
import core.model.HOVerwaltung;
import core.model.TranslationFacility;
import core.model.UserParameter;
import core.training.TrainingManager;
import core.util.ExceptionHandler;
import core.util.HOLogger;
import core.util.OSUtils;
import java.io.File;

import javax.imageio.ImageIO;
import javax.management.*;
import javax.swing.*;
import java.io.File;
import java.lang.management.ManagementFactory;
import java.text.NumberFormat;
import java.util.ArrayList;
Expand Down Expand Up @@ -183,13 +185,13 @@ public static void main(String[] args) {
// Check if language file available
interruptionWindow.setInfoText(4, "Check Language files");
HOVerwaltung.checkLanguageFile(UserParameter.instance().sprachDatei);
HOVerwaltung.instance().setTranslator(UserParameter.instance().sprachDatei);
TranslationFacility.setLanguage(UserParameter.instance().sprachDatei);

if (DBManager.instance().isFirstStart()) {
interruptionWindow.setVisible(false);
JOptionPane.showMessageDialog(null,
HOVerwaltung.instance().getLanguageString("firststartup.infowinmessage"),
HOVerwaltung.instance().getLanguageString("firststartup.infowinmessage.title"), JOptionPane.INFORMATION_MESSAGE);
TranslationFacility.tr("firststartup.infowinmessage"),
TranslationFacility.tr("firststartup.infowinmessage.title"), JOptionPane.INFORMATION_MESSAGE);
interruptionWindow.setVisible(true);
}

Expand Down
24 changes: 12 additions & 12 deletions src/main/java/core/constants/TeamConfidence.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core.constants;

import core.datatype.CBItem;
import core.model.HOVerwaltung;
import core.model.TranslationFacility;

public class TeamConfidence {

Expand All @@ -17,24 +17,24 @@ public class TeamConfidence {
public static final int COMPLETELY_EXAGGERATED = 9;

public static CBItem[] ITEMS = {
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.non-existent"), NON_EXISTENT),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.disastrous"), DISASTROUS),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.wretched"), WRETCHED),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.poor"), POOR),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.decent"), DECENT),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.strong"), STRONG),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.wonderful"), WONDERFUL),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.slightlyexaggerated"), SLIGHTLY_EXAGGERATED),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.exaggerated"), EXAGGERATED),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.confidence.completelyexaggerated"), COMPLETELY_EXAGGERATED)
new CBItem(TranslationFacility.tr("ls.team.confidence.non-existent"), NON_EXISTENT),
new CBItem(TranslationFacility.tr("ls.team.confidence.disastrous"), DISASTROUS),
new CBItem(TranslationFacility.tr("ls.team.confidence.wretched"), WRETCHED),
new CBItem(TranslationFacility.tr("ls.team.confidence.poor"), POOR),
new CBItem(TranslationFacility.tr("ls.team.confidence.decent"), DECENT),
new CBItem(TranslationFacility.tr("ls.team.confidence.strong"), STRONG),
new CBItem(TranslationFacility.tr("ls.team.confidence.wonderful"), WONDERFUL),
new CBItem(TranslationFacility.tr("ls.team.confidence.slightlyexaggerated"), SLIGHTLY_EXAGGERATED),
new CBItem(TranslationFacility.tr("ls.team.confidence.exaggerated"), EXAGGERATED),
new CBItem(TranslationFacility.tr("ls.team.confidence.completelyexaggerated"), COMPLETELY_EXAGGERATED)
};


public static String toString(int teamConfidence){
if(teamConfidence >= NON_EXISTENT && teamConfidence <= COMPLETELY_EXAGGERATED)
return ITEMS[teamConfidence].getText();
else
return HOVerwaltung.instance().getLanguageString("Unbestimmt");
return TranslationFacility.tr("Unbestimmt");
}

}
26 changes: 13 additions & 13 deletions src/main/java/core/constants/TeamSpirit.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core.constants;

import core.datatype.CBItem;
import core.model.HOVerwaltung;
import core.model.TranslationFacility;

public final class TeamSpirit {

Expand All @@ -18,17 +18,17 @@ public final class TeamSpirit {
public static final int PARADISE_ON_EARTH = 10;

public static CBItem[] ITEMS = {
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.likethecoldwar"), LIKE_THE_COLD_WAR),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.murderous"), MURDEROUS),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.furious"), FURIOUS),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.irritated"), IRRITATED),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.composed"), COMPOSED),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.calm"), CALM),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.content"), CONTENT),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.satisfied"), SATISFIED),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.delirious"), DELIRIOUS),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.walkingonclouds"), WALKING_ON_CLOUDS),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.paradiseonearth"), PARADISE_ON_EARTH) };
new CBItem(TranslationFacility.tr("ls.team.teamspirit.likethecoldwar"), LIKE_THE_COLD_WAR),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.murderous"), MURDEROUS),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.furious"), FURIOUS),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.irritated"), IRRITATED),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.composed"), COMPOSED),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.calm"), CALM),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.content"), CONTENT),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.satisfied"), SATISFIED),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.delirious"), DELIRIOUS),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.walkingonclouds"), WALKING_ON_CLOUDS),
new CBItem(TranslationFacility.tr("ls.team.teamspirit.paradiseonearth"), PARADISE_ON_EARTH) };

private TeamSpirit() {
}
Expand All @@ -38,6 +38,6 @@ public static String toString(int teamSpirit){
if(teamSpirit >= LIKE_THE_COLD_WAR && teamSpirit <= PARADISE_ON_EARTH)
return ITEMS[teamSpirit].getText();
else
return HOVerwaltung.instance().getLanguageString("Unbestimmt");
return TranslationFacility.tr("Unbestimmt");
}
}
15 changes: 7 additions & 8 deletions src/main/java/core/constants/player/PlayerAbility.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package core.constants.player

import core.datatype.CBItem
import core.model.HOVerwaltung
import core.model.TranslationFacility
import core.model.UserParameter
import core.util.Helper

Expand Down Expand Up @@ -79,10 +79,9 @@ object PlayerAbility {
@JvmStatic
fun toString(ability: Int): String {
return if (ability in NON_EXISTENT..DIVINE) {
HOVerwaltung.instance().getLanguageString(languageKeys[ability])
TranslationFacility.tr(languageKeys[ability])
} else {
var value = HOVerwaltung.instance()
.getLanguageString(if (ability > DIVINE) languageKeys[DIVINE] else "Unbestimmt")
var value = TranslationFacility.tr(if (ability > DIVINE) languageKeys[DIVINE] else "Unbestimmt")
if (ability > 20) value += "(+${ability - 20})"
value
}
Expand Down Expand Up @@ -165,10 +164,10 @@ object PlayerAbility {

private fun getName4Sublevel(sub: Int): String {
return when (sub) {
0 -> " (${HOVerwaltung.instance().getLanguageString("verylow")})"
1 -> " (${HOVerwaltung.instance().getLanguageString("low")})"
2 -> " (${HOVerwaltung.instance().getLanguageString("high")})"
3 -> " (${HOVerwaltung.instance().getLanguageString("veryhigh")})"
0 -> " (${TranslationFacility.tr("verylow")})"
1 -> " (${TranslationFacility.tr("low")})"
2 -> " (${TranslationFacility.tr("high")})"
3 -> " (${TranslationFacility.tr("veryhigh")})"
else -> ""
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/core/constants/player/PlayerAggressiveness.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.constants.player;

import core.model.HOVerwaltung;
import core.model.TranslationFacility;

public class PlayerAggressiveness {
private static final String[] languageKeys = {
Expand All @@ -24,7 +24,7 @@ private PlayerAggressiveness() {

public static String toString(Integer aggressiveness) {
if (aggressiveness != null && aggressiveness >= TRANQUIL && aggressiveness <= UNSTABLE)
return HOVerwaltung.instance().getLanguageString(languageKeys[aggressiveness]);
return HOVerwaltung.instance().getLanguageString("Unbestimmt");
return TranslationFacility.tr(languageKeys[aggressiveness]);
return TranslationFacility.tr("Unbestimmt");
}
}
6 changes: 3 additions & 3 deletions src/main/java/core/constants/player/PlayerAgreeability.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.constants.player;

import core.model.HOVerwaltung;
import core.model.TranslationFacility;

public final class PlayerAgreeability {
private static final String[] languageKeys = {
Expand All @@ -22,8 +22,8 @@ private PlayerAgreeability(){}

public static String toString(Integer agreeability){
if(agreeability!=null && agreeability >= NASTY_FELLOW && agreeability <= BELOVED_TEAM_MEMBER)
return HOVerwaltung.instance().getLanguageString(languageKeys[agreeability]);
return HOVerwaltung.instance().getLanguageString("Unbestimmt");
return TranslationFacility.tr(languageKeys[agreeability]);
return TranslationFacility.tr("Unbestimmt");
}


Expand Down
6 changes: 3 additions & 3 deletions src/main/java/core/constants/player/PlayerHonesty.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.constants.player;

import core.model.HOVerwaltung;
import core.model.TranslationFacility;

public final class PlayerHonesty {
private static final String[] languageKeys = {
Expand All @@ -22,8 +22,8 @@ private PlayerHonesty(){}

public static String toString(Integer honesty){
if(honesty != null && honesty >= INFAMOUS && honesty <= SAINTLY)
return HOVerwaltung.instance().getLanguageString(languageKeys[honesty]);
return HOVerwaltung.instance().getLanguageString("Unbestimmt");
return TranslationFacility.tr(languageKeys[honesty]);
return TranslationFacility.tr("Unbestimmt");
}

}
4 changes: 2 additions & 2 deletions src/main/java/core/constants/player/PlayerSkill.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package core.constants.player;

import core.model.HOVerwaltung;
import core.model.TranslationFacility;


public enum PlayerSkill {
Expand Down Expand Up @@ -34,7 +34,7 @@ public String getLanguageString() {
case KEEPER, DEFENDING, WINGER, PLAYMAKING, SCORING, PASSING, STAMINA, SETPIECES -> b.append("skill.");
}
b.append(super.toString().toLowerCase());
return HOVerwaltung.instance().getLanguageString(b.toString());
return TranslationFacility.tr(b.toString());
}

public static PlayerSkill fromInteger(Integer i) {
Expand Down
35 changes: 18 additions & 17 deletions src/main/java/core/constants/player/PlayerSpeciality.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package core.constants.player;

import core.datatype.CBItem;
import core.model.HOVerwaltung;
import core.model.TranslationFacility;
import core.model.match.Weather;

import java.util.LinkedHashMap;

public final class PlayerSpeciality {
Expand All @@ -24,13 +25,13 @@ public final class PlayerSpeciality {

public static final CBItem[] ITEMS = {
new CBItem("", NO_SPECIALITY),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.technical"), TECHNICAL),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.quick"), QUICK),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.powerful"), POWERFUL),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.unpredictable"), UNPREDICTABLE),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.head"), HEAD),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.regainer"), REGAINER),
new CBItem(HOVerwaltung.instance().getLanguageString("ls.player.speciality.support"), SUPPORT)
new CBItem(TranslationFacility.tr("ls.player.speciality.technical"), TECHNICAL),
new CBItem(TranslationFacility.tr("ls.player.speciality.quick"), QUICK),
new CBItem(TranslationFacility.tr("ls.player.speciality.powerful"), POWERFUL),
new CBItem(TranslationFacility.tr("ls.player.speciality.unpredictable"), UNPREDICTABLE),
new CBItem(TranslationFacility.tr("ls.player.speciality.head"), HEAD),
new CBItem(TranslationFacility.tr("ls.player.speciality.regainer"), REGAINER),
new CBItem(TranslationFacility.tr("ls.player.speciality.support"), SUPPORT)
};


Expand All @@ -39,13 +40,13 @@ public final class PlayerSpeciality {
static {
ITEMS2 = new LinkedHashMap<>();
ITEMS2.put(NO_SPECIALITY, "");
ITEMS2.put(TECHNICAL, HOVerwaltung.instance().getLanguageString("ls.player.speciality.technical"));
ITEMS2.put(QUICK, HOVerwaltung.instance().getLanguageString("ls.player.speciality.quick"));
ITEMS2.put(POWERFUL, HOVerwaltung.instance().getLanguageString("ls.player.speciality.powerful"));
ITEMS2.put(UNPREDICTABLE, HOVerwaltung.instance().getLanguageString("ls.player.speciality.unpredictable"));
ITEMS2.put(HEAD, HOVerwaltung.instance().getLanguageString("ls.player.speciality.head"));
ITEMS2.put(REGAINER, HOVerwaltung.instance().getLanguageString("ls.player.speciality.regainer"));
ITEMS2.put(SUPPORT, HOVerwaltung.instance().getLanguageString("ls.player.speciality.support"));
ITEMS2.put(TECHNICAL, TranslationFacility.tr("ls.player.speciality.technical"));
ITEMS2.put(QUICK, TranslationFacility.tr("ls.player.speciality.quick"));
ITEMS2.put(POWERFUL, TranslationFacility.tr("ls.player.speciality.powerful"));
ITEMS2.put(UNPREDICTABLE, TranslationFacility.tr("ls.player.speciality.unpredictable"));
ITEMS2.put(HEAD, TranslationFacility.tr("ls.player.speciality.head"));
ITEMS2.put(REGAINER, TranslationFacility.tr("ls.player.speciality.regainer"));
ITEMS2.put(SUPPORT, TranslationFacility.tr("ls.player.speciality.support"));
}


Expand All @@ -54,9 +55,9 @@ private PlayerSpeciality() {

public static String toString(Integer speciality) {
if ( speciality != null) {
return ITEMS2.getOrDefault(speciality, HOVerwaltung.instance().getLanguageString("Unbestimmt"));
return ITEMS2.getOrDefault(speciality, TranslationFacility.tr("Unbestimmt"));
}
return HOVerwaltung.instance().getLanguageString("Unbestimmt");
return TranslationFacility.tr("Unbestimmt");
}


Expand Down
11 changes: 6 additions & 5 deletions src/main/java/core/db/MatchesOverviewQuery.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package core.db;

import core.model.HOVerwaltung;
import core.model.TranslationFacility;
import core.model.match.*;
import core.util.HOLogger;
import module.matches.MatchLocation;
Expand Down Expand Up @@ -175,8 +176,8 @@ private static StringBuilder getMatchLocationWhereClause(MatchLocation matchLoca

static MatchesOverviewRow[] getMatchesOverviewValues(int matchtype, MatchLocation matchLocation){
ArrayList<MatchesOverviewRow> rows = new ArrayList<>(20);
rows.add(new MatchesOverviewRow(HOVerwaltung.instance().getLanguageString("AlleSpiele"), MatchesOverviewRow.TYPE_ALL));
rows.add(new MatchesOverviewRow(HOVerwaltung.instance().getLanguageString("ls.team.formation"), MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow(TranslationFacility.tr("AlleSpiele"), MatchesOverviewRow.TYPE_ALL));
rows.add(new MatchesOverviewRow(TranslationFacility.tr("ls.team.formation"), MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow("5-5-0", MatchesOverviewRow.TYPE_SYSTEM));
rows.add(new MatchesOverviewRow("5-4-1", MatchesOverviewRow.TYPE_SYSTEM));
rows.add(new MatchesOverviewRow("5-3-2", MatchesOverviewRow.TYPE_SYSTEM));
Expand All @@ -187,19 +188,19 @@ static MatchesOverviewRow[] getMatchesOverviewValues(int matchtype, MatchLocatio
rows.add(new MatchesOverviewRow("3-5-2", MatchesOverviewRow.TYPE_SYSTEM));
rows.add(new MatchesOverviewRow("3-4-3", MatchesOverviewRow.TYPE_SYSTEM));
rows.add(new MatchesOverviewRow("2-5-3", MatchesOverviewRow.TYPE_SYSTEM));
rows.add(new MatchesOverviewRow(HOVerwaltung.instance().getLanguageString("ls.team.tactic"), MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow(TranslationFacility.tr("ls.team.tactic"), MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_NORMAL), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_NORMAL));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_PRESSING), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_PRESSING));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_KONTER), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_KONTER));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_MIDDLE), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_MIDDLE));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_WINGS), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_WINGS));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_CREATIVE), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_CREATIVE));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForTaktik(IMatchDetails.TAKTIK_LONGSHOTS), MatchesOverviewRow.TYPE_TACTICS, IMatchDetails.TAKTIK_LONGSHOTS));
rows.add(new MatchesOverviewRow(HOVerwaltung.instance().getLanguageString("ls.team.teamattitude"),MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow(TranslationFacility.tr("ls.team.teamattitude"),MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForEinstellung(IMatchDetails.EINSTELLUNG_PIC), MatchesOverviewRow.TYPE_MOT, IMatchDetails.EINSTELLUNG_PIC));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForEinstellung(IMatchDetails.EINSTELLUNG_NORMAL), MatchesOverviewRow.TYPE_MOT, IMatchDetails.EINSTELLUNG_NORMAL));
rows.add(new MatchesOverviewRow(Matchdetails.getNameForEinstellung(IMatchDetails.EINSTELLUNG_MOTS), MatchesOverviewRow.TYPE_MOT, IMatchDetails.EINSTELLUNG_MOTS));
rows.add(new MatchesOverviewRow(HOVerwaltung.instance().getLanguageString("ls.match.weather"), MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow(TranslationFacility.tr("ls.match.weather"), MatchesOverviewRow.TYPE_TITLE));
rows.add(new MatchesOverviewRow("IMatchDetails.WETTER_SONNE", MatchesOverviewRow.TYPE_WEATHER, Weather.SUNNY.getId()));
rows.add(new MatchesOverviewRow("IMatchDetails.WETTER_WOLKIG", MatchesOverviewRow.TYPE_WEATHER, Weather.PARTIALLY_CLOUDY.getId()));
rows.add(new MatchesOverviewRow("IMatchDetails.WETTER_BEWOELKT", MatchesOverviewRow.TYPE_WEATHER, Weather.OVERCAST.getId()));
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/core/file/hrf/HRFImport.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import core.gui.RefreshManager;
import core.model.HOModel;
import core.model.HOVerwaltung;
import core.model.TranslationFacility;
import core.model.UserParameter;
import core.util.HODateTime;
import core.util.HOLogger;
Expand Down Expand Up @@ -108,7 +109,7 @@ private File[] getHRFFiles(Frame parent) {

ExampleFileFilter filter = new ExampleFileFilter();
filter.addExtension("hrf");
filter.setDescription(HOVerwaltung.instance().getLanguageString("filetypedescription.hrf"));
filter.setDescription(TranslationFacility.tr("filetypedescription.hrf"));
fileChooser.setFileFilter(filter);

if (fileChooser.showOpenDialog(parent) == JFileChooser.APPROVE_OPTION) {
Expand All @@ -118,7 +119,7 @@ private File[] getHRFFiles(Frame parent) {
}

private String getLangStr(String key) {
return HOVerwaltung.instance().getLanguageString(key);
return TranslationFacility.tr(key);
}

/**
Expand Down
Loading

0 comments on commit 950b01b

Please sign in to comment.