Crowdin localization support (#2310)

* Switching to use resource files

* Update Crowdin configuration file

* Code cleanup
This commit is contained in:
BruceChen 2022-10-28 11:13:20 +08:00 committed by GitHub
parent a27491c1b6
commit 077e3a5e9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
193 changed files with 102089 additions and 3564 deletions

View file

@ -6,7 +6,7 @@ namespace MinecraftClient.Commands
{
public override string CmdName { get { return "animation"; } }
public override string CmdUsage { get { return "animation <mainhand|offhand>"; } }
public override string CmdDesc { get { return "cmd.animation.desc"; } }
public override string CmdDesc { get { return Translations.cmd_animation_desc; } }
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
{
@ -18,12 +18,12 @@ namespace MinecraftClient.Commands
if (args[0] == "mainhand" || args[0] == "0")
{
handler.DoAnimation(0);
return Translations.Get("general.done");
return Translations.general_done;
}
else if (args[0] == "offhand" || args[0] == "1")
{
handler.DoAnimation(1);
return Translations.Get("general.done");
return Translations.general_done;
}
else
{