mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add support of language files (#1273)
* Basic support of language file Only mapped main part of MCC. * Translations function imporve * Change translation file naming * Fix default translation file naming * Complete translation file mapping for main part Command and ChatBot not done yet * Complete translation mapping for commands Except Entitycmd * Complete translation mapping for ChatBots * Add new method for replacing translation key Just for Entitycmd. Be proud of yourself. We have a convenient method now. * Complete all translation mapping * Add default config and translation file to resource * Remove untranslatable messages from default translation file
This commit is contained in:
parent
0c88c18ea0
commit
2017d5d652
54 changed files with 1658 additions and 660 deletions
|
|
@ -7,8 +7,9 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
public class Animation : Command
|
||||
{
|
||||
public override string CMDName { get { return "animation"; } }
|
||||
public override string CMDDesc { get { return "animation <mainhand|offhand>"; } }
|
||||
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 Run(McClient handler, string command, Dictionary<string, object> localVars)
|
||||
{
|
||||
|
|
@ -20,24 +21,24 @@ namespace MinecraftClient.Commands
|
|||
if (args[0] == "mainhand" || args[0] == "0")
|
||||
{
|
||||
handler.DoAnimation(0);
|
||||
return "Done";
|
||||
return Translations.Get("general.done");
|
||||
}
|
||||
else if (args[0] == "offhand" || args[0] == "1")
|
||||
{
|
||||
handler.DoAnimation(1);
|
||||
return "Done";
|
||||
return Translations.Get("general.done");
|
||||
}
|
||||
else
|
||||
{
|
||||
return CMDDesc;
|
||||
return GetCmdDescTranslated();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return CMDDesc;
|
||||
return GetCmdDescTranslated();
|
||||
}
|
||||
}
|
||||
else return CMDDesc;
|
||||
else return GetCmdDescTranslated();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue