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
|
|
@ -7,12 +7,12 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
public override string CmdName { get { return "changeslot"; } }
|
||||
public override string CmdUsage { get { return "changeslot <1-9>"; } }
|
||||
public override string CmdDesc { get { return "cmd.changeSlot.desc"; } }
|
||||
public override string CmdDesc { get { return Translations.cmd_changeSlot_desc; } }
|
||||
|
||||
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
|
||||
{
|
||||
if (!handler.GetInventoryEnabled())
|
||||
return Translations.Get("extra.inventory_required");
|
||||
return Translations.extra_inventory_required;
|
||||
|
||||
if (HasArg(command))
|
||||
{
|
||||
|
|
@ -23,17 +23,17 @@ namespace MinecraftClient.Commands
|
|||
}
|
||||
catch (FormatException)
|
||||
{
|
||||
return Translations.Get("cmd.changeSlot.nan");
|
||||
return Translations.cmd_changeSlot_nan;
|
||||
}
|
||||
if (slot >= 1 && slot <= 9)
|
||||
{
|
||||
if (handler.ChangeSlot(slot -= 1))
|
||||
{
|
||||
return Translations.Get("cmd.changeSlot.changed", (slot += 1));
|
||||
return string.Format(Translations.cmd_changeSlot_changed, (slot += 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
return Translations.Get("cmd.changeSlot.fail");
|
||||
return Translations.cmd_changeSlot_fail;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue