mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Crowdin localization support (#2310)
* Switching to use resource files * Update Crowdin configuration file * Code cleanup
This commit is contained in:
parent
a27491c1b6
commit
077e3a5e9f
193 changed files with 102089 additions and 3564 deletions
|
|
@ -6,7 +6,7 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
public override string CmdName { get { return "connect"; } }
|
||||
public override string CmdUsage { get { return "connect <server> [account]"; } }
|
||||
public override string CmdDesc { get { return "cmd.connect.desc"; } }
|
||||
public override string CmdDesc { get { return Translations.cmd_connect_desc; } }
|
||||
|
||||
public override string Run(McClient? handler, string command, Dictionary<string, object>? localVars)
|
||||
{
|
||||
|
|
@ -17,7 +17,7 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
if (!Settings.Config.Main.Advanced.SetAccount(args[1]))
|
||||
{
|
||||
return Translations.Get("cmd.connect.unknown", args[1]);
|
||||
return string.Format(Translations.cmd_connect_unknown, args[1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ namespace MinecraftClient.Commands
|
|||
Program.Restart();
|
||||
return "";
|
||||
}
|
||||
else return Translations.Get("cmd.connect.invalid_ip", args[0]);
|
||||
else return string.Format(Translations.cmd_connect_invalid_ip, args[0]);
|
||||
}
|
||||
else return GetCmdDescTranslated();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue