mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Merge pull request #120 from Vexatos/master-fork
Added backpack and command localization.
This commit is contained in:
commit
353dc079e9
6 files changed
+49
-24
No files matched your search
@@ -104,12 +104,12 @@ public class CommandBeekeepingMode extends CommandMC {
|
||||
|
||||
saveStatistics(sender, arguments);
|
||||
} else if (arguments[0].matches("help")) {
|
||||
sendChatMessage(sender, "Format: '/" + this.getCommandName() + " <command> <arguments>'");
|
||||
sendChatMessage(sender, "Available commands:");
|
||||
sendChatMessage(sender, "- list [<world-#>]: lists current and available beekeeping modes.");
|
||||
sendChatMessage(sender, "- info <mode-name> : information on beekeeping mode.");
|
||||
sendChatMessage(sender, "- set [<world-#>] <mode-name>: set beekeeping mode for world.");
|
||||
sendChatMessage(sender, "- save [<world-#>] <player-name>: save beekeeping statistics for the given player.");
|
||||
sendChatMessage(sender, StringUtil.localizeAndFormat("chat.bees.command.help.0", this.getCommandName()));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.bees.command.help.1"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.bees.command.help.2"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.bees.command.help.3"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.bees.command.help.4"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.bees.command.help.5"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -104,12 +104,12 @@ public class CommandTreekeepingMode extends CommandMC {
|
||||
|
||||
saveStatistics(sender, arguments);
|
||||
} else if (arguments[0].matches("help")) {
|
||||
sendChatMessage(sender, "Format: '/" + this.getCommandName() + " <command> <arguments>'");
|
||||
sendChatMessage(sender, "Available commands:");
|
||||
sendChatMessage(sender, "- list [<world-#>]: lists current and available treekeeping modes.");
|
||||
sendChatMessage(sender, "- info <mode-name> : information on treekeeping mode.");
|
||||
sendChatMessage(sender, "- set [<world-#>] <mode-name>: set treekeeping mode for world.");
|
||||
sendChatMessage(sender, "- save [<world-#>] <player-name>: save treekeeping statistics for the given player.");
|
||||
sendChatMessage(sender, StringUtil.localizeAndFormat("chat.trees.command.help.0", this.getCommandName()));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.trees.command.help.1"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.trees.command.help.2"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.trees.command.help.3"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.trees.command.help.4"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.trees.command.help.5"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ package forestry.core;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import forestry.core.utils.StringUtil;
|
||||
import net.minecraft.command.CommandException;
|
||||
import net.minecraft.command.ICommand;
|
||||
import net.minecraft.command.ICommandSender;
|
||||
@@ -61,11 +62,11 @@ public class CommandForestry extends CommandMC {
|
||||
commandPlugins(sender, arguments);
|
||||
return;
|
||||
} else if (arguments[0].matches("help")) {
|
||||
sendChatMessage(sender, "Format: '" + this.getCommandName() + " <command> <arguments>'");
|
||||
sendChatMessage(sender, "Available commands:");
|
||||
sendChatMessage(sender, "- version : Version information.");
|
||||
sendChatMessage(sender, "- plugins : list of Forestry plugins.");
|
||||
sendChatMessage(sender, "- plugins info <plugin-name>: information on plugin.");
|
||||
sendChatMessage(sender, StringUtil.localizeAndFormat("chat.command.help.0", this.getCommandName()));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.command.help.1"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.command.help.2"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.command.help.3"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.command.help.4"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,10 +65,10 @@ public class CommandMail extends CommandMC {
|
||||
commandVirtualize(sender, arguments);
|
||||
return;
|
||||
} else if (arguments[0].matches("help")) {
|
||||
sendChatMessage(sender, "Format: '" + this.getCommandName() + " <command> <arguments>'");
|
||||
sendChatMessage(sender, "Available commands:");
|
||||
sendChatMessage(sender, "- trades : A list of all trade stations.");
|
||||
sendChatMessage(sender, "- virtualize <tradestation-name>: Toggle virtual mode on specified trade station.");
|
||||
sendChatMessage(sender, StringUtil.localizeAndFormat("chat.mail.command.help.0", this.getCommandName()));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.1"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.2"));
|
||||
sendChatMessage(sender, StringUtil.localize("chat.mail.command.help.3"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -240,11 +240,11 @@ public class ItemBackpack extends ItemInventoried {
|
||||
|
||||
BackpackMode mode = getMode(itemstack);
|
||||
if (mode == BackpackMode.LOCKED)
|
||||
list.add("(LOCKED)");
|
||||
list.add(StringUtil.localize("storage.backpack.mode.locked"));
|
||||
else if (mode == BackpackMode.RECEIVE)
|
||||
list.add("(RECEIVING)");
|
||||
list.add(StringUtil.localize("storage.backpack.mode.receiving"));
|
||||
else if (mode == BackpackMode.RESUPPLY)
|
||||
list.add("(RESUPPLY)");
|
||||
list.add(StringUtil.localize("storage.backpack.mode.resupply"));
|
||||
list.add(occupied + "/" + getBackpackSize() + " " + StringUtil.localize("gui.slots"));
|
||||
|
||||
}
|
||||
|
||||
@@ -9,6 +9,11 @@ beverage.effect.antidote=Antidote
|
||||
chat.accesslocked=is the owner of this machine and has locked access.
|
||||
chat.memorizednote=You memorize the note and dispose of the crumpled scrap of paper.
|
||||
chat.cannotmemorizeagain=You already memorized this information.
|
||||
chat.command.help.0=Format: '/%s <command> <arguments>'
|
||||
chat.command.help.1=Available commands:
|
||||
chat.command.help.2=- version : Version information.
|
||||
chat.command.help.3=- plugins : list of Forestry plugins.
|
||||
chat.command.help.4=- plugins info <plugin-name>: information on plugin.
|
||||
circuit.dampener.1=Fire Dampener
|
||||
circuit.electric.choke.1=Electric Choke
|
||||
circuit.electric.efficiency.1=Electric Efficiency
|
||||
@@ -473,6 +478,9 @@ storage.backpack.forester=Forester's Backpack
|
||||
storage.backpack.hunter=Hunter's Backpack
|
||||
storage.backpack.miner=Miner's Backpack
|
||||
storage.backpack.t2adj=Woven
|
||||
storage.backpack.mode.locked=(LOCKED)
|
||||
storage.backpack.mode.receiving=(RECEIVING)
|
||||
storage.backpack.mode.resupply=(RESUPPLY)
|
||||
tile.for.engine.0=Electrical Engine
|
||||
tile.for.engine.1=Peat-fired Engine
|
||||
tile.for.engine.2=Biogas Engine
|
||||
@@ -639,6 +647,12 @@ beemode.normal.desc=Recommended mode for the normal player.
|
||||
beemode.hard.desc=Reducing mutation rate slightly while increasing lifespan of individual queens by 50 %.
|
||||
beemode.hardcore.desc=Halves mutation rate, increases lifespan of individual queens by 500 % and reduces fertility by 20 %.
|
||||
beemode.insane.desc=Cuts mutation rate to 20 %, increases lifespan tenfold and reduces fertility by 40 %.
|
||||
chat.bees.command.help.0=Format: '/%s <command> <arguments>'
|
||||
chat.bees.command.help.1=Available commands:
|
||||
chat.bees.command.help.2=- list [<world-#>]: lists current and available beekeeping modes.
|
||||
chat.bees.command.help.3=- info <mode-name> : information on beekeeping mode.
|
||||
chat.bees.command.help.4=- set [<world-#>] <mode-name>: set beekeeping mode for world.
|
||||
chat.bees.command.help.5=- save [<world-#>] <player-name>: save beekeeping statistics for the given player.
|
||||
description.speciesForest=One of the most common pests in forests; Mostly docile.|Beekeeping 101
|
||||
description.speciesMeadows=Infests mostly plains in temperate climates; Mostly docile.|Beekeeping 101
|
||||
description.speciesCommon=Considered the beginner apiarist's badge of participation.|Beekeeping 101
|
||||
@@ -709,6 +723,12 @@ tile.for.apiculture.2=Bee House
|
||||
# ARBORICULTURE
|
||||
####################
|
||||
|
||||
chat.trees.command.help.0=Format: '/%s <command> <arguments>'
|
||||
chat.trees.command.help.1=Available commands:
|
||||
chat.trees.command.help.2=- list [<world-#>]: lists current and available treekeeping modes.
|
||||
chat.trees.command.help.3=- info <mode-name> : information on treekeeping mode.
|
||||
chat.trees.command.help.4=- set [<world-#>] <mode-name>: set treekeeping mode for world.
|
||||
chat.trees.command.help.5=- save [<world-#>] <player-name>: save treekeeping statistics for the given player.
|
||||
gui.maturity=Matures
|
||||
gui.treealyzer=Treealyzer
|
||||
gui.treealyzer.help=Supply sapling and provide honey or honeydew as catalyst.
|
||||
@@ -947,6 +967,10 @@ tile.for.lepidopterology.0=Lepidopterist's Chest
|
||||
# MAIL
|
||||
####################
|
||||
|
||||
chat.mail.command.help.0=Format: '/%s <command> <arguments>'
|
||||
chat.mail.command.help.1=Available commands:
|
||||
chat.mail.command.help.2=- trades : A list of all trade stations.
|
||||
chat.mail.command.help.3=- virtualize <tradestation-name>: Toggle virtual mode on specified trade station.
|
||||
chat.mail.no_mailbox=Recipient has no mailbox.
|
||||
chat.mail.not_mailable=Letter is not sendable.
|
||||
chat.mail.not_postpaid=Letter is not sufficiently stamped.
|
||||
|
||||
Reference in new issue
Block a user