Skip to content

Commit 66ba597

Browse files
committed
translate entry point descriptions
1 parent 85a3f1d commit 66ba597

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

DeCraftLauncher/Localization/default-genappend.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ ui.launchentrypoint.adv.launchplus_desc=Launch using the Main function Wrapper.
3030
ui.launchentrypoint.adv.remove=Remove...
3131
ui.launchentrypoint.adv.parameters=Parameters...
3232

33+
ui.entrypoint.description.direct_launch=Launch the game directly.
34+
ui.entrypoint.description.applet_launch=Launch the game as a Java applet.
35+
ui.entrypoint.description.isom_applet_launch=Open an applet that lets you view your worlds in an isometric view.
36+
ui.entrypoint.description.server_launch=Launch a server.
37+
ui.entrypoint.description.mcp_launch=Launch using a default wrapper generated by RetroMCP.
38+
ui.entrypoint.description.unsupported_onesix_launch=1.6+ launch class. Not supported by this launcher.
39+
ui.entrypoint.description.jdotsoft_loader_launch=Launch using a loader that will load its own dependencies.
40+
ui.entrypoint.description.ee_decraftinternal_launch=How did this get here?
41+
ui.entrypoint.description.ee_slaythespire_launch=You have great taste, I'll give you that.
42+
ui.entrypoint.description.unknown=<unknown>
43+
3344
ui.entrypoint.modsfound.header=Mods found:&#x0a;
3445

3546
popup.gpu_test_result=GPU test result:&#x0a;

DeCraftLauncher/Localization/default.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ ui.launchentrypoint.adv.launchplus_desc=Launch using the Main function Wrapper.
8787
ui.launchentrypoint.adv.remove=Remove...
8888
ui.launchentrypoint.adv.parameters=Parameters...
8989

90+
ui.entrypoint.description.direct_launch=Launch the game directly.
91+
ui.entrypoint.description.applet_launch=Launch the game as a Java applet.
92+
ui.entrypoint.description.isom_applet_launch=Open an applet that lets you view your worlds in an isometric view.
93+
ui.entrypoint.description.server_launch=Launch a server.
94+
ui.entrypoint.description.mcp_launch=Launch using a default wrapper generated by RetroMCP.
95+
ui.entrypoint.description.unsupported_onesix_launch=1.6+ launch class. Not supported by this launcher.
96+
ui.entrypoint.description.jdotsoft_loader_launch=Launch using a loader that will load its own dependencies.
97+
ui.entrypoint.description.ee_decraftinternal_launch=How did this get here?
98+
ui.entrypoint.description.ee_slaythespire_launch=You have great taste, I'll give you that.
99+
ui.entrypoint.description.unknown=<unknown>
100+
90101
ui.entrypoint.modsfound.header=Mods found:&#x0a;
91102

92103
popup.gpu_test_result=GPU test result:&#x0a;

DeCraftLauncher/Utils/JarUtils.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,29 +316,29 @@ public string GetDescription()
316316
case "com.mojang.minecraft.RubyDung":
317317
case "com.mojang.minecraft.Minecraft":
318318
case "net.minecraft.client.Minecraft":
319-
return "Launch the game directly.";
319+
return GlobalVars.L.Translate("ui.entrypoint.description.direct_launch");
320320
case "com.mojang.minecraft.MinecraftApplet":
321321
case "net.minecraft.client.MinecraftApplet":
322-
return "Launch the game as a Java applet.";
322+
return GlobalVars.L.Translate("ui.entrypoint.description.applet_launch");
323323
case "com.mojang.minecraft.server.MinecraftServer":
324324
case "net.minecraft.server.MinecraftServer":
325-
return "Launch a server.";
325+
return GlobalVars.L.Translate("ui.entrypoint.description.server_launch");
326326
case "net.minecraft.isom.IsomPreviewApplet":
327-
return "Open an applet that lets you view your worlds in an isometric view.";
327+
return GlobalVars.L.Translate("ui.entrypoint.description.isom_applet_launch");
328328
case "Start":
329-
return "Launch using a default wrapper generated by RetroMCP.";
329+
return GlobalVars.L.Translate("ui.entrypoint.description.mcp_launch");
330330
case "net.minecraft.client.main.Main":
331331
case "net.minecraft.data.Main":
332-
return "1.6+ launch class. Not supported by this launcher.";
332+
return GlobalVars.L.Translate("ui.entrypoint.description.unsupported_onesix_launch");
333333
case "decraft_internal.AppletWrapper":
334334
case "decraft_internal.MainFunctionWrapper":
335335
case "decraft_internal.LWJGLTestGPU":
336-
return "How did this get here?";
336+
return GlobalVars.L.Translate("ui.entrypoint.description.ee_decraftinternal_launch");
337337
case "com.megacrit.cardcrawl.desktop.DesktopLauncher":
338-
return "You have great taste, I'll give you that.";
338+
return GlobalVars.L.Translate("ui.entrypoint.description.ee_slaythespire_launch");
339339
default:
340-
return classpath.StartsWith("com.jdotsoft.jarloader") ? "Launch using a loader that will load its own dependencies."
341-
: "<unknown>";
340+
return classpath.StartsWith("com.jdotsoft.jarloader") ? GlobalVars.L.Translate("ui.entrypoint.description.jdotsoft_loader_launch")
341+
: GlobalVars.L.Translate("ui.entrypoint.description.unknown");
342342
}
343343
}
344344

0 commit comments

Comments
 (0)