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
|
|
@ -8,16 +8,14 @@ namespace MinecraftClient.Commands
|
|||
class DropItem : Command
|
||||
{
|
||||
public override string CmdName { get { return "dropitem"; } }
|
||||
|
||||
public override string CmdDesc { get { return "cmd.dropItem.desc"; } }
|
||||
|
||||
public override string CmdUsage { get { return "/dropitem <itemtype>"; } }
|
||||
public override string CmdDesc { get { return Translations.cmd_dropItem_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))
|
||||
{
|
||||
|
|
@ -38,11 +36,11 @@ namespace MinecraftClient.Commands
|
|||
{
|
||||
handler.DoWindowAction(inventoryId, slot, WindowActionType.DropItemStack);
|
||||
}
|
||||
return Translations.Get("cmd.dropItem.dropped", itemType.ToString(), inventoryId);
|
||||
return string.Format(Translations.cmd_dropItem_dropped, itemType.ToString(), inventoryId);
|
||||
}
|
||||
else
|
||||
{
|
||||
return Translations.Get("cmd.dropItem.unknown_item", arg);
|
||||
return string.Format(Translations.cmd_dropItem_unknown_item, arg);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue