added missing translations

This commit is contained in:
Lars Neuhaus 2024-12-27 12:01:44 +01:00
parent ea08ac7a81
commit a71aca5d6c
10 changed files with 64 additions and 15 deletions

View File

@ -18,19 +18,19 @@ import eu.mhsl.minenet.minigames.instance.game.stateless.types.trafficlightrace.
public enum GameList { public enum GameList {
DEATHCUBE(new DeathcubeFactory(), GameType.JUMPNRUN), DEATHCUBE(new DeathcubeFactory(), GameType.JUMPNRUN),
STICKFIGHT(new StickFightFactory(), GameType.PVP),
MINERUN(new MinerunFactory(), GameType.JUMPNRUN), MINERUN(new MinerunFactory(), GameType.JUMPNRUN),
TRAFFICLIGHTRACE(new TrafficLightRaceFactory(), GameType.OTHER), TRAFFICLIGHTRACE(new TrafficLightRaceFactory(), GameType.OTHER),
STICKFIGHT(new StickFightFactory(), GameType.PROTOTYPE),
TOWERDEFENSE(new TowerdefenseFactory(), GameType.PROTOTYPE), TOWERDEFENSE(new TowerdefenseFactory(), GameType.PROTOTYPE),
BEDWARS(new BedwarsFactory(), GameType.PROTOTYPE), BEDWARS(new BedwarsFactory(), GameType.PROTOTYPE),
BACKROOMS(new BackroomsFactory(), GameType.PROTOTYPE), BACKROOMS(new BackroomsFactory(), GameType.PROTOTYPE),
ANVILRUN(new AnvilRunFactory(), GameType.PROTOTYPE), BOWSPLEEF(new BowSpleefFactory(), GameType.PROTOTYPE),
TETRIS(new TetrisFactory(), GameType.OTHER), TETRIS(new TetrisFactory(), GameType.OTHER),
TNTRUN(new TntRunFactory(), GameType.OTHER), TNTRUN(new TntRunFactory(), GameType.OTHER),
ANVILRUN(new AnvilRunFactory(), GameType.PVE),
ACIDRAIN(new AcidRainFactory(), GameType.PVE), ACIDRAIN(new AcidRainFactory(), GameType.PVE),
ELYTRARACE(new ElytraRaceFactory(), GameType.PVP), ELYTRARACE(new ElytraRaceFactory(), GameType.PVP),
SPLEEF(new SpleefFactory(), GameType.PVP), SPLEEF(new SpleefFactory(), GameType.PVP);
BOWSPLEEF(new BowSpleefFactory(), GameType.PVP);
private final GameFactory factory; private final GameFactory factory;
private final GameType type; private final GameType type;

View File

@ -15,6 +15,11 @@ public class AcidRainFactory implements GameFactory {
return TranslatedComponent.byId("game_AcidRain#name"); return TranslatedComponent.byId("game_AcidRain#name");
} }
@Override
public TranslatedComponent description() {
return TranslatedComponent.byId("game_AcidRain#description");
}
@Override @Override
public Material symbol() { public Material symbol() {
return Material.SLIME_BALL; return Material.SLIME_BALL;

View File

@ -12,7 +12,12 @@ import java.util.Map;
public class BowSpleefFactory implements GameFactory { public class BowSpleefFactory implements GameFactory {
@Override @Override
public TranslatedComponent name() { public TranslatedComponent name() {
return TranslatedComponent.byId(""); return TranslatedComponent.byId("game_BowSpleef#name");
}
@Override
public TranslatedComponent description() {
return TranslatedComponent.byId("game_BowSpleef#description");
} }
@Override @Override

View File

@ -14,7 +14,12 @@ import java.util.Map;
public class ElytraRaceFactory implements GameFactory { public class ElytraRaceFactory implements GameFactory {
@Override @Override
public TranslatedComponent name() { public TranslatedComponent name() {
return TranslatedComponent.byId(""); return TranslatedComponent.byId("game_ElytraRace#name");
}
@Override
public TranslatedComponent description() {
return TranslatedComponent.byId("game_ElytraRace#description");
} }
@Override @Override
@ -25,7 +30,7 @@ public class ElytraRaceFactory implements GameFactory {
@Override @Override
public ConfigManager configuration() { public ConfigManager configuration() {
return new ConfigManager() return new ConfigManager()
.addOption(new NumericOption("ringCount", Material.DIAMOND_BLOCK, TranslatedComponent.byId("ringCount"), 5, 10, 20, 30, 40, 50)); .addOption(new NumericOption("ringCount", Material.DIAMOND_BLOCK, TranslatedComponent.byId("game_ElytraRace#ringCount"), 5, 10, 20, 30, 40, 50));
} }
@Override @Override

View File

@ -22,7 +22,7 @@ public class MinerunFactory implements GameFactory {
return new ConfigManager() return new ConfigManager()
.addOption(new NumericOption("width", Material.OAK_FENCE, TranslatedComponent.byId("optionCommon#width"), 10, 30, 50, 100)) .addOption(new NumericOption("width", Material.OAK_FENCE, TranslatedComponent.byId("optionCommon#width"), 10, 30, 50, 100))
.addOption(new NumericOption("length", Material.ZOMBIE_HEAD, TranslatedComponent.byId("optionCommon#length"), 50, 100, 150, 200)) .addOption(new NumericOption("length", Material.ZOMBIE_HEAD, TranslatedComponent.byId("optionCommon#length"), 50, 100, 150, 200))
.addOption(new NumericOption("percentage", Material.LIGHT_WEIGHTED_PRESSURE_PLATE, TranslatedComponent.byId("game_Minerun#optionPercentageMiens"), 30, 40, 50, 60, 70)); .addOption(new NumericOption("percentage", Material.LIGHT_WEIGHTED_PRESSURE_PLATE, TranslatedComponent.byId("game_Minerun#optionPercentageMines"), 30, 40, 50, 60, 70));
} }
@Override @Override

View File

@ -33,7 +33,7 @@ public class SpleefFactory implements GameFactory {
@Override @Override
public ConfigManager configuration() { public ConfigManager configuration() {
return new ConfigManager() return new ConfigManager()
.addOption(new NumericOption("radius", Material.HEART_OF_THE_SEA, TranslatedComponent.byId("game_Spleef#radius"), 10, 20, 30)) .addOption(new NumericOption("radius", Material.HEART_OF_THE_SEA, TranslatedComponent.byId("optionCommon#radius"), 10, 20, 30))
.addOption(new NumericOption("stackCount", Material.SCAFFOLDING, TranslatedComponent.byId("game_Spleef#stackCount"), 1, 2, 3, 4, 5)); .addOption(new NumericOption("stackCount", Material.SCAFFOLDING, TranslatedComponent.byId("game_Spleef#stackCount"), 1, 2, 3, 4, 5));
} }

View File

@ -14,7 +14,12 @@ import java.util.Map;
public class TntRunFactory implements GameFactory { public class TntRunFactory implements GameFactory {
@Override @Override
public TranslatedComponent name() { public TranslatedComponent name() {
return TranslatedComponent.byId("game_tntRun#name"); return TranslatedComponent.byId("game_TntRun#name");
}
@Override
public TranslatedComponent description() {
return TranslatedComponent.byId("game_TntRun#description");
} }
@Override @Override
@ -25,8 +30,8 @@ public class TntRunFactory implements GameFactory {
@Override @Override
public ConfigManager configuration() { public ConfigManager configuration() {
return new ConfigManager() return new ConfigManager()
.addOption(new NumericOption("radius", Material.STICK, TranslatedComponent.byId("game_tntRun#radius"), 20, 30, 50, 60)) .addOption(new NumericOption("radius", Material.STICK, TranslatedComponent.byId("optionCommon#radius"), 20, 30, 50, 60))
.addOption(new NumericOption("levels", Material.SCAFFOLDING, TranslatedComponent.byId("game_tntRun#levels"), 1, 2, 3, 4, 5)); .addOption(new NumericOption("levels", Material.SCAFFOLDING, TranslatedComponent.byId("game_TntRun#levels"), 1, 2, 3, 4, 5));
} }
@Override @Override

View File

@ -17,6 +17,11 @@ public class TrafficLightRaceFactory implements GameFactory {
return TranslatedComponent.byId("game_TrafficlightRace#name"); return TranslatedComponent.byId("game_TrafficlightRace#name");
} }
@Override
public TranslatedComponent description() {
return TranslatedComponent.byId("game_TrafficlightRace#description");
}
@Override @Override
public ConfigManager configuration() { public ConfigManager configuration() {
return new ConfigManager() return new ConfigManager()

View File

@ -31,7 +31,7 @@ public class Languages {
return getLanguage(p.getSettings().locale().toString()); // TODO funktioniert die locale noch? return getLanguage(p.getSettings().locale().toString()); // TODO funktioniert die locale noch?
} }
public Lang getLanguage(String mapId) { public Lang getLanguage(String mapId) {
return languages.computeIfAbsent(mapId, unused -> languages.computeIfAbsent(defaultLanguage, (key) -> new DummyLang())); return languages.computeIfAbsent(mapId.toLowerCase(), unused -> languages.computeIfAbsent(defaultLanguage, (key) -> new DummyLang()));
} }
private void readAll() { private void readAll() {

View File

@ -23,7 +23,11 @@ other_description;Games which does not fit into other Categories;Spiele welche n
pvp;Player vs Player;Spieler gegen Spieler pvp;Player vs Player;Spieler gegen Spieler
pvp_description;Fight against other Players;Kämpfe gegen andere Spieler pvp_description;Fight against other Players;Kämpfe gegen andere Spieler
pve;Player vs Enviroment;Spieler gegen Umwelt pve;Player vs Enviroment;Spieler gegen Umwelt
pve_description;Surivie the world or fight entities;Überlebe die Welt oder kämpfe gegen Mobs pve_description;Survive the world or fight entities;Überlebe die Welt oder kämpfe gegen Mobs
jumpnrun;jump and run;jump and run
jumpnrun_description;Proof your jump-and-run skills;Stelle deine jump-and-run Fähigkeiten unter Beweis
prototype;Prototype;Prototyp
prototype_description;Prototype games;Prototyp Spiele
;; ;;
ns:hub#;; ns:hub#;;
invTitle;MineNet Servernetwork;MineNet Servernetzwerk invTitle;MineNet Servernetwork;MineNet Servernetzwerk
@ -65,15 +69,26 @@ noOptionDescription;There are no options for this Game;Es gibt keine Einstellung
ns:GameFactory#;; ns:GameFactory#;;
missingDescription;No description;Keine Beschreibung missingDescription;No description;Keine Beschreibung
;; ;;
ns:game_TntRun#;;
name;tnt run;TNT Rennen
description;The tnt at the ground disappears, don't fall;Das TNT am Boden verschwindet, falle nicht herunter
levels;levels;Ebenen
;;
ns:game_ElytraRace#;;
name;elytra race;Elytra Rennen
description;Be fast while flying through the rings;Sei schnell während du durch die Ringe fliegst
ringCount;ring count;Anzahl der Ringe
;;
ns:game_Minerun#;; ns:game_Minerun#;;
name;Minerun;Minenrennen name;Minerun;Minenrennen
description;Ditch deadly Mines in the ground an be the first in the goal;Weiche den tödlichen Bodenmienen aus und sei der erste im Ziel description;Ditch deadly Mines in the ground an be the first in the goal;Weiche den tödlichen Bodenmienen aus und sei der erste im Ziel
optionPercentageMines;Percentage of Miens;Prozentsatz der Minen optionPercentageMines;Percentage of mines;Prozentsatz der Minen
;; ;;
ns:game_Deathcube#;; ns:game_Deathcube#;;
name;Deathcube;Todeswürfel name;Deathcube;Todeswürfel
description;Find a way to jump higher and be the first on the top;Finde einen weg nach oben und sei der erste im Ziel description;Find a way to jump higher and be the first on the top;Finde einen weg nach oben und sei der erste im Ziel
optionPercentageBlocks;Percentage of Blocks;Prozentsatz der Blöcke optionPercentageBlocks;Percentage of Blocks;Prozentsatz der Blöcke
optionPvpEnabled;pvp enabled;PvP aktiviert
;; ;;
ns:game_Stickfight#;; ns:game_Stickfight#;;
name;Stickfight;Stockschlacht name;Stickfight;Stockschlacht
@ -83,6 +98,14 @@ ns:game_TrafficlightRace#;;
name;Red light green light;Rotes licht, Grünes licht name;Red light green light;Rotes licht, Grünes licht
description;Only go forward if the Trafficlights show green;Gehe nur bei Grün vorran description;Only go forward if the Trafficlights show green;Gehe nur bei Grün vorran
;; ;;
ns:game_AcidRain#;;
name;acid rain;Säureregen
description;Stay under the holey roof to dodge acid rain;Bleib unter dem löchrigen Dach um dem sauren Regen auszuweichen
;;
ns:game_BowSpleef#;;
name;bow spleef;Bogen Spleef
description;Spleef other players and be the last survivor;Zerstöre Blöcke unter anderen Spielern und sei der letzte im Feld
;;
ns:game_Towerdefense#;; ns:game_Towerdefense#;;
name;Towerdefense;Towerdefense name;Towerdefense;Towerdefense
description;Protect the path ????;?????? description;Protect the path ????;??????
@ -91,6 +114,7 @@ ns:game_Spleef#;;
name;Spleef;Spleef; name;Spleef;Spleef;
description;Spleef other players and be the last survivor;Zerstöre Blöcke unter anderen Spielern und sei der letzte im Feld description;Spleef other players and be the last survivor;Zerstöre Blöcke unter anderen Spielern und sei der letzte im Feld
shovelName;Snow thrower;Schneeflug shovelName;Snow thrower;Schneeflug
stackCount;levels;Ebenen
;; ;;
ns:game_Tetris#;; ns:game_Tetris#;;
name;Tetris;Tetris name;Tetris;Tetris

Can't render this file because it has a wrong number of fields in line 114.