Skip to content

Commit

Permalink
Do not attempt to format mod description contents (#1739)
Browse files Browse the repository at this point in the history
Fixes #1561
  • Loading branch information
Matyrobbrt authored Dec 5, 2024
1 parent c4c7d94 commit 7df0d35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void upload() {
lines.add(FMLTranslations.parseMessage("fml.menu.mods.info.updateavailable", vercheck.url() == null ? "" : vercheck.url()).replace("\r\n", "\n"));
lines.add(FMLTranslations.parseMessage("fml.menu.mods.info.license", selectedMod.getOwningFile().getLicense()).replace("\r\n", "\n"));
lines.add(null);
lines.add(FMLTranslations.parseMessageWithFallback("fml.menu.mods.info.description." + selectedMod.getModId(), selectedMod::getDescription));
lines.add(FMLTranslations.getPattern("fml.menu.mods.info.description." + selectedMod.getModId(), selectedMod::getDescription));

/* Removed because people bitched that this information was misleading.
lines.add(null);
Expand Down
2 changes: 1 addition & 1 deletion tests/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license="LGPL v2.1"

[[mods]]
modId="neotests"
description="NeoForge tests. Change the language to fr_fr and the description should change too."
description="NeoForge's tests. Change the language to fr_fr and the description should change too."
enumExtensions="META-INF/enumextensions.json"
[[mods]]
modId="configui"
Expand Down
2 changes: 1 addition & 1 deletion tests/src/main/resources/assets/neotests/lang/fr_fr.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"fml.menu.mods.info.description.neotests": "Le mod de test de NeoForge oh la la !"
"fml.menu.mods.info.description.neotests": "Le mod de test de NeoForge oh la la ! J'aime le français !"
}

0 comments on commit 7df0d35

Please sign in to comment.