Update messaging-related translation keys

This commit is contained in:
JeremyStar™ 2024-10-09 10:49:58 +02:00
parent 72650600b4
commit 13fcf0cbc3
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
5 changed files with 21 additions and 17 deletions

View file

@ -50,7 +50,7 @@ public enum LanguageString {
ERROR_INVALID_ARGUMENT,
ERROR_PLAYER_NOT_FOUND,
// Connection errors
// Connection
CONNECTION_ERROR_REGISTRATION,
CONNECTION_ERROR_TABLISTHANDLER,
@ -61,16 +61,17 @@ public enum LanguageString {
EXTENSIONCMD_SOURCE,
EXTENSIONCMD_ERROR_OLDCMD,
// Command group 'messaging'
MESSAGING_SERVER,
MESSAGING_DIRECT,
MESSAGING_ERROR_SELF,
// Command group 'links'
LINKS_WEBSITE,
LINKS_DISCORD,
LINKS_TEAMSPEAK,
LINKS_MUMBLE,
// Command group 'messaging'
MESSAGING_FORMAT,
MESSAGING_ERROR_SELF,
// Command /clearchat
CLEARCHAT_GENERIC,
CLEARCHAT_VOID,
@ -95,9 +96,6 @@ public enum LanguageString {
TROLL_HACK_COMPLETE,
TROLL_HEAVENS,
// Event for chat messages
CHATMESSAGE_SERVER,
// Event for chat commands
CHATCOMMAND_ERROR_NAMESPACE,
}

View file

@ -104,7 +104,7 @@ public final class MessageCommand extends CommandBase {
}
output = TranslationManager.get(
LanguageString.MESSAGING_FORMAT,
LanguageString.MESSAGING_DIRECT,
sender,
false,
entry("from", player.getName()),

View file

@ -47,7 +47,7 @@ public final class ChatListener implements Listener {
event.setCancelled(true);
Bukkit.broadcast(
MiniMessage.miniMessage().deserialize(
TranslationManager.get(LanguageString.CHATMESSAGE_SERVER, event.getPlayer(), false)
TranslationManager.get(LanguageString.MESSAGING_SERVER, event.getPlayer(), false)
.replace("%sender%", event.getPlayer().getName())
).append(MiniMessage.miniMessage().deserialize(MiniMessage.miniMessage().serialize(event.originalMessage()).replace("\\<", "<")))
);

View file

@ -8,19 +8,23 @@
"ERROR_INVALID_ARGUMENT": "<error>Ungültige(s) Argument(e) <mention>%argument%</mention>.</error>",
"ERROR_PLAYER_NOT_FOUND": "<error>Der Spieler <mention>%player%</mention> konnte nicht gefunden werden.</error>",
"CONNECTION_JOIN": "<generic><mention>%player%</mention> ist dem Spiel beigetreten</generic>",
"CONNECTION_JOIN_WELCOME": "<generic>Willkommen zu <branding/>, <mention>%player%</mention>!</generic>",
"CONNECTION_DISCONNECT": "<generic><mention>%player%</mention> hat das Spiel verlassen</generic>",
"EXTENSIONCMD_GREETER": "<generic>Dieser Subserver läuft <#d60532><bold>PSSE</bold> \"<italic>%codename%</italic>\" <italic>@ %version% (%commit%, dirty %dirty%)</italic></generic>\n<generic>Führe ein paar Subbefehle aus um mehr Informationen einzusehen.",
"EXTENSIONCMD_KILLJVM": "<generic>Bye bye!",
"EXTENSIONCMD_LICENSE": "<generic>PSSE ist lizensiert unter der <mention>GNU Affero General Public-Lizenz v3</mention>.",
"EXTENSIONCMD_SOURCE": "<generic>Du kannst PickShadow's serverseitigen Code auf <click:open_url:https://git.staropensource.de/JeremyStarTM/PSSE><link>sos!git</link></click> finden.",
"EXTENSIONCMD_ERROR_OLDCMD": "<error>Was ist <mention>PSSP</mention>...?</error>\n<error>Das PickShadow Server Plugin (PSSP) wurde in PickShadow Server <italic>Extension</italic> (PSSE) umbenannt.</error>\n<error>Bitte verwende diesen Namen stattdessen, vielen Dank.</error>",
"MESSAGING_ERROR_SELF": "<error>Du kannst dich nicht selber anschreiben.</error>",
"LINKS_WEBSITE": "<error>Das PickShadow Netzwerk hat aktuell keine Webseite.</error>",
"LINKS_DISCORD": "<error>Das PickShadow Netzwerk hat aktuell keine Discord Guilde.</error>",
"LINKS_TEAMSPEAK": "<error>Das PickShadow Netzwerk hat aktuell keinen TeamSpeak Server.</error>",
"LINKS_MUMBLE": "<error>Das PickShadow Netzwerk hat aktuell keinen Mumble Server.</error>",
"MESSAGING_ERROR_SELF": "<error>Du kannst dich nicht selber anschreiben.</error>",
"CLEARCHAT_GENERIC": "<generic>Der Chat wurde von %sender% geleert.",
"CLEARCHAT_VOID": "<generic>Der Chat wurde von %sender% ins Void geschubst.",
"CLEARCHAT_SKILLISSUES": "<generic>Der Chat wurde von %sender% aufgrund von Skill Issues der Chatteilnehmer gelöscht.",

View file

@ -20,6 +20,9 @@
"ERROR_INVALID_ARGUMENT": "<error>Invalid argument(s) <mention>%argument%</mention>.</error>",
"ERROR_PLAYER_NOT_FOUND": "<error>The player <mention>%player%</mention> could not be found.</error>",
"CONNECTION_JOIN": "<generic>%player% joined the game",
"CONNECTION_JOIN_WELCOME": "<generic>Welcome to <branding/>, <mention>%player%</mention>!</generic>",
"CONNECTION_DISCONNECT": "<generic>%player% left the game",
"CONNECTION_ERROR_REGISTRATION": "<error>Unable to process log in",
"CONNECTION_ERROR_TABLISTHANDLER": "<error>TabListHandler failed unexpectedly",
@ -29,14 +32,15 @@
"EXTENSIONCMD_SOURCE": "<generic>You can find the source code of PickShadow's server-side code on <click:open_url:https://git.staropensource.de/JeremyStarTM/PSSE><link>sos!git</link></click>.",
"EXTENSIONCMD_ERROR_OLDCMD": "<error>What's <mention>PSSP</mention>...?</error>\n<error>The PickShadow Server Plugin (PSSP) has been renamed into PickShadow Server <italic>Extension</italic> (PSSE).</error>\n<error>Please use this name instead, thank you.</error>",
"MESSAGING_SERVER": "<mention>%sender%</mention> <#d60532>»</#d60532> ",
"MESSAGING_DIRECT": "<generic><bold>%from%</bold> » <bold>%to%</bold> » </generic>%message%",
"MESSAGING_ERROR_SELF": "<error>You can't message yourself.</error>",
"LINKS_WEBSITE": "<error>The PickShadow Network doesn't currently have a website.</error>",
"LINKS_DISCORD": "<error>The PickShadow Network doesn't currently have a Discord guild.</error>",
"LINKS_TEAMSPEAK": "<error>The PickShadow Network doesn't currently have a TeamSpeak server.</error>",
"LINKS_MUMBLE": "<error>The PickShadow Network doesn't currently have a Mumble server.</error>",
"MESSAGING_FORMAT": "<generic><bold>%from%</bold> » <bold>%to%</bold> » </generic>%message%",
"MESSAGING_ERROR_SELF": "<error>You can't message yourself.</error>",
"CLEARCHAT_GENERIC": "<generic>The chat has been cleared by %sender%.</generic>",
"CLEARCHAT_VOID": "<generic>The chat has been pushed into the void by %sender%.</generic>",
"CLEARCHAT_SKILLISSUES": "<generic>The chat has been cleared by %sender% due to skill issues of the chat participants.</generic>",
@ -57,7 +61,5 @@
"TROLL_HACK_COMPLETE": "Access granted.",
"TROLL_HEAVENS": "<generic><mention>%target%</mention> believes that they can fly.</generic>",
"CHATMESSAGE_SERVER": "<mention>%sender%</mention> <#d60532>»</#d60532> ",
"CHATCOMMAND_ERROR_NAMESPACE": "<error>Using namespaces is not allowed, as it may be used to circumvent security measures.</error>"
}