Skip to content

Commit

Permalink
Remove newlines from translation files (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 authored Nov 29, 2024
1 parent 039380b commit a753a5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ public Locale getLocale() {
@Override
public void sendAnnouncements() {
if (!WorldEditPlugin.getInstance().getLifecycledBukkitImplAdapter().isValid()) {
printError(TranslatableComponent.of("worldedit.version.bukkit.unsupported-adapter",
TextComponent.of("https://enginehub.org/worldedit/#downloads", TextColor.AQUA)
.clickEvent(ClickEvent.openUrl("https://enginehub.org/worldedit/#downloads"))));
printError(TranslatableComponent.of("worldedit.version.bukkit.unsupported-version")
.append(TextComponent.newline())
.append(TextComponent.of("https://enginehub.org/worldedit/#downloads", TextColor.AQUA).clickEvent(ClickEvent.openUrl("https://enginehub.org/worldedit/#downloads")))
);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import com.sk89q.worldedit.util.eventbus.EventBus;
import com.sk89q.worldedit.util.formatting.text.TextComponent;
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
import com.sk89q.worldedit.util.formatting.text.event.ClickEvent;
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
import com.sk89q.worldedit.util.io.file.FileSelectionAbortedException;
import com.sk89q.worldedit.util.io.file.FilenameException;
Expand Down Expand Up @@ -751,7 +752,12 @@ public void runScript(Player player, File f, String[] args) throws WorldEditExce
try {
engine = new RhinoCraftScriptEngine();
} catch (NoClassDefFoundError ignored) {
player.printError(TranslatableComponent.of("worldedit.script.no-script-engine"));
player.printError(TranslatableComponent.of("worldedit.script.missing-script-engine")
.append(TextComponent.newline())
.append(TranslatableComponent.of("worldedit.script.please-see",
TextComponent.of("https://worldedit.enginehub.org/en/latest/usage/other/craftscripts/", TextColor.AQUA).clickEvent(ClickEvent.openUrl("https://worldedit.enginehub.org/en/latest/usage/other/craftscripts/")))
)
);
return;
}

Expand Down

0 comments on commit a753a5f

Please sign in to comment.